configure revision e9f7eabc
150806d53Smrg#! /bin/sh
250806d53Smrg# Guess values for system-dependent variables and create Makefiles.
3e9f7eabcSmrg# Generated by GNU Autoconf 2.71 for xf86-video-i128 1.4.1.
450806d53Smrg#
5e9f7eabcSmrg# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-i128/-/issues>.
650806d53Smrg#
7a73423d7Smrg#
8e9f7eabcSmrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9e9f7eabcSmrg# Inc.
10a73423d7Smrg#
11a73423d7Smrg#
1250806d53Smrg# This configure script is free software; the Free Software Foundation
1350806d53Smrg# gives unlimited permission to copy, distribute and modify it.
14a73423d7Smrg## -------------------- ##
15a73423d7Smrg## M4sh Initialization. ##
16a73423d7Smrg## -------------------- ##
1750806d53Smrg
187965d9acSmrg# Be more Bourne compatible
197965d9acSmrgDUALCASE=1; export DUALCASE # for MKS sh
20e9f7eabcSmrgas_nop=:
21e9f7eabcSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22e9f7eabcSmrgthen :
2350806d53Smrg  emulate sh
2450806d53Smrg  NULLCMD=:
25af1a9c97Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2650806d53Smrg  # is contrary to our usage.  Disable this feature.
2750806d53Smrg  alias -g '${1+"$@"}'='"$@"'
287965d9acSmrg  setopt NO_GLOB_SUBST
29e9f7eabcSmrgelse $as_nop
30a73423d7Smrg  case `(set -o) 2>/dev/null` in #(
31a73423d7Smrg  *posix*) :
32a73423d7Smrg    set -o posix ;; #(
33a73423d7Smrg  *) :
34a73423d7Smrg     ;;
357965d9acSmrgesac
367965d9acSmrgfi
377965d9acSmrg
387965d9acSmrg
39e9f7eabcSmrg
40e9f7eabcSmrg# Reset variables that may have inherited troublesome values from
41e9f7eabcSmrg# the environment.
42e9f7eabcSmrg
43e9f7eabcSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
44e9f7eabcSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
45e9f7eabcSmrg# side effect of setting IFS to empty, thus disabling word splitting.)
46e9f7eabcSmrg# Quoting is to prevent editors from complaining about space-tab.
47af1a9c97Smrgas_nl='
48af1a9c97Smrg'
49af1a9c97Smrgexport as_nl
50e9f7eabcSmrgIFS=" ""	$as_nl"
51e9f7eabcSmrg
52e9f7eabcSmrgPS1='$ '
53e9f7eabcSmrgPS2='> '
54e9f7eabcSmrgPS4='+ '
55e9f7eabcSmrg
56e9f7eabcSmrg# Ensure predictable behavior from utilities with locale-dependent output.
57e9f7eabcSmrgLC_ALL=C
58e9f7eabcSmrgexport LC_ALL
59e9f7eabcSmrgLANGUAGE=C
60e9f7eabcSmrgexport LANGUAGE
61e9f7eabcSmrg
62e9f7eabcSmrg# We cannot yet rely on "unset" to work, but we need these variables
63e9f7eabcSmrg# to be unset--not just set to an empty or harmless value--now, to
64e9f7eabcSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65e9f7eabcSmrg# also avoids known problems related to "unset" and subshell syntax
66e9f7eabcSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67e9f7eabcSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68e9f7eabcSmrgdo eval test \${$as_var+y} \
69e9f7eabcSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70e9f7eabcSmrgdone
71e9f7eabcSmrg
72e9f7eabcSmrg# Ensure that fds 0, 1, and 2 are open.
73e9f7eabcSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74e9f7eabcSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75e9f7eabcSmrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76af1a9c97Smrg
777965d9acSmrg# The user is always right.
78e9f7eabcSmrgif ${PATH_SEPARATOR+false} :; then
79af1a9c97Smrg  PATH_SEPARATOR=:
80af1a9c97Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81af1a9c97Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82af1a9c97Smrg      PATH_SEPARATOR=';'
83af1a9c97Smrg  }
8450806d53Smrgfi
8550806d53Smrg
8650806d53Smrg
877965d9acSmrg# Find who we are.  Look in the path if we contain no directory separator.
88a73423d7Smrgas_myself=
89a73423d7Smrgcase $0 in #((
907965d9acSmrg  *[\\/]* ) as_myself=$0 ;;
917965d9acSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
927965d9acSmrgfor as_dir in $PATH
937965d9acSmrgdo
947965d9acSmrg  IFS=$as_save_IFS
95e9f7eabcSmrg  case $as_dir in #(((
96e9f7eabcSmrg    '') as_dir=./ ;;
97e9f7eabcSmrg    */) ;;
98e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
99e9f7eabcSmrg  esac
100e9f7eabcSmrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101a73423d7Smrg  done
1027965d9acSmrgIFS=$as_save_IFS
1037965d9acSmrg
1047965d9acSmrg     ;;
1057965d9acSmrgesac
1067965d9acSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1077965d9acSmrg# in which case we are not to be found in the path.
1087965d9acSmrgif test "x$as_myself" = x; then
1097965d9acSmrg  as_myself=$0
1107965d9acSmrgfi
1117965d9acSmrgif test ! -f "$as_myself"; then
112e9f7eabcSmrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113a73423d7Smrg  exit 1
1147965d9acSmrgfi
1157965d9acSmrg
116a73423d7Smrg
1174a8d91dcSmrg# Use a proper internal environment variable to ensure we don't fall
1184a8d91dcSmrg  # into an infinite loop, continuously re-executing ourselves.
1194a8d91dcSmrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
1204a8d91dcSmrg    _as_can_reexec=no; export _as_can_reexec;
1214a8d91dcSmrg    # We cannot yet assume a decent shell, so we have to provide a
1224a8d91dcSmrg# neutralization value for shells without unset; and this also
1234a8d91dcSmrg# works around shells that cannot unset nonexistent variables.
1244a8d91dcSmrg# Preserve -v and -x to the replacement shell.
1254a8d91dcSmrgBASH_ENV=/dev/null
1264a8d91dcSmrgENV=/dev/null
1274a8d91dcSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
1284a8d91dcSmrgcase $- in # ((((
1294a8d91dcSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
1304a8d91dcSmrg  *v* ) as_opts=-v ;;
1314a8d91dcSmrg  *x* ) as_opts=-x ;;
1324a8d91dcSmrg  * ) as_opts= ;;
1334a8d91dcSmrgesac
1344a8d91dcSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
1354a8d91dcSmrg# Admittedly, this is quite paranoid, since all the known shells bail
1364a8d91dcSmrg# out after a failed `exec'.
137e9f7eabcSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138e9f7eabcSmrgexit 255
1394a8d91dcSmrg  fi
1404a8d91dcSmrg  # We don't want this to propagate to other subprocesses.
1414a8d91dcSmrg          { _as_can_reexec=; unset _as_can_reexec;}
142a73423d7Smrgif test "x$CONFIG_SHELL" = x; then
143e9f7eabcSmrg  as_bourne_compatible="as_nop=:
144e9f7eabcSmrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145e9f7eabcSmrgthen :
146a73423d7Smrg  emulate sh
147a73423d7Smrg  NULLCMD=:
148a73423d7Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149a73423d7Smrg  # is contrary to our usage.  Disable this feature.
150a73423d7Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151a73423d7Smrg  setopt NO_GLOB_SUBST
152e9f7eabcSmrgelse \$as_nop
153a73423d7Smrg  case \`(set -o) 2>/dev/null\` in #(
154a73423d7Smrg  *posix*) :
155a73423d7Smrg    set -o posix ;; #(
156a73423d7Smrg  *) :
157a73423d7Smrg     ;;
158a73423d7Smrgesac
159a73423d7Smrgfi
160a73423d7Smrg"
161a73423d7Smrg  as_required="as_fn_return () { (exit \$1); }
162a73423d7Smrgas_fn_success () { as_fn_return 0; }
163a73423d7Smrgas_fn_failure () { as_fn_return 1; }
164a73423d7Smrgas_fn_ret_success () { return 0; }
165a73423d7Smrgas_fn_ret_failure () { return 1; }
166a73423d7Smrg
167a73423d7Smrgexitcode=0
168a73423d7Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
169a73423d7Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170a73423d7Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171a73423d7Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172e9f7eabcSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" )
173e9f7eabcSmrgthen :
174a73423d7Smrg
175e9f7eabcSmrgelse \$as_nop
176a73423d7Smrg  exitcode=1; echo positional parameters were not saved.
177a73423d7Smrgfi
1784a8d91dcSmrgtest x\$exitcode = x0 || exit 1
179e9f7eabcSmrgblah=\$(echo \$(echo blah))
180e9f7eabcSmrgtest x\"\$blah\" = xblah || exit 1
1814a8d91dcSmrgtest -x / || exit 1"
182a73423d7Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183a73423d7Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184a73423d7Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185a73423d7Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186a73423d7Smrgtest \$(( 1 + 1 )) = 2 || exit 1
187a73423d7Smrg
188a73423d7Smrg  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189a73423d7Smrg    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190a73423d7Smrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191a73423d7Smrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192a73423d7Smrg    PATH=/empty FPATH=/empty; export PATH FPATH
193a73423d7Smrg    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194a73423d7Smrg      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195e9f7eabcSmrg  if (eval "$as_required") 2>/dev/null
196e9f7eabcSmrgthen :
197a73423d7Smrg  as_have_required=yes
198e9f7eabcSmrgelse $as_nop
199a73423d7Smrg  as_have_required=no
200a73423d7Smrgfi
201e9f7eabcSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202e9f7eabcSmrgthen :
203a73423d7Smrg
204e9f7eabcSmrgelse $as_nop
205a73423d7Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206a73423d7Smrgas_found=false
207a73423d7Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208a73423d7Smrgdo
209a73423d7Smrg  IFS=$as_save_IFS
210e9f7eabcSmrg  case $as_dir in #(((
211e9f7eabcSmrg    '') as_dir=./ ;;
212e9f7eabcSmrg    */) ;;
213e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
214e9f7eabcSmrg  esac
215a73423d7Smrg  as_found=:
216a73423d7Smrg  case $as_dir in #(
217a73423d7Smrg	 /*)
218a73423d7Smrg	   for as_base in sh bash ksh sh5; do
219a73423d7Smrg	     # Try only shells that exist, to save several forks.
220e9f7eabcSmrg	     as_shell=$as_dir$as_base
221a73423d7Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222e9f7eabcSmrg		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223e9f7eabcSmrgthen :
224a73423d7Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
225e9f7eabcSmrg		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226e9f7eabcSmrgthen :
227a73423d7Smrg  break 2
228a73423d7Smrgfi
229a73423d7Smrgfi
230a73423d7Smrg	   done;;
231a73423d7Smrg       esac
232a73423d7Smrg  as_found=false
233a73423d7Smrgdone
234a73423d7SmrgIFS=$as_save_IFS
235e9f7eabcSmrgif $as_found
236e9f7eabcSmrgthen :
237e9f7eabcSmrg
238e9f7eabcSmrgelse $as_nop
239e9f7eabcSmrg  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240e9f7eabcSmrg	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241e9f7eabcSmrgthen :
242e9f7eabcSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
243e9f7eabcSmrgfi
244e9f7eabcSmrgfi
245a73423d7Smrg
246a73423d7Smrg
247e9f7eabcSmrg      if test "x$CONFIG_SHELL" != x
248e9f7eabcSmrgthen :
2494a8d91dcSmrg  export CONFIG_SHELL
2504a8d91dcSmrg             # We cannot yet assume a decent shell, so we have to provide a
2514a8d91dcSmrg# neutralization value for shells without unset; and this also
2524a8d91dcSmrg# works around shells that cannot unset nonexistent variables.
2534a8d91dcSmrg# Preserve -v and -x to the replacement shell.
2544a8d91dcSmrgBASH_ENV=/dev/null
2554a8d91dcSmrgENV=/dev/null
2564a8d91dcSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2574a8d91dcSmrgcase $- in # ((((
2584a8d91dcSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
2594a8d91dcSmrg  *v* ) as_opts=-v ;;
2604a8d91dcSmrg  *x* ) as_opts=-x ;;
2614a8d91dcSmrg  * ) as_opts= ;;
2624a8d91dcSmrgesac
2634a8d91dcSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
2644a8d91dcSmrg# Admittedly, this is quite paranoid, since all the known shells bail
2654a8d91dcSmrg# out after a failed `exec'.
266e9f7eabcSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
2674a8d91dcSmrgexit 255
268a73423d7Smrgfi
269a73423d7Smrg
270e9f7eabcSmrg    if test x$as_have_required = xno
271e9f7eabcSmrgthen :
272e9f7eabcSmrg  printf "%s\n" "$0: This script requires a shell more modern than all"
273e9f7eabcSmrg  printf "%s\n" "$0: the shells that I found on your system."
274e9f7eabcSmrg  if test ${ZSH_VERSION+y} ; then
275e9f7eabcSmrg    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276e9f7eabcSmrg    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277a73423d7Smrg  else
278e9f7eabcSmrg    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279e9f7eabcSmrg$0: https://gitlab.freedesktop.org/xorg/driver/xf86-video-i128/-/issues
280a73423d7Smrg$0: about your system, including any error possibly output
281a73423d7Smrg$0: before this message. Then install a modern shell, or
282a73423d7Smrg$0: manually run the script under such a shell if you do
283a73423d7Smrg$0: have one."
284a73423d7Smrg  fi
285a73423d7Smrg  exit 1
286a73423d7Smrgfi
287a73423d7Smrgfi
288a73423d7Smrgfi
289a73423d7SmrgSHELL=${CONFIG_SHELL-/bin/sh}
290a73423d7Smrgexport SHELL
291a73423d7Smrg# Unset more variables known to interfere with behavior of common tools.
292a73423d7SmrgCLICOLOR_FORCE= GREP_OPTIONS=
293a73423d7Smrgunset CLICOLOR_FORCE GREP_OPTIONS
294a73423d7Smrg
295a73423d7Smrg## --------------------- ##
296a73423d7Smrg## M4sh Shell Functions. ##
297a73423d7Smrg## --------------------- ##
298a73423d7Smrg# as_fn_unset VAR
299a73423d7Smrg# ---------------
300a73423d7Smrg# Portably unset VAR.
301a73423d7Smrgas_fn_unset ()
302a73423d7Smrg{
303a73423d7Smrg  { eval $1=; unset $1;}
304a73423d7Smrg}
305a73423d7Smrgas_unset=as_fn_unset
306a73423d7Smrg
307e9f7eabcSmrg
308a73423d7Smrg# as_fn_set_status STATUS
309a73423d7Smrg# -----------------------
310a73423d7Smrg# Set $? to STATUS, without forking.
311a73423d7Smrgas_fn_set_status ()
312a73423d7Smrg{
313a73423d7Smrg  return $1
314a73423d7Smrg} # as_fn_set_status
315a73423d7Smrg
316a73423d7Smrg# as_fn_exit STATUS
317a73423d7Smrg# -----------------
318a73423d7Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319a73423d7Smrgas_fn_exit ()
320a73423d7Smrg{
321a73423d7Smrg  set +e
322a73423d7Smrg  as_fn_set_status $1
323a73423d7Smrg  exit $1
324a73423d7Smrg} # as_fn_exit
325e9f7eabcSmrg# as_fn_nop
326e9f7eabcSmrg# ---------
327e9f7eabcSmrg# Do nothing but, unlike ":", preserve the value of $?.
328e9f7eabcSmrgas_fn_nop ()
329e9f7eabcSmrg{
330e9f7eabcSmrg  return $?
331e9f7eabcSmrg}
332e9f7eabcSmrgas_nop=as_fn_nop
333a73423d7Smrg
334a73423d7Smrg# as_fn_mkdir_p
335a73423d7Smrg# -------------
336a73423d7Smrg# Create "$as_dir" as a directory, including parents if necessary.
337a73423d7Smrgas_fn_mkdir_p ()
338a73423d7Smrg{
339a73423d7Smrg
340a73423d7Smrg  case $as_dir in #(
341a73423d7Smrg  -*) as_dir=./$as_dir;;
342a73423d7Smrg  esac
343a73423d7Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
344a73423d7Smrg    as_dirs=
345a73423d7Smrg    while :; do
346a73423d7Smrg      case $as_dir in #(
347e9f7eabcSmrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348a73423d7Smrg      *) as_qdir=$as_dir;;
349a73423d7Smrg      esac
350a73423d7Smrg      as_dirs="'$as_qdir' $as_dirs"
351a73423d7Smrg      as_dir=`$as_dirname -- "$as_dir" ||
352a73423d7Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353a73423d7Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
354a73423d7Smrg	 X"$as_dir" : 'X\(//\)$' \| \
355a73423d7Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356e9f7eabcSmrgprintf "%s\n" X"$as_dir" |
357a73423d7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358a73423d7Smrg	    s//\1/
359a73423d7Smrg	    q
360a73423d7Smrg	  }
361a73423d7Smrg	  /^X\(\/\/\)[^/].*/{
362a73423d7Smrg	    s//\1/
363a73423d7Smrg	    q
364a73423d7Smrg	  }
365a73423d7Smrg	  /^X\(\/\/\)$/{
366a73423d7Smrg	    s//\1/
367a73423d7Smrg	    q
368a73423d7Smrg	  }
369a73423d7Smrg	  /^X\(\/\).*/{
370a73423d7Smrg	    s//\1/
371a73423d7Smrg	    q
372a73423d7Smrg	  }
373a73423d7Smrg	  s/.*/./; q'`
374a73423d7Smrg      test -d "$as_dir" && break
375a73423d7Smrg    done
376a73423d7Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
377a73423d7Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378a73423d7Smrg
379a73423d7Smrg
380a73423d7Smrg} # as_fn_mkdir_p
3814a8d91dcSmrg
3824a8d91dcSmrg# as_fn_executable_p FILE
3834a8d91dcSmrg# -----------------------
3844a8d91dcSmrg# Test if FILE is an executable regular file.
3854a8d91dcSmrgas_fn_executable_p ()
3864a8d91dcSmrg{
3874a8d91dcSmrg  test -f "$1" && test -x "$1"
3884a8d91dcSmrg} # as_fn_executable_p
389a73423d7Smrg# as_fn_append VAR VALUE
390a73423d7Smrg# ----------------------
391a73423d7Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
392a73423d7Smrg# advantage of any shell optimizations that allow amortized linear growth over
393a73423d7Smrg# repeated appends, instead of the typical quadratic growth present in naive
394a73423d7Smrg# implementations.
395e9f7eabcSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396e9f7eabcSmrgthen :
397a73423d7Smrg  eval 'as_fn_append ()
398a73423d7Smrg  {
399a73423d7Smrg    eval $1+=\$2
400a73423d7Smrg  }'
401e9f7eabcSmrgelse $as_nop
402a73423d7Smrg  as_fn_append ()
403a73423d7Smrg  {
404a73423d7Smrg    eval $1=\$$1\$2
405a73423d7Smrg  }
406a73423d7Smrgfi # as_fn_append
407a73423d7Smrg
408a73423d7Smrg# as_fn_arith ARG...
409a73423d7Smrg# ------------------
410a73423d7Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
411a73423d7Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
412a73423d7Smrg# must be portable across $(()) and expr.
413e9f7eabcSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414e9f7eabcSmrgthen :
415a73423d7Smrg  eval 'as_fn_arith ()
416a73423d7Smrg  {
417a73423d7Smrg    as_val=$(( $* ))
418a73423d7Smrg  }'
419e9f7eabcSmrgelse $as_nop
420a73423d7Smrg  as_fn_arith ()
421a73423d7Smrg  {
422a73423d7Smrg    as_val=`expr "$@" || test $? -eq 1`
423a73423d7Smrg  }
424a73423d7Smrgfi # as_fn_arith
425a73423d7Smrg
426e9f7eabcSmrg# as_fn_nop
427e9f7eabcSmrg# ---------
428e9f7eabcSmrg# Do nothing but, unlike ":", preserve the value of $?.
429e9f7eabcSmrgas_fn_nop ()
430e9f7eabcSmrg{
431e9f7eabcSmrg  return $?
432e9f7eabcSmrg}
433e9f7eabcSmrgas_nop=as_fn_nop
434a73423d7Smrg
435a73423d7Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
436a73423d7Smrg# ----------------------------------------
437a73423d7Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438a73423d7Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439a73423d7Smrg# script with STATUS, using 1 if that was 0.
440a73423d7Smrgas_fn_error ()
441a73423d7Smrg{
442a73423d7Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
443a73423d7Smrg  if test "$4"; then
444a73423d7Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446a73423d7Smrg  fi
447e9f7eabcSmrg  printf "%s\n" "$as_me: error: $2" >&2
448a73423d7Smrg  as_fn_exit $as_status
449a73423d7Smrg} # as_fn_error
450a73423d7Smrg
4517965d9acSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
4527965d9acSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
45350806d53Smrg  as_expr=expr
45450806d53Smrgelse
45550806d53Smrg  as_expr=false
45650806d53Smrgfi
45750806d53Smrg
4587965d9acSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45950806d53Smrg  as_basename=basename
46050806d53Smrgelse
46150806d53Smrg  as_basename=false
46250806d53Smrgfi
46350806d53Smrg
464a73423d7Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465a73423d7Smrg  as_dirname=dirname
466a73423d7Smrgelse
467a73423d7Smrg  as_dirname=false
468a73423d7Smrgfi
46950806d53Smrg
4707965d9acSmrgas_me=`$as_basename -- "$0" ||
47150806d53Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
47250806d53Smrg	 X"$0" : 'X\(//\)$' \| \
4737965d9acSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474e9f7eabcSmrgprintf "%s\n" X/"$0" |
4757965d9acSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
4767965d9acSmrg	    s//\1/
4777965d9acSmrg	    q
4787965d9acSmrg	  }
4797965d9acSmrg	  /^X\/\(\/\/\)$/{
4807965d9acSmrg	    s//\1/
4817965d9acSmrg	    q
4827965d9acSmrg	  }
4837965d9acSmrg	  /^X\/\(\/\).*/{
4847965d9acSmrg	    s//\1/
4857965d9acSmrg	    q
4867965d9acSmrg	  }
4877965d9acSmrg	  s/.*/./; q'`
48850806d53Smrg
489a73423d7Smrg# Avoid depending upon Character Ranges.
490a73423d7Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
491a73423d7Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492a73423d7Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
493a73423d7Smrgas_cr_digits='0123456789'
494a73423d7Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
49550806d53Smrg
49650806d53Smrg
497a73423d7Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498a73423d7Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499a73423d7Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500a73423d7Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501a73423d7Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502a73423d7Smrg  sed -n '
503a73423d7Smrg    p
504a73423d7Smrg    /[$]LINENO/=
505a73423d7Smrg  ' <$as_myself |
506a73423d7Smrg    sed '
507a73423d7Smrg      s/[$]LINENO.*/&-/
508a73423d7Smrg      t lineno
509a73423d7Smrg      b
510a73423d7Smrg      :lineno
511a73423d7Smrg      N
512a73423d7Smrg      :loop
513a73423d7Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514a73423d7Smrg      t loop
515a73423d7Smrg      s/-\n.*//
516a73423d7Smrg    ' >$as_me.lineno &&
517a73423d7Smrg  chmod +x "$as_me.lineno" ||
518e9f7eabcSmrg    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
51950806d53Smrg
5204a8d91dcSmrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
5214a8d91dcSmrg  # already done that, so ensure we don't try to do so again and fall
5224a8d91dcSmrg  # in an infinite loop.  This has already happened in practice.
5234a8d91dcSmrg  _as_can_reexec=no; export _as_can_reexec
524a73423d7Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
525a73423d7Smrg  # (the dirname of $[0] is not the place where we might find the
526a73423d7Smrg  # original and so on.  Autoconf is especially sensitive to this).
527a73423d7Smrg  . "./$as_me.lineno"
528a73423d7Smrg  # Exit status is that of the last command.
529a73423d7Smrg  exit
5307965d9acSmrg}
53150806d53Smrg
532e9f7eabcSmrg
533e9f7eabcSmrg# Determine whether it's possible to make 'echo' print without a newline.
534e9f7eabcSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535e9f7eabcSmrg# for compatibility with existing Makefiles.
536a73423d7SmrgECHO_C= ECHO_N= ECHO_T=
537a73423d7Smrgcase `echo -n x` in #(((((
538a73423d7Smrg-n*)
539a73423d7Smrg  case `echo 'xy\c'` in
540a73423d7Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541a73423d7Smrg  xy)  ECHO_C='\c';;
542a73423d7Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543a73423d7Smrg       ECHO_T='	';;
544a73423d7Smrg  esac;;
545a73423d7Smrg*)
546a73423d7Smrg  ECHO_N='-n';;
547a73423d7Smrgesac
54850806d53Smrg
549e9f7eabcSmrg# For backward compatibility with old third-party macros, we provide
550e9f7eabcSmrg# the shell variables $as_echo and $as_echo_n.  New code should use
551e9f7eabcSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552e9f7eabcSmrgas_echo='printf %s\n'
553e9f7eabcSmrgas_echo_n='printf %s'
554e9f7eabcSmrg
555e9f7eabcSmrg
556a73423d7Smrgrm -f conf$$ conf$$.exe conf$$.file
557a73423d7Smrgif test -d conf$$.dir; then
558a73423d7Smrg  rm -f conf$$.dir/conf$$.file
559a73423d7Smrgelse
560a73423d7Smrg  rm -f conf$$.dir
561a73423d7Smrg  mkdir conf$$.dir 2>/dev/null
5627965d9acSmrgfi
563a73423d7Smrgif (echo >conf$$.file) 2>/dev/null; then
564a73423d7Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
565a73423d7Smrg    as_ln_s='ln -s'
566a73423d7Smrg    # ... but there are two gotchas:
567a73423d7Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568a73423d7Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5694a8d91dcSmrg    # In both cases, we have to default to `cp -pR'.
570a73423d7Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5714a8d91dcSmrg      as_ln_s='cp -pR'
572a73423d7Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
573a73423d7Smrg    as_ln_s=ln
574a73423d7Smrg  else
5754a8d91dcSmrg    as_ln_s='cp -pR'
576a73423d7Smrg  fi
5777965d9acSmrgelse
5784a8d91dcSmrg  as_ln_s='cp -pR'
5797965d9acSmrgfi
580a73423d7Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581a73423d7Smrgrmdir conf$$.dir 2>/dev/null
5827965d9acSmrg
583a73423d7Smrgif mkdir -p . 2>/dev/null; then
584a73423d7Smrg  as_mkdir_p='mkdir -p "$as_dir"'
585a73423d7Smrgelse
586a73423d7Smrg  test -d ./-p && rmdir ./-p
587a73423d7Smrg  as_mkdir_p=false
5887965d9acSmrgfi
5897965d9acSmrg
5904a8d91dcSmrgas_test_x='test -x'
5914a8d91dcSmrgas_executable_p=as_fn_executable_p
5927965d9acSmrg
593a73423d7Smrg# Sed expression to map a string onto a valid CPP name.
594a73423d7Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5957965d9acSmrg
596a73423d7Smrg# Sed expression to map a string onto a valid variable name.
597a73423d7Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5987965d9acSmrg
599a73423d7SmrgSHELL=${CONFIG_SHELL-/bin/sh}
6007965d9acSmrg
601a73423d7Smrg
602a73423d7Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
603a73423d7Smrgexec 6>&1
604a73423d7Smrg
605a73423d7Smrg# Name of the host.
606a73423d7Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607a73423d7Smrg# so uname gets run too.
608a73423d7Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609a73423d7Smrg
610a73423d7Smrg#
611a73423d7Smrg# Initializations.
612a73423d7Smrg#
613a73423d7Smrgac_default_prefix=/usr/local
614a73423d7Smrgac_clean_files=
615a73423d7Smrgac_config_libobj_dir=.
616a73423d7SmrgLIBOBJS=
617a73423d7Smrgcross_compiling=no
618a73423d7Smrgsubdirs=
619a73423d7SmrgMFLAGS=
620a73423d7SmrgMAKEFLAGS=
621a73423d7Smrg
622a73423d7Smrg# Identity of this package.
623a73423d7SmrgPACKAGE_NAME='xf86-video-i128'
624a73423d7SmrgPACKAGE_TARNAME='xf86-video-i128'
625e9f7eabcSmrgPACKAGE_VERSION='1.4.1'
626e9f7eabcSmrgPACKAGE_STRING='xf86-video-i128 1.4.1'
627e9f7eabcSmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-i128/-/issues'
628a73423d7SmrgPACKAGE_URL=''
629a73423d7Smrg
630a73423d7Smrgac_unique_file="Makefile.am"
631a73423d7Smrg# Factoring default headers for most tests.
632a73423d7Smrgac_includes_default="\
633e9f7eabcSmrg#include <stddef.h>
634e9f7eabcSmrg#ifdef HAVE_STDIO_H
635e9f7eabcSmrg# include <stdio.h>
636a73423d7Smrg#endif
637e9f7eabcSmrg#ifdef HAVE_STDLIB_H
638a73423d7Smrg# include <stdlib.h>
639a73423d7Smrg#endif
640a73423d7Smrg#ifdef HAVE_STRING_H
641a73423d7Smrg# include <string.h>
642a73423d7Smrg#endif
643a73423d7Smrg#ifdef HAVE_INTTYPES_H
644a73423d7Smrg# include <inttypes.h>
645a73423d7Smrg#endif
646a73423d7Smrg#ifdef HAVE_STDINT_H
647a73423d7Smrg# include <stdint.h>
648a73423d7Smrg#endif
649e9f7eabcSmrg#ifdef HAVE_STRINGS_H
650e9f7eabcSmrg# include <strings.h>
651e9f7eabcSmrg#endif
652e9f7eabcSmrg#ifdef HAVE_SYS_TYPES_H
653e9f7eabcSmrg# include <sys/types.h>
654e9f7eabcSmrg#endif
655e9f7eabcSmrg#ifdef HAVE_SYS_STAT_H
656e9f7eabcSmrg# include <sys/stat.h>
657e9f7eabcSmrg#endif
658a73423d7Smrg#ifdef HAVE_UNISTD_H
659a73423d7Smrg# include <unistd.h>
660a73423d7Smrg#endif"
661a73423d7Smrg
662e9f7eabcSmrgac_header_c_list=
663a73423d7Smrgac_subst_vars='am__EXEEXT_FALSE
664a73423d7Smrgam__EXEEXT_TRUE
665a73423d7SmrgLTLIBOBJS
666a73423d7SmrgLIBOBJS
667a73423d7SmrgDRIVER_NAME
668a73423d7Smrgmoduledir
669a73423d7SmrgXAA_FALSE
670a73423d7SmrgXAA_TRUE
671a73423d7SmrgXSERVER_LIBPCIACCESS_FALSE
672a73423d7SmrgXSERVER_LIBPCIACCESS_TRUE
673a73423d7SmrgPCIACCESS_LIBS
674a73423d7SmrgPCIACCESS_CFLAGS
675a73423d7SmrgXORG_LIBS
676a73423d7SmrgXORG_CFLAGS
6774a8d91dcSmrgLT_SYS_LIBRARY_PATH
678a73423d7SmrgOTOOL64
679a73423d7SmrgOTOOL
680a73423d7SmrgLIPO
681a73423d7SmrgNMEDIT
682a73423d7SmrgDSYMUTIL
683a73423d7SmrgMANIFEST_TOOL
684a73423d7SmrgRANLIB
685a73423d7Smrgac_ct_AR
686a73423d7SmrgAR
687a73423d7SmrgDLLTOOL
688a73423d7SmrgOBJDUMP
689e9f7eabcSmrgFILECMD
690a73423d7SmrgLN_S
691a73423d7SmrgNM
692a73423d7Smrgac_ct_DUMPBIN
693a73423d7SmrgDUMPBIN
694a73423d7SmrgLD
695a73423d7SmrgFGREP
696e9f7eabcSmrgEGREP
697e9f7eabcSmrgGREP
698a73423d7SmrgLIBTOOL
699a73423d7SmrgMAN_SUBSTS
700a73423d7SmrgXORG_MAN_PAGE
701a73423d7SmrgADMIN_MAN_DIR
702a73423d7SmrgDRIVER_MAN_DIR
703a73423d7SmrgMISC_MAN_DIR
704a73423d7SmrgFILE_MAN_DIR
705a73423d7SmrgLIB_MAN_DIR
706a73423d7SmrgAPP_MAN_DIR
707a73423d7SmrgADMIN_MAN_SUFFIX
708a73423d7SmrgDRIVER_MAN_SUFFIX
709a73423d7SmrgMISC_MAN_SUFFIX
710a73423d7SmrgFILE_MAN_SUFFIX
711a73423d7SmrgLIB_MAN_SUFFIX
712a73423d7SmrgAPP_MAN_SUFFIX
713a73423d7SmrgSED
714a73423d7Smrghost_os
715a73423d7Smrghost_vendor
716a73423d7Smrghost_cpu
717a73423d7Smrghost
718a73423d7Smrgbuild_os
719a73423d7Smrgbuild_vendor
720a73423d7Smrgbuild_cpu
721a73423d7Smrgbuild
722a73423d7SmrgINSTALL_CMD
723a73423d7SmrgPKG_CONFIG_LIBDIR
724a73423d7SmrgPKG_CONFIG_PATH
725a73423d7SmrgPKG_CONFIG
726a73423d7SmrgCHANGELOG_CMD
727a73423d7SmrgSTRICT_CFLAGS
728a73423d7SmrgCWARNFLAGS
729a73423d7SmrgBASE_CFLAGS
730a73423d7Smrgam__fastdepCC_FALSE
731a73423d7Smrgam__fastdepCC_TRUE
732a73423d7SmrgCCDEPMODE
733a73423d7Smrgam__nodep
734a73423d7SmrgAMDEPBACKSLASH
735a73423d7SmrgAMDEP_FALSE
736a73423d7SmrgAMDEP_TRUE
737a73423d7Smrgam__include
738a73423d7SmrgDEPDIR
739a73423d7SmrgOBJEXT
740a73423d7SmrgEXEEXT
741a73423d7Smrgac_ct_CC
742a73423d7SmrgCPPFLAGS
743a73423d7SmrgLDFLAGS
744a73423d7SmrgCFLAGS
745a73423d7SmrgCC
746a73423d7SmrgMAINT
747a73423d7SmrgMAINTAINER_MODE_FALSE
748a73423d7SmrgMAINTAINER_MODE_TRUE
7494a8d91dcSmrgAM_BACKSLASH
7504a8d91dcSmrgAM_DEFAULT_VERBOSITY
7514a8d91dcSmrgAM_DEFAULT_V
7524a8d91dcSmrgAM_V
753e9f7eabcSmrgCSCOPE
754e9f7eabcSmrgETAGS
755e9f7eabcSmrgCTAGS
756a73423d7Smrgam__untar
757a73423d7Smrgam__tar
758a73423d7SmrgAMTAR
759a73423d7Smrgam__leading_dot
760a73423d7SmrgSET_MAKE
761a73423d7SmrgAWK
762a73423d7Smrgmkdir_p
763a73423d7SmrgMKDIR_P
764a73423d7SmrgINSTALL_STRIP_PROGRAM
765a73423d7SmrgSTRIP
766a73423d7Smrginstall_sh
767a73423d7SmrgMAKEINFO
768a73423d7SmrgAUTOHEADER
769a73423d7SmrgAUTOMAKE
770a73423d7SmrgAUTOCONF
771a73423d7SmrgACLOCAL
772a73423d7SmrgVERSION
773a73423d7SmrgPACKAGE
774a73423d7SmrgCYGPATH_W
775a73423d7Smrgam__isrc
776a73423d7SmrgINSTALL_DATA
777a73423d7SmrgINSTALL_SCRIPT
778a73423d7SmrgINSTALL_PROGRAM
779a73423d7Smrgtarget_alias
780a73423d7Smrghost_alias
781a73423d7Smrgbuild_alias
782a73423d7SmrgLIBS
783a73423d7SmrgECHO_T
784a73423d7SmrgECHO_N
785a73423d7SmrgECHO_C
786a73423d7SmrgDEFS
787a73423d7Smrgmandir
788a73423d7Smrglocaledir
789a73423d7Smrglibdir
790a73423d7Smrgpsdir
791a73423d7Smrgpdfdir
792a73423d7Smrgdvidir
793a73423d7Smrghtmldir
794a73423d7Smrginfodir
795a73423d7Smrgdocdir
796a73423d7Smrgoldincludedir
797a73423d7Smrgincludedir
7984a8d91dcSmrgrunstatedir
799a73423d7Smrglocalstatedir
800a73423d7Smrgsharedstatedir
801a73423d7Smrgsysconfdir
802a73423d7Smrgdatadir
803a73423d7Smrgdatarootdir
804a73423d7Smrglibexecdir
805a73423d7Smrgsbindir
806a73423d7Smrgbindir
807a73423d7Smrgprogram_transform_name
808a73423d7Smrgprefix
809a73423d7Smrgexec_prefix
810a73423d7SmrgPACKAGE_URL
811a73423d7SmrgPACKAGE_BUGREPORT
812a73423d7SmrgPACKAGE_STRING
813a73423d7SmrgPACKAGE_VERSION
814a73423d7SmrgPACKAGE_TARNAME
815a73423d7SmrgPACKAGE_NAME
816a73423d7SmrgPATH_SEPARATOR
817e9f7eabcSmrgSHELL
818e9f7eabcSmrgam__quote'
819a73423d7Smrgac_subst_files=''
820a73423d7Smrgac_user_opts='
821a73423d7Smrgenable_option_checking
8224a8d91dcSmrgenable_silent_rules
823a73423d7Smrgenable_maintainer_mode
824a73423d7Smrgenable_dependency_tracking
825a73423d7Smrgenable_selective_werror
826a73423d7Smrgenable_strict_compilation
827a73423d7Smrgenable_static
828a73423d7Smrgenable_shared
829a73423d7Smrgwith_pic
830a73423d7Smrgenable_fast_install
8314a8d91dcSmrgwith_aix_soname
832a73423d7Smrgwith_gnu_ld
833a73423d7Smrgwith_sysroot
834a73423d7Smrgenable_libtool_lock
835a73423d7Smrgwith_xorg_module_dir
836a73423d7Smrgenable_xaa
837a73423d7Smrg'
838a73423d7Smrg      ac_precious_vars='build_alias
839a73423d7Smrghost_alias
840a73423d7Smrgtarget_alias
841a73423d7SmrgCC
842a73423d7SmrgCFLAGS
843a73423d7SmrgLDFLAGS
844a73423d7SmrgLIBS
845a73423d7SmrgCPPFLAGS
846a73423d7SmrgPKG_CONFIG
847a73423d7SmrgPKG_CONFIG_PATH
848a73423d7SmrgPKG_CONFIG_LIBDIR
8494a8d91dcSmrgLT_SYS_LIBRARY_PATH
850a73423d7SmrgXORG_CFLAGS
851a73423d7SmrgXORG_LIBS
852a73423d7SmrgPCIACCESS_CFLAGS
853a73423d7SmrgPCIACCESS_LIBS'
854a73423d7Smrg
855a73423d7Smrg
856a73423d7Smrg# Initialize some variables set by options.
857a73423d7Smrgac_init_help=
858a73423d7Smrgac_init_version=false
859a73423d7Smrgac_unrecognized_opts=
860a73423d7Smrgac_unrecognized_sep=
861a73423d7Smrg# The variables have the same names as the options, with
862a73423d7Smrg# dashes changed to underlines.
863a73423d7Smrgcache_file=/dev/null
864a73423d7Smrgexec_prefix=NONE
865a73423d7Smrgno_create=
866a73423d7Smrgno_recursion=
867a73423d7Smrgprefix=NONE
868a73423d7Smrgprogram_prefix=NONE
869a73423d7Smrgprogram_suffix=NONE
870a73423d7Smrgprogram_transform_name=s,x,x,
871a73423d7Smrgsilent=
872a73423d7Smrgsite=
873a73423d7Smrgsrcdir=
874a73423d7Smrgverbose=
875a73423d7Smrgx_includes=NONE
876a73423d7Smrgx_libraries=NONE
877a73423d7Smrg
878a73423d7Smrg# Installation directory options.
879a73423d7Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
880a73423d7Smrg# and all the variables that are supposed to be based on exec_prefix
881a73423d7Smrg# by default will actually change.
882a73423d7Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
883a73423d7Smrg# (The list follows the same order as the GNU Coding Standards.)
884a73423d7Smrgbindir='${exec_prefix}/bin'
885a73423d7Smrgsbindir='${exec_prefix}/sbin'
886a73423d7Smrglibexecdir='${exec_prefix}/libexec'
887a73423d7Smrgdatarootdir='${prefix}/share'
888a73423d7Smrgdatadir='${datarootdir}'
889a73423d7Smrgsysconfdir='${prefix}/etc'
890a73423d7Smrgsharedstatedir='${prefix}/com'
891a73423d7Smrglocalstatedir='${prefix}/var'
8924a8d91dcSmrgrunstatedir='${localstatedir}/run'
893a73423d7Smrgincludedir='${prefix}/include'
894a73423d7Smrgoldincludedir='/usr/include'
895a73423d7Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
896a73423d7Smrginfodir='${datarootdir}/info'
897a73423d7Smrghtmldir='${docdir}'
898a73423d7Smrgdvidir='${docdir}'
899a73423d7Smrgpdfdir='${docdir}'
900a73423d7Smrgpsdir='${docdir}'
901a73423d7Smrglibdir='${exec_prefix}/lib'
902a73423d7Smrglocaledir='${datarootdir}/locale'
903a73423d7Smrgmandir='${datarootdir}/man'
904a73423d7Smrg
905a73423d7Smrgac_prev=
906a73423d7Smrgac_dashdash=
907a73423d7Smrgfor ac_option
908a73423d7Smrgdo
909a73423d7Smrg  # If the previous option needs an argument, assign it.
910a73423d7Smrg  if test -n "$ac_prev"; then
911a73423d7Smrg    eval $ac_prev=\$ac_option
912a73423d7Smrg    ac_prev=
913a73423d7Smrg    continue
914a73423d7Smrg  fi
915a73423d7Smrg
916a73423d7Smrg  case $ac_option in
917a73423d7Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918a73423d7Smrg  *=)   ac_optarg= ;;
919a73423d7Smrg  *)    ac_optarg=yes ;;
920a73423d7Smrg  esac
921a73423d7Smrg
922a73423d7Smrg  case $ac_dashdash$ac_option in
923a73423d7Smrg  --)
924a73423d7Smrg    ac_dashdash=yes ;;
925a73423d7Smrg
926a73423d7Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
927a73423d7Smrg    ac_prev=bindir ;;
928a73423d7Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929a73423d7Smrg    bindir=$ac_optarg ;;
930a73423d7Smrg
931a73423d7Smrg  -build | --build | --buil | --bui | --bu)
932a73423d7Smrg    ac_prev=build_alias ;;
933a73423d7Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934a73423d7Smrg    build_alias=$ac_optarg ;;
935a73423d7Smrg
936a73423d7Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
937a73423d7Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938a73423d7Smrg    ac_prev=cache_file ;;
939a73423d7Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940a73423d7Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941a73423d7Smrg    cache_file=$ac_optarg ;;
942a73423d7Smrg
943a73423d7Smrg  --config-cache | -C)
944a73423d7Smrg    cache_file=config.cache ;;
945a73423d7Smrg
946a73423d7Smrg  -datadir | --datadir | --datadi | --datad)
947a73423d7Smrg    ac_prev=datadir ;;
948a73423d7Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
949a73423d7Smrg    datadir=$ac_optarg ;;
950a73423d7Smrg
951a73423d7Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952a73423d7Smrg  | --dataroo | --dataro | --datar)
953a73423d7Smrg    ac_prev=datarootdir ;;
954a73423d7Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955a73423d7Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956a73423d7Smrg    datarootdir=$ac_optarg ;;
957a73423d7Smrg
958a73423d7Smrg  -disable-* | --disable-*)
959a73423d7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960a73423d7Smrg    # Reject names that are not valid shell variable names.
961a73423d7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962e9f7eabcSmrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
963a73423d7Smrg    ac_useropt_orig=$ac_useropt
964e9f7eabcSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
965a73423d7Smrg    case $ac_user_opts in
966a73423d7Smrg      *"
967a73423d7Smrg"enable_$ac_useropt"
968a73423d7Smrg"*) ;;
969a73423d7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970a73423d7Smrg	 ac_unrecognized_sep=', ';;
971a73423d7Smrg    esac
972a73423d7Smrg    eval enable_$ac_useropt=no ;;
973a73423d7Smrg
974a73423d7Smrg  -docdir | --docdir | --docdi | --doc | --do)
975a73423d7Smrg    ac_prev=docdir ;;
976a73423d7Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977a73423d7Smrg    docdir=$ac_optarg ;;
978a73423d7Smrg
979a73423d7Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980a73423d7Smrg    ac_prev=dvidir ;;
981a73423d7Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982a73423d7Smrg    dvidir=$ac_optarg ;;
983a73423d7Smrg
984a73423d7Smrg  -enable-* | --enable-*)
985a73423d7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986a73423d7Smrg    # Reject names that are not valid shell variable names.
987a73423d7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988e9f7eabcSmrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
989a73423d7Smrg    ac_useropt_orig=$ac_useropt
990e9f7eabcSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
991a73423d7Smrg    case $ac_user_opts in
992a73423d7Smrg      *"
993a73423d7Smrg"enable_$ac_useropt"
994a73423d7Smrg"*) ;;
995a73423d7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996a73423d7Smrg	 ac_unrecognized_sep=', ';;
997a73423d7Smrg    esac
998a73423d7Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
999a73423d7Smrg
1000a73423d7Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001a73423d7Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002a73423d7Smrg  | --exec | --exe | --ex)
1003a73423d7Smrg    ac_prev=exec_prefix ;;
1004a73423d7Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005a73423d7Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006a73423d7Smrg  | --exec=* | --exe=* | --ex=*)
1007a73423d7Smrg    exec_prefix=$ac_optarg ;;
1008a73423d7Smrg
1009a73423d7Smrg  -gas | --gas | --ga | --g)
1010a73423d7Smrg    # Obsolete; use --with-gas.
1011a73423d7Smrg    with_gas=yes ;;
1012a73423d7Smrg
1013a73423d7Smrg  -help | --help | --hel | --he | -h)
1014a73423d7Smrg    ac_init_help=long ;;
1015a73423d7Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016a73423d7Smrg    ac_init_help=recursive ;;
1017a73423d7Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018a73423d7Smrg    ac_init_help=short ;;
1019a73423d7Smrg
1020a73423d7Smrg  -host | --host | --hos | --ho)
1021a73423d7Smrg    ac_prev=host_alias ;;
1022a73423d7Smrg  -host=* | --host=* | --hos=* | --ho=*)
1023a73423d7Smrg    host_alias=$ac_optarg ;;
1024a73423d7Smrg
1025a73423d7Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026a73423d7Smrg    ac_prev=htmldir ;;
1027a73423d7Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028a73423d7Smrg  | --ht=*)
1029a73423d7Smrg    htmldir=$ac_optarg ;;
1030a73423d7Smrg
1031a73423d7Smrg  -includedir | --includedir | --includedi | --included | --include \
1032a73423d7Smrg  | --includ | --inclu | --incl | --inc)
1033a73423d7Smrg    ac_prev=includedir ;;
1034a73423d7Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035a73423d7Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
1036a73423d7Smrg    includedir=$ac_optarg ;;
1037a73423d7Smrg
1038a73423d7Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
1039a73423d7Smrg    ac_prev=infodir ;;
1040a73423d7Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041a73423d7Smrg    infodir=$ac_optarg ;;
1042a73423d7Smrg
1043a73423d7Smrg  -libdir | --libdir | --libdi | --libd)
1044a73423d7Smrg    ac_prev=libdir ;;
1045a73423d7Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046a73423d7Smrg    libdir=$ac_optarg ;;
1047a73423d7Smrg
1048a73423d7Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049a73423d7Smrg  | --libexe | --libex | --libe)
1050a73423d7Smrg    ac_prev=libexecdir ;;
1051a73423d7Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052a73423d7Smrg  | --libexe=* | --libex=* | --libe=*)
1053a73423d7Smrg    libexecdir=$ac_optarg ;;
1054a73423d7Smrg
1055a73423d7Smrg  -localedir | --localedir | --localedi | --localed | --locale)
1056a73423d7Smrg    ac_prev=localedir ;;
1057a73423d7Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058a73423d7Smrg    localedir=$ac_optarg ;;
1059a73423d7Smrg
1060a73423d7Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
1061a73423d7Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
1062a73423d7Smrg    ac_prev=localstatedir ;;
1063a73423d7Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064a73423d7Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065a73423d7Smrg    localstatedir=$ac_optarg ;;
1066a73423d7Smrg
1067a73423d7Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068a73423d7Smrg    ac_prev=mandir ;;
1069a73423d7Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070a73423d7Smrg    mandir=$ac_optarg ;;
1071a73423d7Smrg
1072a73423d7Smrg  -nfp | --nfp | --nf)
1073a73423d7Smrg    # Obsolete; use --without-fp.
1074a73423d7Smrg    with_fp=no ;;
1075a73423d7Smrg
1076a73423d7Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077a73423d7Smrg  | --no-cr | --no-c | -n)
1078a73423d7Smrg    no_create=yes ;;
1079a73423d7Smrg
1080a73423d7Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081a73423d7Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082a73423d7Smrg    no_recursion=yes ;;
1083a73423d7Smrg
1084a73423d7Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085a73423d7Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086a73423d7Smrg  | --oldin | --oldi | --old | --ol | --o)
1087a73423d7Smrg    ac_prev=oldincludedir ;;
1088a73423d7Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089a73423d7Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090a73423d7Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091a73423d7Smrg    oldincludedir=$ac_optarg ;;
1092a73423d7Smrg
1093a73423d7Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094a73423d7Smrg    ac_prev=prefix ;;
1095a73423d7Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096a73423d7Smrg    prefix=$ac_optarg ;;
1097a73423d7Smrg
1098a73423d7Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099a73423d7Smrg  | --program-pre | --program-pr | --program-p)
1100a73423d7Smrg    ac_prev=program_prefix ;;
1101a73423d7Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102a73423d7Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103a73423d7Smrg    program_prefix=$ac_optarg ;;
1104a73423d7Smrg
1105a73423d7Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106a73423d7Smrg  | --program-suf | --program-su | --program-s)
1107a73423d7Smrg    ac_prev=program_suffix ;;
1108a73423d7Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109a73423d7Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110a73423d7Smrg    program_suffix=$ac_optarg ;;
1111a73423d7Smrg
1112a73423d7Smrg  -program-transform-name | --program-transform-name \
1113a73423d7Smrg  | --program-transform-nam | --program-transform-na \
1114a73423d7Smrg  | --program-transform-n | --program-transform- \
1115a73423d7Smrg  | --program-transform | --program-transfor \
1116a73423d7Smrg  | --program-transfo | --program-transf \
1117a73423d7Smrg  | --program-trans | --program-tran \
1118a73423d7Smrg  | --progr-tra | --program-tr | --program-t)
1119a73423d7Smrg    ac_prev=program_transform_name ;;
1120a73423d7Smrg  -program-transform-name=* | --program-transform-name=* \
1121a73423d7Smrg  | --program-transform-nam=* | --program-transform-na=* \
1122a73423d7Smrg  | --program-transform-n=* | --program-transform-=* \
1123a73423d7Smrg  | --program-transform=* | --program-transfor=* \
1124a73423d7Smrg  | --program-transfo=* | --program-transf=* \
1125a73423d7Smrg  | --program-trans=* | --program-tran=* \
1126a73423d7Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1127a73423d7Smrg    program_transform_name=$ac_optarg ;;
1128a73423d7Smrg
1129a73423d7Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130a73423d7Smrg    ac_prev=pdfdir ;;
1131a73423d7Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132a73423d7Smrg    pdfdir=$ac_optarg ;;
1133a73423d7Smrg
1134a73423d7Smrg  -psdir | --psdir | --psdi | --psd | --ps)
1135a73423d7Smrg    ac_prev=psdir ;;
1136a73423d7Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137a73423d7Smrg    psdir=$ac_optarg ;;
1138a73423d7Smrg
1139a73423d7Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140a73423d7Smrg  | -silent | --silent | --silen | --sile | --sil)
1141a73423d7Smrg    silent=yes ;;
1142a73423d7Smrg
11434a8d91dcSmrg  -runstatedir | --runstatedir | --runstatedi | --runstated \
11444a8d91dcSmrg  | --runstate | --runstat | --runsta | --runst | --runs \
11454a8d91dcSmrg  | --run | --ru | --r)
11464a8d91dcSmrg    ac_prev=runstatedir ;;
11474a8d91dcSmrg  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
11484a8d91dcSmrg  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
11494a8d91dcSmrg  | --run=* | --ru=* | --r=*)
11504a8d91dcSmrg    runstatedir=$ac_optarg ;;
11514a8d91dcSmrg
1152a73423d7Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153a73423d7Smrg    ac_prev=sbindir ;;
1154a73423d7Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155a73423d7Smrg  | --sbi=* | --sb=*)
1156a73423d7Smrg    sbindir=$ac_optarg ;;
1157a73423d7Smrg
1158a73423d7Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159a73423d7Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160a73423d7Smrg  | --sharedst | --shareds | --shared | --share | --shar \
1161a73423d7Smrg  | --sha | --sh)
1162a73423d7Smrg    ac_prev=sharedstatedir ;;
1163a73423d7Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164a73423d7Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165a73423d7Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166a73423d7Smrg  | --sha=* | --sh=*)
1167a73423d7Smrg    sharedstatedir=$ac_optarg ;;
1168a73423d7Smrg
1169a73423d7Smrg  -site | --site | --sit)
1170a73423d7Smrg    ac_prev=site ;;
1171a73423d7Smrg  -site=* | --site=* | --sit=*)
1172a73423d7Smrg    site=$ac_optarg ;;
1173a73423d7Smrg
1174a73423d7Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175a73423d7Smrg    ac_prev=srcdir ;;
1176a73423d7Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177a73423d7Smrg    srcdir=$ac_optarg ;;
1178a73423d7Smrg
1179a73423d7Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180a73423d7Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
1181a73423d7Smrg    ac_prev=sysconfdir ;;
1182a73423d7Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183a73423d7Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184a73423d7Smrg    sysconfdir=$ac_optarg ;;
1185a73423d7Smrg
1186a73423d7Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1187a73423d7Smrg    ac_prev=target_alias ;;
1188a73423d7Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189a73423d7Smrg    target_alias=$ac_optarg ;;
1190a73423d7Smrg
1191a73423d7Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192a73423d7Smrg    verbose=yes ;;
1193a73423d7Smrg
1194a73423d7Smrg  -version | --version | --versio | --versi | --vers | -V)
1195a73423d7Smrg    ac_init_version=: ;;
1196a73423d7Smrg
1197a73423d7Smrg  -with-* | --with-*)
1198a73423d7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199a73423d7Smrg    # Reject names that are not valid shell variable names.
1200a73423d7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201e9f7eabcSmrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
1202a73423d7Smrg    ac_useropt_orig=$ac_useropt
1203e9f7eabcSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1204a73423d7Smrg    case $ac_user_opts in
1205a73423d7Smrg      *"
1206a73423d7Smrg"with_$ac_useropt"
1207a73423d7Smrg"*) ;;
1208a73423d7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209a73423d7Smrg	 ac_unrecognized_sep=', ';;
1210a73423d7Smrg    esac
1211a73423d7Smrg    eval with_$ac_useropt=\$ac_optarg ;;
1212a73423d7Smrg
1213a73423d7Smrg  -without-* | --without-*)
1214a73423d7Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215a73423d7Smrg    # Reject names that are not valid shell variable names.
1216a73423d7Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217e9f7eabcSmrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
1218a73423d7Smrg    ac_useropt_orig=$ac_useropt
1219e9f7eabcSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1220a73423d7Smrg    case $ac_user_opts in
1221a73423d7Smrg      *"
1222a73423d7Smrg"with_$ac_useropt"
1223a73423d7Smrg"*) ;;
1224a73423d7Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225a73423d7Smrg	 ac_unrecognized_sep=', ';;
1226a73423d7Smrg    esac
1227a73423d7Smrg    eval with_$ac_useropt=no ;;
1228a73423d7Smrg
1229a73423d7Smrg  --x)
1230a73423d7Smrg    # Obsolete; use --with-x.
1231a73423d7Smrg    with_x=yes ;;
1232a73423d7Smrg
1233a73423d7Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234a73423d7Smrg  | --x-incl | --x-inc | --x-in | --x-i)
1235a73423d7Smrg    ac_prev=x_includes ;;
1236a73423d7Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237a73423d7Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238a73423d7Smrg    x_includes=$ac_optarg ;;
1239a73423d7Smrg
1240a73423d7Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241a73423d7Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242a73423d7Smrg    ac_prev=x_libraries ;;
1243a73423d7Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244a73423d7Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245a73423d7Smrg    x_libraries=$ac_optarg ;;
1246a73423d7Smrg
1247a73423d7Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248a73423d7SmrgTry \`$0 --help' for more information"
1249a73423d7Smrg    ;;
1250a73423d7Smrg
1251a73423d7Smrg  *=*)
1252a73423d7Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253a73423d7Smrg    # Reject names that are not valid shell variable names.
1254a73423d7Smrg    case $ac_envvar in #(
1255a73423d7Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1256a73423d7Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257a73423d7Smrg    esac
1258a73423d7Smrg    eval $ac_envvar=\$ac_optarg
1259a73423d7Smrg    export $ac_envvar ;;
1260a73423d7Smrg
1261a73423d7Smrg  *)
1262a73423d7Smrg    # FIXME: should be removed in autoconf 3.0.
1263e9f7eabcSmrg    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1264a73423d7Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265e9f7eabcSmrg      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1266a73423d7Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1267a73423d7Smrg    ;;
1268a73423d7Smrg
1269a73423d7Smrg  esac
1270a73423d7Smrgdone
1271a73423d7Smrg
1272a73423d7Smrgif test -n "$ac_prev"; then
1273a73423d7Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274a73423d7Smrg  as_fn_error $? "missing argument to $ac_option"
1275a73423d7Smrgfi
1276a73423d7Smrg
1277a73423d7Smrgif test -n "$ac_unrecognized_opts"; then
1278a73423d7Smrg  case $enable_option_checking in
1279a73423d7Smrg    no) ;;
1280a73423d7Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281e9f7eabcSmrg    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282a73423d7Smrg  esac
1283a73423d7Smrgfi
1284a73423d7Smrg
1285a73423d7Smrg# Check all directory arguments for consistency.
1286a73423d7Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287a73423d7Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1288a73423d7Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
12894a8d91dcSmrg		libdir localedir mandir runstatedir
1290a73423d7Smrgdo
1291a73423d7Smrg  eval ac_val=\$$ac_var
1292a73423d7Smrg  # Remove trailing slashes.
1293a73423d7Smrg  case $ac_val in
1294a73423d7Smrg    */ )
1295a73423d7Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296a73423d7Smrg      eval $ac_var=\$ac_val;;
1297a73423d7Smrg  esac
1298a73423d7Smrg  # Be sure to have absolute directory names.
1299a73423d7Smrg  case $ac_val in
1300a73423d7Smrg    [\\/$]* | ?:[\\/]* )  continue;;
1301a73423d7Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302a73423d7Smrg  esac
1303a73423d7Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304a73423d7Smrgdone
1305a73423d7Smrg
1306a73423d7Smrg# There might be people who depend on the old broken behavior: `$host'
1307a73423d7Smrg# used to hold the argument of --host etc.
1308a73423d7Smrg# FIXME: To remove some day.
1309a73423d7Smrgbuild=$build_alias
1310a73423d7Smrghost=$host_alias
1311a73423d7Smrgtarget=$target_alias
1312a73423d7Smrg
1313a73423d7Smrg# FIXME: To remove some day.
1314a73423d7Smrgif test "x$host_alias" != x; then
1315a73423d7Smrg  if test "x$build_alias" = x; then
1316a73423d7Smrg    cross_compiling=maybe
1317a73423d7Smrg  elif test "x$build_alias" != "x$host_alias"; then
1318a73423d7Smrg    cross_compiling=yes
1319a73423d7Smrg  fi
1320a73423d7Smrgfi
1321a73423d7Smrg
1322a73423d7Smrgac_tool_prefix=
1323a73423d7Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1324a73423d7Smrg
1325a73423d7Smrgtest "$silent" = yes && exec 6>/dev/null
1326a73423d7Smrg
1327a73423d7Smrg
1328a73423d7Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1329a73423d7Smrgac_ls_di=`ls -di .` &&
1330a73423d7Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331a73423d7Smrg  as_fn_error $? "working directory cannot be determined"
1332a73423d7Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333a73423d7Smrg  as_fn_error $? "pwd does not report name of working directory"
1334a73423d7Smrg
1335a73423d7Smrg
1336a73423d7Smrg# Find the source files, if location was not specified.
1337a73423d7Smrgif test -z "$srcdir"; then
1338a73423d7Smrg  ac_srcdir_defaulted=yes
1339a73423d7Smrg  # Try the directory containing this script, then the parent directory.
1340a73423d7Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1341a73423d7Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342a73423d7Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1343a73423d7Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1344a73423d7Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345e9f7eabcSmrgprintf "%s\n" X"$as_myself" |
1346a73423d7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347a73423d7Smrg	    s//\1/
1348a73423d7Smrg	    q
1349a73423d7Smrg	  }
1350a73423d7Smrg	  /^X\(\/\/\)[^/].*/{
1351a73423d7Smrg	    s//\1/
1352a73423d7Smrg	    q
1353a73423d7Smrg	  }
1354a73423d7Smrg	  /^X\(\/\/\)$/{
1355a73423d7Smrg	    s//\1/
1356a73423d7Smrg	    q
1357a73423d7Smrg	  }
1358a73423d7Smrg	  /^X\(\/\).*/{
1359a73423d7Smrg	    s//\1/
1360a73423d7Smrg	    q
1361a73423d7Smrg	  }
1362a73423d7Smrg	  s/.*/./; q'`
1363a73423d7Smrg  srcdir=$ac_confdir
1364a73423d7Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
1365a73423d7Smrg    srcdir=..
1366a73423d7Smrg  fi
1367a73423d7Smrgelse
1368a73423d7Smrg  ac_srcdir_defaulted=no
1369a73423d7Smrgfi
1370a73423d7Smrgif test ! -r "$srcdir/$ac_unique_file"; then
1371a73423d7Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372a73423d7Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1373a73423d7Smrgfi
1374a73423d7Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375a73423d7Smrgac_abs_confdir=`(
1376a73423d7Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1377a73423d7Smrg	pwd)`
1378a73423d7Smrg# When building in place, set srcdir=.
1379a73423d7Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1380a73423d7Smrg  srcdir=.
1381a73423d7Smrgfi
1382a73423d7Smrg# Remove unnecessary trailing slashes from srcdir.
1383a73423d7Smrg# Double slashes in file names in object file debugging info
1384a73423d7Smrg# mess up M-x gdb in Emacs.
1385a73423d7Smrgcase $srcdir in
1386a73423d7Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387a73423d7Smrgesac
1388a73423d7Smrgfor ac_var in $ac_precious_vars; do
1389a73423d7Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390a73423d7Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
1391a73423d7Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392a73423d7Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393a73423d7Smrgdone
1394a73423d7Smrg
1395a73423d7Smrg#
1396a73423d7Smrg# Report the --help message.
1397a73423d7Smrg#
1398a73423d7Smrgif test "$ac_init_help" = "long"; then
1399a73423d7Smrg  # Omit some internal or obsolete options to make the list less imposing.
1400a73423d7Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
1401a73423d7Smrg  cat <<_ACEOF
1402e9f7eabcSmrg\`configure' configures xf86-video-i128 1.4.1 to adapt to many kinds of systems.
1403a73423d7Smrg
1404a73423d7SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1405a73423d7Smrg
1406a73423d7SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1407a73423d7SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1408a73423d7Smrg
1409a73423d7SmrgDefaults for the options are specified in brackets.
1410a73423d7Smrg
1411a73423d7SmrgConfiguration:
1412a73423d7Smrg  -h, --help              display this help and exit
1413a73423d7Smrg      --help=short        display options specific to this package
1414a73423d7Smrg      --help=recursive    display the short help of all the included packages
1415a73423d7Smrg  -V, --version           display version information and exit
1416a73423d7Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
1417a73423d7Smrg      --cache-file=FILE   cache test results in FILE [disabled]
1418a73423d7Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1419a73423d7Smrg  -n, --no-create         do not create output files
1420a73423d7Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1421a73423d7Smrg
1422a73423d7SmrgInstallation directories:
1423a73423d7Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1424a73423d7Smrg                          [$ac_default_prefix]
1425a73423d7Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1426a73423d7Smrg                          [PREFIX]
1427a73423d7Smrg
1428a73423d7SmrgBy default, \`make install' will install all the files in
1429a73423d7Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1430a73423d7Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431a73423d7Smrgfor instance \`--prefix=\$HOME'.
1432a73423d7Smrg
1433a73423d7SmrgFor better control, use the options below.
1434a73423d7Smrg
1435a73423d7SmrgFine tuning of the installation directories:
1436a73423d7Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1437a73423d7Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1438a73423d7Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1439a73423d7Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1440a73423d7Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1441a73423d7Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
14424a8d91dcSmrg  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1443a73423d7Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1444a73423d7Smrg  --includedir=DIR        C header files [PREFIX/include]
1445a73423d7Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1446a73423d7Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1447a73423d7Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1448a73423d7Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1449a73423d7Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1450a73423d7Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1451a73423d7Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-i128]
1452a73423d7Smrg  --htmldir=DIR           html documentation [DOCDIR]
1453a73423d7Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1454a73423d7Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1455a73423d7Smrg  --psdir=DIR             ps documentation [DOCDIR]
1456a73423d7Smrg_ACEOF
1457a73423d7Smrg
1458a73423d7Smrg  cat <<\_ACEOF
1459a73423d7Smrg
1460a73423d7SmrgProgram names:
1461a73423d7Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1462a73423d7Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1463a73423d7Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1464a73423d7Smrg
1465a73423d7SmrgSystem types:
1466a73423d7Smrg  --build=BUILD     configure for building on BUILD [guessed]
1467a73423d7Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1468a73423d7Smrg_ACEOF
1469a73423d7Smrgfi
1470a73423d7Smrg
1471a73423d7Smrgif test -n "$ac_init_help"; then
1472a73423d7Smrg  case $ac_init_help in
1473e9f7eabcSmrg     short | recursive ) echo "Configuration of xf86-video-i128 1.4.1:";;
1474a73423d7Smrg   esac
1475a73423d7Smrg  cat <<\_ACEOF
1476a73423d7Smrg
1477a73423d7SmrgOptional Features:
1478a73423d7Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
1479a73423d7Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1480a73423d7Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
14814a8d91dcSmrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
14824a8d91dcSmrg  --disable-silent-rules  verbose build output (undo: "make V=0")
14834a8d91dcSmrg  --enable-maintainer-mode
14844a8d91dcSmrg                          enable make rules and dependencies not useful (and
14854a8d91dcSmrg                          sometimes confusing) to the casual installer
14864a8d91dcSmrg  --enable-dependency-tracking
14874a8d91dcSmrg                          do not reject slow dependency extractors
14884a8d91dcSmrg  --disable-dependency-tracking
14894a8d91dcSmrg                          speeds up one-time build
1490a73423d7Smrg  --disable-selective-werror
1491a73423d7Smrg                          Turn off selective compiler errors. (default:
1492a73423d7Smrg                          enabled)
1493a73423d7Smrg  --enable-strict-compilation
1494a73423d7Smrg                          Enable all warnings from compiler and make them
1495a73423d7Smrg                          errors (default: disabled)
1496a73423d7Smrg  --enable-static[=PKGS]  build static libraries [default=no]
1497a73423d7Smrg  --enable-shared[=PKGS]  build shared libraries [default=yes]
1498a73423d7Smrg  --enable-fast-install[=PKGS]
1499a73423d7Smrg                          optimize for fast installation [default=yes]
1500a73423d7Smrg  --disable-libtool-lock  avoid locking (might break parallel builds)
1501a73423d7Smrg  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1502a73423d7Smrg                          [default=auto]
1503a73423d7Smrg
1504a73423d7SmrgOptional Packages:
1505a73423d7Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1506a73423d7Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1507a73423d7Smrg  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1508a73423d7Smrg                          both]
15094a8d91dcSmrg  --with-aix-soname=aix|svr4|both
15104a8d91dcSmrg                          shared library versioning (aka "SONAME") variant to
15114a8d91dcSmrg                          provide on AIX, [default=aix].
1512a73423d7Smrg  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
15134a8d91dcSmrg  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
15144a8d91dcSmrg                          compiler's sysroot if not specified).
1515a73423d7Smrg  --with-xorg-module-dir=DIR
1516a73423d7Smrg                          Default xorg module directory
1517a73423d7Smrg                          [[default=$libdir/xorg/modules]]
1518a73423d7Smrg
1519a73423d7SmrgSome influential environment variables:
1520a73423d7Smrg  CC          C compiler command
1521a73423d7Smrg  CFLAGS      C compiler flags
1522a73423d7Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1523a73423d7Smrg              nonstandard directory <lib dir>
1524a73423d7Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1525a73423d7Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526a73423d7Smrg              you have headers in a nonstandard directory <include dir>
1527a73423d7Smrg  PKG_CONFIG  path to pkg-config utility
1528a73423d7Smrg  PKG_CONFIG_PATH
1529a73423d7Smrg              directories to add to pkg-config's search path
1530a73423d7Smrg  PKG_CONFIG_LIBDIR
1531a73423d7Smrg              path overriding pkg-config's built-in search path
15324a8d91dcSmrg  LT_SYS_LIBRARY_PATH
15334a8d91dcSmrg              User-defined run-time library search path.
1534a73423d7Smrg  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1535a73423d7Smrg  XORG_LIBS   linker flags for XORG, overriding pkg-config
1536a73423d7Smrg  PCIACCESS_CFLAGS
1537a73423d7Smrg              C compiler flags for PCIACCESS, overriding pkg-config
1538a73423d7Smrg  PCIACCESS_LIBS
1539a73423d7Smrg              linker flags for PCIACCESS, overriding pkg-config
1540a73423d7Smrg
1541a73423d7SmrgUse these variables to override the choices made by `configure' or to help
1542a73423d7Smrgit to find libraries and programs with nonstandard names/locations.
1543a73423d7Smrg
1544e9f7eabcSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-i128/-/issues>.
1545a73423d7Smrg_ACEOF
1546a73423d7Smrgac_status=$?
1547a73423d7Smrgfi
1548a73423d7Smrg
1549a73423d7Smrgif test "$ac_init_help" = "recursive"; then
1550a73423d7Smrg  # If there are subdirs, report their specific --help.
1551a73423d7Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552a73423d7Smrg    test -d "$ac_dir" ||
1553a73423d7Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554a73423d7Smrg      continue
1555a73423d7Smrg    ac_builddir=.
1556a73423d7Smrg
1557a73423d7Smrgcase "$ac_dir" in
1558a73423d7Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559a73423d7Smrg*)
1560e9f7eabcSmrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1561a73423d7Smrg  # A ".." for each directory in $ac_dir_suffix.
1562e9f7eabcSmrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563a73423d7Smrg  case $ac_top_builddir_sub in
1564a73423d7Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565a73423d7Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566a73423d7Smrg  esac ;;
1567a73423d7Smrgesac
1568a73423d7Smrgac_abs_top_builddir=$ac_pwd
1569a73423d7Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1570a73423d7Smrg# for backward compatibility:
1571a73423d7Smrgac_top_builddir=$ac_top_build_prefix
1572a73423d7Smrg
1573a73423d7Smrgcase $srcdir in
1574a73423d7Smrg  .)  # We are building in place.
1575a73423d7Smrg    ac_srcdir=.
1576a73423d7Smrg    ac_top_srcdir=$ac_top_builddir_sub
1577a73423d7Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1578a73423d7Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1579a73423d7Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1580a73423d7Smrg    ac_top_srcdir=$srcdir
1581a73423d7Smrg    ac_abs_top_srcdir=$srcdir ;;
1582a73423d7Smrg  *) # Relative name.
1583a73423d7Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584a73423d7Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1585a73423d7Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586a73423d7Smrgesac
1587a73423d7Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588a73423d7Smrg
1589a73423d7Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1590e9f7eabcSmrg    # Check for configure.gnu first; this name is used for a wrapper for
1591e9f7eabcSmrg    # Metaconfig's "Configure" on case-insensitive file systems.
1592a73423d7Smrg    if test -f "$ac_srcdir/configure.gnu"; then
1593a73423d7Smrg      echo &&
1594a73423d7Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1595a73423d7Smrg    elif test -f "$ac_srcdir/configure"; then
1596a73423d7Smrg      echo &&
1597a73423d7Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
1598a73423d7Smrg    else
1599e9f7eabcSmrg      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600a73423d7Smrg    fi || ac_status=$?
1601a73423d7Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
1602a73423d7Smrg  done
1603a73423d7Smrgfi
1604a73423d7Smrg
1605a73423d7Smrgtest -n "$ac_init_help" && exit $ac_status
1606a73423d7Smrgif $ac_init_version; then
1607a73423d7Smrg  cat <<\_ACEOF
1608e9f7eabcSmrgxf86-video-i128 configure 1.4.1
1609e9f7eabcSmrggenerated by GNU Autoconf 2.71
1610a73423d7Smrg
1611e9f7eabcSmrgCopyright (C) 2021 Free Software Foundation, Inc.
1612a73423d7SmrgThis configure script is free software; the Free Software Foundation
1613a73423d7Smrggives unlimited permission to copy, distribute and modify it.
1614a73423d7Smrg_ACEOF
1615a73423d7Smrg  exit
1616a73423d7Smrgfi
1617a73423d7Smrg
1618a73423d7Smrg## ------------------------ ##
1619a73423d7Smrg## Autoconf initialization. ##
1620a73423d7Smrg## ------------------------ ##
1621a73423d7Smrg
1622a73423d7Smrg# ac_fn_c_try_compile LINENO
1623a73423d7Smrg# --------------------------
1624a73423d7Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1625a73423d7Smrgac_fn_c_try_compile ()
1626a73423d7Smrg{
1627a73423d7Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628e9f7eabcSmrg  rm -f conftest.$ac_objext conftest.beam
1629a73423d7Smrg  if { { ac_try="$ac_compile"
1630a73423d7Smrgcase "(($ac_try" in
1631a73423d7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632a73423d7Smrg  *) ac_try_echo=$ac_try;;
1633a73423d7Smrgesac
1634a73423d7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635e9f7eabcSmrgprintf "%s\n" "$ac_try_echo"; } >&5
1636a73423d7Smrg  (eval "$ac_compile") 2>conftest.err
1637a73423d7Smrg  ac_status=$?
1638a73423d7Smrg  if test -s conftest.err; then
1639a73423d7Smrg    grep -v '^ *+' conftest.err >conftest.er1
1640a73423d7Smrg    cat conftest.er1 >&5
1641a73423d7Smrg    mv -f conftest.er1 conftest.err
1642a73423d7Smrg  fi
1643e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644a73423d7Smrg  test $ac_status = 0; } && {
1645a73423d7Smrg	 test -z "$ac_c_werror_flag" ||
1646a73423d7Smrg	 test ! -s conftest.err
1647e9f7eabcSmrg       } && test -s conftest.$ac_objext
1648e9f7eabcSmrgthen :
1649a73423d7Smrg  ac_retval=0
1650e9f7eabcSmrgelse $as_nop
1651e9f7eabcSmrg  printf "%s\n" "$as_me: failed program was:" >&5
1652a73423d7Smrgsed 's/^/| /' conftest.$ac_ext >&5
1653a73423d7Smrg
1654a73423d7Smrg	ac_retval=1
1655a73423d7Smrgfi
1656a73423d7Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657a73423d7Smrg  as_fn_set_status $ac_retval
1658a73423d7Smrg
1659a73423d7Smrg} # ac_fn_c_try_compile
1660a73423d7Smrg
1661e9f7eabcSmrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1662e9f7eabcSmrg# ------------------------------------------------------------------
1663a73423d7Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1664e9f7eabcSmrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1665e9f7eabcSmrgac_fn_check_decl ()
1666a73423d7Smrg{
1667a73423d7Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668a73423d7Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1669e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1670e9f7eabcSmrgprintf %s "checking whether $as_decl_name is declared... " >&6; }
1671e9f7eabcSmrgif eval test \${$3+y}
1672e9f7eabcSmrgthen :
1673e9f7eabcSmrg  printf %s "(cached) " >&6
1674e9f7eabcSmrgelse $as_nop
1675a73423d7Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1676e9f7eabcSmrg  eval ac_save_FLAGS=\$$6
1677e9f7eabcSmrg  as_fn_append $6 " $5"
1678a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679a73423d7Smrg/* end confdefs.h.  */
1680a73423d7Smrg$4
1681a73423d7Smrgint
1682e9f7eabcSmrgmain (void)
1683a73423d7Smrg{
1684a73423d7Smrg#ifndef $as_decl_name
1685a73423d7Smrg#ifdef __cplusplus
1686a73423d7Smrg  (void) $as_decl_use;
1687a73423d7Smrg#else
1688a73423d7Smrg  (void) $as_decl_name;
1689a73423d7Smrg#endif
1690a73423d7Smrg#endif
1691a73423d7Smrg
1692a73423d7Smrg  ;
1693a73423d7Smrg  return 0;
1694a73423d7Smrg}
1695a73423d7Smrg_ACEOF
1696e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
1697e9f7eabcSmrgthen :
1698a73423d7Smrg  eval "$3=yes"
1699e9f7eabcSmrgelse $as_nop
1700a73423d7Smrg  eval "$3=no"
1701a73423d7Smrgfi
1702e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1703e9f7eabcSmrg  eval $6=\$ac_save_FLAGS
1704a73423d7Smrg
1705a73423d7Smrgfi
1706e9f7eabcSmrgeval ac_res=\$$3
1707e9f7eabcSmrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708e9f7eabcSmrgprintf "%s\n" "$ac_res" >&6; }
1709a73423d7Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710a73423d7Smrg
1711e9f7eabcSmrg} # ac_fn_check_decl
1712a73423d7Smrg
1713a73423d7Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1714a73423d7Smrg# -------------------------------------------------------
1715a73423d7Smrg# Tests whether HEADER exists and can be compiled using the include files in
1716a73423d7Smrg# INCLUDES, setting the cache variable VAR accordingly.
1717a73423d7Smrgac_fn_c_check_header_compile ()
1718a73423d7Smrg{
1719a73423d7Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721e9f7eabcSmrgprintf %s "checking for $2... " >&6; }
1722e9f7eabcSmrgif eval test \${$3+y}
1723e9f7eabcSmrgthen :
1724e9f7eabcSmrg  printf %s "(cached) " >&6
1725e9f7eabcSmrgelse $as_nop
1726a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727a73423d7Smrg/* end confdefs.h.  */
1728a73423d7Smrg$4
1729a73423d7Smrg#include <$2>
1730a73423d7Smrg_ACEOF
1731e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
1732e9f7eabcSmrgthen :
1733a73423d7Smrg  eval "$3=yes"
1734e9f7eabcSmrgelse $as_nop
1735a73423d7Smrg  eval "$3=no"
1736a73423d7Smrgfi
1737e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1738a73423d7Smrgfi
1739a73423d7Smrgeval ac_res=\$$3
1740e9f7eabcSmrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741e9f7eabcSmrgprintf "%s\n" "$ac_res" >&6; }
1742a73423d7Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743a73423d7Smrg
1744a73423d7Smrg} # ac_fn_c_check_header_compile
1745a73423d7Smrg
1746a73423d7Smrg# ac_fn_c_try_link LINENO
1747a73423d7Smrg# -----------------------
1748a73423d7Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1749a73423d7Smrgac_fn_c_try_link ()
1750a73423d7Smrg{
1751a73423d7Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752e9f7eabcSmrg  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1753a73423d7Smrg  if { { ac_try="$ac_link"
1754a73423d7Smrgcase "(($ac_try" in
1755a73423d7Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756a73423d7Smrg  *) ac_try_echo=$ac_try;;
1757a73423d7Smrgesac
1758a73423d7Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759e9f7eabcSmrgprintf "%s\n" "$ac_try_echo"; } >&5
1760a73423d7Smrg  (eval "$ac_link") 2>conftest.err
1761a73423d7Smrg  ac_status=$?
1762a73423d7Smrg  if test -s conftest.err; then
1763a73423d7Smrg    grep -v '^ *+' conftest.err >conftest.er1
1764a73423d7Smrg    cat conftest.er1 >&5
1765a73423d7Smrg    mv -f conftest.er1 conftest.err
1766a73423d7Smrg  fi
1767e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768a73423d7Smrg  test $ac_status = 0; } && {
1769a73423d7Smrg	 test -z "$ac_c_werror_flag" ||
1770a73423d7Smrg	 test ! -s conftest.err
1771a73423d7Smrg       } && test -s conftest$ac_exeext && {
1772a73423d7Smrg	 test "$cross_compiling" = yes ||
17734a8d91dcSmrg	 test -x conftest$ac_exeext
1774e9f7eabcSmrg       }
1775e9f7eabcSmrgthen :
1776a73423d7Smrg  ac_retval=0
1777e9f7eabcSmrgelse $as_nop
1778e9f7eabcSmrg  printf "%s\n" "$as_me: failed program was:" >&5
1779a73423d7Smrgsed 's/^/| /' conftest.$ac_ext >&5
1780a73423d7Smrg
1781a73423d7Smrg	ac_retval=1
1782a73423d7Smrgfi
1783a73423d7Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1784a73423d7Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1785a73423d7Smrg  # interfere with the next link command; also delete a directory that is
1786a73423d7Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
1787a73423d7Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1788a73423d7Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789a73423d7Smrg  as_fn_set_status $ac_retval
1790a73423d7Smrg
1791a73423d7Smrg} # ac_fn_c_try_link
1792a73423d7Smrg
1793a73423d7Smrg# ac_fn_c_check_func LINENO FUNC VAR
1794a73423d7Smrg# ----------------------------------
1795a73423d7Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
1796a73423d7Smrgac_fn_c_check_func ()
1797a73423d7Smrg{
1798a73423d7Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800e9f7eabcSmrgprintf %s "checking for $2... " >&6; }
1801e9f7eabcSmrgif eval test \${$3+y}
1802e9f7eabcSmrgthen :
1803e9f7eabcSmrg  printf %s "(cached) " >&6
1804e9f7eabcSmrgelse $as_nop
1805a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806a73423d7Smrg/* end confdefs.h.  */
1807a73423d7Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808a73423d7Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1809a73423d7Smrg#define $2 innocuous_$2
1810a73423d7Smrg
1811a73423d7Smrg/* System header to define __stub macros and hopefully few prototypes,
1812e9f7eabcSmrg   which can conflict with char $2 (); below.  */
1813a73423d7Smrg
1814e9f7eabcSmrg#include <limits.h>
1815a73423d7Smrg#undef $2
1816a73423d7Smrg
1817a73423d7Smrg/* Override any GCC internal prototype to avoid an error.
1818a73423d7Smrg   Use char because int might match the return type of a GCC
1819a73423d7Smrg   builtin and then its argument prototype would still apply.  */
1820a73423d7Smrg#ifdef __cplusplus
1821a73423d7Smrgextern "C"
1822a73423d7Smrg#endif
1823a73423d7Smrgchar $2 ();
1824a73423d7Smrg/* The GNU C library defines this for functions which it implements
1825a73423d7Smrg    to always fail with ENOSYS.  Some functions are actually named
1826a73423d7Smrg    something starting with __ and the normal name is an alias.  */
1827a73423d7Smrg#if defined __stub_$2 || defined __stub___$2
1828a73423d7Smrgchoke me
1829a73423d7Smrg#endif
1830a73423d7Smrg
1831a73423d7Smrgint
1832e9f7eabcSmrgmain (void)
1833a73423d7Smrg{
1834a73423d7Smrgreturn $2 ();
1835a73423d7Smrg  ;
1836a73423d7Smrg  return 0;
1837a73423d7Smrg}
1838a73423d7Smrg_ACEOF
1839e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
1840e9f7eabcSmrgthen :
1841a73423d7Smrg  eval "$3=yes"
1842e9f7eabcSmrgelse $as_nop
1843a73423d7Smrg  eval "$3=no"
1844a73423d7Smrgfi
1845e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1846a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
1847a73423d7Smrgfi
1848a73423d7Smrgeval ac_res=\$$3
1849e9f7eabcSmrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850e9f7eabcSmrgprintf "%s\n" "$ac_res" >&6; }
1851a73423d7Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852a73423d7Smrg
1853a73423d7Smrg} # ac_fn_c_check_func
1854e9f7eabcSmrgac_configure_args_raw=
1855e9f7eabcSmrgfor ac_arg
1856e9f7eabcSmrgdo
1857e9f7eabcSmrg  case $ac_arg in
1858e9f7eabcSmrg  *\'*)
1859e9f7eabcSmrg    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1860e9f7eabcSmrg  esac
1861e9f7eabcSmrg  as_fn_append ac_configure_args_raw " '$ac_arg'"
1862e9f7eabcSmrgdone
1863a73423d7Smrg
1864e9f7eabcSmrgcase $ac_configure_args_raw in
1865e9f7eabcSmrg  *$as_nl*)
1866e9f7eabcSmrg    ac_safe_unquote= ;;
1867e9f7eabcSmrg  *)
1868e9f7eabcSmrg    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1869e9f7eabcSmrg    ac_unsafe_a="$ac_unsafe_z#~"
1870e9f7eabcSmrg    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1871e9f7eabcSmrg    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1872a73423d7Smrgesac
1873a73423d7Smrg
1874a73423d7Smrgcat >config.log <<_ACEOF
1875a73423d7SmrgThis file contains any messages produced by compilers while
1876a73423d7Smrgrunning configure, to aid debugging if configure makes a mistake.
1877a73423d7Smrg
1878e9f7eabcSmrgIt was created by xf86-video-i128 $as_me 1.4.1, which was
1879e9f7eabcSmrggenerated by GNU Autoconf 2.71.  Invocation command line was
1880a73423d7Smrg
1881e9f7eabcSmrg  $ $0$ac_configure_args_raw
1882a73423d7Smrg
1883a73423d7Smrg_ACEOF
1884a73423d7Smrgexec 5>>config.log
1885a73423d7Smrg{
1886a73423d7Smrgcat <<_ASUNAME
1887a73423d7Smrg## --------- ##
1888a73423d7Smrg## Platform. ##
1889a73423d7Smrg## --------- ##
1890a73423d7Smrg
1891a73423d7Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1892a73423d7Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1893a73423d7Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1894a73423d7Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1895a73423d7Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1896a73423d7Smrg
1897a73423d7Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1898a73423d7Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1899a73423d7Smrg
1900a73423d7Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1901a73423d7Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1902a73423d7Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1903a73423d7Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1904a73423d7Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1905a73423d7Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1906a73423d7Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1907a73423d7Smrg
1908a73423d7Smrg_ASUNAME
1909a73423d7Smrg
1910a73423d7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911a73423d7Smrgfor as_dir in $PATH
1912a73423d7Smrgdo
1913a73423d7Smrg  IFS=$as_save_IFS
1914e9f7eabcSmrg  case $as_dir in #(((
1915e9f7eabcSmrg    '') as_dir=./ ;;
1916e9f7eabcSmrg    */) ;;
1917e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
1918e9f7eabcSmrg  esac
1919e9f7eabcSmrg    printf "%s\n" "PATH: $as_dir"
1920a73423d7Smrg  done
1921a73423d7SmrgIFS=$as_save_IFS
1922a73423d7Smrg
1923a73423d7Smrg} >&5
1924a73423d7Smrg
1925a73423d7Smrgcat >&5 <<_ACEOF
1926a73423d7Smrg
1927a73423d7Smrg
1928a73423d7Smrg## ----------- ##
1929a73423d7Smrg## Core tests. ##
1930a73423d7Smrg## ----------- ##
1931a73423d7Smrg
1932a73423d7Smrg_ACEOF
1933a73423d7Smrg
1934a73423d7Smrg
1935a73423d7Smrg# Keep a trace of the command line.
1936a73423d7Smrg# Strip out --no-create and --no-recursion so they do not pile up.
1937a73423d7Smrg# Strip out --silent because we don't want to record it for future runs.
1938a73423d7Smrg# Also quote any args containing shell meta-characters.
1939a73423d7Smrg# Make two passes to allow for proper duplicate-argument suppression.
1940a73423d7Smrgac_configure_args=
1941a73423d7Smrgac_configure_args0=
1942a73423d7Smrgac_configure_args1=
1943a73423d7Smrgac_must_keep_next=false
1944a73423d7Smrgfor ac_pass in 1 2
1945a73423d7Smrgdo
1946a73423d7Smrg  for ac_arg
1947a73423d7Smrg  do
1948a73423d7Smrg    case $ac_arg in
1949a73423d7Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1950a73423d7Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1951a73423d7Smrg    | -silent | --silent | --silen | --sile | --sil)
1952a73423d7Smrg      continue ;;
1953a73423d7Smrg    *\'*)
1954e9f7eabcSmrg      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1955a73423d7Smrg    esac
1956a73423d7Smrg    case $ac_pass in
1957a73423d7Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1958a73423d7Smrg    2)
1959a73423d7Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1960a73423d7Smrg      if test $ac_must_keep_next = true; then
1961a73423d7Smrg	ac_must_keep_next=false # Got value, back to normal.
1962a73423d7Smrg      else
1963a73423d7Smrg	case $ac_arg in
1964a73423d7Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1965a73423d7Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1966a73423d7Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1967a73423d7Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1968a73423d7Smrg	    case "$ac_configure_args0 " in
1969a73423d7Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1970a73423d7Smrg	    esac
1971a73423d7Smrg	    ;;
1972a73423d7Smrg	  -* ) ac_must_keep_next=true ;;
1973a73423d7Smrg	esac
1974a73423d7Smrg      fi
1975a73423d7Smrg      as_fn_append ac_configure_args " '$ac_arg'"
1976a73423d7Smrg      ;;
1977a73423d7Smrg    esac
1978a73423d7Smrg  done
1979a73423d7Smrgdone
1980a73423d7Smrg{ ac_configure_args0=; unset ac_configure_args0;}
1981a73423d7Smrg{ ac_configure_args1=; unset ac_configure_args1;}
1982a73423d7Smrg
1983a73423d7Smrg# When interrupted or exit'd, cleanup temporary files, and complete
1984a73423d7Smrg# config.log.  We remove comments because anyway the quotes in there
1985a73423d7Smrg# would cause problems or look ugly.
1986a73423d7Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1987a73423d7Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1988a73423d7Smrgtrap 'exit_status=$?
1989e9f7eabcSmrg  # Sanitize IFS.
1990e9f7eabcSmrg  IFS=" ""	$as_nl"
1991a73423d7Smrg  # Save into config.log some information that might help in debugging.
1992a73423d7Smrg  {
1993a73423d7Smrg    echo
1994a73423d7Smrg
1995e9f7eabcSmrg    printf "%s\n" "## ---------------- ##
1996a73423d7Smrg## Cache variables. ##
1997a73423d7Smrg## ---------------- ##"
1998a73423d7Smrg    echo
1999a73423d7Smrg    # The following way of writing the cache mishandles newlines in values,
2000a73423d7Smrg(
2001a73423d7Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2002a73423d7Smrg    eval ac_val=\$$ac_var
2003a73423d7Smrg    case $ac_val in #(
2004a73423d7Smrg    *${as_nl}*)
2005a73423d7Smrg      case $ac_var in #(
2006e9f7eabcSmrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2007e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2008a73423d7Smrg      esac
2009a73423d7Smrg      case $ac_var in #(
2010a73423d7Smrg      _ | IFS | as_nl) ;; #(
2011a73423d7Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2012a73423d7Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
2013a73423d7Smrg      esac ;;
2014a73423d7Smrg    esac
2015a73423d7Smrg  done
2016a73423d7Smrg  (set) 2>&1 |
2017a73423d7Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2018a73423d7Smrg    *${as_nl}ac_space=\ *)
2019a73423d7Smrg      sed -n \
2020a73423d7Smrg	"s/'\''/'\''\\\\'\'''\''/g;
2021a73423d7Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2022a73423d7Smrg      ;; #(
2023a73423d7Smrg    *)
2024a73423d7Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2025a73423d7Smrg      ;;
2026a73423d7Smrg    esac |
2027a73423d7Smrg    sort
2028a73423d7Smrg)
2029a73423d7Smrg    echo
2030a73423d7Smrg
2031e9f7eabcSmrg    printf "%s\n" "## ----------------- ##
2032a73423d7Smrg## Output variables. ##
2033a73423d7Smrg## ----------------- ##"
2034a73423d7Smrg    echo
2035a73423d7Smrg    for ac_var in $ac_subst_vars
2036a73423d7Smrg    do
2037a73423d7Smrg      eval ac_val=\$$ac_var
2038a73423d7Smrg      case $ac_val in
2039e9f7eabcSmrg      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040a73423d7Smrg      esac
2041e9f7eabcSmrg      printf "%s\n" "$ac_var='\''$ac_val'\''"
2042a73423d7Smrg    done | sort
2043a73423d7Smrg    echo
2044a73423d7Smrg
2045a73423d7Smrg    if test -n "$ac_subst_files"; then
2046e9f7eabcSmrg      printf "%s\n" "## ------------------- ##
2047a73423d7Smrg## File substitutions. ##
2048a73423d7Smrg## ------------------- ##"
2049a73423d7Smrg      echo
2050a73423d7Smrg      for ac_var in $ac_subst_files
2051a73423d7Smrg      do
2052a73423d7Smrg	eval ac_val=\$$ac_var
2053a73423d7Smrg	case $ac_val in
2054e9f7eabcSmrg	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055a73423d7Smrg	esac
2056e9f7eabcSmrg	printf "%s\n" "$ac_var='\''$ac_val'\''"
2057a73423d7Smrg      done | sort
2058a73423d7Smrg      echo
2059a73423d7Smrg    fi
2060a73423d7Smrg
2061a73423d7Smrg    if test -s confdefs.h; then
2062e9f7eabcSmrg      printf "%s\n" "## ----------- ##
2063a73423d7Smrg## confdefs.h. ##
2064a73423d7Smrg## ----------- ##"
2065a73423d7Smrg      echo
2066a73423d7Smrg      cat confdefs.h
2067a73423d7Smrg      echo
2068a73423d7Smrg    fi
2069a73423d7Smrg    test "$ac_signal" != 0 &&
2070e9f7eabcSmrg      printf "%s\n" "$as_me: caught signal $ac_signal"
2071e9f7eabcSmrg    printf "%s\n" "$as_me: exit $exit_status"
2072a73423d7Smrg  } >&5
2073a73423d7Smrg  rm -f core *.core core.conftest.* &&
2074a73423d7Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2075a73423d7Smrg    exit $exit_status
2076a73423d7Smrg' 0
2077a73423d7Smrgfor ac_signal in 1 2 13 15; do
2078a73423d7Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2079a73423d7Smrgdone
2080a73423d7Smrgac_signal=0
2081a73423d7Smrg
2082a73423d7Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2083a73423d7Smrgrm -f -r conftest* confdefs.h
2084a73423d7Smrg
2085e9f7eabcSmrgprintf "%s\n" "/* confdefs.h */" > confdefs.h
2086a73423d7Smrg
2087a73423d7Smrg# Predefined preprocessor variables.
2088a73423d7Smrg
2089e9f7eabcSmrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2090a73423d7Smrg
2091e9f7eabcSmrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2092a73423d7Smrg
2093e9f7eabcSmrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2094a73423d7Smrg
2095e9f7eabcSmrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2096a73423d7Smrg
2097e9f7eabcSmrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2098a73423d7Smrg
2099e9f7eabcSmrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2100a73423d7Smrg
2101a73423d7Smrg
2102a73423d7Smrg# Let the site file select an alternate cache file if it wants to.
2103a73423d7Smrg# Prefer an explicitly selected file to automatically selected ones.
2104a73423d7Smrgif test -n "$CONFIG_SITE"; then
2105e9f7eabcSmrg  ac_site_files="$CONFIG_SITE"
2106a73423d7Smrgelif test "x$prefix" != xNONE; then
2107e9f7eabcSmrg  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2108a73423d7Smrgelse
2109e9f7eabcSmrg  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2110a73423d7Smrgfi
2111e9f7eabcSmrg
2112e9f7eabcSmrgfor ac_site_file in $ac_site_files
2113a73423d7Smrgdo
2114e9f7eabcSmrg  case $ac_site_file in #(
2115e9f7eabcSmrg  */*) :
2116e9f7eabcSmrg     ;; #(
2117e9f7eabcSmrg  *) :
2118e9f7eabcSmrg    ac_site_file=./$ac_site_file ;;
2119e9f7eabcSmrgesac
2120e9f7eabcSmrg  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2121e9f7eabcSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2122e9f7eabcSmrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2123a73423d7Smrg    sed 's/^/| /' "$ac_site_file" >&5
2124a73423d7Smrg    . "$ac_site_file" \
2125e9f7eabcSmrg      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2126e9f7eabcSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2127a73423d7Smrgas_fn_error $? "failed to load site script $ac_site_file
2128a73423d7SmrgSee \`config.log' for more details" "$LINENO" 5; }
2129a73423d7Smrg  fi
2130a73423d7Smrgdone
2131a73423d7Smrg
2132a73423d7Smrgif test -r "$cache_file"; then
2133a73423d7Smrg  # Some versions of bash will fail to source /dev/null (special files
2134a73423d7Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2135a73423d7Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2136e9f7eabcSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2137e9f7eabcSmrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2138a73423d7Smrg    case $cache_file in
2139a73423d7Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2140a73423d7Smrg      *)                      . "./$cache_file";;
2141a73423d7Smrg    esac
2142a73423d7Smrg  fi
2143a73423d7Smrgelse
2144e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2145e9f7eabcSmrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2146a73423d7Smrg  >$cache_file
2147a73423d7Smrgfi
2148a73423d7Smrg
2149e9f7eabcSmrg# Test code for whether the C compiler supports C89 (global declarations)
2150e9f7eabcSmrgac_c_conftest_c89_globals='
2151e9f7eabcSmrg/* Does the compiler advertise C89 conformance?
2152e9f7eabcSmrg   Do not test the value of __STDC__, because some compilers set it to 0
2153e9f7eabcSmrg   while being otherwise adequately conformant. */
2154e9f7eabcSmrg#if !defined __STDC__
2155e9f7eabcSmrg# error "Compiler does not advertise C89 conformance"
2156e9f7eabcSmrg#endif
2157a73423d7Smrg
2158e9f7eabcSmrg#include <stddef.h>
2159e9f7eabcSmrg#include <stdarg.h>
2160e9f7eabcSmrgstruct stat;
2161e9f7eabcSmrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2162e9f7eabcSmrgstruct buf { int x; };
2163e9f7eabcSmrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int);
2164e9f7eabcSmrgstatic char *e (p, i)
2165e9f7eabcSmrg     char **p;
2166e9f7eabcSmrg     int i;
2167e9f7eabcSmrg{
2168e9f7eabcSmrg  return p[i];
2169e9f7eabcSmrg}
2170e9f7eabcSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
2171e9f7eabcSmrg{
2172e9f7eabcSmrg  char *s;
2173e9f7eabcSmrg  va_list v;
2174e9f7eabcSmrg  va_start (v,p);
2175e9f7eabcSmrg  s = g (p, va_arg (v,int));
2176e9f7eabcSmrg  va_end (v);
2177e9f7eabcSmrg  return s;
2178e9f7eabcSmrg}
2179a73423d7Smrg
2180e9f7eabcSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2181e9f7eabcSmrg   function prototypes and stuff, but not \xHH hex character constants.
2182e9f7eabcSmrg   These do not provoke an error unfortunately, instead are silently treated
2183e9f7eabcSmrg   as an "x".  The following induces an error, until -std is added to get
2184e9f7eabcSmrg   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2185e9f7eabcSmrg   array size at least.  It is necessary to write \x00 == 0 to get something
2186e9f7eabcSmrg   that is true only with -std.  */
2187e9f7eabcSmrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2188a73423d7Smrg
2189e9f7eabcSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2190e9f7eabcSmrg   inside strings and character constants.  */
2191e9f7eabcSmrg#define FOO(x) '\''x'\''
2192e9f7eabcSmrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2193a73423d7Smrg
2194e9f7eabcSmrgint test (int i, double x);
2195e9f7eabcSmrgstruct s1 {int (*f) (int a);};
2196e9f7eabcSmrgstruct s2 {int (*f) (double a);};
2197e9f7eabcSmrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2198e9f7eabcSmrg               int, int);'
2199a73423d7Smrg
2200e9f7eabcSmrg# Test code for whether the C compiler supports C89 (body of main).
2201e9f7eabcSmrgac_c_conftest_c89_main='
2202e9f7eabcSmrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2203a73423d7Smrg'
22044a8d91dcSmrg
2205e9f7eabcSmrg# Test code for whether the C compiler supports C99 (global declarations)
2206e9f7eabcSmrgac_c_conftest_c99_globals='
2207e9f7eabcSmrg// Does the compiler advertise C99 conformance?
2208e9f7eabcSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2209e9f7eabcSmrg# error "Compiler does not advertise C99 conformance"
2210e9f7eabcSmrg#endif
2211a73423d7Smrg
2212e9f7eabcSmrg#include <stdbool.h>
2213e9f7eabcSmrgextern int puts (const char *);
2214e9f7eabcSmrgextern int printf (const char *, ...);
2215e9f7eabcSmrgextern int dprintf (int, const char *, ...);
2216e9f7eabcSmrgextern void *malloc (size_t);
2217a73423d7Smrg
2218e9f7eabcSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2219e9f7eabcSmrg// dprintf is used instead of fprintf to avoid needing to declare
2220e9f7eabcSmrg// FILE and stderr.
2221e9f7eabcSmrg#define debug(...) dprintf (2, __VA_ARGS__)
2222e9f7eabcSmrg#define showlist(...) puts (#__VA_ARGS__)
2223e9f7eabcSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2224e9f7eabcSmrgstatic void
2225e9f7eabcSmrgtest_varargs_macros (void)
2226e9f7eabcSmrg{
2227e9f7eabcSmrg  int x = 1234;
2228e9f7eabcSmrg  int y = 5678;
2229e9f7eabcSmrg  debug ("Flag");
2230e9f7eabcSmrg  debug ("X = %d\n", x);
2231e9f7eabcSmrg  showlist (The first, second, and third items.);
2232e9f7eabcSmrg  report (x>y, "x is %d but y is %d", x, y);
2233e9f7eabcSmrg}
2234a73423d7Smrg
2235e9f7eabcSmrg// Check long long types.
2236e9f7eabcSmrg#define BIG64 18446744073709551615ull
2237e9f7eabcSmrg#define BIG32 4294967295ul
2238e9f7eabcSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2239e9f7eabcSmrg#if !BIG_OK
2240e9f7eabcSmrg  #error "your preprocessor is broken"
2241e9f7eabcSmrg#endif
2242e9f7eabcSmrg#if BIG_OK
2243e9f7eabcSmrg#else
2244e9f7eabcSmrg  #error "your preprocessor is broken"
2245e9f7eabcSmrg#endif
2246e9f7eabcSmrgstatic long long int bignum = -9223372036854775807LL;
2247e9f7eabcSmrgstatic unsigned long long int ubignum = BIG64;
2248a73423d7Smrg
2249e9f7eabcSmrgstruct incomplete_array
2250e9f7eabcSmrg{
2251e9f7eabcSmrg  int datasize;
2252e9f7eabcSmrg  double data[];
2253e9f7eabcSmrg};
2254a73423d7Smrg
2255e9f7eabcSmrgstruct named_init {
2256e9f7eabcSmrg  int number;
2257e9f7eabcSmrg  const wchar_t *name;
2258e9f7eabcSmrg  double average;
2259e9f7eabcSmrg};
22604a8d91dcSmrg
2261e9f7eabcSmrgtypedef const char *ccp;
22624a8d91dcSmrg
2263e9f7eabcSmrgstatic inline int
2264e9f7eabcSmrgtest_restrict (ccp restrict text)
2265e9f7eabcSmrg{
2266e9f7eabcSmrg  // See if C++-style comments work.
2267e9f7eabcSmrg  // Iterate through items via the restricted pointer.
2268e9f7eabcSmrg  // Also check for declarations in for loops.
2269e9f7eabcSmrg  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2270e9f7eabcSmrg    continue;
2271e9f7eabcSmrg  return 0;
2272e9f7eabcSmrg}
2273a73423d7Smrg
2274e9f7eabcSmrg// Check varargs and va_copy.
2275e9f7eabcSmrgstatic bool
2276e9f7eabcSmrgtest_varargs (const char *format, ...)
2277e9f7eabcSmrg{
2278e9f7eabcSmrg  va_list args;
2279e9f7eabcSmrg  va_start (args, format);
2280e9f7eabcSmrg  va_list args_copy;
2281e9f7eabcSmrg  va_copy (args_copy, args);
2282a73423d7Smrg
2283e9f7eabcSmrg  const char *str = "";
2284e9f7eabcSmrg  int number = 0;
2285e9f7eabcSmrg  float fnumber = 0;
2286a73423d7Smrg
2287e9f7eabcSmrg  while (*format)
2288e9f7eabcSmrg    {
2289e9f7eabcSmrg      switch (*format++)
2290e9f7eabcSmrg	{
2291e9f7eabcSmrg	case '\''s'\'': // string
2292e9f7eabcSmrg	  str = va_arg (args_copy, const char *);
2293e9f7eabcSmrg	  break;
2294e9f7eabcSmrg	case '\''d'\'': // int
2295e9f7eabcSmrg	  number = va_arg (args_copy, int);
2296e9f7eabcSmrg	  break;
2297e9f7eabcSmrg	case '\''f'\'': // float
2298e9f7eabcSmrg	  fnumber = va_arg (args_copy, double);
2299e9f7eabcSmrg	  break;
2300e9f7eabcSmrg	default:
2301e9f7eabcSmrg	  break;
2302e9f7eabcSmrg	}
2303e9f7eabcSmrg    }
2304e9f7eabcSmrg  va_end (args_copy);
2305e9f7eabcSmrg  va_end (args);
2306a73423d7Smrg
2307e9f7eabcSmrg  return *str && number && fnumber;
2308e9f7eabcSmrg}
2309e9f7eabcSmrg'
2310a73423d7Smrg
2311e9f7eabcSmrg# Test code for whether the C compiler supports C99 (body of main).
2312e9f7eabcSmrgac_c_conftest_c99_main='
2313e9f7eabcSmrg  // Check bool.
2314e9f7eabcSmrg  _Bool success = false;
2315e9f7eabcSmrg  success |= (argc != 0);
2316a73423d7Smrg
2317e9f7eabcSmrg  // Check restrict.
2318e9f7eabcSmrg  if (test_restrict ("String literal") == 0)
2319e9f7eabcSmrg    success = true;
2320e9f7eabcSmrg  char *restrict newvar = "Another string";
2321a73423d7Smrg
2322e9f7eabcSmrg  // Check varargs.
2323e9f7eabcSmrg  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2324e9f7eabcSmrg  test_varargs_macros ();
2325a73423d7Smrg
2326e9f7eabcSmrg  // Check flexible array members.
2327e9f7eabcSmrg  struct incomplete_array *ia =
2328e9f7eabcSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2329e9f7eabcSmrg  ia->datasize = 10;
2330e9f7eabcSmrg  for (int i = 0; i < ia->datasize; ++i)
2331e9f7eabcSmrg    ia->data[i] = i * 1.234;
2332a73423d7Smrg
2333e9f7eabcSmrg  // Check named initializers.
2334e9f7eabcSmrg  struct named_init ni = {
2335e9f7eabcSmrg    .number = 34,
2336e9f7eabcSmrg    .name = L"Test wide string",
2337e9f7eabcSmrg    .average = 543.34343,
2338e9f7eabcSmrg  };
2339a73423d7Smrg
2340e9f7eabcSmrg  ni.number = 58;
2341a73423d7Smrg
2342e9f7eabcSmrg  int dynamic_array[ni.number];
2343e9f7eabcSmrg  dynamic_array[0] = argv[0][0];
2344e9f7eabcSmrg  dynamic_array[ni.number - 1] = 543;
2345a73423d7Smrg
2346e9f7eabcSmrg  // work around unused variable warnings
2347e9f7eabcSmrg  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2348e9f7eabcSmrg	 || dynamic_array[ni.number - 1] != 543);
2349e9f7eabcSmrg'
2350a73423d7Smrg
2351e9f7eabcSmrg# Test code for whether the C compiler supports C11 (global declarations)
2352e9f7eabcSmrgac_c_conftest_c11_globals='
2353e9f7eabcSmrg// Does the compiler advertise C11 conformance?
2354e9f7eabcSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2355e9f7eabcSmrg# error "Compiler does not advertise C11 conformance"
2356e9f7eabcSmrg#endif
2357a73423d7Smrg
2358e9f7eabcSmrg// Check _Alignas.
2359e9f7eabcSmrgchar _Alignas (double) aligned_as_double;
2360e9f7eabcSmrgchar _Alignas (0) no_special_alignment;
2361e9f7eabcSmrgextern char aligned_as_int;
2362e9f7eabcSmrgchar _Alignas (0) _Alignas (int) aligned_as_int;
2363a73423d7Smrg
2364e9f7eabcSmrg// Check _Alignof.
2365e9f7eabcSmrgenum
2366e9f7eabcSmrg{
2367e9f7eabcSmrg  int_alignment = _Alignof (int),
2368e9f7eabcSmrg  int_array_alignment = _Alignof (int[100]),
2369e9f7eabcSmrg  char_alignment = _Alignof (char)
2370e9f7eabcSmrg};
2371e9f7eabcSmrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2372a73423d7Smrg
2373e9f7eabcSmrg// Check _Noreturn.
2374e9f7eabcSmrgint _Noreturn does_not_return (void) { for (;;) continue; }
2375a73423d7Smrg
2376e9f7eabcSmrg// Check _Static_assert.
2377e9f7eabcSmrgstruct test_static_assert
2378e9f7eabcSmrg{
2379e9f7eabcSmrg  int x;
2380e9f7eabcSmrg  _Static_assert (sizeof (int) <= sizeof (long int),
2381e9f7eabcSmrg                  "_Static_assert does not work in struct");
2382e9f7eabcSmrg  long int y;
2383e9f7eabcSmrg};
2384a73423d7Smrg
2385e9f7eabcSmrg// Check UTF-8 literals.
2386e9f7eabcSmrg#define u8 syntax error!
2387e9f7eabcSmrgchar const utf8_literal[] = u8"happens to be ASCII" "another string";
23884a8d91dcSmrg
2389e9f7eabcSmrg// Check duplicate typedefs.
2390e9f7eabcSmrgtypedef long *long_ptr;
2391e9f7eabcSmrgtypedef long int *long_ptr;
2392e9f7eabcSmrgtypedef long_ptr long_ptr;
2393a73423d7Smrg
2394e9f7eabcSmrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2395e9f7eabcSmrgstruct anonymous
2396e9f7eabcSmrg{
2397e9f7eabcSmrg  union {
2398e9f7eabcSmrg    struct { int i; int j; };
2399e9f7eabcSmrg    struct { int k; long int l; } w;
2400e9f7eabcSmrg  };
2401e9f7eabcSmrg  int m;
2402e9f7eabcSmrg} v1;
2403e9f7eabcSmrg'
24044a8d91dcSmrg
2405e9f7eabcSmrg# Test code for whether the C compiler supports C11 (body of main).
2406e9f7eabcSmrgac_c_conftest_c11_main='
2407e9f7eabcSmrg  _Static_assert ((offsetof (struct anonymous, i)
2408e9f7eabcSmrg		   == offsetof (struct anonymous, w.k)),
2409e9f7eabcSmrg		  "Anonymous union alignment botch");
2410e9f7eabcSmrg  v1.i = 2;
2411e9f7eabcSmrg  v1.w.k = 5;
2412e9f7eabcSmrg  ok |= v1.i != 5;
2413e9f7eabcSmrg'
24144a8d91dcSmrg
2415e9f7eabcSmrg# Test code for whether the C compiler supports C11 (complete).
2416e9f7eabcSmrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2417e9f7eabcSmrg${ac_c_conftest_c99_globals}
2418e9f7eabcSmrg${ac_c_conftest_c11_globals}
2419a73423d7Smrg
2420e9f7eabcSmrgint
2421e9f7eabcSmrgmain (int argc, char **argv)
2422e9f7eabcSmrg{
2423e9f7eabcSmrg  int ok = 0;
2424e9f7eabcSmrg  ${ac_c_conftest_c89_main}
2425e9f7eabcSmrg  ${ac_c_conftest_c99_main}
2426e9f7eabcSmrg  ${ac_c_conftest_c11_main}
2427e9f7eabcSmrg  return ok;
2428e9f7eabcSmrg}
2429e9f7eabcSmrg"
2430a73423d7Smrg
2431e9f7eabcSmrg# Test code for whether the C compiler supports C99 (complete).
2432e9f7eabcSmrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2433e9f7eabcSmrg${ac_c_conftest_c99_globals}
2434a73423d7Smrg
2435e9f7eabcSmrgint
2436e9f7eabcSmrgmain (int argc, char **argv)
2437e9f7eabcSmrg{
2438e9f7eabcSmrg  int ok = 0;
2439e9f7eabcSmrg  ${ac_c_conftest_c89_main}
2440e9f7eabcSmrg  ${ac_c_conftest_c99_main}
2441e9f7eabcSmrg  return ok;
2442e9f7eabcSmrg}
2443e9f7eabcSmrg"
2444a73423d7Smrg
2445e9f7eabcSmrg# Test code for whether the C compiler supports C89 (complete).
2446e9f7eabcSmrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2447a73423d7Smrg
2448e9f7eabcSmrgint
2449e9f7eabcSmrgmain (int argc, char **argv)
2450e9f7eabcSmrg{
2451e9f7eabcSmrg  int ok = 0;
2452e9f7eabcSmrg  ${ac_c_conftest_c89_main}
2453e9f7eabcSmrg  return ok;
2454e9f7eabcSmrg}
2455e9f7eabcSmrg"
2456a73423d7Smrg
2457e9f7eabcSmrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2458e9f7eabcSmrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2459e9f7eabcSmrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2460e9f7eabcSmrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2461e9f7eabcSmrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2462e9f7eabcSmrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2463e9f7eabcSmrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2464e9f7eabcSmrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2465e9f7eabcSmrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2466e9f7eabcSmrg
2467e9f7eabcSmrg# Auxiliary files required by this configure script.
2468e9f7eabcSmrgac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2469e9f7eabcSmrg
2470e9f7eabcSmrg# Locations in which to look for auxiliary files.
2471e9f7eabcSmrgac_aux_dir_candidates="${srcdir}/."
2472e9f7eabcSmrg
2473e9f7eabcSmrg# Search for a directory containing all of the required auxiliary files,
2474e9f7eabcSmrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2475e9f7eabcSmrg# If we don't find one directory that contains all the files we need,
2476e9f7eabcSmrg# we report the set of missing files from the *first* directory in
2477e9f7eabcSmrg# $ac_aux_dir_candidates and give up.
2478e9f7eabcSmrgac_missing_aux_files=""
2479e9f7eabcSmrgac_first_candidate=:
2480e9f7eabcSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2481e9f7eabcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482e9f7eabcSmrgas_found=false
2483e9f7eabcSmrgfor as_dir in $ac_aux_dir_candidates
2484e9f7eabcSmrgdo
2485e9f7eabcSmrg  IFS=$as_save_IFS
2486e9f7eabcSmrg  case $as_dir in #(((
2487e9f7eabcSmrg    '') as_dir=./ ;;
2488e9f7eabcSmrg    */) ;;
2489e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
2490e9f7eabcSmrg  esac
2491e9f7eabcSmrg  as_found=:
24924a8d91dcSmrg
2493e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2494e9f7eabcSmrg  ac_aux_dir_found=yes
2495e9f7eabcSmrg  ac_install_sh=
2496e9f7eabcSmrg  for ac_aux in $ac_aux_files
2497e9f7eabcSmrg  do
2498e9f7eabcSmrg    # As a special case, if "install-sh" is required, that requirement
2499e9f7eabcSmrg    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2500e9f7eabcSmrg    # and $ac_install_sh is set appropriately for whichever one is found.
2501e9f7eabcSmrg    if test x"$ac_aux" = x"install-sh"
2502e9f7eabcSmrg    then
2503e9f7eabcSmrg      if test -f "${as_dir}install-sh"; then
2504e9f7eabcSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2505e9f7eabcSmrg        ac_install_sh="${as_dir}install-sh -c"
2506e9f7eabcSmrg      elif test -f "${as_dir}install.sh"; then
2507e9f7eabcSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2508e9f7eabcSmrg        ac_install_sh="${as_dir}install.sh -c"
2509e9f7eabcSmrg      elif test -f "${as_dir}shtool"; then
2510e9f7eabcSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2511e9f7eabcSmrg        ac_install_sh="${as_dir}shtool install -c"
2512e9f7eabcSmrg      else
2513e9f7eabcSmrg        ac_aux_dir_found=no
2514e9f7eabcSmrg        if $ac_first_candidate; then
2515e9f7eabcSmrg          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2516e9f7eabcSmrg        else
2517e9f7eabcSmrg          break
2518e9f7eabcSmrg        fi
2519e9f7eabcSmrg      fi
2520e9f7eabcSmrg    else
2521e9f7eabcSmrg      if test -f "${as_dir}${ac_aux}"; then
2522e9f7eabcSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2523e9f7eabcSmrg      else
2524e9f7eabcSmrg        ac_aux_dir_found=no
2525e9f7eabcSmrg        if $ac_first_candidate; then
2526e9f7eabcSmrg          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2527e9f7eabcSmrg        else
2528e9f7eabcSmrg          break
2529e9f7eabcSmrg        fi
2530e9f7eabcSmrg      fi
2531e9f7eabcSmrg    fi
2532e9f7eabcSmrg  done
2533e9f7eabcSmrg  if test "$ac_aux_dir_found" = yes; then
2534e9f7eabcSmrg    ac_aux_dir="$as_dir"
2535e9f7eabcSmrg    break
2536e9f7eabcSmrg  fi
2537e9f7eabcSmrg  ac_first_candidate=false
25384a8d91dcSmrg
2539e9f7eabcSmrg  as_found=false
2540e9f7eabcSmrgdone
2541e9f7eabcSmrgIFS=$as_save_IFS
2542e9f7eabcSmrgif $as_found
2543e9f7eabcSmrgthen :
25444a8d91dcSmrg
2545e9f7eabcSmrgelse $as_nop
2546e9f7eabcSmrg  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2547e9f7eabcSmrgfi
25484a8d91dcSmrg
25494a8d91dcSmrg
2550e9f7eabcSmrg# These three variables are undocumented and unsupported,
2551e9f7eabcSmrg# and are intended to be withdrawn in a future Autoconf release.
2552e9f7eabcSmrg# They can cause serious problems if a builder's source tree is in a directory
2553e9f7eabcSmrg# whose full name contains unusual characters.
2554e9f7eabcSmrgif test -f "${ac_aux_dir}config.guess"; then
2555e9f7eabcSmrg  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2556e9f7eabcSmrgfi
2557e9f7eabcSmrgif test -f "${ac_aux_dir}config.sub"; then
2558e9f7eabcSmrg  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2559e9f7eabcSmrgfi
2560e9f7eabcSmrgif test -f "$ac_aux_dir/configure"; then
2561e9f7eabcSmrg  ac_configure="$SHELL ${ac_aux_dir}configure"
2562e9f7eabcSmrgfi
25634a8d91dcSmrg
2564e9f7eabcSmrg# Check that the precious variables saved in the cache have kept the same
2565e9f7eabcSmrg# value.
2566e9f7eabcSmrgac_cache_corrupted=false
2567e9f7eabcSmrgfor ac_var in $ac_precious_vars; do
2568e9f7eabcSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2569e9f7eabcSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
2570e9f7eabcSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2571e9f7eabcSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
2572e9f7eabcSmrg  case $ac_old_set,$ac_new_set in
2573e9f7eabcSmrg    set,)
2574e9f7eabcSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2575e9f7eabcSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2576e9f7eabcSmrg      ac_cache_corrupted=: ;;
2577e9f7eabcSmrg    ,set)
2578e9f7eabcSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2579e9f7eabcSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2580e9f7eabcSmrg      ac_cache_corrupted=: ;;
2581e9f7eabcSmrg    ,);;
2582e9f7eabcSmrg    *)
2583e9f7eabcSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2584e9f7eabcSmrg	# differences in whitespace do not lead to failure.
2585e9f7eabcSmrg	ac_old_val_w=`echo x $ac_old_val`
2586e9f7eabcSmrg	ac_new_val_w=`echo x $ac_new_val`
2587e9f7eabcSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2588e9f7eabcSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2589e9f7eabcSmrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2590e9f7eabcSmrg	  ac_cache_corrupted=:
2591e9f7eabcSmrg	else
2592e9f7eabcSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2593e9f7eabcSmrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2594e9f7eabcSmrg	  eval $ac_var=\$ac_old_val
2595e9f7eabcSmrg	fi
2596e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2597e9f7eabcSmrgprintf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2598e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2599e9f7eabcSmrgprintf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2600e9f7eabcSmrg      fi;;
2601e9f7eabcSmrg  esac
2602e9f7eabcSmrg  # Pass precious variables to config.status.
2603e9f7eabcSmrg  if test "$ac_new_set" = set; then
2604e9f7eabcSmrg    case $ac_new_val in
2605e9f7eabcSmrg    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2606e9f7eabcSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2607e9f7eabcSmrg    esac
2608e9f7eabcSmrg    case " $ac_configure_args " in
2609e9f7eabcSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2610e9f7eabcSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2611e9f7eabcSmrg    esac
26124a8d91dcSmrg  fi
2613e9f7eabcSmrgdone
2614e9f7eabcSmrgif $ac_cache_corrupted; then
2615e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616e9f7eabcSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2617e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2618e9f7eabcSmrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2619e9f7eabcSmrg  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2620e9f7eabcSmrg	    and start over" "$LINENO" 5
26214a8d91dcSmrgfi
2622e9f7eabcSmrg## -------------------- ##
2623e9f7eabcSmrg## Main body of script. ##
2624e9f7eabcSmrg## -------------------- ##
26254a8d91dcSmrg
2626e9f7eabcSmrgac_ext=c
2627e9f7eabcSmrgac_cpp='$CPP $CPPFLAGS'
2628e9f7eabcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629e9f7eabcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630e9f7eabcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
26314a8d91dcSmrg
2632a73423d7Smrg
2633a73423d7Smrg
2634e9f7eabcSmrgac_config_headers="$ac_config_headers config.h"
2635a73423d7Smrg
2636a73423d7Smrg
2637a73423d7Smrg
2638e9f7eabcSmrg# Initialize Automake
2639e9f7eabcSmrgam__api_version='1.16'
2640a73423d7Smrg
2641a73423d7Smrg
2642a73423d7Smrg
2643e9f7eabcSmrg  # Find a good install program.  We prefer a C program (faster),
2644e9f7eabcSmrg# so one script is as good as another.  But avoid the broken or
2645e9f7eabcSmrg# incompatible versions:
2646e9f7eabcSmrg# SysV /etc/install, /usr/sbin/install
2647e9f7eabcSmrg# SunOS /usr/etc/install
2648e9f7eabcSmrg# IRIX /sbin/install
2649e9f7eabcSmrg# AIX /bin/install
2650e9f7eabcSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2651e9f7eabcSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2652e9f7eabcSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2653e9f7eabcSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2654e9f7eabcSmrg# OS/2's system install, which has a completely different semantic
2655e9f7eabcSmrg# ./install, which can be erroneously created by make from ./install.sh.
2656e9f7eabcSmrg# Reject install programs that cannot install multiple files.
2657e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2658e9f7eabcSmrgprintf %s "checking for a BSD-compatible install... " >&6; }
2659e9f7eabcSmrgif test -z "$INSTALL"; then
2660e9f7eabcSmrgif test ${ac_cv_path_install+y}
2661e9f7eabcSmrgthen :
2662e9f7eabcSmrg  printf %s "(cached) " >&6
2663e9f7eabcSmrgelse $as_nop
2664e9f7eabcSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665e9f7eabcSmrgfor as_dir in $PATH
2666e9f7eabcSmrgdo
2667e9f7eabcSmrg  IFS=$as_save_IFS
2668e9f7eabcSmrg  case $as_dir in #(((
2669e9f7eabcSmrg    '') as_dir=./ ;;
2670e9f7eabcSmrg    */) ;;
2671e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
2672e9f7eabcSmrg  esac
2673e9f7eabcSmrg    # Account for fact that we put trailing slashes in our PATH walk.
2674e9f7eabcSmrgcase $as_dir in #((
2675e9f7eabcSmrg  ./ | /[cC]/* | \
2676e9f7eabcSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2677e9f7eabcSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2678e9f7eabcSmrg  /usr/ucb/* ) ;;
2679e9f7eabcSmrg  *)
2680e9f7eabcSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2681e9f7eabcSmrg    # Don't use installbsd from OSF since it installs stuff as root
2682e9f7eabcSmrg    # by default.
2683e9f7eabcSmrg    for ac_prog in ginstall scoinst install; do
2684e9f7eabcSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
2685e9f7eabcSmrg	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2686e9f7eabcSmrg	  if test $ac_prog = install &&
2687e9f7eabcSmrg	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2688e9f7eabcSmrg	    # AIX install.  It has an incompatible calling convention.
2689e9f7eabcSmrg	    :
2690e9f7eabcSmrg	  elif test $ac_prog = install &&
2691e9f7eabcSmrg	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2692e9f7eabcSmrg	    # program-specific install script used by HP pwplus--don't use.
2693e9f7eabcSmrg	    :
2694e9f7eabcSmrg	  else
2695e9f7eabcSmrg	    rm -rf conftest.one conftest.two conftest.dir
2696e9f7eabcSmrg	    echo one > conftest.one
2697e9f7eabcSmrg	    echo two > conftest.two
2698e9f7eabcSmrg	    mkdir conftest.dir
2699e9f7eabcSmrg	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2700e9f7eabcSmrg	      test -s conftest.one && test -s conftest.two &&
2701e9f7eabcSmrg	      test -s conftest.dir/conftest.one &&
2702e9f7eabcSmrg	      test -s conftest.dir/conftest.two
2703e9f7eabcSmrg	    then
2704e9f7eabcSmrg	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2705e9f7eabcSmrg	      break 3
2706e9f7eabcSmrg	    fi
2707e9f7eabcSmrg	  fi
2708e9f7eabcSmrg	fi
2709e9f7eabcSmrg      done
2710e9f7eabcSmrg    done
2711e9f7eabcSmrg    ;;
2712e9f7eabcSmrgesac
2713a73423d7Smrg
2714e9f7eabcSmrg  done
2715e9f7eabcSmrgIFS=$as_save_IFS
2716a73423d7Smrg
2717e9f7eabcSmrgrm -rf conftest.one conftest.two conftest.dir
2718a73423d7Smrg
2719e9f7eabcSmrgfi
2720e9f7eabcSmrg  if test ${ac_cv_path_install+y}; then
2721e9f7eabcSmrg    INSTALL=$ac_cv_path_install
2722e9f7eabcSmrg  else
2723e9f7eabcSmrg    # As a last resort, use the slow shell script.  Don't cache a
2724e9f7eabcSmrg    # value for INSTALL within a source directory, because that will
2725e9f7eabcSmrg    # break other packages using the cache if that directory is
2726e9f7eabcSmrg    # removed, or if the value is a relative name.
2727e9f7eabcSmrg    INSTALL=$ac_install_sh
2728e9f7eabcSmrg  fi
2729e9f7eabcSmrgfi
2730e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2731e9f7eabcSmrgprintf "%s\n" "$INSTALL" >&6; }
2732a73423d7Smrg
2733e9f7eabcSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2734e9f7eabcSmrg# It thinks the first close brace ends the variable substitution.
2735e9f7eabcSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2736a73423d7Smrg
2737e9f7eabcSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2738a73423d7Smrg
2739e9f7eabcSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2740a73423d7Smrg
2741e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2742e9f7eabcSmrgprintf %s "checking whether build environment is sane... " >&6; }
2743e9f7eabcSmrg# Reject unsafe characters in $srcdir or the absolute working directory
2744e9f7eabcSmrg# name.  Accept space and tab only in the latter.
2745e9f7eabcSmrgam_lf='
2746e9f7eabcSmrg'
2747e9f7eabcSmrgcase `pwd` in
2748e9f7eabcSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
2749e9f7eabcSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2750e9f7eabcSmrgesac
2751e9f7eabcSmrgcase $srcdir in
2752e9f7eabcSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2753e9f7eabcSmrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2754e9f7eabcSmrgesac
2755a73423d7Smrg
2756e9f7eabcSmrg# Do 'set' in a subshell so we don't clobber the current shell's
2757e9f7eabcSmrg# arguments.  Must try -L first in case configure is actually a
2758e9f7eabcSmrg# symlink; some systems play weird games with the mod time of symlinks
2759e9f7eabcSmrg# (eg FreeBSD returns the mod time of the symlink's containing
2760e9f7eabcSmrg# directory).
2761e9f7eabcSmrgif (
2762e9f7eabcSmrg   am_has_slept=no
2763e9f7eabcSmrg   for am_try in 1 2; do
2764e9f7eabcSmrg     echo "timestamp, slept: $am_has_slept" > conftest.file
2765e9f7eabcSmrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2766e9f7eabcSmrg     if test "$*" = "X"; then
2767e9f7eabcSmrg	# -L didn't work.
2768e9f7eabcSmrg	set X `ls -t "$srcdir/configure" conftest.file`
2769e9f7eabcSmrg     fi
2770e9f7eabcSmrg     if test "$*" != "X $srcdir/configure conftest.file" \
2771e9f7eabcSmrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
2772a73423d7Smrg
2773e9f7eabcSmrg	# If neither matched, then we have a broken ls.  This can happen
2774e9f7eabcSmrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
2775e9f7eabcSmrg	# broken ls alias from the environment.  This has actually
2776e9f7eabcSmrg	# happened.  Such a system could not be considered "sane".
2777e9f7eabcSmrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2778e9f7eabcSmrg  alias in your environment" "$LINENO" 5
2779e9f7eabcSmrg     fi
2780e9f7eabcSmrg     if test "$2" = conftest.file || test $am_try -eq 2; then
2781e9f7eabcSmrg       break
2782e9f7eabcSmrg     fi
2783e9f7eabcSmrg     # Just in case.
2784e9f7eabcSmrg     sleep 1
2785e9f7eabcSmrg     am_has_slept=yes
2786e9f7eabcSmrg   done
2787e9f7eabcSmrg   test "$2" = conftest.file
2788e9f7eabcSmrg   )
2789e9f7eabcSmrgthen
2790e9f7eabcSmrg   # Ok.
2791e9f7eabcSmrg   :
2792e9f7eabcSmrgelse
2793e9f7eabcSmrg   as_fn_error $? "newly created file is older than distributed files!
2794e9f7eabcSmrgCheck your system clock" "$LINENO" 5
2795e9f7eabcSmrgfi
2796e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2797e9f7eabcSmrgprintf "%s\n" "yes" >&6; }
2798e9f7eabcSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and
2799e9f7eabcSmrg# generated files are strictly newer.
2800e9f7eabcSmrgam_sleep_pid=
2801e9f7eabcSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
2802e9f7eabcSmrg  ( sleep 1 ) &
2803e9f7eabcSmrg  am_sleep_pid=$!
2804e9f7eabcSmrgfi
2805a73423d7Smrg
2806e9f7eabcSmrgrm -f conftest.file
2807a73423d7Smrg
2808e9f7eabcSmrgtest "$program_prefix" != NONE &&
2809e9f7eabcSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2810e9f7eabcSmrg# Use a double $ so make ignores it.
2811e9f7eabcSmrgtest "$program_suffix" != NONE &&
2812e9f7eabcSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2813e9f7eabcSmrg# Double any \ or $.
2814e9f7eabcSmrg# By default was `s,x,x', remove it if useless.
2815e9f7eabcSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2816e9f7eabcSmrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2817a73423d7Smrg
2818a73423d7Smrg
2819e9f7eabcSmrg# Expand $ac_aux_dir to an absolute path.
2820e9f7eabcSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
2821a73423d7Smrg
2822a73423d7Smrg
2823e9f7eabcSmrg  if test x"${MISSING+set}" != xset; then
2824e9f7eabcSmrg  MISSING="\${SHELL} '$am_aux_dir/missing'"
2825a73423d7Smrgfi
2826e9f7eabcSmrg# Use eval to expand $SHELL
2827e9f7eabcSmrgif eval "$MISSING --is-lightweight"; then
2828e9f7eabcSmrg  am_missing_run="$MISSING "
2829a73423d7Smrgelse
2830e9f7eabcSmrg  am_missing_run=
2831e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2832e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2833a73423d7Smrgfi
2834a73423d7Smrg
2835e9f7eabcSmrgif test x"${install_sh+set}" != xset; then
2836e9f7eabcSmrg  case $am_aux_dir in
2837e9f7eabcSmrg  *\ * | *\	*)
2838e9f7eabcSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2839e9f7eabcSmrg  *)
2840e9f7eabcSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2841e9f7eabcSmrg  esac
2842e9f7eabcSmrgfi
2843a73423d7Smrg
2844e9f7eabcSmrg# Installed binaries are usually stripped using 'strip' when the user
2845e9f7eabcSmrg# run "make install-strip".  However 'strip' might not be the right
2846e9f7eabcSmrg# tool to use in cross-compilation environments, therefore Automake
2847e9f7eabcSmrg# will honor the 'STRIP' environment variable to overrule this program.
2848e9f7eabcSmrgif test "$cross_compiling" != no; then
2849e9f7eabcSmrg  if test -n "$ac_tool_prefix"; then
2850e9f7eabcSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2851e9f7eabcSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2852e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
2854e9f7eabcSmrgif test ${ac_cv_prog_STRIP+y}
2855e9f7eabcSmrgthen :
2856e9f7eabcSmrg  printf %s "(cached) " >&6
2857e9f7eabcSmrgelse $as_nop
2858e9f7eabcSmrg  if test -n "$STRIP"; then
2859e9f7eabcSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2860a73423d7Smrgelse
2861a73423d7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862a73423d7Smrgfor as_dir in $PATH
2863a73423d7Smrgdo
2864a73423d7Smrg  IFS=$as_save_IFS
2865e9f7eabcSmrg  case $as_dir in #(((
2866e9f7eabcSmrg    '') as_dir=./ ;;
2867e9f7eabcSmrg    */) ;;
2868e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
2869e9f7eabcSmrg  esac
2870a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2871e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2872e9f7eabcSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2873e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2874a73423d7Smrg    break 2
2875a73423d7Smrg  fi
2876a73423d7Smrgdone
2877a73423d7Smrg  done
2878a73423d7SmrgIFS=$as_save_IFS
2879a73423d7Smrg
2880a73423d7Smrgfi
2881a73423d7Smrgfi
2882e9f7eabcSmrgSTRIP=$ac_cv_prog_STRIP
2883e9f7eabcSmrgif test -n "$STRIP"; then
2884e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2885e9f7eabcSmrgprintf "%s\n" "$STRIP" >&6; }
2886a73423d7Smrgelse
2887e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888e9f7eabcSmrgprintf "%s\n" "no" >&6; }
2889a73423d7Smrgfi
2890a73423d7Smrg
2891a73423d7Smrg
2892a73423d7Smrgfi
2893e9f7eabcSmrgif test -z "$ac_cv_prog_STRIP"; then
2894e9f7eabcSmrg  ac_ct_STRIP=$STRIP
2895e9f7eabcSmrg  # Extract the first word of "strip", so it can be a program name with args.
2896e9f7eabcSmrgset dummy strip; ac_word=$2
2897e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
2899e9f7eabcSmrgif test ${ac_cv_prog_ac_ct_STRIP+y}
2900e9f7eabcSmrgthen :
2901e9f7eabcSmrg  printf %s "(cached) " >&6
2902e9f7eabcSmrgelse $as_nop
2903e9f7eabcSmrg  if test -n "$ac_ct_STRIP"; then
2904e9f7eabcSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2905a73423d7Smrgelse
2906a73423d7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907a73423d7Smrgfor as_dir in $PATH
2908a73423d7Smrgdo
2909a73423d7Smrg  IFS=$as_save_IFS
2910e9f7eabcSmrg  case $as_dir in #(((
2911e9f7eabcSmrg    '') as_dir=./ ;;
2912e9f7eabcSmrg    */) ;;
2913e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
2914e9f7eabcSmrg  esac
2915a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2916e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2917e9f7eabcSmrg    ac_cv_prog_ac_ct_STRIP="strip"
2918e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2919a73423d7Smrg    break 2
2920a73423d7Smrg  fi
2921a73423d7Smrgdone
2922a73423d7Smrg  done
2923a73423d7SmrgIFS=$as_save_IFS
2924a73423d7Smrg
2925a73423d7Smrgfi
2926a73423d7Smrgfi
2927e9f7eabcSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2928e9f7eabcSmrgif test -n "$ac_ct_STRIP"; then
2929e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2930e9f7eabcSmrgprintf "%s\n" "$ac_ct_STRIP" >&6; }
2931a73423d7Smrgelse
2932e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933e9f7eabcSmrgprintf "%s\n" "no" >&6; }
2934a73423d7Smrgfi
2935a73423d7Smrg
2936e9f7eabcSmrg  if test "x$ac_ct_STRIP" = x; then
2937e9f7eabcSmrg    STRIP=":"
2938a73423d7Smrg  else
2939a73423d7Smrg    case $cross_compiling:$ac_tool_warned in
2940a73423d7Smrgyes:)
2941e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2942e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2943a73423d7Smrgac_tool_warned=yes ;;
2944a73423d7Smrgesac
2945e9f7eabcSmrg    STRIP=$ac_ct_STRIP
2946a73423d7Smrg  fi
2947a73423d7Smrgelse
2948e9f7eabcSmrg  STRIP="$ac_cv_prog_STRIP"
2949a73423d7Smrgfi
2950a73423d7Smrg
2951e9f7eabcSmrgfi
2952e9f7eabcSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2953e9f7eabcSmrg
2954e9f7eabcSmrg
2955e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2956e9f7eabcSmrgprintf %s "checking for a race-free mkdir -p... " >&6; }
2957e9f7eabcSmrgif test -z "$MKDIR_P"; then
2958e9f7eabcSmrg  if test ${ac_cv_path_mkdir+y}
2959e9f7eabcSmrgthen :
2960e9f7eabcSmrg  printf %s "(cached) " >&6
2961e9f7eabcSmrgelse $as_nop
2962e9f7eabcSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963e9f7eabcSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2964a73423d7Smrgdo
2965a73423d7Smrg  IFS=$as_save_IFS
2966e9f7eabcSmrg  case $as_dir in #(((
2967e9f7eabcSmrg    '') as_dir=./ ;;
2968e9f7eabcSmrg    */) ;;
2969e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
2970e9f7eabcSmrg  esac
2971e9f7eabcSmrg    for ac_prog in mkdir gmkdir; do
2972e9f7eabcSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2973e9f7eabcSmrg	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2974e9f7eabcSmrg	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2975e9f7eabcSmrg	     'mkdir ('*'coreutils) '* | \
2976e9f7eabcSmrg	     'BusyBox '* | \
2977e9f7eabcSmrg	     'mkdir (fileutils) '4.1*)
2978e9f7eabcSmrg	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2979e9f7eabcSmrg	       break 3;;
2980e9f7eabcSmrg	   esac
2981e9f7eabcSmrg	 done
2982e9f7eabcSmrg       done
2983a73423d7Smrg  done
2984a73423d7SmrgIFS=$as_save_IFS
2985a73423d7Smrg
2986a73423d7Smrgfi
2987a73423d7Smrg
2988e9f7eabcSmrg  test -d ./--version && rmdir ./--version
2989e9f7eabcSmrg  if test ${ac_cv_path_mkdir+y}; then
2990e9f7eabcSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
2991e9f7eabcSmrg  else
2992e9f7eabcSmrg    # As a last resort, use the slow shell script.  Don't cache a
2993e9f7eabcSmrg    # value for MKDIR_P within a source directory, because that will
2994e9f7eabcSmrg    # break other packages using the cache if that directory is
2995e9f7eabcSmrg    # removed, or if the value is a relative name.
2996e9f7eabcSmrg    MKDIR_P="$ac_install_sh -d"
2997a73423d7Smrg  fi
2998a73423d7Smrgfi
2999e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3000e9f7eabcSmrgprintf "%s\n" "$MKDIR_P" >&6; }
3001e9f7eabcSmrg
3002e9f7eabcSmrgfor ac_prog in gawk mawk nawk awk
3003e9f7eabcSmrgdo
3004e9f7eabcSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
3005e9f7eabcSmrgset dummy $ac_prog; ac_word=$2
3006e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
3008e9f7eabcSmrgif test ${ac_cv_prog_AWK+y}
3009e9f7eabcSmrgthen :
3010e9f7eabcSmrg  printf %s "(cached) " >&6
3011e9f7eabcSmrgelse $as_nop
3012e9f7eabcSmrg  if test -n "$AWK"; then
3013e9f7eabcSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3014a73423d7Smrgelse
3015a73423d7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016a73423d7Smrgfor as_dir in $PATH
3017a73423d7Smrgdo
3018a73423d7Smrg  IFS=$as_save_IFS
3019e9f7eabcSmrg  case $as_dir in #(((
3020e9f7eabcSmrg    '') as_dir=./ ;;
3021e9f7eabcSmrg    */) ;;
3022e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
3023e9f7eabcSmrg  esac
3024a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3025e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3026e9f7eabcSmrg    ac_cv_prog_AWK="$ac_prog"
3027e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3028a73423d7Smrg    break 2
3029a73423d7Smrg  fi
3030a73423d7Smrgdone
3031a73423d7Smrg  done
3032a73423d7SmrgIFS=$as_save_IFS
3033a73423d7Smrg
3034a73423d7Smrgfi
3035a73423d7Smrgfi
3036e9f7eabcSmrgAWK=$ac_cv_prog_AWK
3037e9f7eabcSmrgif test -n "$AWK"; then
3038e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3039e9f7eabcSmrgprintf "%s\n" "$AWK" >&6; }
3040a73423d7Smrgelse
3041e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042e9f7eabcSmrgprintf "%s\n" "no" >&6; }
3043a73423d7Smrgfi
3044a73423d7Smrg
3045a73423d7Smrg
3046e9f7eabcSmrg  test -n "$AWK" && break
3047a73423d7Smrgdone
3048a73423d7Smrg
3049e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3050e9f7eabcSmrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3051e9f7eabcSmrgset x ${MAKE-make}
3052e9f7eabcSmrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3053e9f7eabcSmrgif eval test \${ac_cv_prog_make_${ac_make}_set+y}
3054e9f7eabcSmrgthen :
3055e9f7eabcSmrg  printf %s "(cached) " >&6
3056e9f7eabcSmrgelse $as_nop
3057e9f7eabcSmrg  cat >conftest.make <<\_ACEOF
3058e9f7eabcSmrgSHELL = /bin/sh
3059e9f7eabcSmrgall:
3060e9f7eabcSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
3061e9f7eabcSmrg_ACEOF
3062e9f7eabcSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3063e9f7eabcSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
3064e9f7eabcSmrg  *@@@%%%=?*=@@@%%%*)
3065e9f7eabcSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
3066e9f7eabcSmrg  *)
3067e9f7eabcSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
3068e9f7eabcSmrgesac
3069e9f7eabcSmrgrm -f conftest.make
3070a73423d7Smrgfi
3071e9f7eabcSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3072e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3073e9f7eabcSmrgprintf "%s\n" "yes" >&6; }
3074e9f7eabcSmrg  SET_MAKE=
3075a73423d7Smrgelse
3076e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077e9f7eabcSmrgprintf "%s\n" "no" >&6; }
3078e9f7eabcSmrg  SET_MAKE="MAKE=${MAKE-make}"
3079a73423d7Smrgfi
3080a73423d7Smrg
3081e9f7eabcSmrgrm -rf .tst 2>/dev/null
3082e9f7eabcSmrgmkdir .tst 2>/dev/null
3083e9f7eabcSmrgif test -d .tst; then
3084e9f7eabcSmrg  am__leading_dot=.
3085e9f7eabcSmrgelse
3086e9f7eabcSmrg  am__leading_dot=_
3087e9f7eabcSmrgfi
3088e9f7eabcSmrgrmdir .tst 2>/dev/null
3089a73423d7Smrg
3090e9f7eabcSmrg# Check whether --enable-silent-rules was given.
3091e9f7eabcSmrgif test ${enable_silent_rules+y}
3092e9f7eabcSmrgthen :
3093e9f7eabcSmrg  enableval=$enable_silent_rules;
3094a73423d7Smrgfi
3095e9f7eabcSmrg
3096e9f7eabcSmrgcase $enable_silent_rules in # (((
3097e9f7eabcSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
3098e9f7eabcSmrg   no) AM_DEFAULT_VERBOSITY=1;;
3099e9f7eabcSmrg    *) AM_DEFAULT_VERBOSITY=1;;
3100e9f7eabcSmrgesac
3101e9f7eabcSmrgam_make=${MAKE-make}
3102e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3103e9f7eabcSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
3104e9f7eabcSmrgif test ${am_cv_make_support_nested_variables+y}
3105e9f7eabcSmrgthen :
3106e9f7eabcSmrg  printf %s "(cached) " >&6
3107e9f7eabcSmrgelse $as_nop
3108e9f7eabcSmrg  if printf "%s\n" 'TRUE=$(BAR$(V))
3109e9f7eabcSmrgBAR0=false
3110e9f7eabcSmrgBAR1=true
3111e9f7eabcSmrgV=1
3112e9f7eabcSmrgam__doit:
3113e9f7eabcSmrg	@$(TRUE)
3114e9f7eabcSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3115e9f7eabcSmrg  am_cv_make_support_nested_variables=yes
3116a73423d7Smrgelse
3117e9f7eabcSmrg  am_cv_make_support_nested_variables=no
3118e9f7eabcSmrgfi
3119e9f7eabcSmrgfi
3120e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3121e9f7eabcSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3122e9f7eabcSmrgif test $am_cv_make_support_nested_variables = yes; then
3123e9f7eabcSmrg    AM_V='$(V)'
3124e9f7eabcSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3125a73423d7Smrgelse
3126e9f7eabcSmrg  AM_V=$AM_DEFAULT_VERBOSITY
3127e9f7eabcSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3128e9f7eabcSmrgfi
3129e9f7eabcSmrgAM_BACKSLASH='\'
3130e9f7eabcSmrg
3131e9f7eabcSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
3132e9f7eabcSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3133e9f7eabcSmrg  # is not polluted with repeated "-I."
3134e9f7eabcSmrg  am__isrc=' -I$(srcdir)'
3135e9f7eabcSmrg  # test to see if srcdir already configured
3136e9f7eabcSmrg  if test -f $srcdir/config.status; then
3137e9f7eabcSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3138a73423d7Smrg  fi
3139e9f7eabcSmrgfi
3140e9f7eabcSmrg
3141e9f7eabcSmrg# test whether we have cygpath
3142e9f7eabcSmrgif test -z "$CYGPATH_W"; then
3143e9f7eabcSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
3144e9f7eabcSmrg    CYGPATH_W='cygpath -w'
3145e9f7eabcSmrg  else
3146e9f7eabcSmrg    CYGPATH_W=echo
3147e9f7eabcSmrg  fi
3148e9f7eabcSmrgfi
3149e9f7eabcSmrg
3150e9f7eabcSmrg
3151e9f7eabcSmrg# Define the identity of the package.
3152e9f7eabcSmrg PACKAGE='xf86-video-i128'
3153e9f7eabcSmrg VERSION='1.4.1'
3154e9f7eabcSmrg
3155e9f7eabcSmrg
3156e9f7eabcSmrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3157e9f7eabcSmrg
3158e9f7eabcSmrg
3159e9f7eabcSmrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3160e9f7eabcSmrg
3161e9f7eabcSmrg# Some tools Automake needs.
3162e9f7eabcSmrg
3163e9f7eabcSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3164e9f7eabcSmrg
3165e9f7eabcSmrg
3166e9f7eabcSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3167e9f7eabcSmrg
3168e9f7eabcSmrg
3169e9f7eabcSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3170e9f7eabcSmrg
3171e9f7eabcSmrg
3172e9f7eabcSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3173e9f7eabcSmrg
3174e9f7eabcSmrg
3175e9f7eabcSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3176e9f7eabcSmrg
3177e9f7eabcSmrg# For better backward compatibility.  To be removed once Automake 1.9.x
3178e9f7eabcSmrg# dies out for good.  For more background, see:
3179e9f7eabcSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3180e9f7eabcSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3181e9f7eabcSmrgmkdir_p='$(MKDIR_P)'
3182e9f7eabcSmrg
3183e9f7eabcSmrg# We need awk for the "check" target (and possibly the TAP driver).  The
3184e9f7eabcSmrg# system "awk" is bad on some platforms.
3185e9f7eabcSmrg# Always define AMTAR for backward compatibility.  Yes, it's still used
3186e9f7eabcSmrg# in the wild :-(  We should find a proper way to deprecate it ...
3187e9f7eabcSmrgAMTAR='$${TAR-tar}'
3188e9f7eabcSmrg
3189e9f7eabcSmrg
3190e9f7eabcSmrg# We'll loop over all known methods to create a tar archive until one works.
3191e9f7eabcSmrg_am_tools='gnutar  pax cpio none'
3192e9f7eabcSmrg
3193e9f7eabcSmrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3194e9f7eabcSmrg
3195e9f7eabcSmrg
3196e9f7eabcSmrg
3197a73423d7Smrg
3198e9f7eabcSmrg
3199e9f7eabcSmrg# Variables for tags utilities; see am/tags.am
3200e9f7eabcSmrgif test -z "$CTAGS"; then
3201e9f7eabcSmrg  CTAGS=ctags
3202a73423d7Smrgfi
3203e9f7eabcSmrg
3204e9f7eabcSmrgif test -z "$ETAGS"; then
3205e9f7eabcSmrg  ETAGS=etags
3206a73423d7Smrgfi
3207e9f7eabcSmrg
3208e9f7eabcSmrgif test -z "$CSCOPE"; then
3209e9f7eabcSmrg  CSCOPE=cscope
3210a73423d7Smrgfi
3211a73423d7Smrg
3212a73423d7Smrg
3213a73423d7Smrg
3214e9f7eabcSmrg# POSIX will say in a future version that running "rm -f" with no argument
3215e9f7eabcSmrg# is OK; and we want to be able to make that assumption in our Makefile
3216e9f7eabcSmrg# recipes.  So use an aggressive probe to check that the usage we want is
3217e9f7eabcSmrg# actually supported "in the wild" to an acceptable degree.
3218e9f7eabcSmrg# See automake bug#10828.
3219e9f7eabcSmrg# To make any issue more visible, cause the running configure to be aborted
3220e9f7eabcSmrg# by default if the 'rm' program in use doesn't match our expectations; the
3221e9f7eabcSmrg# user can still override this though.
3222e9f7eabcSmrgif rm -f && rm -fr && rm -rf; then : OK; else
3223e9f7eabcSmrg  cat >&2 <<'END'
3224e9f7eabcSmrgOops!
3225e9f7eabcSmrg
3226e9f7eabcSmrgYour 'rm' program seems unable to run without file operands specified
3227e9f7eabcSmrgon the command line, even when the '-f' option is present.  This is contrary
3228e9f7eabcSmrgto the behaviour of most rm programs out there, and not conforming with
3229e9f7eabcSmrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3230e9f7eabcSmrg
3231e9f7eabcSmrgPlease tell bug-automake@gnu.org about your system, including the value
3232e9f7eabcSmrgof your $PATH and any error possibly output before this message.  This
3233e9f7eabcSmrgcan help us improve future automake versions.
3234e9f7eabcSmrg
3235e9f7eabcSmrgEND
3236e9f7eabcSmrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3237e9f7eabcSmrg    echo 'Configuration will proceed anyway, since you have set the' >&2
3238e9f7eabcSmrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3239e9f7eabcSmrg    echo >&2
3240a73423d7Smrg  else
3241e9f7eabcSmrg    cat >&2 <<'END'
3242e9f7eabcSmrgAborting the configuration process, to ensure you take notice of the issue.
3243e9f7eabcSmrg
3244e9f7eabcSmrgYou can download and install GNU coreutils to get an 'rm' implementation
3245e9f7eabcSmrgthat behaves properly: <https://www.gnu.org/software/coreutils/>.
3246e9f7eabcSmrg
3247e9f7eabcSmrgIf you want to complete the configuration process using your problematic
3248e9f7eabcSmrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3249e9f7eabcSmrgto "yes", and re-run configure.
3250e9f7eabcSmrg
3251e9f7eabcSmrgEND
3252e9f7eabcSmrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3253a73423d7Smrg  fi
3254a73423d7Smrgfi
3255a73423d7Smrg
3256e9f7eabcSmrg
3257e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3258e9f7eabcSmrgprintf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3259e9f7eabcSmrg    # Check whether --enable-maintainer-mode was given.
3260e9f7eabcSmrgif test ${enable_maintainer_mode+y}
3261e9f7eabcSmrgthen :
3262e9f7eabcSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3263e9f7eabcSmrgelse $as_nop
3264e9f7eabcSmrg  USE_MAINTAINER_MODE=no
3265a73423d7Smrgfi
3266a73423d7Smrg
3267e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3268e9f7eabcSmrgprintf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3269e9f7eabcSmrg   if test $USE_MAINTAINER_MODE = yes; then
3270e9f7eabcSmrg  MAINTAINER_MODE_TRUE=
3271e9f7eabcSmrg  MAINTAINER_MODE_FALSE='#'
3272e9f7eabcSmrgelse
3273e9f7eabcSmrg  MAINTAINER_MODE_TRUE='#'
3274e9f7eabcSmrg  MAINTAINER_MODE_FALSE=
3275e9f7eabcSmrgfi
3276a73423d7Smrg
3277e9f7eabcSmrg  MAINT=$MAINTAINER_MODE_TRUE
3278a73423d7Smrg
3279a73423d7Smrg
3280a73423d7Smrg
3281e9f7eabcSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3282a73423d7Smrg
3283a73423d7Smrg
3284a73423d7Smrg
3285a73423d7Smrg
3286a73423d7Smrg
3287a73423d7Smrg
3288a73423d7Smrg
3289a73423d7Smrg
3290a73423d7Smrg
3291e9f7eabcSmrg
3292e9f7eabcSmrg
3293e9f7eabcSmrg
3294e9f7eabcSmrg
3295e9f7eabcSmrg
3296e9f7eabcSmrg
3297e9f7eabcSmrg
3298e9f7eabcSmrg
3299e9f7eabcSmrg
3300e9f7eabcSmrg
3301e9f7eabcSmrg
3302e9f7eabcSmrgDEPDIR="${am__leading_dot}deps"
3303e9f7eabcSmrg
3304e9f7eabcSmrgac_config_commands="$ac_config_commands depfiles"
3305e9f7eabcSmrg
3306e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3307e9f7eabcSmrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3308e9f7eabcSmrgcat > confinc.mk << 'END'
3309e9f7eabcSmrgam__doit:
3310e9f7eabcSmrg	@echo this is the am__doit target >confinc.out
3311e9f7eabcSmrg.PHONY: am__doit
3312e9f7eabcSmrgEND
3313e9f7eabcSmrgam__include="#"
3314e9f7eabcSmrgam__quote=
3315e9f7eabcSmrg# BSD make does it like this.
3316e9f7eabcSmrgecho '.include "confinc.mk" # ignored' > confmf.BSD
3317e9f7eabcSmrg# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3318e9f7eabcSmrgecho 'include confinc.mk # ignored' > confmf.GNU
3319e9f7eabcSmrg_am_result=no
3320e9f7eabcSmrgfor s in GNU BSD; do
3321e9f7eabcSmrg  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3322e9f7eabcSmrg   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3323e9f7eabcSmrg   ac_status=$?
3324e9f7eabcSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325e9f7eabcSmrg   (exit $ac_status); }
3326e9f7eabcSmrg  case $?:`cat confinc.out 2>/dev/null` in #(
3327e9f7eabcSmrg  '0:this is the am__doit target') :
3328e9f7eabcSmrg    case $s in #(
3329e9f7eabcSmrg  BSD) :
3330e9f7eabcSmrg    am__include='.include' am__quote='"' ;; #(
3331e9f7eabcSmrg  *) :
3332e9f7eabcSmrg    am__include='include' am__quote='' ;;
3333e9f7eabcSmrgesac ;; #(
3334e9f7eabcSmrg  *) :
3335e9f7eabcSmrg     ;;
3336a73423d7Smrgesac
3337e9f7eabcSmrg  if test "$am__include" != "#"; then
3338e9f7eabcSmrg    _am_result="yes ($s style)"
3339e9f7eabcSmrg    break
3340a73423d7Smrg  fi
3341e9f7eabcSmrgdone
3342e9f7eabcSmrgrm -f confinc.* confmf.*
3343e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3344e9f7eabcSmrgprintf "%s\n" "${_am_result}" >&6; }
3345e9f7eabcSmrg
3346e9f7eabcSmrg# Check whether --enable-dependency-tracking was given.
3347e9f7eabcSmrgif test ${enable_dependency_tracking+y}
3348e9f7eabcSmrgthen :
3349e9f7eabcSmrg  enableval=$enable_dependency_tracking;
3350a73423d7Smrgfi
3351a73423d7Smrg
3352e9f7eabcSmrgif test "x$enable_dependency_tracking" != xno; then
3353e9f7eabcSmrg  am_depcomp="$ac_aux_dir/depcomp"
3354e9f7eabcSmrg  AMDEPBACKSLASH='\'
3355e9f7eabcSmrg  am__nodep='_no'
3356e9f7eabcSmrgfi
3357e9f7eabcSmrg if test "x$enable_dependency_tracking" != xno; then
3358e9f7eabcSmrg  AMDEP_TRUE=
3359e9f7eabcSmrg  AMDEP_FALSE='#'
3360a73423d7Smrgelse
3361e9f7eabcSmrg  AMDEP_TRUE='#'
3362e9f7eabcSmrg  AMDEP_FALSE=
3363e9f7eabcSmrgfi
3364a73423d7Smrg
3365a73423d7Smrg
3366e9f7eabcSmrgac_ext=c
3367e9f7eabcSmrgac_cpp='$CPP $CPPFLAGS'
3368e9f7eabcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369e9f7eabcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370e9f7eabcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3371e9f7eabcSmrgif test -n "$ac_tool_prefix"; then
3372e9f7eabcSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3373e9f7eabcSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
3374e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
3376e9f7eabcSmrgif test ${ac_cv_prog_CC+y}
3377e9f7eabcSmrgthen :
3378e9f7eabcSmrg  printf %s "(cached) " >&6
3379e9f7eabcSmrgelse $as_nop
3380e9f7eabcSmrg  if test -n "$CC"; then
3381e9f7eabcSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3382e9f7eabcSmrgelse
3383e9f7eabcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384e9f7eabcSmrgfor as_dir in $PATH
3385e9f7eabcSmrgdo
3386e9f7eabcSmrg  IFS=$as_save_IFS
3387e9f7eabcSmrg  case $as_dir in #(((
3388e9f7eabcSmrg    '') as_dir=./ ;;
3389e9f7eabcSmrg    */) ;;
3390e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
3391a73423d7Smrg  esac
3392e9f7eabcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3393e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3394e9f7eabcSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3395e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3396e9f7eabcSmrg    break 2
3397e9f7eabcSmrg  fi
3398a73423d7Smrgdone
3399e9f7eabcSmrg  done
3400e9f7eabcSmrgIFS=$as_save_IFS
3401a73423d7Smrg
3402a73423d7Smrgfi
3403a73423d7Smrgfi
3404e9f7eabcSmrgCC=$ac_cv_prog_CC
3405e9f7eabcSmrgif test -n "$CC"; then
3406e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407e9f7eabcSmrgprintf "%s\n" "$CC" >&6; }
3408a73423d7Smrgelse
3409e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410e9f7eabcSmrgprintf "%s\n" "no" >&6; }
3411e9f7eabcSmrgfi
3412a73423d7Smrg
3413a73423d7Smrg
3414a73423d7Smrgfi
3415e9f7eabcSmrgif test -z "$ac_cv_prog_CC"; then
3416e9f7eabcSmrg  ac_ct_CC=$CC
3417e9f7eabcSmrg  # Extract the first word of "gcc", so it can be a program name with args.
3418e9f7eabcSmrgset dummy gcc; ac_word=$2
3419e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
3421e9f7eabcSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3422e9f7eabcSmrgthen :
3423e9f7eabcSmrg  printf %s "(cached) " >&6
3424e9f7eabcSmrgelse $as_nop
3425e9f7eabcSmrg  if test -n "$ac_ct_CC"; then
3426e9f7eabcSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3427e9f7eabcSmrgelse
3428e9f7eabcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429e9f7eabcSmrgfor as_dir in $PATH
3430e9f7eabcSmrgdo
3431e9f7eabcSmrg  IFS=$as_save_IFS
3432e9f7eabcSmrg  case $as_dir in #(((
3433e9f7eabcSmrg    '') as_dir=./ ;;
3434e9f7eabcSmrg    */) ;;
3435e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
3436e9f7eabcSmrg  esac
3437e9f7eabcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3438e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3439e9f7eabcSmrg    ac_cv_prog_ac_ct_CC="gcc"
3440e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3441e9f7eabcSmrg    break 2
3442e9f7eabcSmrg  fi
3443e9f7eabcSmrgdone
3444e9f7eabcSmrg  done
3445e9f7eabcSmrgIFS=$as_save_IFS
3446a73423d7Smrg
3447a73423d7Smrgfi
3448a73423d7Smrgfi
3449e9f7eabcSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3450e9f7eabcSmrgif test -n "$ac_ct_CC"; then
3451e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3452e9f7eabcSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
3453a73423d7Smrgelse
3454e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455e9f7eabcSmrgprintf "%s\n" "no" >&6; }
3456e9f7eabcSmrgfi
3457a73423d7Smrg
3458e9f7eabcSmrg  if test "x$ac_ct_CC" = x; then
3459e9f7eabcSmrg    CC=""
3460e9f7eabcSmrg  else
3461e9f7eabcSmrg    case $cross_compiling:$ac_tool_warned in
3462e9f7eabcSmrgyes:)
3463e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3464e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3465e9f7eabcSmrgac_tool_warned=yes ;;
3466e9f7eabcSmrgesac
3467e9f7eabcSmrg    CC=$ac_ct_CC
3468e9f7eabcSmrg  fi
3469a73423d7Smrgelse
3470e9f7eabcSmrg  CC="$ac_cv_prog_CC"
3471e9f7eabcSmrgfi
3472a73423d7Smrg
3473e9f7eabcSmrgif test -z "$CC"; then
3474e9f7eabcSmrg          if test -n "$ac_tool_prefix"; then
3475e9f7eabcSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3476e9f7eabcSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
3477e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
3479e9f7eabcSmrgif test ${ac_cv_prog_CC+y}
3480e9f7eabcSmrgthen :
3481e9f7eabcSmrg  printf %s "(cached) " >&6
3482e9f7eabcSmrgelse $as_nop
3483e9f7eabcSmrg  if test -n "$CC"; then
3484e9f7eabcSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3485a73423d7Smrgelse
3486e9f7eabcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487e9f7eabcSmrgfor as_dir in $PATH
3488e9f7eabcSmrgdo
3489e9f7eabcSmrg  IFS=$as_save_IFS
3490e9f7eabcSmrg  case $as_dir in #(((
3491e9f7eabcSmrg    '') as_dir=./ ;;
3492e9f7eabcSmrg    */) ;;
3493e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
3494e9f7eabcSmrg  esac
3495e9f7eabcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3496e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3497e9f7eabcSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
3498e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3499e9f7eabcSmrg    break 2
3500e9f7eabcSmrg  fi
3501e9f7eabcSmrgdone
3502e9f7eabcSmrg  done
3503e9f7eabcSmrgIFS=$as_save_IFS
3504a73423d7Smrg
3505a73423d7Smrgfi
3506a73423d7Smrgfi
3507e9f7eabcSmrgCC=$ac_cv_prog_CC
3508e9f7eabcSmrgif test -n "$CC"; then
3509e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3510e9f7eabcSmrgprintf "%s\n" "$CC" >&6; }
3511e9f7eabcSmrgelse
3512e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513e9f7eabcSmrgprintf "%s\n" "no" >&6; }
3514a73423d7Smrgfi
3515e9f7eabcSmrg
3516e9f7eabcSmrg
3517a73423d7Smrg  fi
3518e9f7eabcSmrgfi
3519e9f7eabcSmrgif test -z "$CC"; then
3520e9f7eabcSmrg  # Extract the first word of "cc", so it can be a program name with args.
3521e9f7eabcSmrgset dummy cc; ac_word=$2
3522e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
3524e9f7eabcSmrgif test ${ac_cv_prog_CC+y}
3525e9f7eabcSmrgthen :
3526e9f7eabcSmrg  printf %s "(cached) " >&6
3527e9f7eabcSmrgelse $as_nop
3528e9f7eabcSmrg  if test -n "$CC"; then
3529e9f7eabcSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3530a73423d7Smrgelse
3531e9f7eabcSmrg  ac_prog_rejected=no
3532e9f7eabcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533e9f7eabcSmrgfor as_dir in $PATH
3534e9f7eabcSmrgdo
3535e9f7eabcSmrg  IFS=$as_save_IFS
3536e9f7eabcSmrg  case $as_dir in #(((
3537e9f7eabcSmrg    '') as_dir=./ ;;
3538e9f7eabcSmrg    */) ;;
3539e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
3540e9f7eabcSmrg  esac
3541e9f7eabcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3542e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3543e9f7eabcSmrg    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3544e9f7eabcSmrg       ac_prog_rejected=yes
3545e9f7eabcSmrg       continue
3546e9f7eabcSmrg     fi
3547e9f7eabcSmrg    ac_cv_prog_CC="cc"
3548e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3549e9f7eabcSmrg    break 2
3550e9f7eabcSmrg  fi
3551e9f7eabcSmrgdone
3552e9f7eabcSmrg  done
3553e9f7eabcSmrgIFS=$as_save_IFS
3554e9f7eabcSmrg
3555e9f7eabcSmrgif test $ac_prog_rejected = yes; then
3556e9f7eabcSmrg  # We found a bogon in the path, so make sure we never use it.
3557e9f7eabcSmrg  set dummy $ac_cv_prog_CC
3558e9f7eabcSmrg  shift
3559e9f7eabcSmrg  if test $# != 0; then
3560e9f7eabcSmrg    # We chose a different compiler from the bogus one.
3561e9f7eabcSmrg    # However, it has the same basename, so the bogon will be chosen
3562e9f7eabcSmrg    # first if we set CC to just the basename; use the full file name.
3563e9f7eabcSmrg    shift
3564e9f7eabcSmrg    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3565a73423d7Smrg  fi
3566a73423d7Smrgfi
3567e9f7eabcSmrgfi
3568e9f7eabcSmrgfi
3569e9f7eabcSmrgCC=$ac_cv_prog_CC
3570e9f7eabcSmrgif test -n "$CC"; then
3571e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572e9f7eabcSmrgprintf "%s\n" "$CC" >&6; }
3573a73423d7Smrgelse
3574e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575e9f7eabcSmrgprintf "%s\n" "no" >&6; }
3576e9f7eabcSmrgfi
3577a73423d7Smrg
3578a73423d7Smrg
3579a73423d7Smrgfi
3580e9f7eabcSmrgif test -z "$CC"; then
3581e9f7eabcSmrg  if test -n "$ac_tool_prefix"; then
3582e9f7eabcSmrg  for ac_prog in cl.exe
3583e9f7eabcSmrg  do
3584e9f7eabcSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3585e9f7eabcSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3586e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
3588e9f7eabcSmrgif test ${ac_cv_prog_CC+y}
3589e9f7eabcSmrgthen :
3590e9f7eabcSmrg  printf %s "(cached) " >&6
3591e9f7eabcSmrgelse $as_nop
3592e9f7eabcSmrg  if test -n "$CC"; then
3593e9f7eabcSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3594e9f7eabcSmrgelse
3595e9f7eabcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596e9f7eabcSmrgfor as_dir in $PATH
3597e9f7eabcSmrgdo
3598e9f7eabcSmrg  IFS=$as_save_IFS
3599e9f7eabcSmrg  case $as_dir in #(((
3600e9f7eabcSmrg    '') as_dir=./ ;;
3601e9f7eabcSmrg    */) ;;
3602e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
3603e9f7eabcSmrg  esac
3604e9f7eabcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3605e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3606e9f7eabcSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3607e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3608e9f7eabcSmrg    break 2
3609e9f7eabcSmrg  fi
3610a73423d7Smrgdone
3611e9f7eabcSmrg  done
3612e9f7eabcSmrgIFS=$as_save_IFS
3613a73423d7Smrg
3614a73423d7Smrgfi
3615a73423d7Smrgfi
3616e9f7eabcSmrgCC=$ac_cv_prog_CC
3617e9f7eabcSmrgif test -n "$CC"; then
3618e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3619e9f7eabcSmrgprintf "%s\n" "$CC" >&6; }
36204a8d91dcSmrgelse
3621e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622e9f7eabcSmrgprintf "%s\n" "no" >&6; }
3623e9f7eabcSmrgfi
36244a8d91dcSmrg
36254a8d91dcSmrg
3626e9f7eabcSmrg    test -n "$CC" && break
36274a8d91dcSmrg  done
36284a8d91dcSmrgfi
3629e9f7eabcSmrgif test -z "$CC"; then
3630e9f7eabcSmrg  ac_ct_CC=$CC
3631e9f7eabcSmrg  for ac_prog in cl.exe
3632e9f7eabcSmrgdo
3633e9f7eabcSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
3634e9f7eabcSmrgset dummy $ac_prog; ac_word=$2
3635e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
3637e9f7eabcSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3638e9f7eabcSmrgthen :
3639e9f7eabcSmrg  printf %s "(cached) " >&6
3640e9f7eabcSmrgelse $as_nop
3641e9f7eabcSmrg  if test -n "$ac_ct_CC"; then
3642e9f7eabcSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3643e9f7eabcSmrgelse
3644e9f7eabcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645e9f7eabcSmrgfor as_dir in $PATH
3646e9f7eabcSmrgdo
3647e9f7eabcSmrg  IFS=$as_save_IFS
3648e9f7eabcSmrg  case $as_dir in #(((
3649e9f7eabcSmrg    '') as_dir=./ ;;
3650e9f7eabcSmrg    */) ;;
3651e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
3652e9f7eabcSmrg  esac
3653e9f7eabcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3654e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3655e9f7eabcSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3656e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3657e9f7eabcSmrg    break 2
3658e9f7eabcSmrg  fi
3659e9f7eabcSmrgdone
3660e9f7eabcSmrg  done
3661e9f7eabcSmrgIFS=$as_save_IFS
3662e9f7eabcSmrg
3663e9f7eabcSmrgfi
3664e9f7eabcSmrgfi
3665e9f7eabcSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3666e9f7eabcSmrgif test -n "$ac_ct_CC"; then
3667e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3668e9f7eabcSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
3669e9f7eabcSmrgelse
3670e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671e9f7eabcSmrgprintf "%s\n" "no" >&6; }
36724a8d91dcSmrgfi
36734a8d91dcSmrg
36744a8d91dcSmrg
3675e9f7eabcSmrg  test -n "$ac_ct_CC" && break
3676e9f7eabcSmrgdone
3677a73423d7Smrg
3678e9f7eabcSmrg  if test "x$ac_ct_CC" = x; then
3679e9f7eabcSmrg    CC=""
3680e9f7eabcSmrg  else
3681e9f7eabcSmrg    case $cross_compiling:$ac_tool_warned in
3682e9f7eabcSmrgyes:)
3683e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3684e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3685e9f7eabcSmrgac_tool_warned=yes ;;
3686e9f7eabcSmrgesac
3687e9f7eabcSmrg    CC=$ac_ct_CC
3688e9f7eabcSmrg  fi
3689e9f7eabcSmrgfi
3690a73423d7Smrg
3691e9f7eabcSmrgfi
3692e9f7eabcSmrgif test -z "$CC"; then
3693e9f7eabcSmrg  if test -n "$ac_tool_prefix"; then
3694e9f7eabcSmrg  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3695e9f7eabcSmrgset dummy ${ac_tool_prefix}clang; ac_word=$2
3696e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
3698e9f7eabcSmrgif test ${ac_cv_prog_CC+y}
3699e9f7eabcSmrgthen :
3700e9f7eabcSmrg  printf %s "(cached) " >&6
3701e9f7eabcSmrgelse $as_nop
3702e9f7eabcSmrg  if test -n "$CC"; then
3703e9f7eabcSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3704e9f7eabcSmrgelse
3705e9f7eabcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706e9f7eabcSmrgfor as_dir in $PATH
3707e9f7eabcSmrgdo
3708e9f7eabcSmrg  IFS=$as_save_IFS
3709e9f7eabcSmrg  case $as_dir in #(((
3710e9f7eabcSmrg    '') as_dir=./ ;;
3711e9f7eabcSmrg    */) ;;
3712e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
3713e9f7eabcSmrg  esac
3714e9f7eabcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3715e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3716e9f7eabcSmrg    ac_cv_prog_CC="${ac_tool_prefix}clang"
3717e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3718e9f7eabcSmrg    break 2
3719a73423d7Smrg  fi
3720e9f7eabcSmrgdone
3721e9f7eabcSmrg  done
3722e9f7eabcSmrgIFS=$as_save_IFS
3723a73423d7Smrg
3724e9f7eabcSmrgfi
3725e9f7eabcSmrgfi
3726e9f7eabcSmrgCC=$ac_cv_prog_CC
3727e9f7eabcSmrgif test -n "$CC"; then
3728e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3729e9f7eabcSmrgprintf "%s\n" "$CC" >&6; }
3730e9f7eabcSmrgelse
3731e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732e9f7eabcSmrgprintf "%s\n" "no" >&6; }
3733e9f7eabcSmrgfi
3734a73423d7Smrg
3735e9f7eabcSmrg
3736e9f7eabcSmrgfi
3737e9f7eabcSmrgif test -z "$ac_cv_prog_CC"; then
3738e9f7eabcSmrg  ac_ct_CC=$CC
3739e9f7eabcSmrg  # Extract the first word of "clang", so it can be a program name with args.
3740e9f7eabcSmrgset dummy clang; ac_word=$2
3741e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
3743e9f7eabcSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3744e9f7eabcSmrgthen :
3745e9f7eabcSmrg  printf %s "(cached) " >&6
3746e9f7eabcSmrgelse $as_nop
3747e9f7eabcSmrg  if test -n "$ac_ct_CC"; then
3748e9f7eabcSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3749e9f7eabcSmrgelse
3750e9f7eabcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751e9f7eabcSmrgfor as_dir in $PATH
3752e9f7eabcSmrgdo
3753e9f7eabcSmrg  IFS=$as_save_IFS
3754e9f7eabcSmrg  case $as_dir in #(((
3755e9f7eabcSmrg    '') as_dir=./ ;;
3756e9f7eabcSmrg    */) ;;
3757e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
3758e9f7eabcSmrg  esac
3759e9f7eabcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3760e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3761e9f7eabcSmrg    ac_cv_prog_ac_ct_CC="clang"
3762e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3763e9f7eabcSmrg    break 2
3764e9f7eabcSmrg  fi
3765e9f7eabcSmrgdone
3766a73423d7Smrg  done
3767e9f7eabcSmrgIFS=$as_save_IFS
3768a73423d7Smrg
3769e9f7eabcSmrgfi
3770e9f7eabcSmrgfi
3771e9f7eabcSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3772e9f7eabcSmrgif test -n "$ac_ct_CC"; then
3773e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3774e9f7eabcSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
3775a73423d7Smrgelse
3776e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777e9f7eabcSmrgprintf "%s\n" "no" >&6; }
3778a73423d7Smrgfi
3779a73423d7Smrg
3780e9f7eabcSmrg  if test "x$ac_ct_CC" = x; then
3781e9f7eabcSmrg    CC=""
3782e9f7eabcSmrg  else
3783e9f7eabcSmrg    case $cross_compiling:$ac_tool_warned in
3784e9f7eabcSmrgyes:)
3785e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3786e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3787e9f7eabcSmrgac_tool_warned=yes ;;
3788e9f7eabcSmrgesac
3789e9f7eabcSmrg    CC=$ac_ct_CC
3790e9f7eabcSmrg  fi
3791e9f7eabcSmrgelse
3792e9f7eabcSmrg  CC="$ac_cv_prog_CC"
3793a73423d7Smrgfi
3794a73423d7Smrg
3795a73423d7Smrgfi
3796a73423d7Smrg
3797a73423d7Smrg
3798e9f7eabcSmrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799e9f7eabcSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3800e9f7eabcSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
3801e9f7eabcSmrgSee \`config.log' for more details" "$LINENO" 5; }
3802e9f7eabcSmrg
3803e9f7eabcSmrg# Provide some information about the compiler.
3804e9f7eabcSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3805e9f7eabcSmrgset X $ac_compile
3806e9f7eabcSmrgac_compiler=$2
3807e9f7eabcSmrgfor ac_option in --version -v -V -qversion -version; do
3808e9f7eabcSmrg  { { ac_try="$ac_compiler $ac_option >&5"
3809e9f7eabcSmrgcase "(($ac_try" in
3810e9f7eabcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811e9f7eabcSmrg  *) ac_try_echo=$ac_try;;
3812e9f7eabcSmrgesac
3813e9f7eabcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814e9f7eabcSmrgprintf "%s\n" "$ac_try_echo"; } >&5
3815e9f7eabcSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3816e9f7eabcSmrg  ac_status=$?
3817e9f7eabcSmrg  if test -s conftest.err; then
3818e9f7eabcSmrg    sed '10a\
3819e9f7eabcSmrg... rest of stderr output deleted ...
3820e9f7eabcSmrg         10q' conftest.err >conftest.er1
3821e9f7eabcSmrg    cat conftest.er1 >&5
3822e9f7eabcSmrg  fi
3823e9f7eabcSmrg  rm -f conftest.er1 conftest.err
3824e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825e9f7eabcSmrg  test $ac_status = 0; }
3826e9f7eabcSmrgdone
3827e9f7eabcSmrg
3828a73423d7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829a73423d7Smrg/* end confdefs.h.  */
3830a73423d7Smrg
3831e9f7eabcSmrgint
3832e9f7eabcSmrgmain (void)
3833a73423d7Smrg{
3834e9f7eabcSmrg
3835e9f7eabcSmrg  ;
3836e9f7eabcSmrg  return 0;
3837a73423d7Smrg}
3838e9f7eabcSmrg_ACEOF
3839e9f7eabcSmrgac_clean_files_save=$ac_clean_files
3840e9f7eabcSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3841e9f7eabcSmrg# Try to create an executable without -o first, disregard a.out.
3842e9f7eabcSmrg# It will help us diagnose broken compilers, and finding out an intuition
3843e9f7eabcSmrg# of exeext.
3844e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3845e9f7eabcSmrgprintf %s "checking whether the C compiler works... " >&6; }
3846e9f7eabcSmrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3847a73423d7Smrg
3848e9f7eabcSmrg# The possible output files:
3849e9f7eabcSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3850a73423d7Smrg
3851e9f7eabcSmrgac_rmfiles=
3852e9f7eabcSmrgfor ac_file in $ac_files
3853e9f7eabcSmrgdo
3854e9f7eabcSmrg  case $ac_file in
3855e9f7eabcSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3856e9f7eabcSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3857e9f7eabcSmrg  esac
3858e9f7eabcSmrgdone
3859e9f7eabcSmrgrm -f $ac_rmfiles
3860a73423d7Smrg
3861e9f7eabcSmrgif { { ac_try="$ac_link_default"
3862e9f7eabcSmrgcase "(($ac_try" in
3863e9f7eabcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864e9f7eabcSmrg  *) ac_try_echo=$ac_try;;
3865e9f7eabcSmrgesac
3866e9f7eabcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867e9f7eabcSmrgprintf "%s\n" "$ac_try_echo"; } >&5
3868e9f7eabcSmrg  (eval "$ac_link_default") 2>&5
3869e9f7eabcSmrg  ac_status=$?
3870e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871e9f7eabcSmrg  test $ac_status = 0; }
3872e9f7eabcSmrgthen :
3873e9f7eabcSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3874e9f7eabcSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3875e9f7eabcSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3876e9f7eabcSmrg# so that the user can short-circuit this test for compilers unknown to
3877e9f7eabcSmrg# Autoconf.
3878e9f7eabcSmrgfor ac_file in $ac_files ''
3879e9f7eabcSmrgdo
3880e9f7eabcSmrg  test -f "$ac_file" || continue
3881e9f7eabcSmrg  case $ac_file in
3882e9f7eabcSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3883e9f7eabcSmrg	;;
3884e9f7eabcSmrg    [ab].out )
3885e9f7eabcSmrg	# We found the default executable, but exeext='' is most
3886e9f7eabcSmrg	# certainly right.
3887e9f7eabcSmrg	break;;
3888e9f7eabcSmrg    *.* )
3889e9f7eabcSmrg	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3890e9f7eabcSmrg	then :; else
3891e9f7eabcSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3892e9f7eabcSmrg	fi
3893e9f7eabcSmrg	# We set ac_cv_exeext here because the later test for it is not
3894e9f7eabcSmrg	# safe: cross compilers may not add the suffix if given an `-o'
3895e9f7eabcSmrg	# argument, so we may need to know it at that point already.
3896e9f7eabcSmrg	# Even if this section looks crufty: it has the advantage of
3897e9f7eabcSmrg	# actually working.
3898e9f7eabcSmrg	break;;
3899e9f7eabcSmrg    * )
3900e9f7eabcSmrg	break;;
3901e9f7eabcSmrg  esac
3902e9f7eabcSmrgdone
3903e9f7eabcSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3904a73423d7Smrg
3905e9f7eabcSmrgelse $as_nop
3906e9f7eabcSmrg  ac_file=''
3907e9f7eabcSmrgfi
3908e9f7eabcSmrgif test -z "$ac_file"
3909e9f7eabcSmrgthen :
3910e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911e9f7eabcSmrgprintf "%s\n" "no" >&6; }
3912e9f7eabcSmrgprintf "%s\n" "$as_me: failed program was:" >&5
3913e9f7eabcSmrgsed 's/^/| /' conftest.$ac_ext >&5
3914a73423d7Smrg
3915e9f7eabcSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916e9f7eabcSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3917e9f7eabcSmrgas_fn_error 77 "C compiler cannot create executables
3918e9f7eabcSmrgSee \`config.log' for more details" "$LINENO" 5; }
3919e9f7eabcSmrgelse $as_nop
3920e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3921e9f7eabcSmrgprintf "%s\n" "yes" >&6; }
3922e9f7eabcSmrgfi
3923e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3924e9f7eabcSmrgprintf %s "checking for C compiler default output file name... " >&6; }
3925e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3926e9f7eabcSmrgprintf "%s\n" "$ac_file" >&6; }
3927e9f7eabcSmrgac_exeext=$ac_cv_exeext
3928a73423d7Smrg
3929e9f7eabcSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3930e9f7eabcSmrgac_clean_files=$ac_clean_files_save
3931e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3932e9f7eabcSmrgprintf %s "checking for suffix of executables... " >&6; }
3933e9f7eabcSmrgif { { ac_try="$ac_link"
3934e9f7eabcSmrgcase "(($ac_try" in
3935e9f7eabcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936e9f7eabcSmrg  *) ac_try_echo=$ac_try;;
3937e9f7eabcSmrgesac
3938e9f7eabcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939e9f7eabcSmrgprintf "%s\n" "$ac_try_echo"; } >&5
3940e9f7eabcSmrg  (eval "$ac_link") 2>&5
3941e9f7eabcSmrg  ac_status=$?
3942e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3943e9f7eabcSmrg  test $ac_status = 0; }
3944e9f7eabcSmrgthen :
3945e9f7eabcSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3946e9f7eabcSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3947e9f7eabcSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3948e9f7eabcSmrg# `rm'.
3949e9f7eabcSmrgfor ac_file in conftest.exe conftest conftest.*; do
3950e9f7eabcSmrg  test -f "$ac_file" || continue
3951e9f7eabcSmrg  case $ac_file in
3952e9f7eabcSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3953e9f7eabcSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3954e9f7eabcSmrg	  break;;
3955e9f7eabcSmrg    * ) break;;
3956e9f7eabcSmrg  esac
3957e9f7eabcSmrgdone
3958e9f7eabcSmrgelse $as_nop
3959e9f7eabcSmrg  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3960e9f7eabcSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3961e9f7eabcSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3962e9f7eabcSmrgSee \`config.log' for more details" "$LINENO" 5; }
3963e9f7eabcSmrgfi
3964e9f7eabcSmrgrm -f conftest conftest$ac_cv_exeext
3965e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3966e9f7eabcSmrgprintf "%s\n" "$ac_cv_exeext" >&6; }
3967e9f7eabcSmrg
3968e9f7eabcSmrgrm -f conftest.$ac_ext
3969e9f7eabcSmrgEXEEXT=$ac_cv_exeext
3970e9f7eabcSmrgac_exeext=$EXEEXT
3971e9f7eabcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972e9f7eabcSmrg/* end confdefs.h.  */
3973e9f7eabcSmrg#include <stdio.h>
3974e9f7eabcSmrgint
3975e9f7eabcSmrgmain (void)
3976a73423d7Smrg{
3977e9f7eabcSmrgFILE *f = fopen ("conftest.out", "w");
3978e9f7eabcSmrg return ferror (f) || fclose (f) != 0;
3979a73423d7Smrg
3980e9f7eabcSmrg  ;
3981e9f7eabcSmrg  return 0;
3982e9f7eabcSmrg}
3983e9f7eabcSmrg_ACEOF
3984e9f7eabcSmrgac_clean_files="$ac_clean_files conftest.out"
3985e9f7eabcSmrg# Check that the compiler produces executables we can run.  If not, either
3986e9f7eabcSmrg# the compiler is broken, or we cross compile.
3987e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3988e9f7eabcSmrgprintf %s "checking whether we are cross compiling... " >&6; }
3989e9f7eabcSmrgif test "$cross_compiling" != yes; then
3990e9f7eabcSmrg  { { ac_try="$ac_link"
3991e9f7eabcSmrgcase "(($ac_try" in
3992e9f7eabcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993e9f7eabcSmrg  *) ac_try_echo=$ac_try;;
3994e9f7eabcSmrgesac
3995e9f7eabcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3996e9f7eabcSmrgprintf "%s\n" "$ac_try_echo"; } >&5
3997e9f7eabcSmrg  (eval "$ac_link") 2>&5
3998e9f7eabcSmrg  ac_status=$?
3999e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4000e9f7eabcSmrg  test $ac_status = 0; }
4001e9f7eabcSmrg  if { ac_try='./conftest$ac_cv_exeext'
4002e9f7eabcSmrg  { { case "(($ac_try" in
4003e9f7eabcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004e9f7eabcSmrg  *) ac_try_echo=$ac_try;;
4005e9f7eabcSmrgesac
4006e9f7eabcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007e9f7eabcSmrgprintf "%s\n" "$ac_try_echo"; } >&5
4008e9f7eabcSmrg  (eval "$ac_try") 2>&5
4009e9f7eabcSmrg  ac_status=$?
4010e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011e9f7eabcSmrg  test $ac_status = 0; }; }; then
4012e9f7eabcSmrg    cross_compiling=no
4013e9f7eabcSmrg  else
4014e9f7eabcSmrg    if test "$cross_compiling" = maybe; then
4015e9f7eabcSmrg	cross_compiling=yes
4016e9f7eabcSmrg    else
4017e9f7eabcSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4018e9f7eabcSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4019e9f7eabcSmrgas_fn_error 77 "cannot run C compiled programs.
4020e9f7eabcSmrgIf you meant to cross compile, use \`--host'.
4021e9f7eabcSmrgSee \`config.log' for more details" "$LINENO" 5; }
4022e9f7eabcSmrg    fi
4023e9f7eabcSmrg  fi
4024e9f7eabcSmrgfi
4025e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4026e9f7eabcSmrgprintf "%s\n" "$cross_compiling" >&6; }
4027a73423d7Smrg
4028e9f7eabcSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4029e9f7eabcSmrgac_clean_files=$ac_clean_files_save
4030e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4031e9f7eabcSmrgprintf %s "checking for suffix of object files... " >&6; }
4032e9f7eabcSmrgif test ${ac_cv_objext+y}
4033e9f7eabcSmrgthen :
4034e9f7eabcSmrg  printf %s "(cached) " >&6
4035e9f7eabcSmrgelse $as_nop
4036e9f7eabcSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037e9f7eabcSmrg/* end confdefs.h.  */
4038a73423d7Smrg
4039a73423d7Smrgint
4040e9f7eabcSmrgmain (void)
4041a73423d7Smrg{
4042a73423d7Smrg
4043a73423d7Smrg  ;
4044a73423d7Smrg  return 0;
4045a73423d7Smrg}
4046a73423d7Smrg_ACEOF
4047e9f7eabcSmrgrm -f conftest.o conftest.obj
4048e9f7eabcSmrgif { { ac_try="$ac_compile"
4049e9f7eabcSmrgcase "(($ac_try" in
4050e9f7eabcSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051e9f7eabcSmrg  *) ac_try_echo=$ac_try;;
4052e9f7eabcSmrgesac
4053e9f7eabcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054e9f7eabcSmrgprintf "%s\n" "$ac_try_echo"; } >&5
4055e9f7eabcSmrg  (eval "$ac_compile") 2>&5
4056e9f7eabcSmrg  ac_status=$?
4057e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058e9f7eabcSmrg  test $ac_status = 0; }
4059e9f7eabcSmrgthen :
4060e9f7eabcSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
4061e9f7eabcSmrg  test -f "$ac_file" || continue;
4062e9f7eabcSmrg  case $ac_file in
4063e9f7eabcSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4064e9f7eabcSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4065e9f7eabcSmrg       break;;
4066e9f7eabcSmrg  esac
4067a73423d7Smrgdone
4068e9f7eabcSmrgelse $as_nop
4069e9f7eabcSmrg  printf "%s\n" "$as_me: failed program was:" >&5
4070e9f7eabcSmrgsed 's/^/| /' conftest.$ac_ext >&5
4071a73423d7Smrg
4072e9f7eabcSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4073e9f7eabcSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4074e9f7eabcSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
4075e9f7eabcSmrgSee \`config.log' for more details" "$LINENO" 5; }
4076a73423d7Smrgfi
4077e9f7eabcSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
4078a73423d7Smrgfi
4079e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4080e9f7eabcSmrgprintf "%s\n" "$ac_cv_objext" >&6; }
4081e9f7eabcSmrgOBJEXT=$ac_cv_objext
4082e9f7eabcSmrgac_objext=$OBJEXT
4083e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4084e9f7eabcSmrgprintf %s "checking whether the compiler supports GNU C... " >&6; }
4085e9f7eabcSmrgif test ${ac_cv_c_compiler_gnu+y}
4086e9f7eabcSmrgthen :
4087e9f7eabcSmrg  printf %s "(cached) " >&6
4088e9f7eabcSmrgelse $as_nop
4089a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090a73423d7Smrg/* end confdefs.h.  */
4091a73423d7Smrg
4092e9f7eabcSmrgint
4093e9f7eabcSmrgmain (void)
4094e9f7eabcSmrg{
4095e9f7eabcSmrg#ifndef __GNUC__
4096e9f7eabcSmrg       choke me
4097e9f7eabcSmrg#endif
4098a73423d7Smrg
4099e9f7eabcSmrg  ;
4100e9f7eabcSmrg  return 0;
4101e9f7eabcSmrg}
4102a73423d7Smrg_ACEOF
4103e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
4104e9f7eabcSmrgthen :
4105e9f7eabcSmrg  ac_compiler_gnu=yes
4106e9f7eabcSmrgelse $as_nop
4107e9f7eabcSmrg  ac_compiler_gnu=no
4108a73423d7Smrgfi
4109e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4110e9f7eabcSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
4111a73423d7Smrg
4112a73423d7Smrgfi
4113e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4114e9f7eabcSmrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4115e9f7eabcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4116a73423d7Smrg
4117e9f7eabcSmrgif test $ac_compiler_gnu = yes; then
4118e9f7eabcSmrg  GCC=yes
4119a73423d7Smrgelse
4120e9f7eabcSmrg  GCC=
4121a73423d7Smrgfi
4122e9f7eabcSmrgac_test_CFLAGS=${CFLAGS+y}
4123e9f7eabcSmrgac_save_CFLAGS=$CFLAGS
4124e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4125e9f7eabcSmrgprintf %s "checking whether $CC accepts -g... " >&6; }
4126e9f7eabcSmrgif test ${ac_cv_prog_cc_g+y}
4127e9f7eabcSmrgthen :
4128e9f7eabcSmrg  printf %s "(cached) " >&6
4129e9f7eabcSmrgelse $as_nop
4130e9f7eabcSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
4131e9f7eabcSmrg   ac_c_werror_flag=yes
4132e9f7eabcSmrg   ac_cv_prog_cc_g=no
4133e9f7eabcSmrg   CFLAGS="-g"
4134e9f7eabcSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135a73423d7Smrg/* end confdefs.h.  */
4136a73423d7Smrg
4137e9f7eabcSmrgint
4138e9f7eabcSmrgmain (void)
4139e9f7eabcSmrg{
4140a73423d7Smrg
4141e9f7eabcSmrg  ;
4142e9f7eabcSmrg  return 0;
4143e9f7eabcSmrg}
4144a73423d7Smrg_ACEOF
4145e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
4146e9f7eabcSmrgthen :
4147e9f7eabcSmrg  ac_cv_prog_cc_g=yes
4148e9f7eabcSmrgelse $as_nop
4149e9f7eabcSmrg  CFLAGS=""
4150e9f7eabcSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151e9f7eabcSmrg/* end confdefs.h.  */
4152a73423d7Smrg
4153e9f7eabcSmrgint
4154e9f7eabcSmrgmain (void)
4155e9f7eabcSmrg{
4156a73423d7Smrg
4157e9f7eabcSmrg  ;
4158e9f7eabcSmrg  return 0;
4159e9f7eabcSmrg}
4160e9f7eabcSmrg_ACEOF
4161e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
4162e9f7eabcSmrgthen :
4163a73423d7Smrg
4164e9f7eabcSmrgelse $as_nop
4165e9f7eabcSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
4166e9f7eabcSmrg	 CFLAGS="-g"
4167e9f7eabcSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168e9f7eabcSmrg/* end confdefs.h.  */
4169a73423d7Smrg
4170e9f7eabcSmrgint
4171e9f7eabcSmrgmain (void)
4172e9f7eabcSmrg{
4173a73423d7Smrg
4174e9f7eabcSmrg  ;
4175e9f7eabcSmrg  return 0;
4176e9f7eabcSmrg}
4177e9f7eabcSmrg_ACEOF
4178e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
4179e9f7eabcSmrgthen :
4180e9f7eabcSmrg  ac_cv_prog_cc_g=yes
4181e9f7eabcSmrgfi
4182e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4183e9f7eabcSmrgfi
4184e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4185e9f7eabcSmrgfi
4186e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4187e9f7eabcSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
4188e9f7eabcSmrgfi
4189e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4190e9f7eabcSmrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4191e9f7eabcSmrgif test $ac_test_CFLAGS; then
4192e9f7eabcSmrg  CFLAGS=$ac_save_CFLAGS
4193e9f7eabcSmrgelif test $ac_cv_prog_cc_g = yes; then
4194e9f7eabcSmrg  if test "$GCC" = yes; then
4195e9f7eabcSmrg    CFLAGS="-g -O2"
4196e9f7eabcSmrg  else
4197e9f7eabcSmrg    CFLAGS="-g"
4198e9f7eabcSmrg  fi
4199a73423d7Smrgelse
4200e9f7eabcSmrg  if test "$GCC" = yes; then
4201e9f7eabcSmrg    CFLAGS="-O2"
4202e9f7eabcSmrg  else
4203e9f7eabcSmrg    CFLAGS=
4204e9f7eabcSmrg  fi
4205e9f7eabcSmrgfi
4206e9f7eabcSmrgac_prog_cc_stdc=no
4207e9f7eabcSmrgif test x$ac_prog_cc_stdc = xno
4208e9f7eabcSmrgthen :
4209e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4210e9f7eabcSmrgprintf %s "checking for $CC option to enable C11 features... " >&6; }
4211e9f7eabcSmrgif test ${ac_cv_prog_cc_c11+y}
4212e9f7eabcSmrgthen :
4213e9f7eabcSmrg  printf %s "(cached) " >&6
4214e9f7eabcSmrgelse $as_nop
4215e9f7eabcSmrg  ac_cv_prog_cc_c11=no
4216e9f7eabcSmrgac_save_CC=$CC
4217e9f7eabcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218e9f7eabcSmrg/* end confdefs.h.  */
4219e9f7eabcSmrg$ac_c_conftest_c11_program
4220e9f7eabcSmrg_ACEOF
4221e9f7eabcSmrgfor ac_arg in '' -std=gnu11
4222a73423d7Smrgdo
4223e9f7eabcSmrg  CC="$ac_save_CC $ac_arg"
4224e9f7eabcSmrg  if ac_fn_c_try_compile "$LINENO"
4225e9f7eabcSmrgthen :
4226e9f7eabcSmrg  ac_cv_prog_cc_c11=$ac_arg
4227e9f7eabcSmrgfi
4228e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4229e9f7eabcSmrg  test "x$ac_cv_prog_cc_c11" != "xno" && break
4230e9f7eabcSmrgdone
4231e9f7eabcSmrgrm -f conftest.$ac_ext
4232e9f7eabcSmrgCC=$ac_save_CC
4233e9f7eabcSmrgfi
4234a73423d7Smrg
4235e9f7eabcSmrgif test "x$ac_cv_prog_cc_c11" = xno
4236e9f7eabcSmrgthen :
4237e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4238e9f7eabcSmrgprintf "%s\n" "unsupported" >&6; }
4239e9f7eabcSmrgelse $as_nop
4240e9f7eabcSmrg  if test "x$ac_cv_prog_cc_c11" = x
4241e9f7eabcSmrgthen :
4242e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4243e9f7eabcSmrgprintf "%s\n" "none needed" >&6; }
4244e9f7eabcSmrgelse $as_nop
4245e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4246e9f7eabcSmrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4247e9f7eabcSmrg     CC="$CC $ac_cv_prog_cc_c11"
4248e9f7eabcSmrgfi
4249e9f7eabcSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4250e9f7eabcSmrg  ac_prog_cc_stdc=c11
4251e9f7eabcSmrgfi
4252e9f7eabcSmrgfi
4253e9f7eabcSmrgif test x$ac_prog_cc_stdc = xno
4254e9f7eabcSmrgthen :
4255e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4256e9f7eabcSmrgprintf %s "checking for $CC option to enable C99 features... " >&6; }
4257e9f7eabcSmrgif test ${ac_cv_prog_cc_c99+y}
4258e9f7eabcSmrgthen :
4259e9f7eabcSmrg  printf %s "(cached) " >&6
4260e9f7eabcSmrgelse $as_nop
4261e9f7eabcSmrg  ac_cv_prog_cc_c99=no
4262e9f7eabcSmrgac_save_CC=$CC
4263e9f7eabcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264e9f7eabcSmrg/* end confdefs.h.  */
4265e9f7eabcSmrg$ac_c_conftest_c99_program
4266e9f7eabcSmrg_ACEOF
4267e9f7eabcSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4268e9f7eabcSmrgdo
4269e9f7eabcSmrg  CC="$ac_save_CC $ac_arg"
4270e9f7eabcSmrg  if ac_fn_c_try_compile "$LINENO"
4271e9f7eabcSmrgthen :
4272e9f7eabcSmrg  ac_cv_prog_cc_c99=$ac_arg
4273a73423d7Smrgfi
4274e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4275e9f7eabcSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
4276e9f7eabcSmrgdone
4277e9f7eabcSmrgrm -f conftest.$ac_ext
4278e9f7eabcSmrgCC=$ac_save_CC
4279a73423d7Smrgfi
4280a73423d7Smrg
4281e9f7eabcSmrgif test "x$ac_cv_prog_cc_c99" = xno
4282e9f7eabcSmrgthen :
4283e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4284e9f7eabcSmrgprintf "%s\n" "unsupported" >&6; }
4285e9f7eabcSmrgelse $as_nop
4286e9f7eabcSmrg  if test "x$ac_cv_prog_cc_c99" = x
4287e9f7eabcSmrgthen :
4288e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4289e9f7eabcSmrgprintf "%s\n" "none needed" >&6; }
4290e9f7eabcSmrgelse $as_nop
4291e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4292e9f7eabcSmrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4293e9f7eabcSmrg     CC="$CC $ac_cv_prog_cc_c99"
4294e9f7eabcSmrgfi
4295e9f7eabcSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4296e9f7eabcSmrg  ac_prog_cc_stdc=c99
4297e9f7eabcSmrgfi
4298e9f7eabcSmrgfi
4299e9f7eabcSmrgif test x$ac_prog_cc_stdc = xno
4300e9f7eabcSmrgthen :
4301e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4302e9f7eabcSmrgprintf %s "checking for $CC option to enable C89 features... " >&6; }
4303e9f7eabcSmrgif test ${ac_cv_prog_cc_c89+y}
4304e9f7eabcSmrgthen :
4305e9f7eabcSmrg  printf %s "(cached) " >&6
4306e9f7eabcSmrgelse $as_nop
4307e9f7eabcSmrg  ac_cv_prog_cc_c89=no
4308e9f7eabcSmrgac_save_CC=$CC
4309e9f7eabcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310e9f7eabcSmrg/* end confdefs.h.  */
4311e9f7eabcSmrg$ac_c_conftest_c89_program
4312e9f7eabcSmrg_ACEOF
4313e9f7eabcSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4314a73423d7Smrgdo
4315e9f7eabcSmrg  CC="$ac_save_CC $ac_arg"
4316e9f7eabcSmrg  if ac_fn_c_try_compile "$LINENO"
4317e9f7eabcSmrgthen :
4318e9f7eabcSmrg  ac_cv_prog_cc_c89=$ac_arg
4319e9f7eabcSmrgfi
4320e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4321e9f7eabcSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
4322e9f7eabcSmrgdone
4323e9f7eabcSmrgrm -f conftest.$ac_ext
4324e9f7eabcSmrgCC=$ac_save_CC
4325a73423d7Smrgfi
4326a73423d7Smrg
4327e9f7eabcSmrgif test "x$ac_cv_prog_cc_c89" = xno
4328e9f7eabcSmrgthen :
4329e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4330e9f7eabcSmrgprintf "%s\n" "unsupported" >&6; }
4331e9f7eabcSmrgelse $as_nop
4332e9f7eabcSmrg  if test "x$ac_cv_prog_cc_c89" = x
4333e9f7eabcSmrgthen :
4334e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4335e9f7eabcSmrgprintf "%s\n" "none needed" >&6; }
4336e9f7eabcSmrgelse $as_nop
4337e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4338e9f7eabcSmrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4339e9f7eabcSmrg     CC="$CC $ac_cv_prog_cc_c89"
4340e9f7eabcSmrgfi
4341e9f7eabcSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4342e9f7eabcSmrg  ac_prog_cc_stdc=c89
4343e9f7eabcSmrgfi
4344a73423d7Smrgfi
4345a73423d7Smrg
4346e9f7eabcSmrgac_ext=c
4347e9f7eabcSmrgac_cpp='$CPP $CPPFLAGS'
4348e9f7eabcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349e9f7eabcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350e9f7eabcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4351a73423d7Smrg
4352e9f7eabcSmrg
4353e9f7eabcSmrg  ac_ext=c
4354e9f7eabcSmrgac_cpp='$CPP $CPPFLAGS'
4355e9f7eabcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4356e9f7eabcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4357e9f7eabcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4358e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4359e9f7eabcSmrgprintf %s "checking whether $CC understands -c and -o together... " >&6; }
4360e9f7eabcSmrgif test ${am_cv_prog_cc_c_o+y}
4361e9f7eabcSmrgthen :
4362e9f7eabcSmrg  printf %s "(cached) " >&6
4363e9f7eabcSmrgelse $as_nop
4364a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365a73423d7Smrg/* end confdefs.h.  */
4366a73423d7Smrg
4367a73423d7Smrgint
4368e9f7eabcSmrgmain (void)
4369a73423d7Smrg{
4370a73423d7Smrg
4371a73423d7Smrg  ;
4372a73423d7Smrg  return 0;
4373a73423d7Smrg}
4374a73423d7Smrg_ACEOF
4375e9f7eabcSmrg  # Make sure it works both with $CC and with simple cc.
4376e9f7eabcSmrg  # Following AC_PROG_CC_C_O, we do the test twice because some
4377e9f7eabcSmrg  # compilers refuse to overwrite an existing .o file with -o,
4378e9f7eabcSmrg  # though they will create one.
4379e9f7eabcSmrg  am_cv_prog_cc_c_o=yes
4380e9f7eabcSmrg  for am_i in 1 2; do
4381e9f7eabcSmrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4382e9f7eabcSmrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4383e9f7eabcSmrg   ac_status=$?
4384e9f7eabcSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385e9f7eabcSmrg   (exit $ac_status); } \
4386e9f7eabcSmrg         && test -f conftest2.$ac_objext; then
4387e9f7eabcSmrg      : OK
4388e9f7eabcSmrg    else
4389e9f7eabcSmrg      am_cv_prog_cc_c_o=no
4390e9f7eabcSmrg      break
4391e9f7eabcSmrg    fi
4392e9f7eabcSmrg  done
4393e9f7eabcSmrg  rm -f core conftest*
4394e9f7eabcSmrg  unset am_i
4395e9f7eabcSmrgfi
4396e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4397e9f7eabcSmrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4398e9f7eabcSmrgif test "$am_cv_prog_cc_c_o" != yes; then
4399e9f7eabcSmrg   # Losing compiler, so override with the script.
4400e9f7eabcSmrg   # FIXME: It is wrong to rewrite CC.
4401e9f7eabcSmrg   # But if we don't then we get into trouble of one sort or another.
4402e9f7eabcSmrg   # A longer-term fix would be to have automake use am__CC in this case,
4403e9f7eabcSmrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4404e9f7eabcSmrg   CC="$am_aux_dir/compile $CC"
4405a73423d7Smrgfi
4406e9f7eabcSmrgac_ext=c
4407e9f7eabcSmrgac_cpp='$CPP $CPPFLAGS'
4408e9f7eabcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4409e9f7eabcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4410e9f7eabcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4411a73423d7Smrg
4412a73423d7Smrg
4413e9f7eabcSmrgdepcc="$CC"   am_compiler_list=
4414a73423d7Smrg
4415e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4416e9f7eabcSmrgprintf %s "checking dependency style of $depcc... " >&6; }
4417e9f7eabcSmrgif test ${am_cv_CC_dependencies_compiler_type+y}
4418e9f7eabcSmrgthen :
4419e9f7eabcSmrg  printf %s "(cached) " >&6
4420e9f7eabcSmrgelse $as_nop
4421e9f7eabcSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4422e9f7eabcSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
4423e9f7eabcSmrg  # making bogus files that we don't know about and never remove.  For
4424e9f7eabcSmrg  # instance it was reported that on HP-UX the gcc test will end up
4425e9f7eabcSmrg  # making a dummy file named 'D' -- because '-MD' means "put the output
4426e9f7eabcSmrg  # in D".
4427e9f7eabcSmrg  rm -rf conftest.dir
4428e9f7eabcSmrg  mkdir conftest.dir
4429e9f7eabcSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
4430e9f7eabcSmrg  # using a relative directory.
4431e9f7eabcSmrg  cp "$am_depcomp" conftest.dir
4432e9f7eabcSmrg  cd conftest.dir
4433e9f7eabcSmrg  # We will build objects and dependencies in a subdirectory because
4434e9f7eabcSmrg  # it helps to detect inapplicable dependency modes.  For instance
4435e9f7eabcSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
4436e9f7eabcSmrg  # side effect of compilation, but ICC will put the dependencies in
4437e9f7eabcSmrg  # the current directory while Tru64 will put them in the object
4438e9f7eabcSmrg  # directory.
4439e9f7eabcSmrg  mkdir sub
4440a73423d7Smrg
4441e9f7eabcSmrg  am_cv_CC_dependencies_compiler_type=none
4442e9f7eabcSmrg  if test "$am_compiler_list" = ""; then
4443e9f7eabcSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4444e9f7eabcSmrg  fi
4445e9f7eabcSmrg  am__universal=false
4446e9f7eabcSmrg  case " $depcc " in #(
4447e9f7eabcSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4448e9f7eabcSmrg     esac
4449a73423d7Smrg
4450e9f7eabcSmrg  for depmode in $am_compiler_list; do
4451e9f7eabcSmrg    # Setup a source with many dependencies, because some compilers
4452e9f7eabcSmrg    # like to wrap large dependency lists on column 80 (with \), and
4453e9f7eabcSmrg    # we should not choose a depcomp mode which is confused by this.
4454e9f7eabcSmrg    #
4455e9f7eabcSmrg    # We need to recreate these files for each test, as the compiler may
4456e9f7eabcSmrg    # overwrite some of them when testing with obscure command lines.
4457e9f7eabcSmrg    # This happens at least with the AIX C compiler.
4458e9f7eabcSmrg    : > sub/conftest.c
4459e9f7eabcSmrg    for i in 1 2 3 4 5 6; do
4460e9f7eabcSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4461e9f7eabcSmrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4462e9f7eabcSmrg      # Solaris 10 /bin/sh.
4463e9f7eabcSmrg      echo '/* dummy */' > sub/conftst$i.h
4464e9f7eabcSmrg    done
4465e9f7eabcSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4466a73423d7Smrg
4467e9f7eabcSmrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4468e9f7eabcSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
4469e9f7eabcSmrg    # handle '-M -o', and we need to detect this.  Also, some Intel
4470e9f7eabcSmrg    # versions had trouble with output in subdirs.
4471e9f7eabcSmrg    am__obj=sub/conftest.${OBJEXT-o}
4472e9f7eabcSmrg    am__minus_obj="-o $am__obj"
4473e9f7eabcSmrg    case $depmode in
4474e9f7eabcSmrg    gcc)
4475e9f7eabcSmrg      # This depmode causes a compiler race in universal mode.
4476e9f7eabcSmrg      test "$am__universal" = false || continue
4477e9f7eabcSmrg      ;;
4478e9f7eabcSmrg    nosideeffect)
4479e9f7eabcSmrg      # After this tag, mechanisms are not by side-effect, so they'll
4480e9f7eabcSmrg      # only be used when explicitly requested.
4481e9f7eabcSmrg      if test "x$enable_dependency_tracking" = xyes; then
4482e9f7eabcSmrg	continue
4483e9f7eabcSmrg      else
4484e9f7eabcSmrg	break
4485e9f7eabcSmrg      fi
4486e9f7eabcSmrg      ;;
4487e9f7eabcSmrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4488e9f7eabcSmrg      # This compiler won't grok '-c -o', but also, the minuso test has
4489e9f7eabcSmrg      # not run yet.  These depmodes are late enough in the game, and
4490e9f7eabcSmrg      # so weak that their functioning should not be impacted.
4491e9f7eabcSmrg      am__obj=conftest.${OBJEXT-o}
4492e9f7eabcSmrg      am__minus_obj=
4493e9f7eabcSmrg      ;;
4494e9f7eabcSmrg    none) break ;;
4495e9f7eabcSmrg    esac
4496e9f7eabcSmrg    if depmode=$depmode \
4497e9f7eabcSmrg       source=sub/conftest.c object=$am__obj \
4498e9f7eabcSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4499e9f7eabcSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4500e9f7eabcSmrg         >/dev/null 2>conftest.err &&
4501e9f7eabcSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4502e9f7eabcSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4503e9f7eabcSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4504e9f7eabcSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4505e9f7eabcSmrg      # icc doesn't choke on unknown options, it will just issue warnings
4506e9f7eabcSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
4507e9f7eabcSmrg      # that says an option was ignored or not supported.
4508e9f7eabcSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
4509e9f7eabcSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
4510e9f7eabcSmrg      # The diagnosis changed in icc 8.0:
4511e9f7eabcSmrg      #   icc: Command line remark: option '-MP' not supported
4512e9f7eabcSmrg      if (grep 'ignoring option' conftest.err ||
4513e9f7eabcSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4514e9f7eabcSmrg        am_cv_CC_dependencies_compiler_type=$depmode
4515e9f7eabcSmrg        break
4516e9f7eabcSmrg      fi
4517e9f7eabcSmrg    fi
4518e9f7eabcSmrg  done
4519a73423d7Smrg
4520e9f7eabcSmrg  cd ..
4521e9f7eabcSmrg  rm -rf conftest.dir
4522a73423d7Smrgelse
4523e9f7eabcSmrg  am_cv_CC_dependencies_compiler_type=none
4524a73423d7Smrgfi
4525a73423d7Smrg
4526a73423d7Smrgfi
4527e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4528e9f7eabcSmrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4529e9f7eabcSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4530a73423d7Smrg
4531e9f7eabcSmrg if
4532e9f7eabcSmrg  test "x$enable_dependency_tracking" != xno \
4533e9f7eabcSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4534e9f7eabcSmrg  am__fastdepCC_TRUE=
4535e9f7eabcSmrg  am__fastdepCC_FALSE='#'
4536a73423d7Smrgelse
4537e9f7eabcSmrg  am__fastdepCC_TRUE='#'
4538e9f7eabcSmrg  am__fastdepCC_FALSE=
4539e9f7eabcSmrgfi
4540e9f7eabcSmrg
4541e9f7eabcSmrg
4542e9f7eabcSmrg
4543e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4544e9f7eabcSmrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4545e9f7eabcSmrgif test ${ac_cv_c_undeclared_builtin_options+y}
4546e9f7eabcSmrgthen :
4547e9f7eabcSmrg  printf %s "(cached) " >&6
4548e9f7eabcSmrgelse $as_nop
4549e9f7eabcSmrg  ac_save_CFLAGS=$CFLAGS
4550e9f7eabcSmrg   ac_cv_c_undeclared_builtin_options='cannot detect'
4551e9f7eabcSmrg   for ac_arg in '' -fno-builtin; do
4552e9f7eabcSmrg     CFLAGS="$ac_save_CFLAGS $ac_arg"
4553e9f7eabcSmrg     # This test program should *not* compile successfully.
4554e9f7eabcSmrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555a73423d7Smrg/* end confdefs.h.  */
4556a73423d7Smrg
4557a73423d7Smrgint
4558e9f7eabcSmrgmain (void)
4559e9f7eabcSmrg{
4560e9f7eabcSmrg(void) strchr;
4561e9f7eabcSmrg  ;
4562e9f7eabcSmrg  return 0;
4563e9f7eabcSmrg}
4564e9f7eabcSmrg_ACEOF
4565e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
4566e9f7eabcSmrgthen :
4567e9f7eabcSmrg
4568e9f7eabcSmrgelse $as_nop
4569e9f7eabcSmrg  # This test program should compile successfully.
4570e9f7eabcSmrg        # No library function is consistently available on
4571e9f7eabcSmrg        # freestanding implementations, so test against a dummy
4572e9f7eabcSmrg        # declaration.  Include always-available headers on the
4573e9f7eabcSmrg        # off chance that they somehow elicit warnings.
4574e9f7eabcSmrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575e9f7eabcSmrg/* end confdefs.h.  */
4576e9f7eabcSmrg#include <float.h>
4577e9f7eabcSmrg#include <limits.h>
4578e9f7eabcSmrg#include <stdarg.h>
4579e9f7eabcSmrg#include <stddef.h>
4580e9f7eabcSmrgextern void ac_decl (int, char *);
4581e9f7eabcSmrg
4582e9f7eabcSmrgint
4583e9f7eabcSmrgmain (void)
4584a73423d7Smrg{
4585e9f7eabcSmrg(void) ac_decl (0, (char *) 0);
4586e9f7eabcSmrg  (void) ac_decl;
4587e9f7eabcSmrg
4588e9f7eabcSmrg  ;
4589a73423d7Smrg  return 0;
4590a73423d7Smrg}
4591a73423d7Smrg_ACEOF
4592e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
4593e9f7eabcSmrgthen :
4594e9f7eabcSmrg  if test x"$ac_arg" = x
4595e9f7eabcSmrgthen :
4596e9f7eabcSmrg  ac_cv_c_undeclared_builtin_options='none needed'
4597e9f7eabcSmrgelse $as_nop
4598e9f7eabcSmrg  ac_cv_c_undeclared_builtin_options=$ac_arg
4599a73423d7Smrgfi
4600e9f7eabcSmrg          break
4601a73423d7Smrgfi
4602e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4603a73423d7Smrgfi
4604e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4605e9f7eabcSmrg    done
4606e9f7eabcSmrg    CFLAGS=$ac_save_CFLAGS
4607e9f7eabcSmrg
4608e9f7eabcSmrgfi
4609e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4610e9f7eabcSmrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4611e9f7eabcSmrg  case $ac_cv_c_undeclared_builtin_options in #(
4612e9f7eabcSmrg  'cannot detect') :
4613e9f7eabcSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4614e9f7eabcSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4615e9f7eabcSmrgas_fn_error $? "cannot make $CC report undeclared builtins
4616e9f7eabcSmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #(
4617e9f7eabcSmrg  'none needed') :
4618e9f7eabcSmrg    ac_c_undeclared_builtin_options='' ;; #(
4619e9f7eabcSmrg  *) :
4620e9f7eabcSmrg    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4621e9f7eabcSmrgesac
4622a73423d7Smrg
4623e9f7eabcSmrgac_header= ac_cache=
4624e9f7eabcSmrgfor ac_item in $ac_header_c_list
4625e9f7eabcSmrgdo
4626e9f7eabcSmrg  if test $ac_cache; then
4627e9f7eabcSmrg    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4628e9f7eabcSmrg    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4629e9f7eabcSmrg      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4630e9f7eabcSmrg    fi
4631e9f7eabcSmrg    ac_header= ac_cache=
4632e9f7eabcSmrg  elif test $ac_header; then
4633e9f7eabcSmrg    ac_cache=$ac_item
4634e9f7eabcSmrg  else
4635e9f7eabcSmrg    ac_header=$ac_item
4636e9f7eabcSmrg  fi
4637e9f7eabcSmrgdone
4638a73423d7Smrg
4639a73423d7Smrg
4640a73423d7Smrg
4641a73423d7Smrg
4642a73423d7Smrg
4643a73423d7Smrg
4644a73423d7Smrg
4645a73423d7Smrg
4646e9f7eabcSmrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4647e9f7eabcSmrgthen :
4648e9f7eabcSmrg
4649e9f7eabcSmrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4650e9f7eabcSmrg
4651e9f7eabcSmrgfi
4652e9f7eabcSmrg
4653e9f7eabcSmrg
4654a73423d7Smrg
4655a73423d7Smrg
4656e9f7eabcSmrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4657e9f7eabcSmrgif test "x$ac_cv_have_decl___clang__" = xyes
4658e9f7eabcSmrgthen :
4659a73423d7Smrg  CLANGCC="yes"
4660e9f7eabcSmrgelse $as_nop
4661a73423d7Smrg  CLANGCC="no"
4662a73423d7Smrgfi
4663e9f7eabcSmrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4664e9f7eabcSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4665e9f7eabcSmrgthen :
4666a73423d7Smrg  INTELCC="yes"
4667e9f7eabcSmrgelse $as_nop
4668a73423d7Smrg  INTELCC="no"
4669a73423d7Smrgfi
4670e9f7eabcSmrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4671e9f7eabcSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4672e9f7eabcSmrgthen :
4673a73423d7Smrg  SUNCC="yes"
4674e9f7eabcSmrgelse $as_nop
4675a73423d7Smrg  SUNCC="no"
4676a73423d7Smrgfi
4677a73423d7Smrg
4678a73423d7Smrg
4679a73423d7Smrg
4680a73423d7Smrg
4681a73423d7Smrg
4682a73423d7Smrg
4683a73423d7Smrg
4684a73423d7Smrg
4685a73423d7Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4686a73423d7Smrg	if test -n "$ac_tool_prefix"; then
4687a73423d7Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4688a73423d7Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4689e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
4691e9f7eabcSmrgif test ${ac_cv_path_PKG_CONFIG+y}
4692e9f7eabcSmrgthen :
4693e9f7eabcSmrg  printf %s "(cached) " >&6
4694e9f7eabcSmrgelse $as_nop
4695a73423d7Smrg  case $PKG_CONFIG in
4696a73423d7Smrg  [\\/]* | ?:[\\/]*)
4697a73423d7Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4698a73423d7Smrg  ;;
4699a73423d7Smrg  *)
4700a73423d7Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701a73423d7Smrgfor as_dir in $PATH
4702a73423d7Smrgdo
4703a73423d7Smrg  IFS=$as_save_IFS
4704e9f7eabcSmrg  case $as_dir in #(((
4705e9f7eabcSmrg    '') as_dir=./ ;;
4706e9f7eabcSmrg    */) ;;
4707e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
4708e9f7eabcSmrg  esac
4709a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4710e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4711e9f7eabcSmrg    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4712e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4713a73423d7Smrg    break 2
4714a73423d7Smrg  fi
4715a73423d7Smrgdone
4716a73423d7Smrg  done
4717a73423d7SmrgIFS=$as_save_IFS
4718a73423d7Smrg
4719a73423d7Smrg  ;;
4720a73423d7Smrgesac
4721a73423d7Smrgfi
4722a73423d7SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4723a73423d7Smrgif test -n "$PKG_CONFIG"; then
4724e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4725e9f7eabcSmrgprintf "%s\n" "$PKG_CONFIG" >&6; }
4726a73423d7Smrgelse
4727e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728e9f7eabcSmrgprintf "%s\n" "no" >&6; }
4729a73423d7Smrgfi
4730a73423d7Smrg
4731a73423d7Smrg
4732a73423d7Smrgfi
4733a73423d7Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4734a73423d7Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4735a73423d7Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4736a73423d7Smrgset dummy pkg-config; ac_word=$2
4737e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
4739e9f7eabcSmrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4740e9f7eabcSmrgthen :
4741e9f7eabcSmrg  printf %s "(cached) " >&6
4742e9f7eabcSmrgelse $as_nop
4743a73423d7Smrg  case $ac_pt_PKG_CONFIG in
4744a73423d7Smrg  [\\/]* | ?:[\\/]*)
4745a73423d7Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4746a73423d7Smrg  ;;
4747a73423d7Smrg  *)
4748a73423d7Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749a73423d7Smrgfor as_dir in $PATH
4750a73423d7Smrgdo
4751a73423d7Smrg  IFS=$as_save_IFS
4752e9f7eabcSmrg  case $as_dir in #(((
4753e9f7eabcSmrg    '') as_dir=./ ;;
4754e9f7eabcSmrg    */) ;;
4755e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
4756e9f7eabcSmrg  esac
4757a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4758e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4759e9f7eabcSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4760e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4761a73423d7Smrg    break 2
4762a73423d7Smrg  fi
4763a73423d7Smrgdone
4764a73423d7Smrg  done
4765a73423d7SmrgIFS=$as_save_IFS
4766a73423d7Smrg
4767a73423d7Smrg  ;;
4768a73423d7Smrgesac
4769a73423d7Smrgfi
4770a73423d7Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4771a73423d7Smrgif test -n "$ac_pt_PKG_CONFIG"; then
4772e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4773e9f7eabcSmrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4774a73423d7Smrgelse
4775e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776e9f7eabcSmrgprintf "%s\n" "no" >&6; }
4777a73423d7Smrgfi
4778a73423d7Smrg
4779a73423d7Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4780a73423d7Smrg    PKG_CONFIG=""
4781a73423d7Smrg  else
4782a73423d7Smrg    case $cross_compiling:$ac_tool_warned in
4783a73423d7Smrgyes:)
4784e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4785e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4786a73423d7Smrgac_tool_warned=yes ;;
4787a73423d7Smrgesac
4788a73423d7Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4789a73423d7Smrg  fi
4790a73423d7Smrgelse
4791a73423d7Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4792a73423d7Smrgfi
4793a73423d7Smrg
4794a73423d7Smrgfi
4795a73423d7Smrgif test -n "$PKG_CONFIG"; then
4796a73423d7Smrg	_pkg_min_version=0.9.0
4797e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4798e9f7eabcSmrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4799a73423d7Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4800e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4801e9f7eabcSmrgprintf "%s\n" "yes" >&6; }
4802a73423d7Smrg	else
4803e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804e9f7eabcSmrgprintf "%s\n" "no" >&6; }
4805a73423d7Smrg		PKG_CONFIG=""
4806a73423d7Smrg	fi
4807a73423d7Smrgfi
4808a73423d7Smrg
4809e9f7eabcSmrg
4810e9f7eabcSmrg  # Make sure we can run config.sub.
4811e9f7eabcSmrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4812e9f7eabcSmrg  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4813e9f7eabcSmrg
4814e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4815e9f7eabcSmrgprintf %s "checking build system type... " >&6; }
4816e9f7eabcSmrgif test ${ac_cv_build+y}
4817e9f7eabcSmrgthen :
4818e9f7eabcSmrg  printf %s "(cached) " >&6
4819e9f7eabcSmrgelse $as_nop
4820a73423d7Smrg  ac_build_alias=$build_alias
4821a73423d7Smrgtest "x$ac_build_alias" = x &&
4822e9f7eabcSmrg  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4823a73423d7Smrgtest "x$ac_build_alias" = x &&
4824a73423d7Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4825e9f7eabcSmrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4826e9f7eabcSmrg  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4827a73423d7Smrg
4828a73423d7Smrgfi
4829e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4830e9f7eabcSmrgprintf "%s\n" "$ac_cv_build" >&6; }
4831a73423d7Smrgcase $ac_cv_build in
4832a73423d7Smrg*-*-*) ;;
4833a73423d7Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4834a73423d7Smrgesac
4835a73423d7Smrgbuild=$ac_cv_build
4836a73423d7Smrgac_save_IFS=$IFS; IFS='-'
4837a73423d7Smrgset x $ac_cv_build
4838a73423d7Smrgshift
4839a73423d7Smrgbuild_cpu=$1
4840a73423d7Smrgbuild_vendor=$2
4841a73423d7Smrgshift; shift
4842a73423d7Smrg# Remember, the first character of IFS is used to create $*,
4843a73423d7Smrg# except with old shells:
4844a73423d7Smrgbuild_os=$*
4845a73423d7SmrgIFS=$ac_save_IFS
4846a73423d7Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4847a73423d7Smrg
4848a73423d7Smrg
4849e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4850e9f7eabcSmrgprintf %s "checking host system type... " >&6; }
4851e9f7eabcSmrgif test ${ac_cv_host+y}
4852e9f7eabcSmrgthen :
4853e9f7eabcSmrg  printf %s "(cached) " >&6
4854e9f7eabcSmrgelse $as_nop
4855a73423d7Smrg  if test "x$host_alias" = x; then
4856a73423d7Smrg  ac_cv_host=$ac_cv_build
4857a73423d7Smrgelse
4858e9f7eabcSmrg  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4859e9f7eabcSmrg    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4860a73423d7Smrgfi
4861a73423d7Smrg
4862a73423d7Smrgfi
4863e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4864e9f7eabcSmrgprintf "%s\n" "$ac_cv_host" >&6; }
4865a73423d7Smrgcase $ac_cv_host in
4866a73423d7Smrg*-*-*) ;;
4867a73423d7Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4868a73423d7Smrgesac
4869a73423d7Smrghost=$ac_cv_host
4870a73423d7Smrgac_save_IFS=$IFS; IFS='-'
4871a73423d7Smrgset x $ac_cv_host
4872a73423d7Smrgshift
4873a73423d7Smrghost_cpu=$1
4874a73423d7Smrghost_vendor=$2
4875a73423d7Smrgshift; shift
4876a73423d7Smrg# Remember, the first character of IFS is used to create $*,
4877a73423d7Smrg# except with old shells:
4878a73423d7Smrghost_os=$*
4879a73423d7SmrgIFS=$ac_save_IFS
4880a73423d7Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4881a73423d7Smrg
4882a73423d7Smrg
4883e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4884e9f7eabcSmrgprintf %s "checking for a sed that does not truncate output... " >&6; }
4885e9f7eabcSmrgif test ${ac_cv_path_SED+y}
4886e9f7eabcSmrgthen :
4887e9f7eabcSmrg  printf %s "(cached) " >&6
4888e9f7eabcSmrgelse $as_nop
4889a73423d7Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4890a73423d7Smrg     for ac_i in 1 2 3 4 5 6 7; do
4891a73423d7Smrg       ac_script="$ac_script$as_nl$ac_script"
4892a73423d7Smrg     done
4893a73423d7Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4894a73423d7Smrg     { ac_script=; unset ac_script;}
4895a73423d7Smrg     if test -z "$SED"; then
4896a73423d7Smrg  ac_path_SED_found=false
4897a73423d7Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4898a73423d7Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899a73423d7Smrgfor as_dir in $PATH
4900a73423d7Smrgdo
4901a73423d7Smrg  IFS=$as_save_IFS
4902e9f7eabcSmrg  case $as_dir in #(((
4903e9f7eabcSmrg    '') as_dir=./ ;;
4904e9f7eabcSmrg    */) ;;
4905e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
4906e9f7eabcSmrg  esac
4907e9f7eabcSmrg    for ac_prog in sed gsed
4908e9f7eabcSmrg   do
4909a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4910e9f7eabcSmrg      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
49114a8d91dcSmrg      as_fn_executable_p "$ac_path_SED" || continue
4912a73423d7Smrg# Check for GNU ac_path_SED and select it if it is found.
4913a73423d7Smrg  # Check for GNU $ac_path_SED
4914a73423d7Smrgcase `"$ac_path_SED" --version 2>&1` in
4915a73423d7Smrg*GNU*)
4916a73423d7Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4917a73423d7Smrg*)
4918a73423d7Smrg  ac_count=0
4919e9f7eabcSmrg  printf %s 0123456789 >"conftest.in"
4920a73423d7Smrg  while :
4921a73423d7Smrg  do
4922a73423d7Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4923a73423d7Smrg    mv "conftest.tmp" "conftest.in"
4924a73423d7Smrg    cp "conftest.in" "conftest.nl"
4925e9f7eabcSmrg    printf "%s\n" '' >> "conftest.nl"
4926a73423d7Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4927a73423d7Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4928a73423d7Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4929a73423d7Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4930a73423d7Smrg      # Best one so far, save it but keep looking for a better one
4931a73423d7Smrg      ac_cv_path_SED="$ac_path_SED"
4932a73423d7Smrg      ac_path_SED_max=$ac_count
4933a73423d7Smrg    fi
4934a73423d7Smrg    # 10*(2^10) chars as input seems more than enough
4935a73423d7Smrg    test $ac_count -gt 10 && break
4936a73423d7Smrg  done
4937a73423d7Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
49387965d9acSmrgesac
49397965d9acSmrg
4940a73423d7Smrg      $ac_path_SED_found && break 3
4941a73423d7Smrg    done
4942a73423d7Smrg  done
4943a73423d7Smrg  done
4944a73423d7SmrgIFS=$as_save_IFS
4945a73423d7Smrg  if test -z "$ac_cv_path_SED"; then
4946a73423d7Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4947a73423d7Smrg  fi
4948a73423d7Smrgelse
4949a73423d7Smrg  ac_cv_path_SED=$SED
4950a73423d7Smrgfi
4951a73423d7Smrg
4952a73423d7Smrgfi
4953e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4954e9f7eabcSmrgprintf "%s\n" "$ac_cv_path_SED" >&6; }
4955a73423d7Smrg SED="$ac_cv_path_SED"
4956a73423d7Smrg  rm -f conftest.sed
4957a73423d7Smrg
4958a73423d7Smrg
4959a73423d7Smrg
4960a73423d7Smrg
4961a73423d7Smrg
4962a73423d7Smrg
4963a73423d7Smrg# Check whether --enable-selective-werror was given.
4964e9f7eabcSmrgif test ${enable_selective_werror+y}
4965e9f7eabcSmrgthen :
4966a73423d7Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4967e9f7eabcSmrgelse $as_nop
4968a73423d7Smrg  SELECTIVE_WERROR=yes
4969a73423d7Smrgfi
4970a73423d7Smrg
4971a73423d7Smrg
4972a73423d7Smrg
4973a73423d7Smrg
4974a73423d7Smrg
4975a73423d7Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
4976a73423d7Smrgif test "x$SUNCC" = "xyes"; then
4977a73423d7Smrg    BASE_CFLAGS="-v"
4978a73423d7Smrgelse
4979a73423d7Smrg    BASE_CFLAGS=""
4980a73423d7Smrgfi
4981a73423d7Smrg
4982a73423d7Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4983a73423d7Smrg
4984a73423d7Smrg
4985a73423d7Smrg
4986a73423d7Smrg
4987a73423d7Smrg
4988a73423d7Smrg
4989a73423d7Smrg
4990a73423d7Smrg
4991a73423d7Smrg
4992a73423d7Smrg
4993a73423d7Smrg
4994a73423d7Smrg
4995a73423d7Smrg
4996a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
4997a73423d7Smrg
4998a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4999a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5000e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5001e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5002e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5003e9f7eabcSmrgthen :
5004e9f7eabcSmrg  printf %s "(cached) " >&6
5005e9f7eabcSmrgelse $as_nop
5006a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007a73423d7Smrg/* end confdefs.h.  */
5008a73423d7Smrgint i;
5009a73423d7Smrg_ACEOF
5010e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
5011e9f7eabcSmrgthen :
5012a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5013e9f7eabcSmrgelse $as_nop
5014a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5015a73423d7Smrgfi
5016e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5017a73423d7Smrgfi
5018e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5019e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5020a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5021a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5022a73423d7Smrgfi
5023a73423d7Smrg
5024a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5025a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5026a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5027a73423d7Smrg	fi
5028a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5029e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5030e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5031e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5032e9f7eabcSmrgthen :
5033e9f7eabcSmrg  printf %s "(cached) " >&6
5034e9f7eabcSmrgelse $as_nop
5035a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036a73423d7Smrg/* end confdefs.h.  */
5037a73423d7Smrgint i;
5038a73423d7Smrg_ACEOF
5039e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
5040e9f7eabcSmrgthen :
5041a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5042e9f7eabcSmrgelse $as_nop
5043a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5044a73423d7Smrgfi
5045e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5046a73423d7Smrgfi
5047e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5048e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5049a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5050a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5051a73423d7Smrgfi
5052a73423d7Smrg
5053a73423d7Smrgfound="no"
5054a73423d7Smrg
5055a73423d7Smrg	if test $found = "no" ; then
50564a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5057a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5058a73423d7Smrg		fi
5059a73423d7Smrg
50604a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5061a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5062a73423d7Smrg		fi
5063a73423d7Smrg
5064a73423d7Smrg		CFLAGS="$CFLAGS -Wall"
5065a73423d7Smrg
5066e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5067e9f7eabcSmrgprintf %s "checking if $CC supports -Wall... " >&6; }
5068a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wall
5069e9f7eabcSmrg		if eval test \${$cacheid+y}
5070e9f7eabcSmrgthen :
5071e9f7eabcSmrg  printf %s "(cached) " >&6
5072e9f7eabcSmrgelse $as_nop
5073a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074a73423d7Smrg/* end confdefs.h.  */
5075a73423d7Smrgint i;
5076a73423d7Smrgint
5077e9f7eabcSmrgmain (void)
5078a73423d7Smrg{
5079a73423d7Smrg
5080a73423d7Smrg  ;
5081a73423d7Smrg  return 0;
5082a73423d7Smrg}
5083a73423d7Smrg_ACEOF
5084e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
5085e9f7eabcSmrgthen :
5086a73423d7Smrg  eval $cacheid=yes
5087e9f7eabcSmrgelse $as_nop
5088a73423d7Smrg  eval $cacheid=no
5089a73423d7Smrgfi
5090e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5091a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
5092a73423d7Smrgfi
5093a73423d7Smrg
5094a73423d7Smrg
5095a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5096a73423d7Smrg
5097a73423d7Smrg		eval supported=\$$cacheid
5098e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5099e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
5100a73423d7Smrg		if test "$supported" = "yes" ; then
5101a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5102a73423d7Smrg			found="yes"
5103a73423d7Smrg		fi
5104a73423d7Smrg	fi
5105a73423d7Smrg
5106a73423d7Smrg
5107a73423d7Smrg
5108a73423d7Smrg
5109a73423d7Smrg
5110a73423d7Smrg
5111a73423d7Smrg
5112a73423d7Smrg
5113a73423d7Smrg
5114a73423d7Smrg
5115a73423d7Smrg
5116a73423d7Smrg
5117a73423d7Smrg
5118a73423d7Smrg
5119a73423d7Smrg
5120a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5121a73423d7Smrg
5122a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5123a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5124e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5125e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5126e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5127e9f7eabcSmrgthen :
5128e9f7eabcSmrg  printf %s "(cached) " >&6
5129e9f7eabcSmrgelse $as_nop
5130a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131a73423d7Smrg/* end confdefs.h.  */
5132a73423d7Smrgint i;
5133a73423d7Smrg_ACEOF
5134e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
5135e9f7eabcSmrgthen :
5136a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5137e9f7eabcSmrgelse $as_nop
5138a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5139a73423d7Smrgfi
5140e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5141a73423d7Smrgfi
5142e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5143e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5144a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5145a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5146a73423d7Smrgfi
5147a73423d7Smrg
5148a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5149a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5150a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5151a73423d7Smrg	fi
5152a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5153e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5154e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5155e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5156e9f7eabcSmrgthen :
5157e9f7eabcSmrg  printf %s "(cached) " >&6
5158e9f7eabcSmrgelse $as_nop
5159a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160a73423d7Smrg/* end confdefs.h.  */
5161a73423d7Smrgint i;
5162a73423d7Smrg_ACEOF
5163e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
5164e9f7eabcSmrgthen :
5165a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5166e9f7eabcSmrgelse $as_nop
5167a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5168a73423d7Smrgfi
5169e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5170a73423d7Smrgfi
5171e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5172e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5173a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5174a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5175a73423d7Smrgfi
5176a73423d7Smrg
5177a73423d7Smrgfound="no"
5178a73423d7Smrg
5179a73423d7Smrg	if test $found = "no" ; then
51804a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5181a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5182a73423d7Smrg		fi
5183a73423d7Smrg
51844a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5185a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5186a73423d7Smrg		fi
5187a73423d7Smrg
5188a73423d7Smrg		CFLAGS="$CFLAGS -Wpointer-arith"
5189a73423d7Smrg
5190e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5191e9f7eabcSmrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5192a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
5193e9f7eabcSmrg		if eval test \${$cacheid+y}
5194e9f7eabcSmrgthen :
5195e9f7eabcSmrg  printf %s "(cached) " >&6
5196e9f7eabcSmrgelse $as_nop
5197a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198a73423d7Smrg/* end confdefs.h.  */
5199a73423d7Smrgint i;
5200a73423d7Smrgint
5201e9f7eabcSmrgmain (void)
5202a73423d7Smrg{
5203a73423d7Smrg
5204a73423d7Smrg  ;
5205a73423d7Smrg  return 0;
5206a73423d7Smrg}
5207a73423d7Smrg_ACEOF
5208e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
5209e9f7eabcSmrgthen :
5210a73423d7Smrg  eval $cacheid=yes
5211e9f7eabcSmrgelse $as_nop
5212a73423d7Smrg  eval $cacheid=no
5213a73423d7Smrgfi
5214e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5215a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
5216a73423d7Smrgfi
5217a73423d7Smrg
5218a73423d7Smrg
5219a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5220a73423d7Smrg
5221a73423d7Smrg		eval supported=\$$cacheid
5222e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5223e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
5224a73423d7Smrg		if test "$supported" = "yes" ; then
5225a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5226a73423d7Smrg			found="yes"
5227a73423d7Smrg		fi
5228a73423d7Smrg	fi
5229a73423d7Smrg
5230a73423d7Smrg
5231a73423d7Smrg
5232a73423d7Smrg
5233a73423d7Smrg
5234a73423d7Smrg
5235a73423d7Smrg
5236a73423d7Smrg
5237a73423d7Smrg
5238a73423d7Smrg
5239a73423d7Smrg
5240a73423d7Smrg
5241a73423d7Smrg
5242a73423d7Smrg
5243a73423d7Smrg
5244a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5245a73423d7Smrg
5246a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5247a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5248e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5249e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5250e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5251e9f7eabcSmrgthen :
5252e9f7eabcSmrg  printf %s "(cached) " >&6
5253e9f7eabcSmrgelse $as_nop
5254a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255a73423d7Smrg/* end confdefs.h.  */
5256a73423d7Smrgint i;
5257a73423d7Smrg_ACEOF
5258e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
5259e9f7eabcSmrgthen :
5260a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5261e9f7eabcSmrgelse $as_nop
5262a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5263a73423d7Smrgfi
5264e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5265a73423d7Smrgfi
5266e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5267e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5268a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5269a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5270a73423d7Smrgfi
5271a73423d7Smrg
5272a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5273a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5274a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5275a73423d7Smrg	fi
5276a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5277e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5278e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5279e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5280e9f7eabcSmrgthen :
5281e9f7eabcSmrg  printf %s "(cached) " >&6
5282e9f7eabcSmrgelse $as_nop
5283a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284a73423d7Smrg/* end confdefs.h.  */
5285a73423d7Smrgint i;
5286a73423d7Smrg_ACEOF
5287e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
5288e9f7eabcSmrgthen :
5289a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5290e9f7eabcSmrgelse $as_nop
5291a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5292a73423d7Smrgfi
5293e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5294a73423d7Smrgfi
5295e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5296e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5297a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5298a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5299a73423d7Smrgfi
5300a73423d7Smrg
5301a73423d7Smrgfound="no"
5302a73423d7Smrg
5303a73423d7Smrg	if test $found = "no" ; then
53044a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5305a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5306a73423d7Smrg		fi
5307a73423d7Smrg
53084a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5309a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5310a73423d7Smrg		fi
5311a73423d7Smrg
5312a73423d7Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
5313a73423d7Smrg
5314e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5315e9f7eabcSmrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5316a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5317e9f7eabcSmrg		if eval test \${$cacheid+y}
5318e9f7eabcSmrgthen :
5319e9f7eabcSmrg  printf %s "(cached) " >&6
5320e9f7eabcSmrgelse $as_nop
5321a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322a73423d7Smrg/* end confdefs.h.  */
5323a73423d7Smrgint i;
5324a73423d7Smrgint
5325e9f7eabcSmrgmain (void)
5326a73423d7Smrg{
5327a73423d7Smrg
5328a73423d7Smrg  ;
5329a73423d7Smrg  return 0;
5330a73423d7Smrg}
5331a73423d7Smrg_ACEOF
5332e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
5333e9f7eabcSmrgthen :
5334a73423d7Smrg  eval $cacheid=yes
5335e9f7eabcSmrgelse $as_nop
5336a73423d7Smrg  eval $cacheid=no
5337a73423d7Smrgfi
5338e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5339a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
5340a73423d7Smrgfi
5341a73423d7Smrg
5342a73423d7Smrg
5343a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5344a73423d7Smrg
5345a73423d7Smrg		eval supported=\$$cacheid
5346e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5347e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
5348a73423d7Smrg		if test "$supported" = "yes" ; then
5349a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5350a73423d7Smrg			found="yes"
5351a73423d7Smrg		fi
5352a73423d7Smrg	fi
5353a73423d7Smrg
5354a73423d7Smrg
5355a73423d7Smrg
5356a73423d7Smrg
5357a73423d7Smrg
5358a73423d7Smrg
5359a73423d7Smrg
5360a73423d7Smrg
5361a73423d7Smrg
5362a73423d7Smrg
5363a73423d7Smrg
5364a73423d7Smrg
5365a73423d7Smrg
5366a73423d7Smrg
5367a73423d7Smrg
5368a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5369a73423d7Smrg
5370a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5371a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5372e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5373e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5374e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5375e9f7eabcSmrgthen :
5376e9f7eabcSmrg  printf %s "(cached) " >&6
5377e9f7eabcSmrgelse $as_nop
5378a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379a73423d7Smrg/* end confdefs.h.  */
5380a73423d7Smrgint i;
5381a73423d7Smrg_ACEOF
5382e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
5383e9f7eabcSmrgthen :
5384a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5385e9f7eabcSmrgelse $as_nop
5386a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5387a73423d7Smrgfi
5388e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5389a73423d7Smrgfi
5390e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5391e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5392a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5393a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5394a73423d7Smrgfi
5395a73423d7Smrg
5396a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5397a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5398a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5399a73423d7Smrg	fi
5400a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5401e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5402e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5403e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5404e9f7eabcSmrgthen :
5405e9f7eabcSmrg  printf %s "(cached) " >&6
5406e9f7eabcSmrgelse $as_nop
5407a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408a73423d7Smrg/* end confdefs.h.  */
5409a73423d7Smrgint i;
5410a73423d7Smrg_ACEOF
5411e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
5412e9f7eabcSmrgthen :
5413a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5414e9f7eabcSmrgelse $as_nop
5415a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5416a73423d7Smrgfi
5417e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5418a73423d7Smrgfi
5419e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5420e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5421a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5422a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5423a73423d7Smrgfi
5424a73423d7Smrg
5425a73423d7Smrgfound="no"
5426a73423d7Smrg
5427a73423d7Smrg	if test $found = "no" ; then
54284a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5429a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5430a73423d7Smrg		fi
5431a73423d7Smrg
54324a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5433a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5434a73423d7Smrg		fi
5435a73423d7Smrg
5436a73423d7Smrg		CFLAGS="$CFLAGS -Wformat=2"
5437a73423d7Smrg
5438e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5439e9f7eabcSmrgprintf %s "checking if $CC supports -Wformat=2... " >&6; }
54404a8d91dcSmrg		cacheid=xorg_cv_cc_flag__Wformat_2
5441e9f7eabcSmrg		if eval test \${$cacheid+y}
5442e9f7eabcSmrgthen :
5443e9f7eabcSmrg  printf %s "(cached) " >&6
5444e9f7eabcSmrgelse $as_nop
5445a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446a73423d7Smrg/* end confdefs.h.  */
5447a73423d7Smrgint i;
5448a73423d7Smrgint
5449e9f7eabcSmrgmain (void)
5450a73423d7Smrg{
5451a73423d7Smrg
5452a73423d7Smrg  ;
5453a73423d7Smrg  return 0;
5454a73423d7Smrg}
5455a73423d7Smrg_ACEOF
5456e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
5457e9f7eabcSmrgthen :
5458a73423d7Smrg  eval $cacheid=yes
5459e9f7eabcSmrgelse $as_nop
5460a73423d7Smrg  eval $cacheid=no
5461a73423d7Smrgfi
5462e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5463a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
5464a73423d7Smrgfi
5465a73423d7Smrg
5466a73423d7Smrg
5467a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5468a73423d7Smrg
5469a73423d7Smrg		eval supported=\$$cacheid
5470e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5471e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
5472a73423d7Smrg		if test "$supported" = "yes" ; then
5473a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5474a73423d7Smrg			found="yes"
5475a73423d7Smrg		fi
5476a73423d7Smrg	fi
5477a73423d7Smrg
5478a73423d7Smrg	if test $found = "no" ; then
54794a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5480a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5481a73423d7Smrg		fi
5482a73423d7Smrg
54834a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5484a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5485a73423d7Smrg		fi
5486a73423d7Smrg
5487a73423d7Smrg		CFLAGS="$CFLAGS -Wformat"
5488a73423d7Smrg
5489e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5490e9f7eabcSmrgprintf %s "checking if $CC supports -Wformat... " >&6; }
5491a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wformat
5492e9f7eabcSmrg		if eval test \${$cacheid+y}
5493e9f7eabcSmrgthen :
5494e9f7eabcSmrg  printf %s "(cached) " >&6
5495e9f7eabcSmrgelse $as_nop
5496a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497a73423d7Smrg/* end confdefs.h.  */
5498a73423d7Smrgint i;
5499a73423d7Smrgint
5500e9f7eabcSmrgmain (void)
5501a73423d7Smrg{
5502a73423d7Smrg
5503a73423d7Smrg  ;
5504a73423d7Smrg  return 0;
5505a73423d7Smrg}
5506a73423d7Smrg_ACEOF
5507e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
5508e9f7eabcSmrgthen :
5509a73423d7Smrg  eval $cacheid=yes
5510e9f7eabcSmrgelse $as_nop
5511a73423d7Smrg  eval $cacheid=no
5512a73423d7Smrgfi
5513e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5514a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
5515a73423d7Smrgfi
5516a73423d7Smrg
5517a73423d7Smrg
5518a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5519a73423d7Smrg
5520a73423d7Smrg		eval supported=\$$cacheid
5521e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5522e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
5523a73423d7Smrg		if test "$supported" = "yes" ; then
5524a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5525a73423d7Smrg			found="yes"
5526a73423d7Smrg		fi
5527a73423d7Smrg	fi
5528a73423d7Smrg
5529a73423d7Smrg
5530a73423d7Smrg
5531a73423d7Smrg
5532a73423d7Smrg
5533a73423d7Smrg
5534a73423d7Smrg
5535a73423d7Smrg
5536a73423d7Smrg
5537a73423d7Smrg
5538a73423d7Smrg
5539a73423d7Smrg
5540a73423d7Smrg
5541a73423d7Smrg
5542a73423d7Smrg
5543a73423d7Smrg
5544a73423d7Smrg
5545a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5546a73423d7Smrg
5547a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5548a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5549e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5550e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5551e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5552e9f7eabcSmrgthen :
5553e9f7eabcSmrg  printf %s "(cached) " >&6
5554e9f7eabcSmrgelse $as_nop
5555a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556a73423d7Smrg/* end confdefs.h.  */
5557a73423d7Smrgint i;
5558a73423d7Smrg_ACEOF
5559e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
5560e9f7eabcSmrgthen :
5561a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5562e9f7eabcSmrgelse $as_nop
5563a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5564a73423d7Smrgfi
5565e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5566a73423d7Smrgfi
5567e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5568e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5569a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5570a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5571a73423d7Smrgfi
5572a73423d7Smrg
5573a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5574a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5575a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5576a73423d7Smrg	fi
5577a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5578e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5579e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5580e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5581e9f7eabcSmrgthen :
5582e9f7eabcSmrg  printf %s "(cached) " >&6
5583e9f7eabcSmrgelse $as_nop
5584a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585a73423d7Smrg/* end confdefs.h.  */
5586a73423d7Smrgint i;
5587a73423d7Smrg_ACEOF
5588e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
5589e9f7eabcSmrgthen :
5590a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5591e9f7eabcSmrgelse $as_nop
5592a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5593a73423d7Smrgfi
5594e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5595a73423d7Smrgfi
5596e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5597e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5598a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5599a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5600a73423d7Smrgfi
5601a73423d7Smrg
5602a73423d7Smrgfound="no"
5603a73423d7Smrg
5604a73423d7Smrg	if test $found = "no" ; then
56054a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5606a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5607a73423d7Smrg		fi
5608a73423d7Smrg
56094a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5610a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5611a73423d7Smrg		fi
5612a73423d7Smrg
5613a73423d7Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
5614a73423d7Smrg
5615e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5616e9f7eabcSmrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5617a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5618e9f7eabcSmrg		if eval test \${$cacheid+y}
5619e9f7eabcSmrgthen :
5620e9f7eabcSmrg  printf %s "(cached) " >&6
5621e9f7eabcSmrgelse $as_nop
5622a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623a73423d7Smrg/* end confdefs.h.  */
5624a73423d7Smrgint i;
5625a73423d7Smrgint
5626e9f7eabcSmrgmain (void)
5627a73423d7Smrg{
5628a73423d7Smrg
5629a73423d7Smrg  ;
5630a73423d7Smrg  return 0;
5631a73423d7Smrg}
5632a73423d7Smrg_ACEOF
5633e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
5634e9f7eabcSmrgthen :
5635a73423d7Smrg  eval $cacheid=yes
5636e9f7eabcSmrgelse $as_nop
5637a73423d7Smrg  eval $cacheid=no
5638a73423d7Smrgfi
5639e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5640a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
5641a73423d7Smrgfi
5642a73423d7Smrg
5643a73423d7Smrg
5644a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5645a73423d7Smrg
5646a73423d7Smrg		eval supported=\$$cacheid
5647e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5648e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
5649a73423d7Smrg		if test "$supported" = "yes" ; then
5650a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5651a73423d7Smrg			found="yes"
5652a73423d7Smrg		fi
5653a73423d7Smrg	fi
5654a73423d7Smrg
5655a73423d7Smrg
5656a73423d7Smrg
5657a73423d7Smrg
5658a73423d7Smrg
5659a73423d7Smrg
5660a73423d7Smrg
5661a73423d7Smrg
5662a73423d7Smrg
5663a73423d7Smrg
5664a73423d7Smrg
5665a73423d7Smrg
5666a73423d7Smrg
5667a73423d7Smrg
5668a73423d7Smrg
5669a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5670a73423d7Smrg
5671a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5672a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5673e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5674e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5675e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5676e9f7eabcSmrgthen :
5677e9f7eabcSmrg  printf %s "(cached) " >&6
5678e9f7eabcSmrgelse $as_nop
5679a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680a73423d7Smrg/* end confdefs.h.  */
5681a73423d7Smrgint i;
5682a73423d7Smrg_ACEOF
5683e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
5684e9f7eabcSmrgthen :
5685a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5686e9f7eabcSmrgelse $as_nop
5687a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5688a73423d7Smrgfi
5689e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5690a73423d7Smrgfi
5691e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5692e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5693a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5694a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5695a73423d7Smrgfi
5696a73423d7Smrg
5697a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5698a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5699a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5700a73423d7Smrg	fi
5701a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5702e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5703e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5704e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5705e9f7eabcSmrgthen :
5706e9f7eabcSmrg  printf %s "(cached) " >&6
5707e9f7eabcSmrgelse $as_nop
5708a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709a73423d7Smrg/* end confdefs.h.  */
5710a73423d7Smrgint i;
5711a73423d7Smrg_ACEOF
5712e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
5713e9f7eabcSmrgthen :
5714a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5715e9f7eabcSmrgelse $as_nop
5716a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5717a73423d7Smrgfi
5718e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5719a73423d7Smrgfi
5720e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5721e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5722a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5723a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5724a73423d7Smrgfi
5725a73423d7Smrg
5726a73423d7Smrgfound="no"
5727a73423d7Smrg
5728a73423d7Smrg	if test $found = "no" ; then
57294a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5730a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5731a73423d7Smrg		fi
5732a73423d7Smrg
57334a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5734a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5735a73423d7Smrg		fi
5736a73423d7Smrg
5737a73423d7Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
5738a73423d7Smrg
5739e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5740e9f7eabcSmrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5741a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5742e9f7eabcSmrg		if eval test \${$cacheid+y}
5743e9f7eabcSmrgthen :
5744e9f7eabcSmrg  printf %s "(cached) " >&6
5745e9f7eabcSmrgelse $as_nop
5746a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747a73423d7Smrg/* end confdefs.h.  */
5748a73423d7Smrgint i;
5749a73423d7Smrgint
5750e9f7eabcSmrgmain (void)
5751a73423d7Smrg{
5752a73423d7Smrg
5753a73423d7Smrg  ;
5754a73423d7Smrg  return 0;
5755a73423d7Smrg}
5756a73423d7Smrg_ACEOF
5757e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
5758e9f7eabcSmrgthen :
5759a73423d7Smrg  eval $cacheid=yes
5760e9f7eabcSmrgelse $as_nop
5761a73423d7Smrg  eval $cacheid=no
5762a73423d7Smrgfi
5763e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5764a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
5765a73423d7Smrgfi
5766a73423d7Smrg
5767a73423d7Smrg
5768a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5769a73423d7Smrg
5770a73423d7Smrg		eval supported=\$$cacheid
5771e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5772e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
5773a73423d7Smrg		if test "$supported" = "yes" ; then
5774a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5775a73423d7Smrg			found="yes"
5776a73423d7Smrg		fi
5777a73423d7Smrg	fi
5778a73423d7Smrg
5779a73423d7Smrg
5780a73423d7Smrg
5781a73423d7Smrg
5782a73423d7Smrg
5783a73423d7Smrg
5784a73423d7Smrg
5785a73423d7Smrg
5786a73423d7Smrg
5787a73423d7Smrg
5788a73423d7Smrg
5789a73423d7Smrg
5790a73423d7Smrg
5791a73423d7Smrg
5792a73423d7Smrg
5793a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5794a73423d7Smrg
5795a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5796a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5797e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5798e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5799e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5800e9f7eabcSmrgthen :
5801e9f7eabcSmrg  printf %s "(cached) " >&6
5802e9f7eabcSmrgelse $as_nop
5803a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804a73423d7Smrg/* end confdefs.h.  */
5805a73423d7Smrgint i;
5806a73423d7Smrg_ACEOF
5807e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
5808e9f7eabcSmrgthen :
5809a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5810e9f7eabcSmrgelse $as_nop
5811a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5812a73423d7Smrgfi
5813e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5814a73423d7Smrgfi
5815e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5816e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5817a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5818a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5819a73423d7Smrgfi
5820a73423d7Smrg
5821a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5822a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5823a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5824a73423d7Smrg	fi
5825a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5826e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5827e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5828e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5829e9f7eabcSmrgthen :
5830e9f7eabcSmrg  printf %s "(cached) " >&6
5831e9f7eabcSmrgelse $as_nop
5832a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833a73423d7Smrg/* end confdefs.h.  */
5834a73423d7Smrgint i;
5835a73423d7Smrg_ACEOF
5836e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
5837e9f7eabcSmrgthen :
5838a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5839e9f7eabcSmrgelse $as_nop
5840a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5841a73423d7Smrgfi
5842e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5843a73423d7Smrgfi
5844e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5845e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5846a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5847a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5848a73423d7Smrgfi
5849a73423d7Smrg
5850a73423d7Smrgfound="no"
5851a73423d7Smrg
5852a73423d7Smrg	if test $found = "no" ; then
58534a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5854a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5855a73423d7Smrg		fi
5856a73423d7Smrg
58574a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5858a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5859a73423d7Smrg		fi
5860a73423d7Smrg
5861a73423d7Smrg		CFLAGS="$CFLAGS -Wnested-externs"
5862a73423d7Smrg
5863e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5864e9f7eabcSmrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; }
5865a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
5866e9f7eabcSmrg		if eval test \${$cacheid+y}
5867e9f7eabcSmrgthen :
5868e9f7eabcSmrg  printf %s "(cached) " >&6
5869e9f7eabcSmrgelse $as_nop
5870a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871a73423d7Smrg/* end confdefs.h.  */
5872a73423d7Smrgint i;
5873a73423d7Smrgint
5874e9f7eabcSmrgmain (void)
5875a73423d7Smrg{
5876a73423d7Smrg
5877a73423d7Smrg  ;
5878a73423d7Smrg  return 0;
5879a73423d7Smrg}
5880a73423d7Smrg_ACEOF
5881e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
5882e9f7eabcSmrgthen :
5883a73423d7Smrg  eval $cacheid=yes
5884e9f7eabcSmrgelse $as_nop
5885a73423d7Smrg  eval $cacheid=no
5886a73423d7Smrgfi
5887e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5888a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
5889a73423d7Smrgfi
5890a73423d7Smrg
5891a73423d7Smrg
5892a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
5893a73423d7Smrg
5894a73423d7Smrg		eval supported=\$$cacheid
5895e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5896e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
5897a73423d7Smrg		if test "$supported" = "yes" ; then
5898a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5899a73423d7Smrg			found="yes"
5900a73423d7Smrg		fi
5901a73423d7Smrg	fi
5902a73423d7Smrg
5903a73423d7Smrg
5904a73423d7Smrg
5905a73423d7Smrg
5906a73423d7Smrg
5907a73423d7Smrg
5908a73423d7Smrg
5909a73423d7Smrg
5910a73423d7Smrg
5911a73423d7Smrg
5912a73423d7Smrg
5913a73423d7Smrg
5914a73423d7Smrg
5915a73423d7Smrg
5916a73423d7Smrg
5917a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
5918a73423d7Smrg
5919a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5920a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5921e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5922e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5923e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5924e9f7eabcSmrgthen :
5925e9f7eabcSmrg  printf %s "(cached) " >&6
5926e9f7eabcSmrgelse $as_nop
5927a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928a73423d7Smrg/* end confdefs.h.  */
5929a73423d7Smrgint i;
5930a73423d7Smrg_ACEOF
5931e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
5932e9f7eabcSmrgthen :
5933a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
5934e9f7eabcSmrgelse $as_nop
5935a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
5936a73423d7Smrgfi
5937e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5938a73423d7Smrgfi
5939e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5940e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5941a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5942a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5943a73423d7Smrgfi
5944a73423d7Smrg
5945a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5946a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5947a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5948a73423d7Smrg	fi
5949a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5950e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5951e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5952e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5953e9f7eabcSmrgthen :
5954e9f7eabcSmrg  printf %s "(cached) " >&6
5955e9f7eabcSmrgelse $as_nop
5956a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957a73423d7Smrg/* end confdefs.h.  */
5958a73423d7Smrgint i;
5959a73423d7Smrg_ACEOF
5960e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
5961e9f7eabcSmrgthen :
5962a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5963e9f7eabcSmrgelse $as_nop
5964a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
5965a73423d7Smrgfi
5966e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5967a73423d7Smrgfi
5968e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5969e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5970a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5971a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
5972a73423d7Smrgfi
5973a73423d7Smrg
5974a73423d7Smrgfound="no"
5975a73423d7Smrg
5976a73423d7Smrg	if test $found = "no" ; then
59774a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5978a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5979a73423d7Smrg		fi
5980a73423d7Smrg
59814a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5982a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5983a73423d7Smrg		fi
5984a73423d7Smrg
5985a73423d7Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
5986a73423d7Smrg
5987e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5988e9f7eabcSmrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5989a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5990e9f7eabcSmrg		if eval test \${$cacheid+y}
5991e9f7eabcSmrgthen :
5992e9f7eabcSmrg  printf %s "(cached) " >&6
5993e9f7eabcSmrgelse $as_nop
5994a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995a73423d7Smrg/* end confdefs.h.  */
5996a73423d7Smrgint i;
5997a73423d7Smrgint
5998e9f7eabcSmrgmain (void)
5999a73423d7Smrg{
6000a73423d7Smrg
6001a73423d7Smrg  ;
6002a73423d7Smrg  return 0;
6003a73423d7Smrg}
6004a73423d7Smrg_ACEOF
6005e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
6006e9f7eabcSmrgthen :
6007a73423d7Smrg  eval $cacheid=yes
6008e9f7eabcSmrgelse $as_nop
6009a73423d7Smrg  eval $cacheid=no
6010a73423d7Smrgfi
6011e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6012a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
6013a73423d7Smrgfi
6014a73423d7Smrg
6015a73423d7Smrg
6016a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6017a73423d7Smrg
6018a73423d7Smrg		eval supported=\$$cacheid
6019e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6020e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
6021a73423d7Smrg		if test "$supported" = "yes" ; then
6022a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6023a73423d7Smrg			found="yes"
6024a73423d7Smrg		fi
6025a73423d7Smrg	fi
6026a73423d7Smrg
6027a73423d7Smrg
6028a73423d7Smrg
6029a73423d7Smrg
6030a73423d7Smrg
6031a73423d7Smrg
6032a73423d7Smrg
6033a73423d7Smrg
6034a73423d7Smrg
6035a73423d7Smrg
6036a73423d7Smrg
6037a73423d7Smrg
6038a73423d7Smrg
6039a73423d7Smrg
6040a73423d7Smrg
6041a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6042a73423d7Smrg
6043a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6044a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6045e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6046e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6047e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6048e9f7eabcSmrgthen :
6049e9f7eabcSmrg  printf %s "(cached) " >&6
6050e9f7eabcSmrgelse $as_nop
6051a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052a73423d7Smrg/* end confdefs.h.  */
6053a73423d7Smrgint i;
6054a73423d7Smrg_ACEOF
6055e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
6056e9f7eabcSmrgthen :
6057a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6058e9f7eabcSmrgelse $as_nop
6059a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6060a73423d7Smrgfi
6061e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6062a73423d7Smrgfi
6063e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6064e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6065a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6066a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6067a73423d7Smrgfi
6068a73423d7Smrg
6069a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6070a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6071a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6072a73423d7Smrg	fi
6073a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6074e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6075e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6076e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6077e9f7eabcSmrgthen :
6078e9f7eabcSmrg  printf %s "(cached) " >&6
6079e9f7eabcSmrgelse $as_nop
6080a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081a73423d7Smrg/* end confdefs.h.  */
6082a73423d7Smrgint i;
6083a73423d7Smrg_ACEOF
6084e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
6085e9f7eabcSmrgthen :
6086a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6087e9f7eabcSmrgelse $as_nop
6088a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6089a73423d7Smrgfi
6090e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6091a73423d7Smrgfi
6092e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6093e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6094a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6095a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
60967965d9acSmrgfi
60977965d9acSmrg
6098a73423d7Smrgfound="no"
60997965d9acSmrg
6100a73423d7Smrg	if test $found = "no" ; then
61014a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6102a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6103a73423d7Smrg		fi
61047965d9acSmrg
61054a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6106a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6107a73423d7Smrg		fi
61087965d9acSmrg
6109a73423d7Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
61107965d9acSmrg
6111e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6112e9f7eabcSmrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6113a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
6114e9f7eabcSmrg		if eval test \${$cacheid+y}
6115e9f7eabcSmrgthen :
6116e9f7eabcSmrg  printf %s "(cached) " >&6
6117e9f7eabcSmrgelse $as_nop
6118a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119a73423d7Smrg/* end confdefs.h.  */
6120a73423d7Smrgint i;
6121a73423d7Smrgint
6122e9f7eabcSmrgmain (void)
6123a73423d7Smrg{
61247965d9acSmrg
6125a73423d7Smrg  ;
6126a73423d7Smrg  return 0;
6127a73423d7Smrg}
6128a73423d7Smrg_ACEOF
6129e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
6130e9f7eabcSmrgthen :
6131a73423d7Smrg  eval $cacheid=yes
6132e9f7eabcSmrgelse $as_nop
6133a73423d7Smrg  eval $cacheid=no
61347965d9acSmrgfi
6135e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6136a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
61377965d9acSmrgfi
61387965d9acSmrg
61397965d9acSmrg
6140a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
61417965d9acSmrg
6142a73423d7Smrg		eval supported=\$$cacheid
6143e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6144e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
6145a73423d7Smrg		if test "$supported" = "yes" ; then
6146a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6147a73423d7Smrg			found="yes"
6148a73423d7Smrg		fi
6149a73423d7Smrg	fi
61507965d9acSmrg
61514a8d91dcSmrg	if test $found = "no" ; then
61524a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
61534a8d91dcSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61544a8d91dcSmrg		fi
61554a8d91dcSmrg
61564a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
61574a8d91dcSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
61584a8d91dcSmrg		fi
61594a8d91dcSmrg
61604a8d91dcSmrg		CFLAGS="$CFLAGS -fd"
61614a8d91dcSmrg
6162e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6163e9f7eabcSmrgprintf %s "checking if $CC supports -fd... " >&6; }
61644a8d91dcSmrg		cacheid=xorg_cv_cc_flag__fd
6165e9f7eabcSmrg		if eval test \${$cacheid+y}
6166e9f7eabcSmrgthen :
6167e9f7eabcSmrg  printf %s "(cached) " >&6
6168e9f7eabcSmrgelse $as_nop
61694a8d91dcSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61704a8d91dcSmrg/* end confdefs.h.  */
61714a8d91dcSmrgint i;
61724a8d91dcSmrgint
6173e9f7eabcSmrgmain (void)
61744a8d91dcSmrg{
61754a8d91dcSmrg
61764a8d91dcSmrg  ;
61774a8d91dcSmrg  return 0;
61784a8d91dcSmrg}
61794a8d91dcSmrg_ACEOF
6180e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
6181e9f7eabcSmrgthen :
61824a8d91dcSmrg  eval $cacheid=yes
6183e9f7eabcSmrgelse $as_nop
61844a8d91dcSmrg  eval $cacheid=no
61854a8d91dcSmrgfi
6186e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
61874a8d91dcSmrg    conftest$ac_exeext conftest.$ac_ext
61884a8d91dcSmrgfi
61894a8d91dcSmrg
61904a8d91dcSmrg
61914a8d91dcSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
61924a8d91dcSmrg
61934a8d91dcSmrg		eval supported=\$$cacheid
6194e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6195e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
61964a8d91dcSmrg		if test "$supported" = "yes" ; then
61974a8d91dcSmrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
61984a8d91dcSmrg			found="yes"
61994a8d91dcSmrg		fi
62004a8d91dcSmrg	fi
62014a8d91dcSmrg
62027965d9acSmrg
62037965d9acSmrg
62047965d9acSmrg
62057965d9acSmrg
62067965d9acSmrg
62077965d9acSmrg
62087965d9acSmrg
62097965d9acSmrg
62107965d9acSmrg
62117965d9acSmrg
62127965d9acSmrg
62137965d9acSmrg
62147965d9acSmrg
62157965d9acSmrg
6216a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6217a73423d7Smrg
6218a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6219a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6220e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6221e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6222e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6223e9f7eabcSmrgthen :
6224e9f7eabcSmrg  printf %s "(cached) " >&6
6225e9f7eabcSmrgelse $as_nop
6226a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227a73423d7Smrg/* end confdefs.h.  */
6228a73423d7Smrgint i;
6229a73423d7Smrg_ACEOF
6230e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
6231e9f7eabcSmrgthen :
6232a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6233e9f7eabcSmrgelse $as_nop
6234a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
62357965d9acSmrgfi
6236e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6237a73423d7Smrgfi
6238e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6239e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6240a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6241a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
62427965d9acSmrgfi
62437965d9acSmrg
6244a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6245a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6246a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6247a73423d7Smrg	fi
6248a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6249e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6250e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6251e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6252e9f7eabcSmrgthen :
6253e9f7eabcSmrg  printf %s "(cached) " >&6
6254e9f7eabcSmrgelse $as_nop
6255a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256a73423d7Smrg/* end confdefs.h.  */
6257a73423d7Smrgint i;
6258a73423d7Smrg_ACEOF
6259e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
6260e9f7eabcSmrgthen :
6261a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6262e9f7eabcSmrgelse $as_nop
6263a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
62647965d9acSmrgfi
6265e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6266a73423d7Smrgfi
6267e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6268e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6269a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6270a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
62717965d9acSmrgfi
62727965d9acSmrg
6273a73423d7Smrgfound="no"
6274a73423d7Smrg
6275a73423d7Smrg	if test $found = "no" ; then
62764a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6277a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6278a73423d7Smrg		fi
6279a73423d7Smrg
62804a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6281a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6282a73423d7Smrg		fi
6283a73423d7Smrg
6284a73423d7Smrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6285a73423d7Smrg
6286e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6287e9f7eabcSmrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6288a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6289e9f7eabcSmrg		if eval test \${$cacheid+y}
6290e9f7eabcSmrgthen :
6291e9f7eabcSmrg  printf %s "(cached) " >&6
6292e9f7eabcSmrgelse $as_nop
6293a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294a73423d7Smrg/* end confdefs.h.  */
6295a73423d7Smrgint i;
6296a73423d7Smrgint
6297e9f7eabcSmrgmain (void)
6298a73423d7Smrg{
62997965d9acSmrg
6300a73423d7Smrg  ;
6301a73423d7Smrg  return 0;
63027965d9acSmrg}
6303a73423d7Smrg_ACEOF
6304e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
6305e9f7eabcSmrgthen :
6306a73423d7Smrg  eval $cacheid=yes
6307e9f7eabcSmrgelse $as_nop
6308a73423d7Smrg  eval $cacheid=no
6309a73423d7Smrgfi
6310e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6311a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
6312a73423d7Smrgfi
63137965d9acSmrg
63147965d9acSmrg
6315a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
63167965d9acSmrg
6317a73423d7Smrg		eval supported=\$$cacheid
6318e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6319e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
6320a73423d7Smrg		if test "$supported" = "yes" ; then
6321a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6322a73423d7Smrg			found="yes"
6323a73423d7Smrg		fi
6324a73423d7Smrg	fi
632550806d53Smrg
632650806d53Smrg
632750806d53Smrg
632850806d53Smrg
63297965d9acSmrg
6330a73423d7Smrg# This chunk adds additional warnings that could catch undesired effects.
6331a73423d7Smrg
6332a73423d7Smrg
6333a73423d7Smrg
6334a73423d7Smrg
6335a73423d7Smrg
6336a73423d7Smrg
6337a73423d7Smrg
6338a73423d7Smrg
6339a73423d7Smrg
6340a73423d7Smrg
6341a73423d7Smrg
6342a73423d7Smrg
6343a73423d7Smrg
6344a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6345a73423d7Smrg
6346a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6347a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6348e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6349e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6350e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6351e9f7eabcSmrgthen :
6352e9f7eabcSmrg  printf %s "(cached) " >&6
6353e9f7eabcSmrgelse $as_nop
6354a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355a73423d7Smrg/* end confdefs.h.  */
6356a73423d7Smrgint i;
6357a73423d7Smrg_ACEOF
6358e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
6359e9f7eabcSmrgthen :
6360a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6361e9f7eabcSmrgelse $as_nop
6362a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6363a73423d7Smrgfi
6364e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6365a73423d7Smrgfi
6366e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6367e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6368a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6369a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
637050806d53Smrgfi
637150806d53Smrg
6372a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6373a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6374a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6375a73423d7Smrg	fi
6376a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6377e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6378e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6379e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6380e9f7eabcSmrgthen :
6381e9f7eabcSmrg  printf %s "(cached) " >&6
6382e9f7eabcSmrgelse $as_nop
6383a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384a73423d7Smrg/* end confdefs.h.  */
6385a73423d7Smrgint i;
6386a73423d7Smrg_ACEOF
6387e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
6388e9f7eabcSmrgthen :
6389a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6390e9f7eabcSmrgelse $as_nop
6391a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6392a73423d7Smrgfi
6393e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6394a73423d7Smrgfi
6395e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6396e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6397a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6398a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
639950806d53Smrgfi
640050806d53Smrg
6401a73423d7Smrgfound="no"
6402a73423d7Smrg
6403a73423d7Smrg	if test $found = "no" ; then
64044a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6405a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6406a73423d7Smrg		fi
6407a73423d7Smrg
64084a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6409a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6410a73423d7Smrg		fi
6411a73423d7Smrg
6412a73423d7Smrg		CFLAGS="$CFLAGS -Wunused"
6413a73423d7Smrg
6414e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6415e9f7eabcSmrgprintf %s "checking if $CC supports -Wunused... " >&6; }
6416a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wunused
6417e9f7eabcSmrg		if eval test \${$cacheid+y}
6418e9f7eabcSmrgthen :
6419e9f7eabcSmrg  printf %s "(cached) " >&6
6420e9f7eabcSmrgelse $as_nop
6421a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422a73423d7Smrg/* end confdefs.h.  */
6423a73423d7Smrgint i;
6424a73423d7Smrgint
6425e9f7eabcSmrgmain (void)
6426a73423d7Smrg{
642750806d53Smrg
6428a73423d7Smrg  ;
6429a73423d7Smrg  return 0;
6430a73423d7Smrg}
6431a73423d7Smrg_ACEOF
6432e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
6433e9f7eabcSmrgthen :
6434a73423d7Smrg  eval $cacheid=yes
6435e9f7eabcSmrgelse $as_nop
6436a73423d7Smrg  eval $cacheid=no
6437a73423d7Smrgfi
6438e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6439a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
64407965d9acSmrgfi
644150806d53Smrg
644250806d53Smrg
6443a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
644450806d53Smrg
6445a73423d7Smrg		eval supported=\$$cacheid
6446e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6447e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
6448a73423d7Smrg		if test "$supported" = "yes" ; then
6449a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6450a73423d7Smrg			found="yes"
6451a73423d7Smrg		fi
6452a73423d7Smrg	fi
645350806d53Smrg
645450806d53Smrg
645550806d53Smrg
645650806d53Smrg
645750806d53Smrg
645850806d53Smrg
645950806d53Smrg
646050806d53Smrg
646150806d53Smrg
646250806d53Smrg
646350806d53Smrg
6464a18ebfb2Smrg
646550806d53Smrg
646650806d53Smrg
646750806d53Smrg
6468a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
646950806d53Smrg
6470a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6471a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6472e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6473e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6474e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6475e9f7eabcSmrgthen :
6476e9f7eabcSmrg  printf %s "(cached) " >&6
6477e9f7eabcSmrgelse $as_nop
6478a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479a73423d7Smrg/* end confdefs.h.  */
6480a73423d7Smrgint i;
6481a73423d7Smrg_ACEOF
6482e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
6483e9f7eabcSmrgthen :
6484a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6485e9f7eabcSmrgelse $as_nop
6486a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6487a73423d7Smrgfi
6488e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6489a73423d7Smrgfi
6490e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6491e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6492a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6493a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6494a73423d7Smrgfi
649550806d53Smrg
6496a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6497a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6498a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6499a73423d7Smrg	fi
6500a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6501e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6502e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6503e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6504e9f7eabcSmrgthen :
6505e9f7eabcSmrg  printf %s "(cached) " >&6
6506e9f7eabcSmrgelse $as_nop
6507a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508a73423d7Smrg/* end confdefs.h.  */
6509a73423d7Smrgint i;
6510a73423d7Smrg_ACEOF
6511e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
6512e9f7eabcSmrgthen :
6513a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6514e9f7eabcSmrgelse $as_nop
6515a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6516a73423d7Smrgfi
6517e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6518a73423d7Smrgfi
6519e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6520e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6521a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6522a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6523a73423d7Smrgfi
65247965d9acSmrg
6525a73423d7Smrgfound="no"
652650806d53Smrg
6527a73423d7Smrg	if test $found = "no" ; then
65284a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6529a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6530a73423d7Smrg		fi
653150806d53Smrg
65324a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6533a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6534a73423d7Smrg		fi
653550806d53Smrg
6536a73423d7Smrg		CFLAGS="$CFLAGS -Wuninitialized"
653750806d53Smrg
6538e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6539e9f7eabcSmrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; }
6540a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
6541e9f7eabcSmrg		if eval test \${$cacheid+y}
6542e9f7eabcSmrgthen :
6543e9f7eabcSmrg  printf %s "(cached) " >&6
6544e9f7eabcSmrgelse $as_nop
6545a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546a73423d7Smrg/* end confdefs.h.  */
6547a73423d7Smrgint i;
6548a73423d7Smrgint
6549e9f7eabcSmrgmain (void)
6550a73423d7Smrg{
65517965d9acSmrg
6552a73423d7Smrg  ;
6553a73423d7Smrg  return 0;
6554a73423d7Smrg}
6555a73423d7Smrg_ACEOF
6556e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
6557e9f7eabcSmrgthen :
6558a73423d7Smrg  eval $cacheid=yes
6559e9f7eabcSmrgelse $as_nop
6560a73423d7Smrg  eval $cacheid=no
6561a73423d7Smrgfi
6562e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6563a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
6564a73423d7Smrgfi
656550806d53Smrg
656650806d53Smrg
6567a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
656850806d53Smrg
6569a73423d7Smrg		eval supported=\$$cacheid
6570e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6571e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
6572a73423d7Smrg		if test "$supported" = "yes" ; then
6573a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6574a73423d7Smrg			found="yes"
6575a73423d7Smrg		fi
6576a73423d7Smrg	fi
657750806d53Smrg
657850806d53Smrg
657950806d53Smrg
658050806d53Smrg
658150806d53Smrg
658250806d53Smrg
658350806d53Smrg
658450806d53Smrg
658550806d53Smrg
65867965d9acSmrg
65877965d9acSmrg
65887965d9acSmrg
658950806d53Smrg
659050806d53Smrg
659150806d53Smrg
6592a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
659350806d53Smrg
6594a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6595a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6596e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6597e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6598e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6599e9f7eabcSmrgthen :
6600e9f7eabcSmrg  printf %s "(cached) " >&6
6601e9f7eabcSmrgelse $as_nop
6602a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603a73423d7Smrg/* end confdefs.h.  */
6604a73423d7Smrgint i;
6605a73423d7Smrg_ACEOF
6606e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
6607e9f7eabcSmrgthen :
6608a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6609e9f7eabcSmrgelse $as_nop
6610a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6611a73423d7Smrgfi
6612e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6613a73423d7Smrgfi
6614e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6615e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6616a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6617a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6618a73423d7Smrgfi
661950806d53Smrg
6620a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6621a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6622a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6623a73423d7Smrg	fi
6624a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6625e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6626e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6627e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6628e9f7eabcSmrgthen :
6629e9f7eabcSmrg  printf %s "(cached) " >&6
6630e9f7eabcSmrgelse $as_nop
6631a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632a73423d7Smrg/* end confdefs.h.  */
6633a73423d7Smrgint i;
6634a73423d7Smrg_ACEOF
6635e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
6636e9f7eabcSmrgthen :
6637a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6638e9f7eabcSmrgelse $as_nop
6639a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6640a73423d7Smrgfi
6641e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6642a73423d7Smrgfi
6643e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6644e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6645a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6646a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6647a73423d7Smrgfi
664850806d53Smrg
6649a73423d7Smrgfound="no"
6650a73423d7Smrg
6651a73423d7Smrg	if test $found = "no" ; then
66524a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6653a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6654a73423d7Smrg		fi
6655a73423d7Smrg
66564a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6657a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6658a73423d7Smrg		fi
6659a73423d7Smrg
6660a73423d7Smrg		CFLAGS="$CFLAGS -Wshadow"
6661a73423d7Smrg
6662e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6663e9f7eabcSmrgprintf %s "checking if $CC supports -Wshadow... " >&6; }
6664a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wshadow
6665e9f7eabcSmrg		if eval test \${$cacheid+y}
6666e9f7eabcSmrgthen :
6667e9f7eabcSmrg  printf %s "(cached) " >&6
6668e9f7eabcSmrgelse $as_nop
6669a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670a73423d7Smrg/* end confdefs.h.  */
6671a73423d7Smrgint i;
6672a73423d7Smrgint
6673e9f7eabcSmrgmain (void)
6674a73423d7Smrg{
6675a73423d7Smrg
6676a73423d7Smrg  ;
6677a73423d7Smrg  return 0;
6678a73423d7Smrg}
6679a73423d7Smrg_ACEOF
6680e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
6681e9f7eabcSmrgthen :
6682a73423d7Smrg  eval $cacheid=yes
6683e9f7eabcSmrgelse $as_nop
6684a73423d7Smrg  eval $cacheid=no
6685a73423d7Smrgfi
6686e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6687a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
6688a73423d7Smrgfi
6689a73423d7Smrg
6690a73423d7Smrg
6691a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6692a73423d7Smrg
6693a73423d7Smrg		eval supported=\$$cacheid
6694e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6695e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
6696a73423d7Smrg		if test "$supported" = "yes" ; then
6697a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6698a73423d7Smrg			found="yes"
6699a73423d7Smrg		fi
6700a73423d7Smrg	fi
6701a73423d7Smrg
6702a73423d7Smrg
6703a73423d7Smrg
6704a73423d7Smrg
6705a73423d7Smrg
6706a73423d7Smrg
6707a73423d7Smrg
6708a73423d7Smrg
6709a73423d7Smrg
6710a73423d7Smrg
6711a73423d7Smrg
6712a73423d7Smrg
6713a73423d7Smrg
6714a73423d7Smrg
6715a73423d7Smrg
6716a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
6717a73423d7Smrg
6718a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6719a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6720e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6721e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6722e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6723e9f7eabcSmrgthen :
6724e9f7eabcSmrg  printf %s "(cached) " >&6
6725e9f7eabcSmrgelse $as_nop
6726a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727a73423d7Smrg/* end confdefs.h.  */
6728a73423d7Smrgint i;
6729a73423d7Smrg_ACEOF
6730e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
6731e9f7eabcSmrgthen :
6732a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6733e9f7eabcSmrgelse $as_nop
6734a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6735a73423d7Smrgfi
6736e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6737a73423d7Smrgfi
6738e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6739e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6740a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6741a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6742a73423d7Smrgfi
6743a73423d7Smrg
6744a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6745a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6746a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6747a73423d7Smrg	fi
6748a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6749e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6750e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6751e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6752e9f7eabcSmrgthen :
6753e9f7eabcSmrg  printf %s "(cached) " >&6
6754e9f7eabcSmrgelse $as_nop
6755a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756a73423d7Smrg/* end confdefs.h.  */
6757a73423d7Smrgint i;
6758a73423d7Smrg_ACEOF
6759e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
6760e9f7eabcSmrgthen :
6761a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6762e9f7eabcSmrgelse $as_nop
6763a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6764a73423d7Smrgfi
6765e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6766a73423d7Smrgfi
6767e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6768e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6769a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6770a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6771a73423d7Smrgfi
6772a73423d7Smrg
6773a73423d7Smrgfound="no"
6774a73423d7Smrg
6775a73423d7Smrg	if test $found = "no" ; then
67764a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6777a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6778a73423d7Smrg		fi
6779a73423d7Smrg
67804a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6781a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6782a73423d7Smrg		fi
6783a73423d7Smrg
67844a8d91dcSmrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
6785a73423d7Smrg
6786e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6787e9f7eabcSmrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
67884a8d91dcSmrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6789e9f7eabcSmrg		if eval test \${$cacheid+y}
6790e9f7eabcSmrgthen :
6791e9f7eabcSmrg  printf %s "(cached) " >&6
6792e9f7eabcSmrgelse $as_nop
6793a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794a73423d7Smrg/* end confdefs.h.  */
6795a73423d7Smrgint i;
6796a73423d7Smrgint
6797e9f7eabcSmrgmain (void)
6798a73423d7Smrg{
6799a73423d7Smrg
6800a73423d7Smrg  ;
6801a73423d7Smrg  return 0;
6802a73423d7Smrg}
6803a73423d7Smrg_ACEOF
6804e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
6805e9f7eabcSmrgthen :
6806a73423d7Smrg  eval $cacheid=yes
6807e9f7eabcSmrgelse $as_nop
6808a73423d7Smrg  eval $cacheid=no
6809a73423d7Smrgfi
6810e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6811a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
6812a73423d7Smrgfi
68137965d9acSmrg
681450806d53Smrg
6815a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
681650806d53Smrg
6817a73423d7Smrg		eval supported=\$$cacheid
6818e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6819e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
6820a73423d7Smrg		if test "$supported" = "yes" ; then
68214a8d91dcSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6822a73423d7Smrg			found="yes"
6823a73423d7Smrg		fi
6824a73423d7Smrg	fi
682550806d53Smrg
682650806d53Smrg
68277965d9acSmrg
682850806d53Smrg
682950806d53Smrg
683050806d53Smrg
683150806d53Smrg
683250806d53Smrg
683350806d53Smrg
683450806d53Smrg
683550806d53Smrg
683650806d53Smrg
683750806d53Smrg
68387965d9acSmrg
68397965d9acSmrg
6840a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
684150806d53Smrg
6842a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6843a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6844e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6845e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6846e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6847e9f7eabcSmrgthen :
6848e9f7eabcSmrg  printf %s "(cached) " >&6
6849e9f7eabcSmrgelse $as_nop
6850a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851a73423d7Smrg/* end confdefs.h.  */
6852a73423d7Smrgint i;
6853a73423d7Smrg_ACEOF
6854e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
6855e9f7eabcSmrgthen :
6856a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6857e9f7eabcSmrgelse $as_nop
6858a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6859a73423d7Smrgfi
6860e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6861a73423d7Smrgfi
6862e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6863e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6864a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6865a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6866a73423d7Smrgfi
686750806d53Smrg
6868a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6869a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6870a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6871a73423d7Smrg	fi
6872a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6873e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6874e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6875e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6876e9f7eabcSmrgthen :
6877e9f7eabcSmrg  printf %s "(cached) " >&6
6878e9f7eabcSmrgelse $as_nop
6879a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880a73423d7Smrg/* end confdefs.h.  */
6881a73423d7Smrgint i;
6882a73423d7Smrg_ACEOF
6883e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
6884e9f7eabcSmrgthen :
6885a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6886e9f7eabcSmrgelse $as_nop
6887a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
6888a73423d7Smrgfi
6889e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6890a73423d7Smrgfi
6891e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6892e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6893a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6894a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6895a73423d7Smrgfi
689650806d53Smrg
6897a73423d7Smrgfound="no"
689850806d53Smrg
6899a73423d7Smrg	if test $found = "no" ; then
69004a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6901a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6902a73423d7Smrg		fi
690350806d53Smrg
69044a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6905a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6906a73423d7Smrg		fi
690750806d53Smrg
69084a8d91dcSmrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
690950806d53Smrg
6910e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6911e9f7eabcSmrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
69124a8d91dcSmrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6913e9f7eabcSmrg		if eval test \${$cacheid+y}
6914e9f7eabcSmrgthen :
6915e9f7eabcSmrg  printf %s "(cached) " >&6
6916e9f7eabcSmrgelse $as_nop
6917a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918a73423d7Smrg/* end confdefs.h.  */
6919a73423d7Smrgint i;
6920a73423d7Smrgint
6921e9f7eabcSmrgmain (void)
6922a73423d7Smrg{
692350806d53Smrg
6924a73423d7Smrg  ;
6925a73423d7Smrg  return 0;
6926a73423d7Smrg}
6927a73423d7Smrg_ACEOF
6928e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
6929e9f7eabcSmrgthen :
6930a73423d7Smrg  eval $cacheid=yes
6931e9f7eabcSmrgelse $as_nop
6932a73423d7Smrg  eval $cacheid=no
6933a73423d7Smrgfi
6934e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6935a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
6936a73423d7Smrgfi
693750806d53Smrg
693850806d53Smrg
6939a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
694050806d53Smrg
6941a73423d7Smrg		eval supported=\$$cacheid
6942e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6943e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
6944a73423d7Smrg		if test "$supported" = "yes" ; then
69454a8d91dcSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6946a73423d7Smrg			found="yes"
6947a73423d7Smrg		fi
6948a73423d7Smrg	fi
694950806d53Smrg
695050806d53Smrg
695150806d53Smrg
695250806d53Smrg
695350806d53Smrg
695450806d53Smrg
695550806d53Smrg
695650806d53Smrg
6957af1a9c97Smrg
695850806d53Smrg
695950806d53Smrg
696050806d53Smrg
696150806d53Smrg
696250806d53Smrg
696350806d53Smrg
6964a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
69657965d9acSmrg
6966a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6967a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6968e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6969e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6970e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6971e9f7eabcSmrgthen :
6972e9f7eabcSmrg  printf %s "(cached) " >&6
6973e9f7eabcSmrgelse $as_nop
6974a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975a73423d7Smrg/* end confdefs.h.  */
6976a73423d7Smrgint i;
6977a73423d7Smrg_ACEOF
6978e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
6979e9f7eabcSmrgthen :
6980a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
6981e9f7eabcSmrgelse $as_nop
6982a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
6983a73423d7Smrgfi
6984e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6985a73423d7Smrgfi
6986e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6987e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6988a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6989a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
6990a73423d7Smrgfi
69917965d9acSmrg
6992a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6993a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6994a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6995a73423d7Smrg	fi
6996a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6997e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6998e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6999e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7000e9f7eabcSmrgthen :
7001e9f7eabcSmrg  printf %s "(cached) " >&6
7002e9f7eabcSmrgelse $as_nop
7003a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004a73423d7Smrg/* end confdefs.h.  */
7005a73423d7Smrgint i;
7006a73423d7Smrg_ACEOF
7007e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
7008e9f7eabcSmrgthen :
7009a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7010e9f7eabcSmrgelse $as_nop
7011a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
701250806d53Smrgfi
7013e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
701450806d53Smrgfi
7015e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7016e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7017a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7018a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
70197965d9acSmrgfi
702050806d53Smrg
7021a73423d7Smrgfound="no"
702250806d53Smrg
7023a73423d7Smrg	if test $found = "no" ; then
70244a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7025a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7026a73423d7Smrg		fi
702750806d53Smrg
70284a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7029a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7030a73423d7Smrg		fi
703150806d53Smrg
70324a8d91dcSmrg		CFLAGS="$CFLAGS -Wredundant-decls"
703350806d53Smrg
7034e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7035e9f7eabcSmrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; }
70364a8d91dcSmrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
7037e9f7eabcSmrg		if eval test \${$cacheid+y}
7038e9f7eabcSmrgthen :
7039e9f7eabcSmrg  printf %s "(cached) " >&6
7040e9f7eabcSmrgelse $as_nop
7041a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042a73423d7Smrg/* end confdefs.h.  */
7043a73423d7Smrgint i;
7044a73423d7Smrgint
7045e9f7eabcSmrgmain (void)
7046a73423d7Smrg{
704750806d53Smrg
7048a73423d7Smrg  ;
7049a73423d7Smrg  return 0;
7050a73423d7Smrg}
7051a73423d7Smrg_ACEOF
7052e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
7053e9f7eabcSmrgthen :
7054a73423d7Smrg  eval $cacheid=yes
7055e9f7eabcSmrgelse $as_nop
7056a73423d7Smrg  eval $cacheid=no
7057a73423d7Smrgfi
7058e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7059a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
7060a73423d7Smrgfi
706150806d53Smrg
706250806d53Smrg
7063a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
706450806d53Smrg
7065a73423d7Smrg		eval supported=\$$cacheid
7066e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7067e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
7068a73423d7Smrg		if test "$supported" = "yes" ; then
70694a8d91dcSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7070a73423d7Smrg			found="yes"
7071a73423d7Smrg		fi
7072a73423d7Smrg	fi
707350806d53Smrg
707450806d53Smrg
707550806d53Smrg
707650806d53Smrg
707750806d53Smrg
707850806d53Smrg
707950806d53Smrg
708050806d53Smrg
708150806d53Smrg
708250806d53Smrg
708350806d53Smrg
708450806d53Smrg
70857965d9acSmrg
7086a73423d7Smrg
7087a73423d7Smrg
7088a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7089a73423d7Smrg
7090a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7091a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7092e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7093e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7094e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7095e9f7eabcSmrgthen :
7096e9f7eabcSmrg  printf %s "(cached) " >&6
7097e9f7eabcSmrgelse $as_nop
7098a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099a73423d7Smrg/* end confdefs.h.  */
7100a73423d7Smrgint i;
7101a73423d7Smrg_ACEOF
7102e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
7103e9f7eabcSmrgthen :
7104a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7105e9f7eabcSmrgelse $as_nop
7106a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7107a73423d7Smrgfi
7108e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7109a73423d7Smrgfi
7110e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7111e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7112a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7113a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7114a73423d7Smrgfi
7115a73423d7Smrg
7116a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7117a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7118a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7119a73423d7Smrg	fi
7120a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7121e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7122e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7123e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7124e9f7eabcSmrgthen :
7125e9f7eabcSmrg  printf %s "(cached) " >&6
7126e9f7eabcSmrgelse $as_nop
7127a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128a73423d7Smrg/* end confdefs.h.  */
7129a73423d7Smrgint i;
7130a73423d7Smrg_ACEOF
7131e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
7132e9f7eabcSmrgthen :
7133a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7134e9f7eabcSmrgelse $as_nop
7135a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7136a73423d7Smrgfi
7137e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7138a73423d7Smrgfi
7139e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7140e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7141a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7142a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
714350806d53Smrgfi
714450806d53Smrg
7145a73423d7Smrgfound="no"
714650806d53Smrg
7147a73423d7Smrg	if test $found = "no" ; then
71484a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7149a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7150a73423d7Smrg		fi
7151a73423d7Smrg
71524a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7153a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7154a73423d7Smrg		fi
7155a73423d7Smrg
71564a8d91dcSmrg		CFLAGS="$CFLAGS -Wlogical-op"
7157a73423d7Smrg
7158e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7159e9f7eabcSmrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; }
71604a8d91dcSmrg		cacheid=xorg_cv_cc_flag__Wlogical_op
7161e9f7eabcSmrg		if eval test \${$cacheid+y}
7162e9f7eabcSmrgthen :
7163e9f7eabcSmrg  printf %s "(cached) " >&6
7164e9f7eabcSmrgelse $as_nop
7165a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166a73423d7Smrg/* end confdefs.h.  */
7167a73423d7Smrgint i;
7168a73423d7Smrgint
7169e9f7eabcSmrgmain (void)
7170a73423d7Smrg{
7171a73423d7Smrg
7172a73423d7Smrg  ;
7173a73423d7Smrg  return 0;
7174a73423d7Smrg}
717550806d53Smrg_ACEOF
7176e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
7177e9f7eabcSmrgthen :
7178a73423d7Smrg  eval $cacheid=yes
7179e9f7eabcSmrgelse $as_nop
7180a73423d7Smrg  eval $cacheid=no
7181a73423d7Smrgfi
7182e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7183a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
718450806d53Smrgfi
718550806d53Smrg
718650806d53Smrg
7187a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
718850806d53Smrg
7189a73423d7Smrg		eval supported=\$$cacheid
7190e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7191e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
7192a73423d7Smrg		if test "$supported" = "yes" ; then
71934a8d91dcSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7194a73423d7Smrg			found="yes"
7195a73423d7Smrg		fi
7196a73423d7Smrg	fi
7197a73423d7Smrg
7198a73423d7Smrg
7199a73423d7Smrg
7200a73423d7Smrg# These are currently disabled because they are noisy.  They will be enabled
7201a73423d7Smrg# in the future once the codebase is sufficiently modernized to silence
7202a73423d7Smrg# them.  For now, I don't want them to drown out the other warnings.
7203a73423d7Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7204a73423d7Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
72054a8d91dcSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7206a73423d7Smrg
7207e9f7eabcSmrg# Turn some warnings into errors, so we don't accidentally get successful builds
7208a73423d7Smrg# when there are problems that should be fixed.
7209a73423d7Smrg
7210a73423d7Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
721150806d53Smrg
721250806d53Smrg
721350806d53Smrg
721450806d53Smrg
721550806d53Smrg
721650806d53Smrg
721750806d53Smrg
721850806d53Smrg
721950806d53Smrg
722050806d53Smrg
7221a73423d7Smrg
7222a73423d7Smrg
7223a73423d7Smrg
7224a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7225a73423d7Smrg
7226a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7227a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7228e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7229e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7230e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7231e9f7eabcSmrgthen :
7232e9f7eabcSmrg  printf %s "(cached) " >&6
7233e9f7eabcSmrgelse $as_nop
7234a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235a73423d7Smrg/* end confdefs.h.  */
7236a73423d7Smrgint i;
723750806d53Smrg_ACEOF
7238e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
7239e9f7eabcSmrgthen :
7240a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7241e9f7eabcSmrgelse $as_nop
7242a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7243a73423d7Smrgfi
7244e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7245a73423d7Smrgfi
7246e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7247e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7248a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7249a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7250a73423d7Smrgfi
725150806d53Smrg
7252a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7253a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7254a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7255a73423d7Smrg	fi
7256a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7257e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7258e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7259e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7260e9f7eabcSmrgthen :
7261e9f7eabcSmrg  printf %s "(cached) " >&6
7262e9f7eabcSmrgelse $as_nop
7263a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264a73423d7Smrg/* end confdefs.h.  */
7265a73423d7Smrgint i;
7266a73423d7Smrg_ACEOF
7267e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
7268e9f7eabcSmrgthen :
7269a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7270e9f7eabcSmrgelse $as_nop
7271a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7272a73423d7Smrgfi
7273e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7274a73423d7Smrgfi
7275e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7276e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7277a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7278a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7279a73423d7Smrgfi
728050806d53Smrg
7281a73423d7Smrgfound="no"
728250806d53Smrg
7283a73423d7Smrg	if test $found = "no" ; then
72844a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7285a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7286a73423d7Smrg		fi
728750806d53Smrg
72884a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7289a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7290a73423d7Smrg		fi
729150806d53Smrg
7292a73423d7Smrg		CFLAGS="$CFLAGS -Werror=implicit"
729350806d53Smrg
7294e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7295e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; }
72964a8d91dcSmrg		cacheid=xorg_cv_cc_flag__Werror_implicit
7297e9f7eabcSmrg		if eval test \${$cacheid+y}
7298e9f7eabcSmrgthen :
7299e9f7eabcSmrg  printf %s "(cached) " >&6
7300e9f7eabcSmrgelse $as_nop
7301a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302a73423d7Smrg/* end confdefs.h.  */
7303a73423d7Smrgint i;
7304a73423d7Smrgint
7305e9f7eabcSmrgmain (void)
7306a73423d7Smrg{
730750806d53Smrg
7308a73423d7Smrg  ;
7309a73423d7Smrg  return 0;
7310a73423d7Smrg}
7311a73423d7Smrg_ACEOF
7312e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
7313e9f7eabcSmrgthen :
7314a73423d7Smrg  eval $cacheid=yes
7315e9f7eabcSmrgelse $as_nop
7316a73423d7Smrg  eval $cacheid=no
7317a73423d7Smrgfi
7318e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7319a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
7320a73423d7Smrgfi
7321a73423d7Smrg
7322a73423d7Smrg
7323a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7324a73423d7Smrg
7325a73423d7Smrg		eval supported=\$$cacheid
7326e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7327e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
7328a73423d7Smrg		if test "$supported" = "yes" ; then
7329a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7330a73423d7Smrg			found="yes"
7331a73423d7Smrg		fi
7332a73423d7Smrg	fi
733350806d53Smrg
7334a73423d7Smrg	if test $found = "no" ; then
73354a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7336a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7337a73423d7Smrg		fi
733850806d53Smrg
73394a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7340a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7341a73423d7Smrg		fi
734250806d53Smrg
7343a73423d7Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
734450806d53Smrg
7345e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7346e9f7eabcSmrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
73474a8d91dcSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7348e9f7eabcSmrg		if eval test \${$cacheid+y}
7349e9f7eabcSmrgthen :
7350e9f7eabcSmrg  printf %s "(cached) " >&6
7351e9f7eabcSmrgelse $as_nop
7352a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353a73423d7Smrg/* end confdefs.h.  */
7354a73423d7Smrgint i;
7355a73423d7Smrgint
7356e9f7eabcSmrgmain (void)
7357a73423d7Smrg{
735850806d53Smrg
7359a73423d7Smrg  ;
7360a73423d7Smrg  return 0;
7361a73423d7Smrg}
736250806d53Smrg_ACEOF
7363e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
7364e9f7eabcSmrgthen :
7365a73423d7Smrg  eval $cacheid=yes
7366e9f7eabcSmrgelse $as_nop
7367a73423d7Smrg  eval $cacheid=no
7368a73423d7Smrgfi
7369e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7370a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
7371a73423d7Smrgfi
737250806d53Smrg
737350806d53Smrg
7374a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
737550806d53Smrg
7376a73423d7Smrg		eval supported=\$$cacheid
7377e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7378e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
7379a73423d7Smrg		if test "$supported" = "yes" ; then
7380a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7381a73423d7Smrg			found="yes"
7382a73423d7Smrg		fi
7383a73423d7Smrg	fi
738450806d53Smrg
738550806d53Smrg
738650806d53Smrg
738750806d53Smrg
738850806d53Smrg
738950806d53Smrg
7390a73423d7Smrg
7391a73423d7Smrg
7392a73423d7Smrg
7393a73423d7Smrg
7394a73423d7Smrg
7395a73423d7Smrg
7396a73423d7Smrg
7397a73423d7Smrg
7398a73423d7Smrg
7399a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7400a73423d7Smrg
7401a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7402a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7403e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7404e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7405e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7406e9f7eabcSmrgthen :
7407e9f7eabcSmrg  printf %s "(cached) " >&6
7408e9f7eabcSmrgelse $as_nop
7409a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410a73423d7Smrg/* end confdefs.h.  */
7411a73423d7Smrgint i;
7412a73423d7Smrg_ACEOF
7413e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
7414e9f7eabcSmrgthen :
7415a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7416e9f7eabcSmrgelse $as_nop
7417a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7418a73423d7Smrgfi
7419e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7420a73423d7Smrgfi
7421e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7422e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7423a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7424a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
742550806d53Smrgfi
742650806d53Smrg
7427a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7428a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7429a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7430af1a9c97Smrg	fi
7431a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7432e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7433e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7434e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7435e9f7eabcSmrgthen :
7436e9f7eabcSmrg  printf %s "(cached) " >&6
7437e9f7eabcSmrgelse $as_nop
7438a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439a73423d7Smrg/* end confdefs.h.  */
7440a73423d7Smrgint i;
7441a73423d7Smrg_ACEOF
7442e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
7443e9f7eabcSmrgthen :
7444a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7445e9f7eabcSmrgelse $as_nop
7446a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7447a73423d7Smrgfi
7448e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7449a73423d7Smrgfi
7450e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7451e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7452a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7453a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
745450806d53Smrgfi
745550806d53Smrg
7456a73423d7Smrgfound="no"
745750806d53Smrg
7458a73423d7Smrg	if test $found = "no" ; then
74594a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7460a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7461a73423d7Smrg		fi
746250806d53Smrg
74634a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7464a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7465a73423d7Smrg		fi
746650806d53Smrg
7467a73423d7Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
746850806d53Smrg
7469e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7470e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; }
74714a8d91dcSmrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
7472e9f7eabcSmrg		if eval test \${$cacheid+y}
7473e9f7eabcSmrgthen :
7474e9f7eabcSmrg  printf %s "(cached) " >&6
7475e9f7eabcSmrgelse $as_nop
7476a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477a73423d7Smrg/* end confdefs.h.  */
7478a73423d7Smrgint i;
7479a73423d7Smrgint
7480e9f7eabcSmrgmain (void)
7481a73423d7Smrg{
748250806d53Smrg
7483a73423d7Smrg  ;
7484a73423d7Smrg  return 0;
7485a73423d7Smrg}
7486a73423d7Smrg_ACEOF
7487e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
7488e9f7eabcSmrgthen :
7489a73423d7Smrg  eval $cacheid=yes
7490e9f7eabcSmrgelse $as_nop
7491a73423d7Smrg  eval $cacheid=no
7492a73423d7Smrgfi
7493e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7494a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
7495a73423d7Smrgfi
749650806d53Smrg
749750806d53Smrg
7498a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
749950806d53Smrg
7500a73423d7Smrg		eval supported=\$$cacheid
7501e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7502e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
7503a73423d7Smrg		if test "$supported" = "yes" ; then
7504a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7505a73423d7Smrg			found="yes"
7506a73423d7Smrg		fi
7507a73423d7Smrg	fi
750850806d53Smrg
750950806d53Smrg
751050806d53Smrg
751150806d53Smrg
751250806d53Smrg
751350806d53Smrg
751450806d53Smrg
751550806d53Smrg
751650806d53Smrg
751750806d53Smrg
751850806d53Smrg
751950806d53Smrg
752050806d53Smrg
752150806d53Smrg
752250806d53Smrg
7523a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
752450806d53Smrg
7525a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7526a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7527e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7528e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7529e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7530e9f7eabcSmrgthen :
7531e9f7eabcSmrg  printf %s "(cached) " >&6
7532e9f7eabcSmrgelse $as_nop
7533a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534a73423d7Smrg/* end confdefs.h.  */
7535a73423d7Smrgint i;
7536a73423d7Smrg_ACEOF
7537e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
7538e9f7eabcSmrgthen :
7539a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7540e9f7eabcSmrgelse $as_nop
7541a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7542a73423d7Smrgfi
7543e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7544a73423d7Smrgfi
7545e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7546e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7547a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7548a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7549a73423d7Smrgfi
755050806d53Smrg
7551a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7552a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7553a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7554a73423d7Smrg	fi
7555a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7556e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7557e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7558e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7559e9f7eabcSmrgthen :
7560e9f7eabcSmrg  printf %s "(cached) " >&6
7561e9f7eabcSmrgelse $as_nop
7562a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563a73423d7Smrg/* end confdefs.h.  */
7564a73423d7Smrgint i;
7565a73423d7Smrg_ACEOF
7566e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
7567e9f7eabcSmrgthen :
7568a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7569e9f7eabcSmrgelse $as_nop
7570a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7571a73423d7Smrgfi
7572e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7573a73423d7Smrgfi
7574e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7575e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7576a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7577a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
757850806d53Smrgfi
757950806d53Smrg
7580a73423d7Smrgfound="no"
75817965d9acSmrg
7582a73423d7Smrg	if test $found = "no" ; then
75834a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7584a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7585a73423d7Smrg		fi
75867965d9acSmrg
75874a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7588a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7589a73423d7Smrg		fi
75907965d9acSmrg
7591a73423d7Smrg		CFLAGS="$CFLAGS -Werror=init-self"
759250806d53Smrg
7593e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7594e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; }
75954a8d91dcSmrg		cacheid=xorg_cv_cc_flag__Werror_init_self
7596e9f7eabcSmrg		if eval test \${$cacheid+y}
7597e9f7eabcSmrgthen :
7598e9f7eabcSmrg  printf %s "(cached) " >&6
7599e9f7eabcSmrgelse $as_nop
7600a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601a73423d7Smrg/* end confdefs.h.  */
7602a73423d7Smrgint i;
7603a73423d7Smrgint
7604e9f7eabcSmrgmain (void)
7605a73423d7Smrg{
7606a73423d7Smrg
7607a73423d7Smrg  ;
7608a73423d7Smrg  return 0;
7609a73423d7Smrg}
7610a73423d7Smrg_ACEOF
7611e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
7612e9f7eabcSmrgthen :
7613a73423d7Smrg  eval $cacheid=yes
7614e9f7eabcSmrgelse $as_nop
7615a73423d7Smrg  eval $cacheid=no
7616a73423d7Smrgfi
7617e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7618a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
7619a73423d7Smrgfi
7620a73423d7Smrg
7621a73423d7Smrg
7622a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7623a73423d7Smrg
7624a73423d7Smrg		eval supported=\$$cacheid
7625e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7626e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
7627a73423d7Smrg		if test "$supported" = "yes" ; then
7628a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7629a73423d7Smrg			found="yes"
7630a73423d7Smrg		fi
763150806d53Smrg	fi
7632af1a9c97Smrg
763350806d53Smrg
763450806d53Smrg
7635a73423d7Smrg
7636a73423d7Smrg
7637a73423d7Smrg
7638a73423d7Smrg
7639a73423d7Smrg
7640a73423d7Smrg
7641a73423d7Smrg
7642a73423d7Smrg
7643a73423d7Smrg
7644a73423d7Smrg
7645a73423d7Smrg
7646a73423d7Smrg
7647a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7648a73423d7Smrg
7649a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7650a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7651e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7652e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7653e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7654e9f7eabcSmrgthen :
7655e9f7eabcSmrg  printf %s "(cached) " >&6
7656e9f7eabcSmrgelse $as_nop
7657a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658a73423d7Smrg/* end confdefs.h.  */
7659a73423d7Smrgint i;
7660a73423d7Smrg_ACEOF
7661e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
7662e9f7eabcSmrgthen :
7663a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7664e9f7eabcSmrgelse $as_nop
7665a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
766650806d53Smrgfi
7667e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7668a73423d7Smrgfi
7669e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7670e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7671a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7672a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
767350806d53Smrgfi
767450806d53Smrg
7675a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7676a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7677a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7678a73423d7Smrg	fi
7679a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7680e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7681e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7682e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7683e9f7eabcSmrgthen :
7684e9f7eabcSmrg  printf %s "(cached) " >&6
7685e9f7eabcSmrgelse $as_nop
7686a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687a73423d7Smrg/* end confdefs.h.  */
7688a73423d7Smrgint i;
7689a73423d7Smrg_ACEOF
7690e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
7691e9f7eabcSmrgthen :
7692a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7693e9f7eabcSmrgelse $as_nop
7694a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7695a73423d7Smrgfi
7696e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7697a73423d7Smrgfi
7698e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7699e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7700a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7701a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7702a73423d7Smrgfi
770350806d53Smrg
7704a73423d7Smrgfound="no"
770550806d53Smrg
7706a73423d7Smrg	if test $found = "no" ; then
77074a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7708a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7709a73423d7Smrg		fi
771050806d53Smrg
77114a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7712a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7713a73423d7Smrg		fi
7714a18ebfb2Smrg
7715a73423d7Smrg		CFLAGS="$CFLAGS -Werror=main"
771650806d53Smrg
7717e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7718e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=main... " >&6; }
77194a8d91dcSmrg		cacheid=xorg_cv_cc_flag__Werror_main
7720e9f7eabcSmrg		if eval test \${$cacheid+y}
7721e9f7eabcSmrgthen :
7722e9f7eabcSmrg  printf %s "(cached) " >&6
7723e9f7eabcSmrgelse $as_nop
7724a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725a73423d7Smrg/* end confdefs.h.  */
7726a73423d7Smrgint i;
7727a73423d7Smrgint
7728e9f7eabcSmrgmain (void)
7729a73423d7Smrg{
773050806d53Smrg
7731a73423d7Smrg  ;
7732a73423d7Smrg  return 0;
7733a73423d7Smrg}
7734a73423d7Smrg_ACEOF
7735e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
7736e9f7eabcSmrgthen :
7737a73423d7Smrg  eval $cacheid=yes
7738e9f7eabcSmrgelse $as_nop
7739a73423d7Smrg  eval $cacheid=no
7740a73423d7Smrgfi
7741e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7742a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
774350806d53Smrgfi
774450806d53Smrg
774550806d53Smrg
7746a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7747a73423d7Smrg
7748a73423d7Smrg		eval supported=\$$cacheid
7749e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7750e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
7751a73423d7Smrg		if test "$supported" = "yes" ; then
7752a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7753a73423d7Smrg			found="yes"
7754a73423d7Smrg		fi
7755a73423d7Smrg	fi
7756a73423d7Smrg
7757a73423d7Smrg
7758a73423d7Smrg
7759a73423d7Smrg
7760a73423d7Smrg
7761a73423d7Smrg
7762a73423d7Smrg
7763a73423d7Smrg
7764a73423d7Smrg
7765a73423d7Smrg
7766a73423d7Smrg
7767a73423d7Smrg
7768a73423d7Smrg
7769a73423d7Smrg
7770a73423d7Smrg
7771a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7772a73423d7Smrg
7773a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7774a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7775e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7776e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7777e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7778e9f7eabcSmrgthen :
7779e9f7eabcSmrg  printf %s "(cached) " >&6
7780e9f7eabcSmrgelse $as_nop
7781a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782a73423d7Smrg/* end confdefs.h.  */
7783a73423d7Smrgint i;
7784a73423d7Smrg_ACEOF
7785e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
7786e9f7eabcSmrgthen :
7787a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7788e9f7eabcSmrgelse $as_nop
7789a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
779050806d53Smrgfi
7791e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7792a73423d7Smrgfi
7793e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7794e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7795a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7796a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7797a18ebfb2Smrgfi
7798a18ebfb2Smrg
7799a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7800a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7801a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7802a73423d7Smrg	fi
7803a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7804e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7805e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7806e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7807e9f7eabcSmrgthen :
7808e9f7eabcSmrg  printf %s "(cached) " >&6
7809e9f7eabcSmrgelse $as_nop
7810a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811a73423d7Smrg/* end confdefs.h.  */
7812a73423d7Smrgint i;
7813a73423d7Smrg_ACEOF
7814e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
7815e9f7eabcSmrgthen :
7816a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7817e9f7eabcSmrgelse $as_nop
7818a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7819a18ebfb2Smrgfi
7820e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7821a18ebfb2Smrgfi
7822e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7823e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7824a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7825a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7826a18ebfb2Smrgfi
7827a18ebfb2Smrg
7828a73423d7Smrgfound="no"
7829a18ebfb2Smrg
7830a73423d7Smrg	if test $found = "no" ; then
78314a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7832a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7833a73423d7Smrg		fi
7834a73423d7Smrg
78354a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7836a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7837a73423d7Smrg		fi
7838a73423d7Smrg
7839a73423d7Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
7840a73423d7Smrg
7841e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7842e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
78434a8d91dcSmrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7844e9f7eabcSmrg		if eval test \${$cacheid+y}
7845e9f7eabcSmrgthen :
7846e9f7eabcSmrg  printf %s "(cached) " >&6
7847e9f7eabcSmrgelse $as_nop
7848a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849a73423d7Smrg/* end confdefs.h.  */
7850a73423d7Smrgint i;
7851a73423d7Smrgint
7852e9f7eabcSmrgmain (void)
7853a73423d7Smrg{
7854a18ebfb2Smrg
7855a73423d7Smrg  ;
7856a73423d7Smrg  return 0;
7857a73423d7Smrg}
7858a73423d7Smrg_ACEOF
7859e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
7860e9f7eabcSmrgthen :
7861a73423d7Smrg  eval $cacheid=yes
7862e9f7eabcSmrgelse $as_nop
7863a73423d7Smrg  eval $cacheid=no
7864a18ebfb2Smrgfi
7865e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7866a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
7867a18ebfb2Smrgfi
7868a73423d7Smrg
7869a73423d7Smrg
7870a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7871a73423d7Smrg
7872a73423d7Smrg		eval supported=\$$cacheid
7873e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7874e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
7875a73423d7Smrg		if test "$supported" = "yes" ; then
7876a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7877a73423d7Smrg			found="yes"
7878a73423d7Smrg		fi
7879a73423d7Smrg	fi
7880a73423d7Smrg
7881a73423d7Smrg
7882a73423d7Smrg
7883a73423d7Smrg
7884a73423d7Smrg
7885a73423d7Smrg
7886a73423d7Smrg
7887a73423d7Smrg
7888a73423d7Smrg
7889a73423d7Smrg
7890a73423d7Smrg
7891a73423d7Smrg
7892a73423d7Smrg
7893a73423d7Smrg
7894a73423d7Smrg
7895a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
7896a73423d7Smrg
7897a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7898a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7899e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7900e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7901e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7902e9f7eabcSmrgthen :
7903e9f7eabcSmrg  printf %s "(cached) " >&6
7904e9f7eabcSmrgelse $as_nop
7905a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906a73423d7Smrg/* end confdefs.h.  */
7907a73423d7Smrgint i;
7908a73423d7Smrg_ACEOF
7909e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
7910e9f7eabcSmrgthen :
7911a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
7912e9f7eabcSmrgelse $as_nop
7913a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
7914a73423d7Smrgfi
7915e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7916a73423d7Smrgfi
7917e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7918e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7919a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7920a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7921a18ebfb2Smrgfi
7922a18ebfb2Smrg
7923a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7924a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7925a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7926a73423d7Smrg	fi
7927a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7928e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7929e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7930e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7931e9f7eabcSmrgthen :
7932e9f7eabcSmrg  printf %s "(cached) " >&6
7933e9f7eabcSmrgelse $as_nop
7934a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935a73423d7Smrg/* end confdefs.h.  */
7936a73423d7Smrgint i;
7937a73423d7Smrg_ACEOF
7938e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
7939e9f7eabcSmrgthen :
7940a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7941e9f7eabcSmrgelse $as_nop
7942a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
7943a18ebfb2Smrgfi
7944e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7945a73423d7Smrgfi
7946e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7947e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7948a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7949a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
7950a18ebfb2Smrgfi
7951a18ebfb2Smrg
7952a73423d7Smrgfound="no"
7953a73423d7Smrg
7954a73423d7Smrg	if test $found = "no" ; then
79554a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7956a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7957a73423d7Smrg		fi
7958a73423d7Smrg
79594a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7960a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7961a73423d7Smrg		fi
7962a73423d7Smrg
7963a73423d7Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
7964a73423d7Smrg
7965e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7966e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
79674a8d91dcSmrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7968e9f7eabcSmrg		if eval test \${$cacheid+y}
7969e9f7eabcSmrgthen :
7970e9f7eabcSmrg  printf %s "(cached) " >&6
7971e9f7eabcSmrgelse $as_nop
7972a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973a73423d7Smrg/* end confdefs.h.  */
7974a73423d7Smrgint i;
7975a73423d7Smrgint
7976e9f7eabcSmrgmain (void)
7977a73423d7Smrg{
79787965d9acSmrg
7979a73423d7Smrg  ;
7980a73423d7Smrg  return 0;
7981a73423d7Smrg}
7982a73423d7Smrg_ACEOF
7983e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
7984e9f7eabcSmrgthen :
7985a73423d7Smrg  eval $cacheid=yes
7986e9f7eabcSmrgelse $as_nop
7987a73423d7Smrg  eval $cacheid=no
79887965d9acSmrgfi
7989e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7990a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
799150806d53Smrgfi
79927965d9acSmrg
799350806d53Smrg
7994a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
7995a73423d7Smrg
7996a73423d7Smrg		eval supported=\$$cacheid
7997e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7998e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
7999a73423d7Smrg		if test "$supported" = "yes" ; then
8000a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8001a73423d7Smrg			found="yes"
8002a73423d7Smrg		fi
8003a73423d7Smrg	fi
8004a73423d7Smrg
8005a73423d7Smrg
8006a73423d7Smrg
8007a73423d7Smrg
8008a73423d7Smrg
8009a73423d7Smrg
8010a73423d7Smrg
8011a73423d7Smrg
8012a73423d7Smrg
8013a73423d7Smrg
8014a73423d7Smrg
8015a73423d7Smrg
8016a73423d7Smrg
8017a73423d7Smrg
8018a73423d7Smrg
8019a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8020a73423d7Smrg
8021a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8022a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8023e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8024e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8025e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8026e9f7eabcSmrgthen :
8027e9f7eabcSmrg  printf %s "(cached) " >&6
8028e9f7eabcSmrgelse $as_nop
8029a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030a73423d7Smrg/* end confdefs.h.  */
8031a73423d7Smrgint i;
8032a73423d7Smrg_ACEOF
8033e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
8034e9f7eabcSmrgthen :
8035a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8036e9f7eabcSmrgelse $as_nop
8037a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8038a73423d7Smrgfi
8039e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
804050806d53Smrgfi
8041e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8042e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8043a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8044a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
804550806d53Smrgfi
8046a73423d7Smrg
8047a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8048a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8049a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8050a73423d7Smrg	fi
8051a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8052e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8053e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8054e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8055e9f7eabcSmrgthen :
8056e9f7eabcSmrg  printf %s "(cached) " >&6
8057e9f7eabcSmrgelse $as_nop
8058a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059a73423d7Smrg/* end confdefs.h.  */
8060a73423d7Smrgint i;
8061a73423d7Smrg_ACEOF
8062e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
8063e9f7eabcSmrgthen :
8064a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8065e9f7eabcSmrgelse $as_nop
8066a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8067a73423d7Smrgfi
8068e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8069a73423d7Smrgfi
8070e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8071e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8072a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8073a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
807450806d53Smrgfi
807550806d53Smrg
8076a73423d7Smrgfound="no"
80777965d9acSmrg
8078a73423d7Smrg	if test $found = "no" ; then
80794a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8080a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8081a73423d7Smrg		fi
808250806d53Smrg
80834a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8084a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8085a73423d7Smrg		fi
8086a73423d7Smrg
8087a73423d7Smrg		CFLAGS="$CFLAGS -Werror=return-type"
8088a73423d7Smrg
8089e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8090e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; }
80914a8d91dcSmrg		cacheid=xorg_cv_cc_flag__Werror_return_type
8092e9f7eabcSmrg		if eval test \${$cacheid+y}
8093e9f7eabcSmrgthen :
8094e9f7eabcSmrg  printf %s "(cached) " >&6
8095e9f7eabcSmrgelse $as_nop
8096a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097a73423d7Smrg/* end confdefs.h.  */
8098a73423d7Smrgint i;
8099a73423d7Smrgint
8100e9f7eabcSmrgmain (void)
8101a73423d7Smrg{
8102a73423d7Smrg
8103a73423d7Smrg  ;
8104a73423d7Smrg  return 0;
8105a73423d7Smrg}
810650806d53Smrg_ACEOF
8107e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
8108e9f7eabcSmrgthen :
8109a73423d7Smrg  eval $cacheid=yes
8110e9f7eabcSmrgelse $as_nop
8111a73423d7Smrg  eval $cacheid=no
811250806d53Smrgfi
8113e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8114a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
811550806d53Smrgfi
811650806d53Smrg
811750806d53Smrg
8118a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
811950806d53Smrg
8120a73423d7Smrg		eval supported=\$$cacheid
8121e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8122e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
8123a73423d7Smrg		if test "$supported" = "yes" ; then
8124a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8125a73423d7Smrg			found="yes"
8126a73423d7Smrg		fi
8127a73423d7Smrg	fi
812850806d53Smrg
8129a73423d7Smrg	if test $found = "no" ; then
81304a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8131a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8132a73423d7Smrg		fi
813350806d53Smrg
81344a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8135a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8136a73423d7Smrg		fi
813750806d53Smrg
8138a73423d7Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
813950806d53Smrg
8140e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8141e9f7eabcSmrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
81424a8d91dcSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8143e9f7eabcSmrg		if eval test \${$cacheid+y}
8144e9f7eabcSmrgthen :
8145e9f7eabcSmrg  printf %s "(cached) " >&6
8146e9f7eabcSmrgelse $as_nop
8147a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148a73423d7Smrg/* end confdefs.h.  */
8149a73423d7Smrgint i;
8150a73423d7Smrgint
8151e9f7eabcSmrgmain (void)
8152a73423d7Smrg{
815350806d53Smrg
8154a73423d7Smrg  ;
8155a73423d7Smrg  return 0;
8156a73423d7Smrg}
815750806d53Smrg_ACEOF
8158e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
8159e9f7eabcSmrgthen :
8160a73423d7Smrg  eval $cacheid=yes
8161e9f7eabcSmrgelse $as_nop
8162a73423d7Smrg  eval $cacheid=no
8163a73423d7Smrgfi
8164e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8165a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
8166a73423d7Smrgfi
816750806d53Smrg
816850806d53Smrg
8169a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
817050806d53Smrg
8171a73423d7Smrg		eval supported=\$$cacheid
8172e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8173e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
8174a73423d7Smrg		if test "$supported" = "yes" ; then
8175a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8176a73423d7Smrg			found="yes"
8177a73423d7Smrg		fi
8178a73423d7Smrg	fi
817950806d53Smrg
818050806d53Smrg
818150806d53Smrg
818250806d53Smrg
818350806d53Smrg
818450806d53Smrg
818550806d53Smrg
818650806d53Smrg
818750806d53Smrg
818850806d53Smrg
8189a18ebfb2Smrg
8190a18ebfb2Smrg
8191a18ebfb2Smrg
8192a18ebfb2Smrg
8193a18ebfb2Smrg
8194a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8195a18ebfb2Smrg
8196a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8197a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8198e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8199e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8200e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8201e9f7eabcSmrgthen :
8202e9f7eabcSmrg  printf %s "(cached) " >&6
8203e9f7eabcSmrgelse $as_nop
8204a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205a73423d7Smrg/* end confdefs.h.  */
8206a73423d7Smrgint i;
8207a73423d7Smrg_ACEOF
8208e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
8209e9f7eabcSmrgthen :
8210a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8211e9f7eabcSmrgelse $as_nop
8212a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8213a73423d7Smrgfi
8214e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8215a73423d7Smrgfi
8216e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8217e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8218a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8219a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
822050806d53Smrgfi
8221a18ebfb2Smrg
8222a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8223a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8224a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8225a73423d7Smrg	fi
8226a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8227e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8228e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8229e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8230e9f7eabcSmrgthen :
8231e9f7eabcSmrg  printf %s "(cached) " >&6
8232e9f7eabcSmrgelse $as_nop
8233a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234a73423d7Smrg/* end confdefs.h.  */
8235a73423d7Smrgint i;
8236a73423d7Smrg_ACEOF
8237e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
8238e9f7eabcSmrgthen :
8239a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8240e9f7eabcSmrgelse $as_nop
8241a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8242a73423d7Smrgfi
8243e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8244a73423d7Smrgfi
8245e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8246e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8247a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8248a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
824950806d53Smrgfi
825050806d53Smrg
8251a73423d7Smrgfound="no"
825250806d53Smrg
8253a73423d7Smrg	if test $found = "no" ; then
82544a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8255a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8256a73423d7Smrg		fi
825750806d53Smrg
82584a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8259a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8260a73423d7Smrg		fi
826150806d53Smrg
8262a73423d7Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
8263a73423d7Smrg
8264e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8265e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
82664a8d91dcSmrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8267e9f7eabcSmrg		if eval test \${$cacheid+y}
8268e9f7eabcSmrgthen :
8269e9f7eabcSmrg  printf %s "(cached) " >&6
8270e9f7eabcSmrgelse $as_nop
8271a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272a73423d7Smrg/* end confdefs.h.  */
8273a73423d7Smrgint i;
8274a73423d7Smrgint
8275e9f7eabcSmrgmain (void)
8276a73423d7Smrg{
827750806d53Smrg
8278a73423d7Smrg  ;
8279a73423d7Smrg  return 0;
8280a73423d7Smrg}
8281a73423d7Smrg_ACEOF
8282e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
8283e9f7eabcSmrgthen :
8284a73423d7Smrg  eval $cacheid=yes
8285e9f7eabcSmrgelse $as_nop
8286a73423d7Smrg  eval $cacheid=no
8287a73423d7Smrgfi
8288e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8289a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
8290a73423d7Smrgfi
82917965d9acSmrg
82927965d9acSmrg
8293a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
829450806d53Smrg
8295a73423d7Smrg		eval supported=\$$cacheid
8296e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8297e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
8298a73423d7Smrg		if test "$supported" = "yes" ; then
8299a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8300a73423d7Smrg			found="yes"
8301a73423d7Smrg		fi
8302a73423d7Smrg	fi
830350806d53Smrg
830450806d53Smrg
83057965d9acSmrg
83067965d9acSmrg
830750806d53Smrg
830850806d53Smrg
830950806d53Smrg
831050806d53Smrg
831150806d53Smrg
831250806d53Smrg
831350806d53Smrg
831450806d53Smrg
831550806d53Smrg
831650806d53Smrg
831750806d53Smrg
8318a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
831950806d53Smrg
8320a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8321a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8322e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8323e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8324e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8325e9f7eabcSmrgthen :
8326e9f7eabcSmrg  printf %s "(cached) " >&6
8327e9f7eabcSmrgelse $as_nop
8328a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329a73423d7Smrg/* end confdefs.h.  */
8330a73423d7Smrgint i;
8331a73423d7Smrg_ACEOF
8332e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
8333e9f7eabcSmrgthen :
8334a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8335e9f7eabcSmrgelse $as_nop
8336a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
833750806d53Smrgfi
8338e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
833950806d53Smrgfi
8340e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8341e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8342a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8343a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
834450806d53Smrgfi
834550806d53Smrg
8346a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8347a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8348a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8349a73423d7Smrg	fi
8350a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8351e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8352e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8353e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8354e9f7eabcSmrgthen :
8355e9f7eabcSmrg  printf %s "(cached) " >&6
8356e9f7eabcSmrgelse $as_nop
8357a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358a73423d7Smrg/* end confdefs.h.  */
8359a73423d7Smrgint i;
8360a73423d7Smrg_ACEOF
8361e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
8362e9f7eabcSmrgthen :
8363a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8364e9f7eabcSmrgelse $as_nop
8365a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
836650806d53Smrgfi
8367e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
836850806d53Smrgfi
8369e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8370e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8371a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8372a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
837350806d53Smrgfi
837450806d53Smrg
8375a73423d7Smrgfound="no"
837650806d53Smrg
8377a73423d7Smrg	if test $found = "no" ; then
83784a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8379a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8380a73423d7Smrg		fi
8381a73423d7Smrg
83824a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8383a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8384a73423d7Smrg		fi
8385a73423d7Smrg
8386a73423d7Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
8387a73423d7Smrg
8388e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8389e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
83904a8d91dcSmrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8391e9f7eabcSmrg		if eval test \${$cacheid+y}
8392e9f7eabcSmrgthen :
8393e9f7eabcSmrg  printf %s "(cached) " >&6
8394e9f7eabcSmrgelse $as_nop
8395a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396a73423d7Smrg/* end confdefs.h.  */
8397a73423d7Smrgint i;
8398a73423d7Smrgint
8399e9f7eabcSmrgmain (void)
8400a73423d7Smrg{
840150806d53Smrg
8402a73423d7Smrg  ;
8403a73423d7Smrg  return 0;
8404a73423d7Smrg}
8405a73423d7Smrg_ACEOF
8406e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
8407e9f7eabcSmrgthen :
8408a73423d7Smrg  eval $cacheid=yes
8409e9f7eabcSmrgelse $as_nop
8410a73423d7Smrg  eval $cacheid=no
8411a73423d7Smrgfi
8412e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8413a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
841450806d53Smrgfi
841550806d53Smrg
841650806d53Smrg
8417a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8418a73423d7Smrg
8419a73423d7Smrg		eval supported=\$$cacheid
8420e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8421e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
8422a73423d7Smrg		if test "$supported" = "yes" ; then
8423a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8424a73423d7Smrg			found="yes"
8425a73423d7Smrg		fi
8426a73423d7Smrg	fi
8427a73423d7Smrg
8428a73423d7Smrg
8429a73423d7Smrg
8430a73423d7Smrg
8431a73423d7Smrg
8432a73423d7Smrg
8433a73423d7Smrg
8434a73423d7Smrg
8435a73423d7Smrg
8436a73423d7Smrg
8437a73423d7Smrg
8438a73423d7Smrg
8439a73423d7Smrg
8440a73423d7Smrg
8441a73423d7Smrg
8442a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8443a73423d7Smrg
8444a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8445a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8446e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8447e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8448e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8449e9f7eabcSmrgthen :
8450e9f7eabcSmrg  printf %s "(cached) " >&6
8451e9f7eabcSmrgelse $as_nop
8452a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453a73423d7Smrg/* end confdefs.h.  */
8454a73423d7Smrgint i;
8455a73423d7Smrg_ACEOF
8456e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
8457e9f7eabcSmrgthen :
8458a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8459e9f7eabcSmrgelse $as_nop
8460a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
846150806d53Smrgfi
8462e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
846350806d53Smrgfi
8464e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8465e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8466a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8467a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
846850806d53Smrgfi
846950806d53Smrg
8470a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8471a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8472a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8473a73423d7Smrg	fi
8474a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8475e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8476e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8477e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8478e9f7eabcSmrgthen :
8479e9f7eabcSmrg  printf %s "(cached) " >&6
8480e9f7eabcSmrgelse $as_nop
8481a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482a73423d7Smrg/* end confdefs.h.  */
8483a73423d7Smrgint i;
8484a73423d7Smrg_ACEOF
8485e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
8486e9f7eabcSmrgthen :
8487a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8488e9f7eabcSmrgelse $as_nop
8489a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
849050806d53Smrgfi
8491e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
849250806d53Smrgfi
8493e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8494e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8495a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8496a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
849750806d53Smrgfi
849850806d53Smrg
8499a73423d7Smrgfound="no"
85007965d9acSmrg
8501a73423d7Smrg	if test $found = "no" ; then
85024a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8503a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8504a73423d7Smrg		fi
8505a73423d7Smrg
85064a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8507a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8508a73423d7Smrg		fi
8509a73423d7Smrg
8510a73423d7Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
8511a73423d7Smrg
8512e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8513e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; }
85144a8d91dcSmrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
8515e9f7eabcSmrg		if eval test \${$cacheid+y}
8516e9f7eabcSmrgthen :
8517e9f7eabcSmrg  printf %s "(cached) " >&6
8518e9f7eabcSmrgelse $as_nop
8519a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520a73423d7Smrg/* end confdefs.h.  */
8521a73423d7Smrgint i;
8522a73423d7Smrgint
8523e9f7eabcSmrgmain (void)
8524a73423d7Smrg{
852550806d53Smrg
8526a73423d7Smrg  ;
8527a73423d7Smrg  return 0;
8528a73423d7Smrg}
8529a73423d7Smrg_ACEOF
8530e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
8531e9f7eabcSmrgthen :
8532a73423d7Smrg  eval $cacheid=yes
8533e9f7eabcSmrgelse $as_nop
8534a73423d7Smrg  eval $cacheid=no
8535a73423d7Smrgfi
8536e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8537a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
853850806d53Smrgfi
853950806d53Smrg
85407965d9acSmrg
8541a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8542a73423d7Smrg
8543a73423d7Smrg		eval supported=\$$cacheid
8544e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8545e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
8546a73423d7Smrg		if test "$supported" = "yes" ; then
8547a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8548a73423d7Smrg			found="yes"
8549a73423d7Smrg		fi
8550a73423d7Smrg	fi
8551a73423d7Smrg
8552a73423d7Smrg
8553a73423d7Smrg
8554a73423d7Smrg
855550806d53Smrg
855650806d53Smrg
855750806d53Smrg
855850806d53Smrg
855950806d53Smrg
856050806d53Smrg
8561a73423d7Smrg
8562a73423d7Smrg
8563a73423d7Smrg
8564a73423d7Smrg
8565a73423d7Smrg
8566a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8567a73423d7Smrg
8568a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8569a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8570e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8571e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8572e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8573e9f7eabcSmrgthen :
8574e9f7eabcSmrg  printf %s "(cached) " >&6
8575e9f7eabcSmrgelse $as_nop
8576a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577a73423d7Smrg/* end confdefs.h.  */
8578a73423d7Smrgint i;
857950806d53Smrg_ACEOF
8580e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
8581e9f7eabcSmrgthen :
8582a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8583e9f7eabcSmrgelse $as_nop
8584a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8585a73423d7Smrgfi
8586e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8587a73423d7Smrgfi
8588e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8589e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8590a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8591a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8592a73423d7Smrgfi
8593a73423d7Smrg
8594a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8595a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8596a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8597a73423d7Smrg	fi
8598a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8599e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8600e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8601e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8602e9f7eabcSmrgthen :
8603e9f7eabcSmrg  printf %s "(cached) " >&6
8604e9f7eabcSmrgelse $as_nop
8605a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
860650806d53Smrg/* end confdefs.h.  */
8607a73423d7Smrgint i;
8608a73423d7Smrg_ACEOF
8609e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
8610e9f7eabcSmrgthen :
8611a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8612e9f7eabcSmrgelse $as_nop
8613a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8614a73423d7Smrgfi
8615e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8616a73423d7Smrgfi
8617e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8618e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8619a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8620a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8621a73423d7Smrgfi
862250806d53Smrg
8623a73423d7Smrgfound="no"
8624a73423d7Smrg
8625a73423d7Smrg	if test $found = "no" ; then
86264a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8627a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8628a73423d7Smrg		fi
8629a73423d7Smrg
86304a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8631a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8632a73423d7Smrg		fi
8633a73423d7Smrg
8634a73423d7Smrg		CFLAGS="$CFLAGS -Werror=address"
8635a73423d7Smrg
8636e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8637e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=address... " >&6; }
86384a8d91dcSmrg		cacheid=xorg_cv_cc_flag__Werror_address
8639e9f7eabcSmrg		if eval test \${$cacheid+y}
8640e9f7eabcSmrgthen :
8641e9f7eabcSmrg  printf %s "(cached) " >&6
8642e9f7eabcSmrgelse $as_nop
8643a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644a73423d7Smrg/* end confdefs.h.  */
8645a73423d7Smrgint i;
864650806d53Smrgint
8647e9f7eabcSmrgmain (void)
864850806d53Smrg{
864950806d53Smrg
865050806d53Smrg  ;
865150806d53Smrg  return 0;
865250806d53Smrg}
865350806d53Smrg_ACEOF
8654e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
8655e9f7eabcSmrgthen :
8656a73423d7Smrg  eval $cacheid=yes
8657e9f7eabcSmrgelse $as_nop
8658a73423d7Smrg  eval $cacheid=no
8659a73423d7Smrgfi
8660e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8661a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
8662a73423d7Smrgfi
8663af1a9c97Smrg
8664af1a9c97Smrg
8665a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
86667965d9acSmrg
8667a73423d7Smrg		eval supported=\$$cacheid
8668e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8669e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
8670a73423d7Smrg		if test "$supported" = "yes" ; then
8671a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8672a73423d7Smrg			found="yes"
8673a73423d7Smrg		fi
86747965d9acSmrg	fi
86757965d9acSmrg
86767965d9acSmrg
867750806d53Smrg
867850806d53Smrg
867950806d53Smrg
868050806d53Smrg
86817965d9acSmrg
8682a73423d7Smrg
8683a73423d7Smrg
8684a73423d7Smrg
8685a73423d7Smrg
8686a73423d7Smrg
8687a73423d7Smrg
8688a73423d7Smrg
8689a73423d7Smrg
8690a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8691a73423d7Smrg
8692a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8693a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8694e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8695e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8696e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8697e9f7eabcSmrgthen :
8698e9f7eabcSmrg  printf %s "(cached) " >&6
8699e9f7eabcSmrgelse $as_nop
8700a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701a73423d7Smrg/* end confdefs.h.  */
8702a73423d7Smrgint i;
8703a73423d7Smrg_ACEOF
8704e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
8705e9f7eabcSmrgthen :
8706a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8707e9f7eabcSmrgelse $as_nop
8708a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8709a73423d7Smrgfi
8710e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8711a73423d7Smrgfi
8712e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8713e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8714a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8715a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8716a73423d7Smrgfi
8717a73423d7Smrg
8718a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8719a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8720a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8721a73423d7Smrg	fi
8722a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8723e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8724e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8725e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8726e9f7eabcSmrgthen :
8727e9f7eabcSmrg  printf %s "(cached) " >&6
8728e9f7eabcSmrgelse $as_nop
8729a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730a73423d7Smrg/* end confdefs.h.  */
8731a73423d7Smrgint i;
8732a73423d7Smrg_ACEOF
8733e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
8734e9f7eabcSmrgthen :
8735a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8736e9f7eabcSmrgelse $as_nop
8737a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
8738a73423d7Smrgfi
8739e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8740a73423d7Smrgfi
8741e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8742e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8743a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8744a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
874550806d53Smrgfi
874650806d53Smrg
8747a73423d7Smrgfound="no"
874850806d53Smrg
8749a73423d7Smrg	if test $found = "no" ; then
87504a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8751a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8752a73423d7Smrg		fi
8753a73423d7Smrg
87544a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8755a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8756a73423d7Smrg		fi
8757a73423d7Smrg
8758a73423d7Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8759a73423d7Smrg
8760e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8761e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
87624a8d91dcSmrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8763e9f7eabcSmrg		if eval test \${$cacheid+y}
8764e9f7eabcSmrgthen :
8765e9f7eabcSmrg  printf %s "(cached) " >&6
8766e9f7eabcSmrgelse $as_nop
8767a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
876850806d53Smrg/* end confdefs.h.  */
8769a73423d7Smrgint i;
877050806d53Smrgint
8771e9f7eabcSmrgmain (void)
877250806d53Smrg{
877350806d53Smrg
877450806d53Smrg  ;
877550806d53Smrg  return 0;
877650806d53Smrg}
877750806d53Smrg_ACEOF
8778e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
8779e9f7eabcSmrgthen :
8780a73423d7Smrg  eval $cacheid=yes
8781e9f7eabcSmrgelse $as_nop
8782a73423d7Smrg  eval $cacheid=no
878350806d53Smrgfi
8784e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8785a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
878650806d53Smrgfi
8787a73423d7Smrg
8788a73423d7Smrg
8789a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8790a73423d7Smrg
8791a73423d7Smrg		eval supported=\$$cacheid
8792e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8793e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
8794a73423d7Smrg		if test "$supported" = "yes" ; then
8795a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8796a73423d7Smrg			found="yes"
8797a73423d7Smrg		fi
8798a73423d7Smrg	fi
8799a73423d7Smrg
8800a73423d7Smrg	if test $found = "no" ; then
88014a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8802a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8803a73423d7Smrg		fi
8804a73423d7Smrg
88054a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8806a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8807a73423d7Smrg		fi
8808a73423d7Smrg
8809a73423d7Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8810a73423d7Smrg
8811e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8812e9f7eabcSmrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
88134a8d91dcSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8814e9f7eabcSmrg		if eval test \${$cacheid+y}
8815e9f7eabcSmrgthen :
8816e9f7eabcSmrg  printf %s "(cached) " >&6
8817e9f7eabcSmrgelse $as_nop
8818a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
881950806d53Smrg/* end confdefs.h.  */
8820a73423d7Smrgint i;
882150806d53Smrgint
8822e9f7eabcSmrgmain (void)
882350806d53Smrg{
882450806d53Smrg
882550806d53Smrg  ;
882650806d53Smrg  return 0;
882750806d53Smrg}
882850806d53Smrg_ACEOF
8829e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
8830e9f7eabcSmrgthen :
8831a73423d7Smrg  eval $cacheid=yes
8832e9f7eabcSmrgelse $as_nop
8833a73423d7Smrg  eval $cacheid=no
8834a73423d7Smrgfi
8835e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8836a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
883750806d53Smrgfi
88387965d9acSmrg
8839a73423d7Smrg
8840a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8841a73423d7Smrg
8842a73423d7Smrg		eval supported=\$$cacheid
8843e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8844e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
8845a73423d7Smrg		if test "$supported" = "yes" ; then
8846a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8847a73423d7Smrg			found="yes"
8848a73423d7Smrg		fi
8849a73423d7Smrg	fi
8850a73423d7Smrg
8851a73423d7Smrg
8852a73423d7Smrg
8853a73423d7Smrg
8854a73423d7Smrg
8855a73423d7Smrg
8856a73423d7Smrg
8857a73423d7Smrg
8858a73423d7Smrg
8859a73423d7Smrg
8860a73423d7Smrg
8861a73423d7Smrg
8862a73423d7Smrg
8863a73423d7Smrg
8864a73423d7Smrg
8865a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8866a73423d7Smrg
8867a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8868a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8869e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8870e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8871e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8872e9f7eabcSmrgthen :
8873e9f7eabcSmrg  printf %s "(cached) " >&6
8874e9f7eabcSmrgelse $as_nop
8875a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876a73423d7Smrg/* end confdefs.h.  */
8877a73423d7Smrgint i;
8878a73423d7Smrg_ACEOF
8879e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
8880e9f7eabcSmrgthen :
8881a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
8882e9f7eabcSmrgelse $as_nop
8883a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
8884a73423d7Smrgfi
8885e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8886a73423d7Smrgfi
8887e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8888e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8889a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8890a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8891a73423d7Smrgfi
889250806d53Smrg
8893a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8894a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8895a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8896a73423d7Smrg	fi
8897a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8898e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8899e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8900e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8901e9f7eabcSmrgthen :
8902e9f7eabcSmrg  printf %s "(cached) " >&6
8903e9f7eabcSmrgelse $as_nop
8904a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905a73423d7Smrg/* end confdefs.h.  */
8906a73423d7Smrgint i;
8907a73423d7Smrg_ACEOF
8908e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
8909e9f7eabcSmrgthen :
8910a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8911e9f7eabcSmrgelse $as_nop
8912a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
891350806d53Smrgfi
8914e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8915a73423d7Smrgfi
8916e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8917e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8918a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8919a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
8920a73423d7Smrgfi
8921a73423d7Smrg
8922a73423d7Smrgfound="no"
8923a73423d7Smrg
8924a73423d7Smrg	if test $found = "no" ; then
89254a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8926a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8927a73423d7Smrg		fi
8928a73423d7Smrg
89294a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8930a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8931a73423d7Smrg		fi
8932a73423d7Smrg
8933a73423d7Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8934a73423d7Smrg
8935e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8936e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
89374a8d91dcSmrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8938e9f7eabcSmrg		if eval test \${$cacheid+y}
8939e9f7eabcSmrgthen :
8940e9f7eabcSmrg  printf %s "(cached) " >&6
8941e9f7eabcSmrgelse $as_nop
8942a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943a73423d7Smrg/* end confdefs.h.  */
8944a73423d7Smrgint i;
8945a73423d7Smrgint
8946e9f7eabcSmrgmain (void)
8947a73423d7Smrg{
8948a73423d7Smrg
8949a73423d7Smrg  ;
8950a73423d7Smrg  return 0;
8951a73423d7Smrg}
8952a73423d7Smrg_ACEOF
8953e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
8954e9f7eabcSmrgthen :
8955a73423d7Smrg  eval $cacheid=yes
8956e9f7eabcSmrgelse $as_nop
8957a73423d7Smrg  eval $cacheid=no
8958af1a9c97Smrgfi
8959e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8960a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
8961a73423d7Smrgfi
8962a73423d7Smrg
8963a73423d7Smrg
8964a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
8965a73423d7Smrg
8966a73423d7Smrg		eval supported=\$$cacheid
8967e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8968e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
8969a73423d7Smrg		if test "$supported" = "yes" ; then
8970a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8971a73423d7Smrg			found="yes"
8972a73423d7Smrg		fi
8973a73423d7Smrg	fi
8974a73423d7Smrg
8975a73423d7Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8976a73423d7Smrgelse
8977e9f7eabcSmrg{ printf "%s\n" "$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
8978e9f7eabcSmrgprintf "%s\n" "$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;}
8979a73423d7Smrg
8980a73423d7Smrg
8981a73423d7Smrg
8982a73423d7Smrg
8983a73423d7Smrg
8984a73423d7Smrg
8985a73423d7Smrg
8986a73423d7Smrg
8987a73423d7Smrg
8988a73423d7Smrg
8989a73423d7Smrg
8990a73423d7Smrg
8991a73423d7Smrg
8992a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
8993a73423d7Smrg
8994a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8995a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8996e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8997e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8998e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8999e9f7eabcSmrgthen :
9000e9f7eabcSmrg  printf %s "(cached) " >&6
9001e9f7eabcSmrgelse $as_nop
9002a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003a73423d7Smrg/* end confdefs.h.  */
9004a73423d7Smrgint i;
900550806d53Smrg_ACEOF
9006e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
9007e9f7eabcSmrgthen :
9008a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9009e9f7eabcSmrgelse $as_nop
9010a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9011a73423d7Smrgfi
9012e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9013a73423d7Smrgfi
9014e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9015e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9016a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9017a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9018a73423d7Smrgfi
9019a73423d7Smrg
9020a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9021a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9022a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9023a73423d7Smrg	fi
9024a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9025e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9026e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9027e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9028e9f7eabcSmrgthen :
9029e9f7eabcSmrg  printf %s "(cached) " >&6
9030e9f7eabcSmrgelse $as_nop
9031a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
903250806d53Smrg/* end confdefs.h.  */
9033a73423d7Smrgint i;
9034a73423d7Smrg_ACEOF
9035e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
9036e9f7eabcSmrgthen :
9037a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9038e9f7eabcSmrgelse $as_nop
9039a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9040a73423d7Smrgfi
9041e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9042a73423d7Smrgfi
9043e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9044e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9045a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9046a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9047a73423d7Smrgfi
9048a73423d7Smrg
9049a73423d7Smrgfound="no"
9050a73423d7Smrg
9051a73423d7Smrg	if test $found = "no" ; then
90524a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9053a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9054a73423d7Smrg		fi
9055a73423d7Smrg
90564a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9057a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9058a73423d7Smrg		fi
905950806d53Smrg
9060a73423d7Smrg		CFLAGS="$CFLAGS -Wimplicit"
9061a73423d7Smrg
9062e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9063e9f7eabcSmrgprintf %s "checking if $CC supports -Wimplicit... " >&6; }
9064a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
9065e9f7eabcSmrg		if eval test \${$cacheid+y}
9066e9f7eabcSmrgthen :
9067e9f7eabcSmrg  printf %s "(cached) " >&6
9068e9f7eabcSmrgelse $as_nop
9069a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070a73423d7Smrg/* end confdefs.h.  */
9071a73423d7Smrgint i;
907250806d53Smrgint
9073e9f7eabcSmrgmain (void)
907450806d53Smrg{
907550806d53Smrg
907650806d53Smrg  ;
907750806d53Smrg  return 0;
907850806d53Smrg}
907950806d53Smrg_ACEOF
9080e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
9081e9f7eabcSmrgthen :
9082a73423d7Smrg  eval $cacheid=yes
9083e9f7eabcSmrgelse $as_nop
9084a73423d7Smrg  eval $cacheid=no
9085a73423d7Smrgfi
9086e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9087a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
9088a73423d7Smrgfi
9089a73423d7Smrg
9090a73423d7Smrg
9091a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9092a73423d7Smrg
9093a73423d7Smrg		eval supported=\$$cacheid
9094e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9095e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
9096a73423d7Smrg		if test "$supported" = "yes" ; then
9097a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9098a73423d7Smrg			found="yes"
9099a73423d7Smrg		fi
9100a73423d7Smrg	fi
9101a73423d7Smrg
9102a73423d7Smrg
9103a73423d7Smrg
910450806d53Smrg
9105a73423d7Smrg
9106a73423d7Smrg
9107a73423d7Smrg
9108a73423d7Smrg
9109a73423d7Smrg
9110a73423d7Smrg
9111a73423d7Smrg
9112a73423d7Smrg
9113a73423d7Smrg
9114a73423d7Smrg
9115a73423d7Smrg
9116a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9117a73423d7Smrg
9118a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9119a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9120e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9121e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9122e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9123e9f7eabcSmrgthen :
9124e9f7eabcSmrg  printf %s "(cached) " >&6
9125e9f7eabcSmrgelse $as_nop
9126a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127a73423d7Smrg/* end confdefs.h.  */
9128a73423d7Smrgint i;
912950806d53Smrg_ACEOF
9130e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
9131e9f7eabcSmrgthen :
9132a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9133e9f7eabcSmrgelse $as_nop
9134a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9135a73423d7Smrgfi
9136e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9137a73423d7Smrgfi
9138e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9139e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9140a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9141a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9142a73423d7Smrgfi
9143a73423d7Smrg
9144a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9145a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9146a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9147a73423d7Smrg	fi
9148a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9149e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9150e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9151e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9152e9f7eabcSmrgthen :
9153e9f7eabcSmrg  printf %s "(cached) " >&6
9154e9f7eabcSmrgelse $as_nop
9155a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
915650806d53Smrg/* end confdefs.h.  */
9157a73423d7Smrgint i;
9158a73423d7Smrg_ACEOF
9159e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
9160e9f7eabcSmrgthen :
9161a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9162e9f7eabcSmrgelse $as_nop
9163a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9164a73423d7Smrgfi
9165e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9166a73423d7Smrgfi
9167e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9168e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9169a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9170a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9171a73423d7Smrgfi
9172a73423d7Smrg
9173a73423d7Smrgfound="no"
9174a73423d7Smrg
9175a73423d7Smrg	if test $found = "no" ; then
91764a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9177a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9178a73423d7Smrg		fi
91797965d9acSmrg
91804a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9181a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9182a73423d7Smrg		fi
9183a73423d7Smrg
9184a73423d7Smrg		CFLAGS="$CFLAGS -Wnonnull"
9185a73423d7Smrg
9186e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9187e9f7eabcSmrgprintf %s "checking if $CC supports -Wnonnull... " >&6; }
9188a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
9189e9f7eabcSmrg		if eval test \${$cacheid+y}
9190e9f7eabcSmrgthen :
9191e9f7eabcSmrg  printf %s "(cached) " >&6
9192e9f7eabcSmrgelse $as_nop
9193a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194a73423d7Smrg/* end confdefs.h.  */
9195a73423d7Smrgint i;
91967965d9acSmrgint
9197e9f7eabcSmrgmain (void)
919850806d53Smrg{
91997965d9acSmrg
92007965d9acSmrg  ;
92017965d9acSmrg  return 0;
920250806d53Smrg}
920350806d53Smrg_ACEOF
9204e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
9205e9f7eabcSmrgthen :
9206a73423d7Smrg  eval $cacheid=yes
9207e9f7eabcSmrgelse $as_nop
9208a73423d7Smrg  eval $cacheid=no
9209a73423d7Smrgfi
9210e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9211a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
9212a73423d7Smrgfi
9213a73423d7Smrg
9214a73423d7Smrg
9215a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9216a73423d7Smrg
9217a73423d7Smrg		eval supported=\$$cacheid
9218e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9219e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
9220a73423d7Smrg		if test "$supported" = "yes" ; then
9221a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9222a73423d7Smrg			found="yes"
9223a73423d7Smrg		fi
9224a73423d7Smrg	fi
9225a73423d7Smrg
9226a73423d7Smrg
9227a73423d7Smrg
9228a73423d7Smrg
9229a73423d7Smrg
9230a73423d7Smrg
9231a73423d7Smrg
923250806d53Smrg
92337965d9acSmrg
92347965d9acSmrg
923550806d53Smrg
92367965d9acSmrg
92377965d9acSmrg
92387965d9acSmrg
92397965d9acSmrg
9240a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9241a73423d7Smrg
9242a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9243a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9244e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9245e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9246e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9247e9f7eabcSmrgthen :
9248e9f7eabcSmrg  printf %s "(cached) " >&6
9249e9f7eabcSmrgelse $as_nop
9250a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251a73423d7Smrg/* end confdefs.h.  */
9252a73423d7Smrgint i;
9253a73423d7Smrg_ACEOF
9254e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
9255e9f7eabcSmrgthen :
9256a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9257e9f7eabcSmrgelse $as_nop
9258a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9259a73423d7Smrgfi
9260e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
92617965d9acSmrgfi
9262e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9263e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9264a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9265a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
92667965d9acSmrgfi
9267a73423d7Smrg
9268a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9269a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9270a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9271a73423d7Smrg	fi
9272a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9273e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9274e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9275e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9276e9f7eabcSmrgthen :
9277e9f7eabcSmrg  printf %s "(cached) " >&6
9278e9f7eabcSmrgelse $as_nop
9279a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
928050806d53Smrg/* end confdefs.h.  */
9281a73423d7Smrgint i;
9282a73423d7Smrg_ACEOF
9283e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
9284e9f7eabcSmrgthen :
9285a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9286e9f7eabcSmrgelse $as_nop
9287a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9288a73423d7Smrgfi
9289e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9290a73423d7Smrgfi
9291e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9292e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9293a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9294a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9295a73423d7Smrgfi
92967965d9acSmrg
9297a73423d7Smrgfound="no"
92987965d9acSmrg
9299a73423d7Smrg	if test $found = "no" ; then
93004a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9301a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9302a73423d7Smrg		fi
93037965d9acSmrg
93044a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9305a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9306a73423d7Smrg		fi
9307a73423d7Smrg
9308a73423d7Smrg		CFLAGS="$CFLAGS -Winit-self"
9309a73423d7Smrg
9310e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9311e9f7eabcSmrgprintf %s "checking if $CC supports -Winit-self... " >&6; }
9312a73423d7Smrg		cacheid=xorg_cv_cc_flag__Winit_self
9313e9f7eabcSmrg		if eval test \${$cacheid+y}
9314e9f7eabcSmrgthen :
9315e9f7eabcSmrg  printf %s "(cached) " >&6
9316e9f7eabcSmrgelse $as_nop
9317a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318a73423d7Smrg/* end confdefs.h.  */
9319a73423d7Smrgint i;
932050806d53Smrgint
9321e9f7eabcSmrgmain (void)
932250806d53Smrg{
9323a73423d7Smrg
932450806d53Smrg  ;
932550806d53Smrg  return 0;
932650806d53Smrg}
932750806d53Smrg_ACEOF
9328e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
9329e9f7eabcSmrgthen :
9330a73423d7Smrg  eval $cacheid=yes
9331e9f7eabcSmrgelse $as_nop
9332a73423d7Smrg  eval $cacheid=no
9333a73423d7Smrgfi
9334e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9335a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
9336a73423d7Smrgfi
933750806d53Smrg
93387965d9acSmrg
9339a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
93407965d9acSmrg
9341a73423d7Smrg		eval supported=\$$cacheid
9342e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9343e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
9344a73423d7Smrg		if test "$supported" = "yes" ; then
9345a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9346a73423d7Smrg			found="yes"
9347a73423d7Smrg		fi
9348a73423d7Smrg	fi
93497965d9acSmrg
935050806d53Smrg
935150806d53Smrg
935250806d53Smrg
935350806d53Smrg
935450806d53Smrg
9355a18ebfb2Smrg
935650806d53Smrg
935750806d53Smrg
9358a73423d7Smrg
9359a73423d7Smrg
9360a73423d7Smrg
9361a73423d7Smrg
9362a73423d7Smrg
9363a73423d7Smrg
9364a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9365a73423d7Smrg
9366a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9367a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9368e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9369e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9370e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9371e9f7eabcSmrgthen :
9372e9f7eabcSmrg  printf %s "(cached) " >&6
9373e9f7eabcSmrgelse $as_nop
9374a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375a73423d7Smrg/* end confdefs.h.  */
9376a73423d7Smrgint i;
9377a73423d7Smrg_ACEOF
9378e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
9379e9f7eabcSmrgthen :
9380a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9381e9f7eabcSmrgelse $as_nop
9382a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
938350806d53Smrgfi
9384e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9385a73423d7Smrgfi
9386e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9387e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9388a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9389a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
939050806d53Smrgfi
939150806d53Smrg
9392a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9393a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9394a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9395a73423d7Smrg	fi
9396a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9397e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9398e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9399e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9400e9f7eabcSmrgthen :
9401e9f7eabcSmrg  printf %s "(cached) " >&6
9402e9f7eabcSmrgelse $as_nop
9403a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404a73423d7Smrg/* end confdefs.h.  */
9405a73423d7Smrgint i;
9406a73423d7Smrg_ACEOF
9407e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
9408e9f7eabcSmrgthen :
9409a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9410e9f7eabcSmrgelse $as_nop
9411a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9412a73423d7Smrgfi
9413e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9414a73423d7Smrgfi
9415e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9416e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9417a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9418a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
941950806d53Smrgfi
942050806d53Smrg
9421a73423d7Smrgfound="no"
942250806d53Smrg
9423a73423d7Smrg	if test $found = "no" ; then
94244a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9425a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9426a73423d7Smrg		fi
9427a73423d7Smrg
94284a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9429a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9430a73423d7Smrg		fi
9431a73423d7Smrg
9432a73423d7Smrg		CFLAGS="$CFLAGS -Wmain"
9433a73423d7Smrg
9434e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9435e9f7eabcSmrgprintf %s "checking if $CC supports -Wmain... " >&6; }
9436a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wmain
9437e9f7eabcSmrg		if eval test \${$cacheid+y}
9438e9f7eabcSmrgthen :
9439e9f7eabcSmrg  printf %s "(cached) " >&6
9440e9f7eabcSmrgelse $as_nop
9441a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442b3e38ee4Smrg/* end confdefs.h.  */
9443a73423d7Smrgint i;
9444a73423d7Smrgint
9445e9f7eabcSmrgmain (void)
9446b3e38ee4Smrg{
9447a73423d7Smrg
9448a73423d7Smrg  ;
9449a73423d7Smrg  return 0;
9450b3e38ee4Smrg}
9451a73423d7Smrg_ACEOF
9452e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
9453e9f7eabcSmrgthen :
9454a73423d7Smrg  eval $cacheid=yes
9455e9f7eabcSmrgelse $as_nop
9456a73423d7Smrg  eval $cacheid=no
9457a73423d7Smrgfi
9458e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9459a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
9460a73423d7Smrgfi
9461a73423d7Smrg
9462a73423d7Smrg
9463a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9464a73423d7Smrg
9465a73423d7Smrg		eval supported=\$$cacheid
9466e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9467e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
9468a73423d7Smrg		if test "$supported" = "yes" ; then
9469a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9470a73423d7Smrg			found="yes"
9471a73423d7Smrg		fi
9472a73423d7Smrg	fi
9473a73423d7Smrg
9474a73423d7Smrg
9475a73423d7Smrg
9476af1a9c97Smrg
9477af1a9c97Smrg
9478af1a9c97Smrg
94797965d9acSmrg
94807965d9acSmrg
94817965d9acSmrg
948250806d53Smrg
9483b3e38ee4Smrg
9484b3e38ee4Smrg
9485a73423d7Smrg
9486a73423d7Smrg
9487a73423d7Smrg
9488a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9489a73423d7Smrg
9490a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9491a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9492e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9493e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9494e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9495e9f7eabcSmrgthen :
9496e9f7eabcSmrg  printf %s "(cached) " >&6
9497e9f7eabcSmrgelse $as_nop
9498a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499a73423d7Smrg/* end confdefs.h.  */
9500a73423d7Smrgint i;
9501a73423d7Smrg_ACEOF
9502e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
9503e9f7eabcSmrgthen :
9504a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9505e9f7eabcSmrgelse $as_nop
9506a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9507a73423d7Smrgfi
9508e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9509a73423d7Smrgfi
9510e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9511e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9512a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9513a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9514a73423d7Smrgfi
9515a73423d7Smrg
9516a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9517a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9518a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9519a73423d7Smrg	fi
9520a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9521e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9522e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9523e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9524e9f7eabcSmrgthen :
9525e9f7eabcSmrg  printf %s "(cached) " >&6
9526e9f7eabcSmrgelse $as_nop
9527a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528a73423d7Smrg/* end confdefs.h.  */
9529a73423d7Smrgint i;
9530a73423d7Smrg_ACEOF
9531e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
9532e9f7eabcSmrgthen :
9533a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9534e9f7eabcSmrgelse $as_nop
9535a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9536a73423d7Smrgfi
9537e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9538a73423d7Smrgfi
9539e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9540e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9541a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9542a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9543a73423d7Smrgfi
9544a73423d7Smrg
9545a73423d7Smrgfound="no"
9546a73423d7Smrg
9547a73423d7Smrg	if test $found = "no" ; then
95484a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9549a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9550a73423d7Smrg		fi
9551a73423d7Smrg
95524a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9553a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9554a73423d7Smrg		fi
9555a73423d7Smrg
9556a73423d7Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
9557a73423d7Smrg
9558e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9559e9f7eabcSmrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9560a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
9561e9f7eabcSmrg		if eval test \${$cacheid+y}
9562e9f7eabcSmrgthen :
9563e9f7eabcSmrg  printf %s "(cached) " >&6
9564e9f7eabcSmrgelse $as_nop
9565a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566a73423d7Smrg/* end confdefs.h.  */
9567a73423d7Smrgint i;
9568b3e38ee4Smrgint
9569e9f7eabcSmrgmain (void)
9570b3e38ee4Smrg{
9571b3e38ee4Smrg
9572a73423d7Smrg  ;
9573a73423d7Smrg  return 0;
9574a73423d7Smrg}
9575a73423d7Smrg_ACEOF
9576e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
9577e9f7eabcSmrgthen :
9578a73423d7Smrg  eval $cacheid=yes
9579e9f7eabcSmrgelse $as_nop
9580a73423d7Smrg  eval $cacheid=no
9581a73423d7Smrgfi
9582e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9583a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
9584a73423d7Smrgfi
9585b3e38ee4Smrg
9586b3e38ee4Smrg
9587a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9588b3e38ee4Smrg
9589a73423d7Smrg		eval supported=\$$cacheid
9590e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9591e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
9592a73423d7Smrg		if test "$supported" = "yes" ; then
9593a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9594a73423d7Smrg			found="yes"
9595a73423d7Smrg		fi
9596a73423d7Smrg	fi
9597b3e38ee4Smrg
9598b3e38ee4Smrg
9599b3e38ee4Smrg
9600b3e38ee4Smrg
9601a73423d7Smrg
9602a73423d7Smrg
9603a73423d7Smrg
9604a73423d7Smrg
9605a73423d7Smrg
9606a73423d7Smrg
9607a73423d7Smrg
9608a73423d7Smrg
9609a73423d7Smrg
9610a73423d7Smrg
9611a73423d7Smrg
9612a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9613a73423d7Smrg
9614a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9615a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9616e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9617e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9618e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9619e9f7eabcSmrgthen :
9620e9f7eabcSmrg  printf %s "(cached) " >&6
9621e9f7eabcSmrgelse $as_nop
9622a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623a73423d7Smrg/* end confdefs.h.  */
9624a73423d7Smrgint i;
9625a73423d7Smrg_ACEOF
9626e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
9627e9f7eabcSmrgthen :
9628a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9629e9f7eabcSmrgelse $as_nop
9630a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9631a73423d7Smrgfi
9632e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9633a73423d7Smrgfi
9634e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9635e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9636a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9637a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9638a73423d7Smrgfi
9639a73423d7Smrg
9640a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9641a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9642a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9643a73423d7Smrg	fi
9644a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9645e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9646e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9647e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9648e9f7eabcSmrgthen :
9649e9f7eabcSmrg  printf %s "(cached) " >&6
9650e9f7eabcSmrgelse $as_nop
9651a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652a73423d7Smrg/* end confdefs.h.  */
9653a73423d7Smrgint i;
9654a73423d7Smrg_ACEOF
9655e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
9656e9f7eabcSmrgthen :
9657a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9658e9f7eabcSmrgelse $as_nop
9659a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9660a73423d7Smrgfi
9661e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9662a73423d7Smrgfi
9663e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9664e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9665a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9666a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9667a73423d7Smrgfi
9668a73423d7Smrg
9669a73423d7Smrgfound="no"
9670a73423d7Smrg
9671a73423d7Smrg	if test $found = "no" ; then
96724a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9673a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9674a73423d7Smrg		fi
9675a73423d7Smrg
96764a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9677a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9678a73423d7Smrg		fi
9679a73423d7Smrg
9680a73423d7Smrg		CFLAGS="$CFLAGS -Wsequence-point"
9681a73423d7Smrg
9682e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9683e9f7eabcSmrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; }
9684a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
9685e9f7eabcSmrg		if eval test \${$cacheid+y}
9686e9f7eabcSmrgthen :
9687e9f7eabcSmrg  printf %s "(cached) " >&6
9688e9f7eabcSmrgelse $as_nop
9689a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690a73423d7Smrg/* end confdefs.h.  */
9691a73423d7Smrgint i;
9692a73423d7Smrgint
9693e9f7eabcSmrgmain (void)
9694a73423d7Smrg{
9695b3e38ee4Smrg
9696b3e38ee4Smrg  ;
9697b3e38ee4Smrg  return 0;
9698b3e38ee4Smrg}
9699b3e38ee4Smrg_ACEOF
9700e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
9701e9f7eabcSmrgthen :
9702a73423d7Smrg  eval $cacheid=yes
9703e9f7eabcSmrgelse $as_nop
9704a73423d7Smrg  eval $cacheid=no
9705a73423d7Smrgfi
9706e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9707a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
9708a73423d7Smrgfi
9709a73423d7Smrg
9710b3e38ee4Smrg
9711a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9712b3e38ee4Smrg
9713a73423d7Smrg		eval supported=\$$cacheid
9714e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9715e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
9716a73423d7Smrg		if test "$supported" = "yes" ; then
9717a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9718a73423d7Smrg			found="yes"
9719a73423d7Smrg		fi
9720a73423d7Smrg	fi
97217965d9acSmrg
9722b3e38ee4Smrg
972350806d53Smrg
972450806d53Smrg
9725af1a9c97Smrg
9726af1a9c97Smrg
9727a73423d7Smrg
9728a73423d7Smrg
9729a73423d7Smrg
9730a73423d7Smrg
9731a73423d7Smrg
9732a73423d7Smrg
9733a73423d7Smrg
9734a73423d7Smrg
9735a73423d7Smrg
9736a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9737a73423d7Smrg
9738a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9739a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9740e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9741e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9742e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9743e9f7eabcSmrgthen :
9744e9f7eabcSmrg  printf %s "(cached) " >&6
9745e9f7eabcSmrgelse $as_nop
9746a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747b3e38ee4Smrg/* end confdefs.h.  */
9748a73423d7Smrgint i;
9749b3e38ee4Smrg_ACEOF
9750e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
9751e9f7eabcSmrgthen :
9752a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9753e9f7eabcSmrgelse $as_nop
9754a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9755a73423d7Smrgfi
9756e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9757a73423d7Smrgfi
9758e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9759e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9760a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9761a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
976250806d53Smrgfi
9763b3e38ee4Smrg
9764a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9765a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9766a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9767a73423d7Smrg	fi
9768a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9769e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9770e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9771e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9772e9f7eabcSmrgthen :
9773e9f7eabcSmrg  printf %s "(cached) " >&6
9774e9f7eabcSmrgelse $as_nop
9775a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776b3e38ee4Smrg/* end confdefs.h.  */
9777a73423d7Smrgint i;
9778b3e38ee4Smrg_ACEOF
9779e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
9780e9f7eabcSmrgthen :
9781a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9782e9f7eabcSmrgelse $as_nop
9783a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9784a73423d7Smrgfi
9785e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9786a73423d7Smrgfi
9787e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9788e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9789a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9790a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
979150806d53Smrgfi
979250806d53Smrg
9793a73423d7Smrgfound="no"
979450806d53Smrg
9795a73423d7Smrg	if test $found = "no" ; then
97964a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9797a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9798a73423d7Smrg		fi
979950806d53Smrg
98004a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9801a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9802a73423d7Smrg		fi
980350806d53Smrg
9804a73423d7Smrg		CFLAGS="$CFLAGS -Wreturn-type"
9805a73423d7Smrg
9806e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9807e9f7eabcSmrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; }
9808a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
9809e9f7eabcSmrg		if eval test \${$cacheid+y}
9810e9f7eabcSmrgthen :
9811e9f7eabcSmrg  printf %s "(cached) " >&6
9812e9f7eabcSmrgelse $as_nop
9813a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814b3e38ee4Smrg/* end confdefs.h.  */
9815a73423d7Smrgint i;
9816a73423d7Smrgint
9817e9f7eabcSmrgmain (void)
9818a73423d7Smrg{
9819a73423d7Smrg
9820a73423d7Smrg  ;
9821a73423d7Smrg  return 0;
9822a73423d7Smrg}
9823b3e38ee4Smrg_ACEOF
9824e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
9825e9f7eabcSmrgthen :
9826a73423d7Smrg  eval $cacheid=yes
9827e9f7eabcSmrgelse $as_nop
9828a73423d7Smrg  eval $cacheid=no
9829a73423d7Smrgfi
9830e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9831a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
9832b3e38ee4Smrgfi
983350806d53Smrg
9834a18ebfb2Smrg
9835a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
983650806d53Smrg
9837a73423d7Smrg		eval supported=\$$cacheid
9838e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9839e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
9840a73423d7Smrg		if test "$supported" = "yes" ; then
9841a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9842a73423d7Smrg			found="yes"
9843a73423d7Smrg		fi
9844a73423d7Smrg	fi
984550806d53Smrg
984650806d53Smrg
984750806d53Smrg
984850806d53Smrg
984950806d53Smrg
9850a73423d7Smrg
9851a73423d7Smrg
9852a73423d7Smrg
9853a73423d7Smrg
9854a73423d7Smrg
9855a73423d7Smrg
9856a73423d7Smrg
9857a73423d7Smrg
9858a73423d7Smrg
9859a73423d7Smrg
9860a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9861a73423d7Smrg
9862a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9863a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9864e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9865e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9866e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9867e9f7eabcSmrgthen :
9868e9f7eabcSmrg  printf %s "(cached) " >&6
9869e9f7eabcSmrgelse $as_nop
9870a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871a73423d7Smrg/* end confdefs.h.  */
9872a73423d7Smrgint i;
9873a73423d7Smrg_ACEOF
9874e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
9875e9f7eabcSmrgthen :
9876a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
9877e9f7eabcSmrgelse $as_nop
9878a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
9879a73423d7Smrgfi
9880e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9881a73423d7Smrgfi
9882e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9883e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9884a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9885a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9886a73423d7Smrgfi
988750806d53Smrg
9888a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9889a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9890a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9891a73423d7Smrg	fi
9892a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9893e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9894e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9895e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9896e9f7eabcSmrgthen :
9897e9f7eabcSmrg  printf %s "(cached) " >&6
9898e9f7eabcSmrgelse $as_nop
9899a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900a73423d7Smrg/* end confdefs.h.  */
9901a73423d7Smrgint i;
9902a73423d7Smrg_ACEOF
9903e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
9904e9f7eabcSmrgthen :
9905a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9906e9f7eabcSmrgelse $as_nop
9907a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
9908b3e38ee4Smrgfi
9909e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9910a73423d7Smrgfi
9911e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9912e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9913a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9914a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
9915b3e38ee4Smrgfi
991650806d53Smrg
9917a73423d7Smrgfound="no"
991850806d53Smrg
9919a73423d7Smrg	if test $found = "no" ; then
99204a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9921a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9922a73423d7Smrg		fi
9923a73423d7Smrg
99244a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9925a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9926a73423d7Smrg		fi
9927a73423d7Smrg
9928a73423d7Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
9929a73423d7Smrg
9930e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9931e9f7eabcSmrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9932a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
9933e9f7eabcSmrg		if eval test \${$cacheid+y}
9934e9f7eabcSmrgthen :
9935e9f7eabcSmrg  printf %s "(cached) " >&6
9936e9f7eabcSmrgelse $as_nop
9937a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938a73423d7Smrg/* end confdefs.h.  */
9939a73423d7Smrgint i;
9940a73423d7Smrgint
9941e9f7eabcSmrgmain (void)
9942a73423d7Smrg{
994350806d53Smrg
9944a73423d7Smrg  ;
9945a73423d7Smrg  return 0;
9946a73423d7Smrg}
9947a73423d7Smrg_ACEOF
9948e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
9949e9f7eabcSmrgthen :
9950a73423d7Smrg  eval $cacheid=yes
9951e9f7eabcSmrgelse $as_nop
9952a73423d7Smrg  eval $cacheid=no
995350806d53Smrgfi
9954e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9955a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
9956b3e38ee4Smrgfi
995750806d53Smrg
995850806d53Smrg
9959a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
9960a73423d7Smrg
9961a73423d7Smrg		eval supported=\$$cacheid
9962e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9963e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
9964a73423d7Smrg		if test "$supported" = "yes" ; then
9965a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9966a73423d7Smrg			found="yes"
9967a73423d7Smrg		fi
9968a73423d7Smrg	fi
9969a73423d7Smrg
9970a73423d7Smrg
9971a73423d7Smrg
9972a73423d7Smrg
9973a73423d7Smrg
9974a73423d7Smrg
9975a73423d7Smrg
9976a73423d7Smrg
9977a73423d7Smrg
9978a73423d7Smrg
9979a73423d7Smrg
9980a73423d7Smrg
9981a73423d7Smrg
9982a73423d7Smrg
9983a73423d7Smrg
9984a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
9985a73423d7Smrg
9986a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9987a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9988e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9989e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9990e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9991e9f7eabcSmrgthen :
9992e9f7eabcSmrg  printf %s "(cached) " >&6
9993e9f7eabcSmrgelse $as_nop
9994a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995a73423d7Smrg/* end confdefs.h.  */
9996a73423d7Smrgint i;
9997a18ebfb2Smrg_ACEOF
9998e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
9999e9f7eabcSmrgthen :
10000a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10001e9f7eabcSmrgelse $as_nop
10002a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10003a73423d7Smrgfi
10004e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10005a73423d7Smrgfi
10006e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10007e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10008a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10009a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10010a73423d7Smrgfi
10011a73423d7Smrg
10012a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10013a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10014a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10015a73423d7Smrg	fi
10016a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10017e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10018e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10019e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10020e9f7eabcSmrgthen :
10021e9f7eabcSmrg  printf %s "(cached) " >&6
10022e9f7eabcSmrgelse $as_nop
10023a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024a18ebfb2Smrg/* end confdefs.h.  */
10025a73423d7Smrgint i;
10026a73423d7Smrg_ACEOF
10027e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
10028e9f7eabcSmrgthen :
10029a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10030e9f7eabcSmrgelse $as_nop
10031a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10032a73423d7Smrgfi
10033e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10034a73423d7Smrgfi
10035e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10036e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10037a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10038a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10039a73423d7Smrgfi
10040a73423d7Smrg
10041a73423d7Smrgfound="no"
10042a73423d7Smrg
10043a73423d7Smrg	if test $found = "no" ; then
100444a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10045a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10046a73423d7Smrg		fi
10047a73423d7Smrg
100484a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10049a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10050a73423d7Smrg		fi
1005150806d53Smrg
10052a73423d7Smrg		CFLAGS="$CFLAGS -Warray-bounds"
10053a73423d7Smrg
10054e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10055e9f7eabcSmrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; }
10056a73423d7Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
10057e9f7eabcSmrg		if eval test \${$cacheid+y}
10058e9f7eabcSmrgthen :
10059e9f7eabcSmrg  printf %s "(cached) " >&6
10060e9f7eabcSmrgelse $as_nop
10061a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062a73423d7Smrg/* end confdefs.h.  */
10063a73423d7Smrgint i;
10064a18ebfb2Smrgint
10065e9f7eabcSmrgmain (void)
10066a18ebfb2Smrg{
1006750806d53Smrg
10068a18ebfb2Smrg  ;
10069a18ebfb2Smrg  return 0;
10070a18ebfb2Smrg}
10071a18ebfb2Smrg_ACEOF
10072e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
10073e9f7eabcSmrgthen :
10074a73423d7Smrg  eval $cacheid=yes
10075e9f7eabcSmrgelse $as_nop
10076a73423d7Smrg  eval $cacheid=no
10077a73423d7Smrgfi
10078e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10079a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
10080a18ebfb2Smrgfi
100817965d9acSmrg
1008250806d53Smrg
10083a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10084a73423d7Smrg
10085a73423d7Smrg		eval supported=\$$cacheid
10086e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10087e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
10088a73423d7Smrg		if test "$supported" = "yes" ; then
10089a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10090a73423d7Smrg			found="yes"
10091a73423d7Smrg		fi
10092a73423d7Smrg	fi
10093a73423d7Smrg
10094a73423d7Smrg
10095a73423d7Smrg
10096a73423d7Smrg
10097a73423d7Smrg
10098a73423d7Smrg
10099a73423d7Smrg
1010050806d53Smrg
10101a73423d7Smrg
10102a73423d7Smrg
10103a73423d7Smrg
10104a73423d7Smrg
10105a73423d7Smrg
10106a73423d7Smrg
10107a73423d7Smrg
10108a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10109a73423d7Smrg
10110a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10111a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10112e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10113e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10114e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10115e9f7eabcSmrgthen :
10116e9f7eabcSmrg  printf %s "(cached) " >&6
10117e9f7eabcSmrgelse $as_nop
10118a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119a73423d7Smrg/* end confdefs.h.  */
10120a73423d7Smrgint i;
10121b3e38ee4Smrg_ACEOF
10122e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
10123e9f7eabcSmrgthen :
10124a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10125e9f7eabcSmrgelse $as_nop
10126a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10127b3e38ee4Smrgfi
10128e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10129a73423d7Smrgfi
10130e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10131e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10132a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10133a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10134b3e38ee4Smrgfi
101357965d9acSmrg
10136a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10137a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10138a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10139a73423d7Smrg	fi
10140a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10141e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10142e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10143e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10144e9f7eabcSmrgthen :
10145e9f7eabcSmrg  printf %s "(cached) " >&6
10146e9f7eabcSmrgelse $as_nop
10147a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148b3e38ee4Smrg/* end confdefs.h.  */
10149a73423d7Smrgint i;
10150b3e38ee4Smrg_ACEOF
10151e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
10152e9f7eabcSmrgthen :
10153a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10154e9f7eabcSmrgelse $as_nop
10155a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10156b3e38ee4Smrgfi
10157e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10158a73423d7Smrgfi
10159e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10160e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10161a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10162a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10163a18ebfb2Smrgfi
10164b3e38ee4Smrg
10165a73423d7Smrgfound="no"
10166a73423d7Smrg
10167a73423d7Smrg	if test $found = "no" ; then
101684a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10169a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10170a73423d7Smrg		fi
10171a73423d7Smrg
101724a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10173a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10174a73423d7Smrg		fi
10175a73423d7Smrg
10176a73423d7Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
10177a73423d7Smrg
10178e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10179e9f7eabcSmrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10180a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
10181e9f7eabcSmrg		if eval test \${$cacheid+y}
10182e9f7eabcSmrgthen :
10183e9f7eabcSmrg  printf %s "(cached) " >&6
10184e9f7eabcSmrgelse $as_nop
10185a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186a18ebfb2Smrg/* end confdefs.h.  */
10187a73423d7Smrgint i;
10188b3e38ee4Smrgint
10189e9f7eabcSmrgmain (void)
10190b3e38ee4Smrg{
10191a73423d7Smrg
10192a73423d7Smrg  ;
10193b3e38ee4Smrg  return 0;
10194b3e38ee4Smrg}
10195a18ebfb2Smrg_ACEOF
10196e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
10197e9f7eabcSmrgthen :
10198a73423d7Smrg  eval $cacheid=yes
10199e9f7eabcSmrgelse $as_nop
10200a73423d7Smrg  eval $cacheid=no
10201a73423d7Smrgfi
10202e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10203a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
10204a73423d7Smrgfi
10205a18ebfb2Smrg
10206a73423d7Smrg
10207a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10208a73423d7Smrg
10209a73423d7Smrg		eval supported=\$$cacheid
10210e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10211e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
10212a73423d7Smrg		if test "$supported" = "yes" ; then
10213a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10214a73423d7Smrg			found="yes"
10215a73423d7Smrg		fi
10216a73423d7Smrg	fi
10217a73423d7Smrg
10218a73423d7Smrg
10219a73423d7Smrg
10220a73423d7Smrg
10221a73423d7Smrg
10222a73423d7Smrg
10223a73423d7Smrg
10224a73423d7Smrg
10225a73423d7Smrg
10226a73423d7Smrg
10227a73423d7Smrg
10228a73423d7Smrg
10229a73423d7Smrg
10230a73423d7Smrg
10231a73423d7Smrg
10232a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10233a73423d7Smrg
10234a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10235a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10236e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10237e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10238e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10239e9f7eabcSmrgthen :
10240e9f7eabcSmrg  printf %s "(cached) " >&6
10241e9f7eabcSmrgelse $as_nop
10242a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243a73423d7Smrg/* end confdefs.h.  */
10244a73423d7Smrgint i;
10245a73423d7Smrg_ACEOF
10246e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
10247e9f7eabcSmrgthen :
10248a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10249e9f7eabcSmrgelse $as_nop
10250a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10251a73423d7Smrgfi
10252e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10253a73423d7Smrgfi
10254e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10255e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10256a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10257a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10258a73423d7Smrgfi
10259a73423d7Smrg
10260a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10261a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10262a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10263a73423d7Smrg	fi
10264a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10265e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10266e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10267e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10268e9f7eabcSmrgthen :
10269e9f7eabcSmrg  printf %s "(cached) " >&6
10270e9f7eabcSmrgelse $as_nop
10271a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272a73423d7Smrg/* end confdefs.h.  */
10273a73423d7Smrgint i;
10274a73423d7Smrg_ACEOF
10275e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
10276e9f7eabcSmrgthen :
10277a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10278e9f7eabcSmrgelse $as_nop
10279a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10280a73423d7Smrgfi
10281e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10282b3e38ee4Smrgfi
10283e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10284e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10285a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10286a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1028750806d53Smrgfi
102887965d9acSmrg
10289a73423d7Smrgfound="no"
1029050806d53Smrg
10291a73423d7Smrg	if test $found = "no" ; then
102924a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10293a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10294a73423d7Smrg		fi
10295a18ebfb2Smrg
102964a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10297a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10298a73423d7Smrg		fi
10299a73423d7Smrg
10300a73423d7Smrg		CFLAGS="$CFLAGS -Waddress"
10301a73423d7Smrg
10302e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10303e9f7eabcSmrgprintf %s "checking if $CC supports -Waddress... " >&6; }
10304a73423d7Smrg		cacheid=xorg_cv_cc_flag__Waddress
10305e9f7eabcSmrg		if eval test \${$cacheid+y}
10306e9f7eabcSmrgthen :
10307e9f7eabcSmrg  printf %s "(cached) " >&6
10308e9f7eabcSmrgelse $as_nop
10309a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310a73423d7Smrg/* end confdefs.h.  */
10311a73423d7Smrgint i;
10312a73423d7Smrgint
10313e9f7eabcSmrgmain (void)
10314a73423d7Smrg{
10315a18ebfb2Smrg
10316a73423d7Smrg  ;
10317a73423d7Smrg  return 0;
10318a73423d7Smrg}
10319a73423d7Smrg_ACEOF
10320e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
10321e9f7eabcSmrgthen :
10322a73423d7Smrg  eval $cacheid=yes
10323e9f7eabcSmrgelse $as_nop
10324a73423d7Smrg  eval $cacheid=no
10325a73423d7Smrgfi
10326e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10327a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
10328af1a9c97Smrgfi
10329b3e38ee4Smrg
10330b3e38ee4Smrg
10331a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10332b3e38ee4Smrg
10333a73423d7Smrg		eval supported=\$$cacheid
10334e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10335e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
10336a73423d7Smrg		if test "$supported" = "yes" ; then
10337a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10338a73423d7Smrg			found="yes"
10339a73423d7Smrg		fi
10340a73423d7Smrg	fi
10341b3e38ee4Smrg
10342b3e38ee4Smrg
10343b3e38ee4Smrg
10344b3e38ee4Smrg
10345b3e38ee4Smrg
10346b3e38ee4Smrg
10347b3e38ee4Smrg
10348b3e38ee4Smrg
10349a18ebfb2Smrg
103507965d9acSmrg
1035150806d53Smrg
1035250806d53Smrg
1035350806d53Smrg
1035450806d53Smrg
1035550806d53Smrg
10356a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10357b3e38ee4Smrg
10358a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10359a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10360e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10361e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10362e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10363e9f7eabcSmrgthen :
10364e9f7eabcSmrg  printf %s "(cached) " >&6
10365e9f7eabcSmrgelse $as_nop
10366a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367a73423d7Smrg/* end confdefs.h.  */
10368a73423d7Smrgint i;
10369a73423d7Smrg_ACEOF
10370e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
10371e9f7eabcSmrgthen :
10372a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10373e9f7eabcSmrgelse $as_nop
10374a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10375a18ebfb2Smrgfi
10376e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10377b3e38ee4Smrgfi
10378e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10379e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10380a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10381a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10382a73423d7Smrgfi
10383a73423d7Smrg
10384a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10385a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10386a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10387a73423d7Smrg	fi
10388a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10389e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10390e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10391e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10392e9f7eabcSmrgthen :
10393e9f7eabcSmrg  printf %s "(cached) " >&6
10394e9f7eabcSmrgelse $as_nop
10395a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10396a73423d7Smrg/* end confdefs.h.  */
10397a73423d7Smrgint i;
10398a73423d7Smrg_ACEOF
10399e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
10400e9f7eabcSmrgthen :
10401a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10402e9f7eabcSmrgelse $as_nop
10403a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10404a18ebfb2Smrgfi
10405e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10406a18ebfb2Smrgfi
10407e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10408e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10409a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10410a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10411a18ebfb2Smrgfi
104127965d9acSmrg
10413a73423d7Smrgfound="no"
104147965d9acSmrg
10415a73423d7Smrg	if test $found = "no" ; then
104164a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10417a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10418a73423d7Smrg		fi
1041950806d53Smrg
104204a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10421a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10422a73423d7Smrg		fi
1042350806d53Smrg
10424a73423d7Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
1042550806d53Smrg
10426e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10427e9f7eabcSmrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10428a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10429e9f7eabcSmrg		if eval test \${$cacheid+y}
10430e9f7eabcSmrgthen :
10431e9f7eabcSmrg  printf %s "(cached) " >&6
10432e9f7eabcSmrgelse $as_nop
10433a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434a73423d7Smrg/* end confdefs.h.  */
10435a73423d7Smrgint i;
10436a73423d7Smrgint
10437e9f7eabcSmrgmain (void)
10438a73423d7Smrg{
10439a73423d7Smrg
10440a73423d7Smrg  ;
10441a73423d7Smrg  return 0;
10442a73423d7Smrg}
10443a73423d7Smrg_ACEOF
10444e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
10445e9f7eabcSmrgthen :
10446a73423d7Smrg  eval $cacheid=yes
10447e9f7eabcSmrgelse $as_nop
10448a73423d7Smrg  eval $cacheid=no
10449a18ebfb2Smrgfi
10450e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10451a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
10452a18ebfb2Smrgfi
1045350806d53Smrg
1045450806d53Smrg
10455a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10456a73423d7Smrg
10457a73423d7Smrg		eval supported=\$$cacheid
10458e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10459e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
10460a73423d7Smrg		if test "$supported" = "yes" ; then
10461a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10462a73423d7Smrg			found="yes"
10463a73423d7Smrg		fi
10464a73423d7Smrg	fi
10465a73423d7Smrg
10466a73423d7Smrg
10467a73423d7Smrg
1046850806d53Smrg
10469a73423d7Smrg
10470a73423d7Smrg
10471a73423d7Smrg
10472a73423d7Smrg
10473a73423d7Smrg
10474a73423d7Smrg
10475a73423d7Smrg
10476a73423d7Smrg
10477a73423d7Smrg
10478a73423d7Smrg
10479a73423d7Smrg
10480a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10481a73423d7Smrg
10482a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10483a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10484e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10485e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10486e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10487e9f7eabcSmrgthen :
10488e9f7eabcSmrg  printf %s "(cached) " >&6
10489e9f7eabcSmrgelse $as_nop
10490a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491a73423d7Smrg/* end confdefs.h.  */
10492a73423d7Smrgint i;
10493a73423d7Smrg_ACEOF
10494e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
10495e9f7eabcSmrgthen :
10496a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10497e9f7eabcSmrgelse $as_nop
10498a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10499a73423d7Smrgfi
10500e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10501a73423d7Smrgfi
10502e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10503e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10504a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10505a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10506b3e38ee4Smrgfi
1050750806d53Smrg
10508a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10509a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10510a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10511a73423d7Smrg	fi
10512a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10513e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10514e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10515e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10516e9f7eabcSmrgthen :
10517e9f7eabcSmrg  printf %s "(cached) " >&6
10518e9f7eabcSmrgelse $as_nop
10519a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520a73423d7Smrg/* end confdefs.h.  */
10521a73423d7Smrgint i;
10522a73423d7Smrg_ACEOF
10523e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
10524e9f7eabcSmrgthen :
10525a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10526e9f7eabcSmrgelse $as_nop
10527a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10528a73423d7Smrgfi
10529e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10530a73423d7Smrgfi
10531e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10532e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10533a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10534a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10535b3e38ee4Smrgfi
1053650806d53Smrg
10537a73423d7Smrgfound="no"
1053850806d53Smrg
10539a73423d7Smrg	if test $found = "no" ; then
105404a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10541a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10542a73423d7Smrg		fi
1054350806d53Smrg
105444a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10545a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10546a73423d7Smrg		fi
1054750806d53Smrg
10548a73423d7Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
105497965d9acSmrg
10550e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10551e9f7eabcSmrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10552a73423d7Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10553e9f7eabcSmrg		if eval test \${$cacheid+y}
10554e9f7eabcSmrgthen :
10555e9f7eabcSmrg  printf %s "(cached) " >&6
10556e9f7eabcSmrgelse $as_nop
10557a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558a18ebfb2Smrg/* end confdefs.h.  */
10559a73423d7Smrgint i;
10560b3e38ee4Smrgint
10561e9f7eabcSmrgmain (void)
10562b3e38ee4Smrg{
1056350806d53Smrg
10564b3e38ee4Smrg  ;
10565b3e38ee4Smrg  return 0;
10566b3e38ee4Smrg}
10567a18ebfb2Smrg_ACEOF
10568e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
10569e9f7eabcSmrgthen :
10570a73423d7Smrg  eval $cacheid=yes
10571e9f7eabcSmrgelse $as_nop
10572a73423d7Smrg  eval $cacheid=no
10573a18ebfb2Smrgfi
10574e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10575a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
10576b3e38ee4Smrgfi
1057750806d53Smrg
10578a73423d7Smrg
10579a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10580a73423d7Smrg
10581a73423d7Smrg		eval supported=\$$cacheid
10582e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10583e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
10584a73423d7Smrg		if test "$supported" = "yes" ; then
10585a73423d7Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10586a73423d7Smrg			found="yes"
10587a73423d7Smrg		fi
10588a73423d7Smrg	fi
10589a73423d7Smrg
10590a73423d7Smrg
10591a18ebfb2Smrgfi
1059250806d53Smrg
1059350806d53Smrg
1059450806d53Smrg
10595a73423d7Smrg
10596a73423d7Smrg
10597a73423d7Smrg
10598a73423d7Smrg
10599a73423d7Smrg		CWARNFLAGS="$BASE_CFLAGS"
10600a73423d7Smrg		if  test "x$GCC" = xyes ; then
10601a73423d7Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10602a73423d7Smrg		fi
10603a73423d7Smrg
10604a73423d7Smrg
10605a73423d7Smrg
10606a73423d7Smrg
10607a73423d7Smrg
1060850806d53Smrg
10609b3e38ee4Smrg
10610b3e38ee4Smrg
10611b3e38ee4Smrg# Check whether --enable-strict-compilation was given.
10612e9f7eabcSmrgif test ${enable_strict_compilation+y}
10613e9f7eabcSmrgthen :
10614b3e38ee4Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10615e9f7eabcSmrgelse $as_nop
10616b3e38ee4Smrg  STRICT_COMPILE=no
10617a18ebfb2Smrgfi
10618b3e38ee4Smrg
10619a73423d7Smrg
10620a73423d7Smrg
10621a73423d7Smrg
10622a73423d7Smrg
10623a73423d7Smrg
10624a73423d7SmrgSTRICT_CFLAGS=""
10625a73423d7Smrg
10626a73423d7Smrg
10627a73423d7Smrg
10628a73423d7Smrg
10629a73423d7Smrg
10630a73423d7Smrg
10631a73423d7Smrg
10632a73423d7Smrg
10633a73423d7Smrg
10634a73423d7Smrg
10635a73423d7Smrg
10636a73423d7Smrg
10637a73423d7Smrg
10638a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10639a73423d7Smrg
10640a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10641a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10642e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10643e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10644e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10645e9f7eabcSmrgthen :
10646e9f7eabcSmrg  printf %s "(cached) " >&6
10647e9f7eabcSmrgelse $as_nop
10648a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649a73423d7Smrg/* end confdefs.h.  */
10650a73423d7Smrgint i;
10651a73423d7Smrg_ACEOF
10652e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
10653e9f7eabcSmrgthen :
10654a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10655e9f7eabcSmrgelse $as_nop
10656a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10657a73423d7Smrgfi
10658e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10659a73423d7Smrgfi
10660e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10661e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10662a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10663a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10664a73423d7Smrgfi
10665a73423d7Smrg
10666a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10667a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10668a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10669a73423d7Smrg	fi
10670a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10671e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10672e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10673e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10674e9f7eabcSmrgthen :
10675e9f7eabcSmrg  printf %s "(cached) " >&6
10676e9f7eabcSmrgelse $as_nop
10677a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678a73423d7Smrg/* end confdefs.h.  */
10679a73423d7Smrgint i;
10680a18ebfb2Smrg_ACEOF
10681e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
10682e9f7eabcSmrgthen :
10683a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10684e9f7eabcSmrgelse $as_nop
10685a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10686a73423d7Smrgfi
10687e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10688a73423d7Smrgfi
10689e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10690e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10691a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10692a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10693a73423d7Smrgfi
10694a73423d7Smrg
10695a73423d7Smrgfound="no"
10696a73423d7Smrg
10697a73423d7Smrg	if test $found = "no" ; then
106984a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10699a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10700a73423d7Smrg		fi
10701a73423d7Smrg
107024a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10703a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10704a73423d7Smrg		fi
10705a73423d7Smrg
10706a73423d7Smrg		CFLAGS="$CFLAGS -pedantic"
10707a73423d7Smrg
10708e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10709e9f7eabcSmrgprintf %s "checking if $CC supports -pedantic... " >&6; }
10710a73423d7Smrg		cacheid=xorg_cv_cc_flag__pedantic
10711e9f7eabcSmrg		if eval test \${$cacheid+y}
10712e9f7eabcSmrgthen :
10713e9f7eabcSmrg  printf %s "(cached) " >&6
10714e9f7eabcSmrgelse $as_nop
10715a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10716a18ebfb2Smrg/* end confdefs.h.  */
10717a73423d7Smrgint i;
10718b3e38ee4Smrgint
10719e9f7eabcSmrgmain (void)
10720b3e38ee4Smrg{
10721b3e38ee4Smrg
10722b3e38ee4Smrg  ;
10723b3e38ee4Smrg  return 0;
10724b3e38ee4Smrg}
10725a18ebfb2Smrg_ACEOF
10726e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
10727e9f7eabcSmrgthen :
10728a73423d7Smrg  eval $cacheid=yes
10729e9f7eabcSmrgelse $as_nop
10730a73423d7Smrg  eval $cacheid=no
1073150806d53Smrgfi
10732e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10733a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
10734a73423d7Smrgfi
10735a73423d7Smrg
10736a73423d7Smrg
10737a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10738a73423d7Smrg
10739a73423d7Smrg		eval supported=\$$cacheid
10740e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10741e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
10742a73423d7Smrg		if test "$supported" = "yes" ; then
10743a73423d7Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10744a73423d7Smrg			found="yes"
10745a73423d7Smrg		fi
10746a73423d7Smrg	fi
10747a73423d7Smrg
10748a73423d7Smrg
10749a73423d7Smrg
10750a73423d7Smrg
10751a73423d7Smrg
10752a73423d7Smrg
10753a73423d7Smrg
1075450806d53Smrg
10755a73423d7Smrg
10756a73423d7Smrg
10757a73423d7Smrg
10758a73423d7Smrg
10759a73423d7Smrg
10760a73423d7Smrg
10761a73423d7Smrg
10762a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10763a73423d7Smrg
10764a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10765a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10766e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10767e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10768e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10769e9f7eabcSmrgthen :
10770e9f7eabcSmrg  printf %s "(cached) " >&6
10771e9f7eabcSmrgelse $as_nop
10772a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773a73423d7Smrg/* end confdefs.h.  */
10774a73423d7Smrgint i;
10775a73423d7Smrg_ACEOF
10776e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
10777e9f7eabcSmrgthen :
10778a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10779e9f7eabcSmrgelse $as_nop
10780a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10781a73423d7Smrgfi
10782e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10783b3e38ee4Smrgfi
10784e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10785e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10786a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10787a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10788a73423d7Smrgfi
10789a73423d7Smrg
10790a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10791a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10792a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10793a73423d7Smrg	fi
10794a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10795e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10796e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10797e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10798e9f7eabcSmrgthen :
10799e9f7eabcSmrg  printf %s "(cached) " >&6
10800e9f7eabcSmrgelse $as_nop
10801a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802a73423d7Smrg/* end confdefs.h.  */
10803a73423d7Smrgint i;
10804a73423d7Smrg_ACEOF
10805e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
10806e9f7eabcSmrgthen :
10807a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10808e9f7eabcSmrgelse $as_nop
10809a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
10810a73423d7Smrgfi
10811e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10812a73423d7Smrgfi
10813e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10814e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10815a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10816a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10817b3e38ee4Smrgfi
108187965d9acSmrg
10819a73423d7Smrgfound="no"
10820a73423d7Smrg
10821a73423d7Smrg	if test $found = "no" ; then
108224a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10823a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10824a73423d7Smrg		fi
10825a73423d7Smrg
108264a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10827a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10828a73423d7Smrg		fi
10829a73423d7Smrg
10830a73423d7Smrg		CFLAGS="$CFLAGS -Werror"
10831a73423d7Smrg
10832e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10833e9f7eabcSmrgprintf %s "checking if $CC supports -Werror... " >&6; }
10834a73423d7Smrg		cacheid=xorg_cv_cc_flag__Werror
10835e9f7eabcSmrg		if eval test \${$cacheid+y}
10836e9f7eabcSmrgthen :
10837e9f7eabcSmrg  printf %s "(cached) " >&6
10838e9f7eabcSmrgelse $as_nop
10839a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840a73423d7Smrg/* end confdefs.h.  */
10841a73423d7Smrgint i;
10842a73423d7Smrgint
10843e9f7eabcSmrgmain (void)
10844a73423d7Smrg{
10845a73423d7Smrg
10846a73423d7Smrg  ;
10847a73423d7Smrg  return 0;
10848a73423d7Smrg}
10849a18ebfb2Smrg_ACEOF
10850e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
10851e9f7eabcSmrgthen :
10852a73423d7Smrg  eval $cacheid=yes
10853e9f7eabcSmrgelse $as_nop
10854a73423d7Smrg  eval $cacheid=no
10855a73423d7Smrgfi
10856e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10857a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
10858a73423d7Smrgfi
10859a73423d7Smrg
10860a73423d7Smrg
10861a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10862a73423d7Smrg
10863a73423d7Smrg		eval supported=\$$cacheid
10864e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10865e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
10866a73423d7Smrg		if test "$supported" = "yes" ; then
10867a73423d7Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10868a73423d7Smrg			found="yes"
10869a73423d7Smrg		fi
10870a73423d7Smrg	fi
10871a73423d7Smrg
10872a73423d7Smrg	if test $found = "no" ; then
108734a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10874a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10875a73423d7Smrg		fi
10876a73423d7Smrg
108774a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10878a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10879a73423d7Smrg		fi
10880a73423d7Smrg
10881a73423d7Smrg		CFLAGS="$CFLAGS -errwarn"
10882a73423d7Smrg
10883e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10884e9f7eabcSmrgprintf %s "checking if $CC supports -errwarn... " >&6; }
10885a73423d7Smrg		cacheid=xorg_cv_cc_flag__errwarn
10886e9f7eabcSmrg		if eval test \${$cacheid+y}
10887e9f7eabcSmrgthen :
10888e9f7eabcSmrg  printf %s "(cached) " >&6
10889e9f7eabcSmrgelse $as_nop
10890a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891a18ebfb2Smrg/* end confdefs.h.  */
10892a73423d7Smrgint i;
10893b3e38ee4Smrgint
10894e9f7eabcSmrgmain (void)
10895b3e38ee4Smrg{
10896b3e38ee4Smrg
10897b3e38ee4Smrg  ;
10898b3e38ee4Smrg  return 0;
10899b3e38ee4Smrg}
10900a18ebfb2Smrg_ACEOF
10901e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
10902e9f7eabcSmrgthen :
10903a73423d7Smrg  eval $cacheid=yes
10904e9f7eabcSmrgelse $as_nop
10905a73423d7Smrg  eval $cacheid=no
10906a73423d7Smrgfi
10907e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10908a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
10909a73423d7Smrgfi
10910a73423d7Smrg
10911a73423d7Smrg
10912a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
10913a73423d7Smrg
10914a73423d7Smrg		eval supported=\$$cacheid
10915e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10916e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
10917a73423d7Smrg		if test "$supported" = "yes" ; then
10918a73423d7Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10919a73423d7Smrg			found="yes"
10920a73423d7Smrg		fi
10921a73423d7Smrg	fi
10922a73423d7Smrg
10923a73423d7Smrg
10924a73423d7Smrg
10925a73423d7Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10926a73423d7Smrg# activate it with -Werror, so we add it here explicitly.
10927a73423d7Smrg
10928a73423d7Smrg
10929a73423d7Smrg
10930a73423d7Smrg
10931a73423d7Smrg
10932a73423d7Smrg
10933a73423d7Smrg
10934a73423d7Smrg
10935a73423d7Smrg
1093650806d53Smrg
10937a73423d7Smrg
10938a73423d7Smrg
10939a73423d7Smrg
10940a73423d7Smrgxorg_testset_save_CFLAGS="$CFLAGS"
10941a73423d7Smrg
10942a73423d7Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10943a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10944e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10945e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10946e9f7eabcSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10947e9f7eabcSmrgthen :
10948e9f7eabcSmrg  printf %s "(cached) " >&6
10949e9f7eabcSmrgelse $as_nop
10950a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951a73423d7Smrg/* end confdefs.h.  */
10952a73423d7Smrgint i;
10953a73423d7Smrg_ACEOF
10954e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
10955e9f7eabcSmrgthen :
10956a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
10957e9f7eabcSmrgelse $as_nop
10958a73423d7Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10959a73423d7Smrgfi
10960e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10961a73423d7Smrgfi
10962e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10963e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10964a73423d7Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10965a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10966a73423d7Smrgfi
10967a73423d7Smrg
10968a73423d7Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10969a73423d7Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10970a73423d7Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10971a73423d7Smrg	fi
10972a73423d7Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10973e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10974e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10975e9f7eabcSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10976e9f7eabcSmrgthen :
10977e9f7eabcSmrg  printf %s "(cached) " >&6
10978e9f7eabcSmrgelse $as_nop
10979a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10980a73423d7Smrg/* end confdefs.h.  */
10981a73423d7Smrgint i;
10982a73423d7Smrg_ACEOF
10983e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
10984e9f7eabcSmrgthen :
10985a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10986e9f7eabcSmrgelse $as_nop
10987a73423d7Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1098850806d53Smrgfi
10989e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10990a73423d7Smrgfi
10991e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10992e9f7eabcSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10993a73423d7Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10994a73423d7Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10995a73423d7Smrgfi
10996a73423d7Smrg
10997a73423d7Smrgfound="no"
10998a73423d7Smrg
10999a73423d7Smrg	if test $found = "no" ; then
110004a8d91dcSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11001a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11002a73423d7Smrg		fi
11003a73423d7Smrg
110044a8d91dcSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11005a73423d7Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11006a73423d7Smrg		fi
11007a73423d7Smrg
11008a73423d7Smrg		CFLAGS="$CFLAGS -Werror=attributes"
11009a73423d7Smrg
11010e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11011e9f7eabcSmrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; }
110124a8d91dcSmrg		cacheid=xorg_cv_cc_flag__Werror_attributes
11013e9f7eabcSmrg		if eval test \${$cacheid+y}
11014e9f7eabcSmrgthen :
11015e9f7eabcSmrg  printf %s "(cached) " >&6
11016e9f7eabcSmrgelse $as_nop
11017a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018a73423d7Smrg/* end confdefs.h.  */
11019a73423d7Smrgint i;
11020a73423d7Smrgint
11021e9f7eabcSmrgmain (void)
11022a73423d7Smrg{
1102350806d53Smrg
11024a73423d7Smrg  ;
11025a73423d7Smrg  return 0;
11026a73423d7Smrg}
11027a73423d7Smrg_ACEOF
11028e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
11029e9f7eabcSmrgthen :
11030a73423d7Smrg  eval $cacheid=yes
11031e9f7eabcSmrgelse $as_nop
11032a73423d7Smrg  eval $cacheid=no
1103350806d53Smrgfi
11034e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
11035a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
11036a73423d7Smrgfi
11037a73423d7Smrg
1103850806d53Smrg
11039a73423d7Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
11040a73423d7Smrg
11041a73423d7Smrg		eval supported=\$$cacheid
11042e9f7eabcSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11043e9f7eabcSmrgprintf "%s\n" "$supported" >&6; }
11044a73423d7Smrg		if test "$supported" = "yes" ; then
11045a73423d7Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11046a73423d7Smrg			found="yes"
11047a73423d7Smrg		fi
11048b3e38ee4Smrg	fi
11049a73423d7Smrg
11050a73423d7Smrg
11051a73423d7Smrg
11052a73423d7Smrgif test "x$STRICT_COMPILE" = "xyes"; then
11053a73423d7Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11054a73423d7Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11055a18ebfb2Smrgfi
11056a73423d7Smrg
11057a73423d7Smrg
11058b3e38ee4Smrg
11059b3e38ee4Smrg
11060b3e38ee4Smrg
11061b3e38ee4Smrg
11062e9f7eabcSmrg
11063e9f7eabcSmrg
11064b3e38ee4Smrgcat >>confdefs.h <<_ACEOF
11065b3e38ee4Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11066a18ebfb2Smrg_ACEOF
110677965d9acSmrg
11068b3e38ee4Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11069b3e38ee4Smrg	if test "x$PVM" = "x"; then
11070b3e38ee4Smrg		PVM="0"
11071b3e38ee4Smrg	fi
1107250806d53Smrg
11073e9f7eabcSmrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
110747965d9acSmrg
11075b3e38ee4Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11076b3e38ee4Smrg	if test "x$PVP" = "x"; then
11077b3e38ee4Smrg		PVP="0"
11078b3e38ee4Smrg	fi
11079b3e38ee4Smrg
11080e9f7eabcSmrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11081b3e38ee4Smrg
11082b3e38ee4Smrg
11083b3e38ee4Smrg
11084e9f7eabcSmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11085b3e38ee4Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11086e9f7eabcSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11087e9f7eabcSmrgtouch \$(top_srcdir)/ChangeLog; \
11088e9f7eabcSmrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11089b3e38ee4Smrg
11090b3e38ee4Smrg
11091b3e38ee4Smrg
11092b3e38ee4Smrg
11093b3e38ee4Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11094b3e38ee4SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11095b3e38ee4Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11096e9f7eabcSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11097e9f7eabcSmrgtouch \$(top_srcdir)/INSTALL; \
11098e9f7eabcSmrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11099e9f7eabcSmrg
111007965d9acSmrg
11101b3e38ee4Smrg
11102b3e38ee4Smrg
11103b3e38ee4Smrg
11104b3e38ee4Smrg
11105e9f7eabcSmrgcase $host_os in
11106e9f7eabcSmrg    solaris*)
11107e9f7eabcSmrg        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11108e9f7eabcSmrg        # check for a man page file found in later versions that use
11109e9f7eabcSmrg        # traditional section numbers instead
11110e9f7eabcSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11111e9f7eabcSmrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11112e9f7eabcSmrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11113e9f7eabcSmrgthen :
11114e9f7eabcSmrg  printf %s "(cached) " >&6
11115e9f7eabcSmrgelse $as_nop
11116e9f7eabcSmrg  test "$cross_compiling" = yes &&
11117e9f7eabcSmrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11118e9f7eabcSmrgif test -r "/usr/share/man/man7/attributes.7"; then
11119e9f7eabcSmrg  ac_cv_file__usr_share_man_man7_attributes_7=yes
11120e9f7eabcSmrgelse
11121e9f7eabcSmrg  ac_cv_file__usr_share_man_man7_attributes_7=no
11122e9f7eabcSmrgfi
11123e9f7eabcSmrgfi
11124e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11125e9f7eabcSmrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11126e9f7eabcSmrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11127e9f7eabcSmrgthen :
11128e9f7eabcSmrg  SYSV_MAN_SECTIONS=false
11129e9f7eabcSmrgelse $as_nop
11130e9f7eabcSmrg  SYSV_MAN_SECTIONS=true
11131e9f7eabcSmrgfi
11132e9f7eabcSmrg
11133e9f7eabcSmrg        ;;
11134e9f7eabcSmrg    *) SYSV_MAN_SECTIONS=false ;;
11135e9f7eabcSmrgesac
11136b3e38ee4Smrg
11137b3e38ee4Smrgif test x$APP_MAN_SUFFIX = x    ; then
11138b3e38ee4Smrg    APP_MAN_SUFFIX=1
11139b3e38ee4Smrgfi
11140b3e38ee4Smrgif test x$APP_MAN_DIR = x    ; then
11141b3e38ee4Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11142af1a9c97Smrgfi
11143b3e38ee4Smrg
11144b3e38ee4Smrgif test x$LIB_MAN_SUFFIX = x    ; then
11145b3e38ee4Smrg    LIB_MAN_SUFFIX=3
11146af1a9c97Smrgfi
11147b3e38ee4Smrgif test x$LIB_MAN_DIR = x    ; then
11148b3e38ee4Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11149af1a9c97Smrgfi
1115050806d53Smrg
11151b3e38ee4Smrgif test x$FILE_MAN_SUFFIX = x    ; then
11152e9f7eabcSmrg    case $SYSV_MAN_SECTIONS in
11153e9f7eabcSmrg	true)				FILE_MAN_SUFFIX=4  ;;
11154e9f7eabcSmrg	*)				FILE_MAN_SUFFIX=5  ;;
11155b3e38ee4Smrg    esac
11156b3e38ee4Smrgfi
11157b3e38ee4Smrgif test x$FILE_MAN_DIR = x    ; then
11158b3e38ee4Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11159b3e38ee4Smrgfi
111607965d9acSmrg
11161b3e38ee4Smrgif test x$MISC_MAN_SUFFIX = x    ; then
11162e9f7eabcSmrg    case $SYSV_MAN_SECTIONS in
11163e9f7eabcSmrg	true)				MISC_MAN_SUFFIX=5  ;;
11164e9f7eabcSmrg	*)				MISC_MAN_SUFFIX=7  ;;
11165b3e38ee4Smrg    esac
11166b3e38ee4Smrgfi
11167b3e38ee4Smrgif test x$MISC_MAN_DIR = x    ; then
11168b3e38ee4Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
1116950806d53Smrgfi
111707965d9acSmrg
11171b3e38ee4Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
11172e9f7eabcSmrg    case $SYSV_MAN_SECTIONS in
11173e9f7eabcSmrg	true)				DRIVER_MAN_SUFFIX=7  ;;
11174e9f7eabcSmrg	*)				DRIVER_MAN_SUFFIX=4  ;;
11175b3e38ee4Smrg    esac
11176b3e38ee4Smrgfi
11177b3e38ee4Smrgif test x$DRIVER_MAN_DIR = x    ; then
11178b3e38ee4Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
1117950806d53Smrgfi
11180b3e38ee4Smrg
11181b3e38ee4Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
11182e9f7eabcSmrg    case $SYSV_MAN_SECTIONS in
11183e9f7eabcSmrg	true)				ADMIN_MAN_SUFFIX=1m ;;
11184e9f7eabcSmrg	*)				ADMIN_MAN_SUFFIX=8  ;;
11185b3e38ee4Smrg    esac
11186af1a9c97Smrgfi
11187b3e38ee4Smrgif test x$ADMIN_MAN_DIR = x    ; then
11188b3e38ee4Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
111897965d9acSmrgfi
111907965d9acSmrg
11191a18ebfb2Smrg
11192a18ebfb2Smrg
1119350806d53Smrg
11194b3e38ee4Smrg
11195b3e38ee4Smrg
11196b3e38ee4Smrg
11197b3e38ee4Smrg
11198b3e38ee4Smrg
11199b3e38ee4Smrg
11200b3e38ee4Smrg
11201b3e38ee4Smrg
11202b3e38ee4Smrg
11203b3e38ee4Smrg
11204b3e38ee4Smrg
11205b3e38ee4SmrgXORG_MAN_PAGE="X Version 11"
11206b3e38ee4Smrg
11207b3e38ee4SmrgMAN_SUBSTS="\
11208b3e38ee4Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11209b3e38ee4Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11210b3e38ee4Smrg	-e 's|__xservername__|Xorg|g' \
11211b3e38ee4Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
11212b3e38ee4Smrg	-e 's|__projectroot__|\$(prefix)|g' \
11213a73423d7Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11214b3e38ee4Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11215b3e38ee4Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11216b3e38ee4Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11217b3e38ee4Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11218b3e38ee4Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11219b3e38ee4Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11220b3e38ee4Smrg
11221b3e38ee4Smrg
11222b3e38ee4Smrg
11223b3e38ee4Smrg# Check whether --enable-silent-rules was given.
11224e9f7eabcSmrgif test ${enable_silent_rules+y}
11225e9f7eabcSmrgthen :
11226b3e38ee4Smrg  enableval=$enable_silent_rules;
11227a18ebfb2Smrgfi
11228b3e38ee4Smrg
112294a8d91dcSmrgcase $enable_silent_rules in # (((
112304a8d91dcSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
112314a8d91dcSmrg   no) AM_DEFAULT_VERBOSITY=1;;
112324a8d91dcSmrg    *) AM_DEFAULT_VERBOSITY=0;;
11233a18ebfb2Smrgesac
11234a73423d7Smrgam_make=${MAKE-make}
11235e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11236e9f7eabcSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
11237e9f7eabcSmrgif test ${am_cv_make_support_nested_variables+y}
11238e9f7eabcSmrgthen :
11239e9f7eabcSmrg  printf %s "(cached) " >&6
11240e9f7eabcSmrgelse $as_nop
11241e9f7eabcSmrg  if printf "%s\n" 'TRUE=$(BAR$(V))
11242a73423d7SmrgBAR0=false
11243a73423d7SmrgBAR1=true
11244a73423d7SmrgV=1
11245a73423d7Smrgam__doit:
11246a73423d7Smrg	@$(TRUE)
11247a73423d7Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11248a73423d7Smrg  am_cv_make_support_nested_variables=yes
11249a73423d7Smrgelse
11250a73423d7Smrg  am_cv_make_support_nested_variables=no
11251a73423d7Smrgfi
11252a73423d7Smrgfi
11253e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11254e9f7eabcSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11255a73423d7Smrgif test $am_cv_make_support_nested_variables = yes; then
11256a73423d7Smrg    AM_V='$(V)'
11257a73423d7Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11258a73423d7Smrgelse
11259a73423d7Smrg  AM_V=$AM_DEFAULT_VERBOSITY
11260a73423d7Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11261a73423d7Smrgfi
11262b3e38ee4SmrgAM_BACKSLASH='\'
1126350806d53Smrg
1126450806d53Smrg
1126550806d53Smrg
11266e9f7eabcSmrg
11267b3e38ee4Smrg# Initialize libtool
11268b3e38ee4Smrg# Check whether --enable-static was given.
11269e9f7eabcSmrgif test ${enable_static+y}
11270e9f7eabcSmrgthen :
11271b3e38ee4Smrg  enableval=$enable_static; p=${PACKAGE-default}
11272b3e38ee4Smrg    case $enableval in
11273b3e38ee4Smrg    yes) enable_static=yes ;;
11274b3e38ee4Smrg    no) enable_static=no ;;
11275b3e38ee4Smrg    *)
11276b3e38ee4Smrg     enable_static=no
11277b3e38ee4Smrg      # Look at the argument we got.  We use all the common list separators.
112784a8d91dcSmrg      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11279b3e38ee4Smrg      for pkg in $enableval; do
112804a8d91dcSmrg	IFS=$lt_save_ifs
11281b3e38ee4Smrg	if test "X$pkg" = "X$p"; then
11282b3e38ee4Smrg	  enable_static=yes
11283b3e38ee4Smrg	fi
11284b3e38ee4Smrg      done
112854a8d91dcSmrg      IFS=$lt_save_ifs
11286b3e38ee4Smrg      ;;
11287b3e38ee4Smrg    esac
11288e9f7eabcSmrgelse $as_nop
11289b3e38ee4Smrg  enable_static=no
11290a18ebfb2Smrgfi
1129150806d53Smrg
1129250806d53Smrg
1129350806d53Smrg
1129450806d53Smrg
1129550806d53Smrg
1129650806d53Smrg
1129750806d53Smrg
11298b3e38ee4Smrg
11299b3e38ee4Smrg
11300b3e38ee4Smrgcase `pwd` in
11301b3e38ee4Smrg  *\ * | *\	*)
11302e9f7eabcSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11303e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11304a18ebfb2Smrgesac
1130550806d53Smrg
1130650806d53Smrg
113077965d9acSmrg
11308e9f7eabcSmrgmacro_version='2.4.7'
11309e9f7eabcSmrgmacro_revision='2.4.7'
11310e9f7eabcSmrg
1131150806d53Smrg
11312af1a9c97Smrg
1131350806d53Smrg
1131450806d53Smrg
113157965d9acSmrg
1131650806d53Smrg
1131750806d53Smrg
11318b3e38ee4Smrg
11319b3e38ee4Smrg
11320b3e38ee4Smrg
11321b3e38ee4Smrg
11322b3e38ee4Smrg
11323b3e38ee4Smrg
113244a8d91dcSmrgltmain=$ac_aux_dir/ltmain.sh
11325b3e38ee4Smrg
11326a73423d7Smrg# Backslashify metacharacters that are still active within
11327a73423d7Smrg# double-quoted strings.
11328a73423d7Smrgsed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11329a73423d7Smrg
11330a73423d7Smrg# Same as above, but do not quote variable references.
11331a73423d7Smrgdouble_quote_subst='s/\(["`\\]\)/\\\1/g'
11332a73423d7Smrg
11333a73423d7Smrg# Sed substitution to delay expansion of an escaped shell variable in a
11334a73423d7Smrg# double_quote_subst'ed string.
11335a73423d7Smrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11336a73423d7Smrg
11337a73423d7Smrg# Sed substitution to delay expansion of an escaped single quote.
11338a73423d7Smrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11339a73423d7Smrg
11340a73423d7Smrg# Sed substitution to avoid accidental globbing in evaled expressions
11341a73423d7Smrgno_glob_subst='s/\*/\\\*/g'
11342a73423d7Smrg
11343a73423d7SmrgECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11344a73423d7SmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11345a73423d7SmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11346a73423d7Smrg
11347e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11348e9f7eabcSmrgprintf %s "checking how to print strings... " >&6; }
11349a73423d7Smrg# Test print first, because it will be a builtin if present.
11350a73423d7Smrgif test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11351a73423d7Smrg   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11352a73423d7Smrg  ECHO='print -r --'
11353a73423d7Smrgelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11354a73423d7Smrg  ECHO='printf %s\n'
11355a73423d7Smrgelse
11356a73423d7Smrg  # Use this function as a fallback that always works.
11357a73423d7Smrg  func_fallback_echo ()
11358a73423d7Smrg  {
11359a73423d7Smrg    eval 'cat <<_LTECHO_EOF
11360a73423d7Smrg$1
11361a73423d7Smrg_LTECHO_EOF'
11362a73423d7Smrg  }
11363a73423d7Smrg  ECHO='func_fallback_echo'
11364a73423d7Smrgfi
11365a73423d7Smrg
11366a73423d7Smrg# func_echo_all arg...
11367a73423d7Smrg# Invoke $ECHO with all args, space-separated.
11368a73423d7Smrgfunc_echo_all ()
11369a73423d7Smrg{
11370a73423d7Smrg    $ECHO ""
11371a73423d7Smrg}
11372a73423d7Smrg
113734a8d91dcSmrgcase $ECHO in
11374e9f7eabcSmrg  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11375e9f7eabcSmrgprintf "%s\n" "printf" >&6; } ;;
11376e9f7eabcSmrg  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11377e9f7eabcSmrgprintf "%s\n" "print -r" >&6; } ;;
11378e9f7eabcSmrg  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11379e9f7eabcSmrgprintf "%s\n" "cat" >&6; } ;;
11380a73423d7Smrgesac
11381a73423d7Smrg
11382a73423d7Smrg
11383a73423d7Smrg
11384a73423d7Smrg
11385a73423d7Smrg
11386a73423d7Smrg
11387a73423d7Smrg
11388a73423d7Smrg
11389a73423d7Smrg
11390a73423d7Smrg
11391a73423d7Smrg
11392a73423d7Smrg
11393a73423d7Smrg
11394a73423d7Smrg
11395e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11396e9f7eabcSmrgprintf %s "checking for a sed that does not truncate output... " >&6; }
11397e9f7eabcSmrgif test ${ac_cv_path_SED+y}
11398e9f7eabcSmrgthen :
11399e9f7eabcSmrg  printf %s "(cached) " >&6
11400e9f7eabcSmrgelse $as_nop
11401b3e38ee4Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11402b3e38ee4Smrg     for ac_i in 1 2 3 4 5 6 7; do
11403b3e38ee4Smrg       ac_script="$ac_script$as_nl$ac_script"
11404b3e38ee4Smrg     done
11405b3e38ee4Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11406a73423d7Smrg     { ac_script=; unset ac_script;}
11407b3e38ee4Smrg     if test -z "$SED"; then
11408b3e38ee4Smrg  ac_path_SED_found=false
11409b3e38ee4Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
11410b3e38ee4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11411b3e38ee4Smrgfor as_dir in $PATH
11412b3e38ee4Smrgdo
11413b3e38ee4Smrg  IFS=$as_save_IFS
11414e9f7eabcSmrg  case $as_dir in #(((
11415e9f7eabcSmrg    '') as_dir=./ ;;
11416e9f7eabcSmrg    */) ;;
11417e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
11418e9f7eabcSmrg  esac
11419e9f7eabcSmrg    for ac_prog in sed gsed
11420e9f7eabcSmrg   do
11421b3e38ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
11422e9f7eabcSmrg      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
114234a8d91dcSmrg      as_fn_executable_p "$ac_path_SED" || continue
11424b3e38ee4Smrg# Check for GNU ac_path_SED and select it if it is found.
11425b3e38ee4Smrg  # Check for GNU $ac_path_SED
11426b3e38ee4Smrgcase `"$ac_path_SED" --version 2>&1` in
11427b3e38ee4Smrg*GNU*)
11428b3e38ee4Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11429b3e38ee4Smrg*)
11430b3e38ee4Smrg  ac_count=0
11431e9f7eabcSmrg  printf %s 0123456789 >"conftest.in"
11432b3e38ee4Smrg  while :
11433b3e38ee4Smrg  do
11434b3e38ee4Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
11435b3e38ee4Smrg    mv "conftest.tmp" "conftest.in"
11436b3e38ee4Smrg    cp "conftest.in" "conftest.nl"
11437e9f7eabcSmrg    printf "%s\n" '' >> "conftest.nl"
11438b3e38ee4Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11439b3e38ee4Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11440a73423d7Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
11441b3e38ee4Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
11442b3e38ee4Smrg      # Best one so far, save it but keep looking for a better one
11443b3e38ee4Smrg      ac_cv_path_SED="$ac_path_SED"
11444b3e38ee4Smrg      ac_path_SED_max=$ac_count
11445b3e38ee4Smrg    fi
11446b3e38ee4Smrg    # 10*(2^10) chars as input seems more than enough
11447b3e38ee4Smrg    test $ac_count -gt 10 && break
11448b3e38ee4Smrg  done
11449b3e38ee4Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11450b3e38ee4Smrgesac
1145150806d53Smrg
11452b3e38ee4Smrg      $ac_path_SED_found && break 3
11453b3e38ee4Smrg    done
11454b3e38ee4Smrg  done
11455a73423d7Smrg  done
11456b3e38ee4SmrgIFS=$as_save_IFS
11457b3e38ee4Smrg  if test -z "$ac_cv_path_SED"; then
11458a73423d7Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11459a18ebfb2Smrg  fi
11460b3e38ee4Smrgelse
11461b3e38ee4Smrg  ac_cv_path_SED=$SED
11462b3e38ee4Smrgfi
1146350806d53Smrg
11464b3e38ee4Smrgfi
11465e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11466e9f7eabcSmrgprintf "%s\n" "$ac_cv_path_SED" >&6; }
11467b3e38ee4Smrg SED="$ac_cv_path_SED"
11468b3e38ee4Smrg  rm -f conftest.sed
11469b3e38ee4Smrg
11470b3e38ee4Smrgtest -z "$SED" && SED=sed
11471b3e38ee4SmrgXsed="$SED -e 1s/^X//"
1147250806d53Smrg
11473a18ebfb2Smrg
1147450806d53Smrg
11475a18ebfb2Smrg
1147650806d53Smrg
1147750806d53Smrg
1147850806d53Smrg
1147950806d53Smrg
11480b3e38ee4Smrg
11481b3e38ee4Smrg
11482b3e38ee4Smrg
11483e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11484e9f7eabcSmrgprintf %s "checking for grep that handles long lines and -e... " >&6; }
11485e9f7eabcSmrgif test ${ac_cv_path_GREP+y}
11486e9f7eabcSmrgthen :
11487e9f7eabcSmrg  printf %s "(cached) " >&6
11488e9f7eabcSmrgelse $as_nop
11489e9f7eabcSmrg  if test -z "$GREP"; then
11490e9f7eabcSmrg  ac_path_GREP_found=false
11491e9f7eabcSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
11492e9f7eabcSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11493e9f7eabcSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11494e9f7eabcSmrgdo
11495e9f7eabcSmrg  IFS=$as_save_IFS
11496e9f7eabcSmrg  case $as_dir in #(((
11497e9f7eabcSmrg    '') as_dir=./ ;;
11498e9f7eabcSmrg    */) ;;
11499e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
11500e9f7eabcSmrg  esac
11501e9f7eabcSmrg    for ac_prog in grep ggrep
11502e9f7eabcSmrg   do
11503e9f7eabcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
11504e9f7eabcSmrg      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11505e9f7eabcSmrg      as_fn_executable_p "$ac_path_GREP" || continue
11506e9f7eabcSmrg# Check for GNU ac_path_GREP and select it if it is found.
11507e9f7eabcSmrg  # Check for GNU $ac_path_GREP
11508e9f7eabcSmrgcase `"$ac_path_GREP" --version 2>&1` in
11509e9f7eabcSmrg*GNU*)
11510e9f7eabcSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11511e9f7eabcSmrg*)
11512e9f7eabcSmrg  ac_count=0
11513e9f7eabcSmrg  printf %s 0123456789 >"conftest.in"
11514e9f7eabcSmrg  while :
11515e9f7eabcSmrg  do
11516e9f7eabcSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
11517e9f7eabcSmrg    mv "conftest.tmp" "conftest.in"
11518e9f7eabcSmrg    cp "conftest.in" "conftest.nl"
11519e9f7eabcSmrg    printf "%s\n" 'GREP' >> "conftest.nl"
11520e9f7eabcSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11521e9f7eabcSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11522e9f7eabcSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
11523e9f7eabcSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11524e9f7eabcSmrg      # Best one so far, save it but keep looking for a better one
11525e9f7eabcSmrg      ac_cv_path_GREP="$ac_path_GREP"
11526e9f7eabcSmrg      ac_path_GREP_max=$ac_count
11527e9f7eabcSmrg    fi
11528e9f7eabcSmrg    # 10*(2^10) chars as input seems more than enough
11529e9f7eabcSmrg    test $ac_count -gt 10 && break
11530e9f7eabcSmrg  done
11531e9f7eabcSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11532e9f7eabcSmrgesac
11533e9f7eabcSmrg
11534e9f7eabcSmrg      $ac_path_GREP_found && break 3
11535e9f7eabcSmrg    done
11536e9f7eabcSmrg  done
11537e9f7eabcSmrg  done
11538e9f7eabcSmrgIFS=$as_save_IFS
11539e9f7eabcSmrg  if test -z "$ac_cv_path_GREP"; then
11540e9f7eabcSmrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11541e9f7eabcSmrg  fi
11542e9f7eabcSmrgelse
11543e9f7eabcSmrg  ac_cv_path_GREP=$GREP
11544e9f7eabcSmrgfi
11545e9f7eabcSmrg
11546e9f7eabcSmrgfi
11547e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11548e9f7eabcSmrgprintf "%s\n" "$ac_cv_path_GREP" >&6; }
11549e9f7eabcSmrg GREP="$ac_cv_path_GREP"
11550e9f7eabcSmrg
11551e9f7eabcSmrg
11552e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11553e9f7eabcSmrgprintf %s "checking for egrep... " >&6; }
11554e9f7eabcSmrgif test ${ac_cv_path_EGREP+y}
11555e9f7eabcSmrgthen :
11556e9f7eabcSmrg  printf %s "(cached) " >&6
11557e9f7eabcSmrgelse $as_nop
11558e9f7eabcSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11559e9f7eabcSmrg   then ac_cv_path_EGREP="$GREP -E"
11560e9f7eabcSmrg   else
11561e9f7eabcSmrg     if test -z "$EGREP"; then
11562e9f7eabcSmrg  ac_path_EGREP_found=false
11563e9f7eabcSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
11564e9f7eabcSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565e9f7eabcSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11566e9f7eabcSmrgdo
11567e9f7eabcSmrg  IFS=$as_save_IFS
11568e9f7eabcSmrg  case $as_dir in #(((
11569e9f7eabcSmrg    '') as_dir=./ ;;
11570e9f7eabcSmrg    */) ;;
11571e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
11572e9f7eabcSmrg  esac
11573e9f7eabcSmrg    for ac_prog in egrep
11574e9f7eabcSmrg   do
11575e9f7eabcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
11576e9f7eabcSmrg      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11577e9f7eabcSmrg      as_fn_executable_p "$ac_path_EGREP" || continue
11578e9f7eabcSmrg# Check for GNU ac_path_EGREP and select it if it is found.
11579e9f7eabcSmrg  # Check for GNU $ac_path_EGREP
11580e9f7eabcSmrgcase `"$ac_path_EGREP" --version 2>&1` in
11581e9f7eabcSmrg*GNU*)
11582e9f7eabcSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11583e9f7eabcSmrg*)
11584e9f7eabcSmrg  ac_count=0
11585e9f7eabcSmrg  printf %s 0123456789 >"conftest.in"
11586e9f7eabcSmrg  while :
11587e9f7eabcSmrg  do
11588e9f7eabcSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
11589e9f7eabcSmrg    mv "conftest.tmp" "conftest.in"
11590e9f7eabcSmrg    cp "conftest.in" "conftest.nl"
11591e9f7eabcSmrg    printf "%s\n" 'EGREP' >> "conftest.nl"
11592e9f7eabcSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11593e9f7eabcSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11594e9f7eabcSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
11595e9f7eabcSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11596e9f7eabcSmrg      # Best one so far, save it but keep looking for a better one
11597e9f7eabcSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
11598e9f7eabcSmrg      ac_path_EGREP_max=$ac_count
11599e9f7eabcSmrg    fi
11600e9f7eabcSmrg    # 10*(2^10) chars as input seems more than enough
11601e9f7eabcSmrg    test $ac_count -gt 10 && break
11602e9f7eabcSmrg  done
11603e9f7eabcSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11604e9f7eabcSmrgesac
11605e9f7eabcSmrg
11606e9f7eabcSmrg      $ac_path_EGREP_found && break 3
11607e9f7eabcSmrg    done
11608e9f7eabcSmrg  done
11609e9f7eabcSmrg  done
11610e9f7eabcSmrgIFS=$as_save_IFS
11611e9f7eabcSmrg  if test -z "$ac_cv_path_EGREP"; then
11612e9f7eabcSmrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11613e9f7eabcSmrg  fi
11614a18ebfb2Smrgelse
11615e9f7eabcSmrg  ac_cv_path_EGREP=$EGREP
11616e9f7eabcSmrgfi
11617e9f7eabcSmrg
11618e9f7eabcSmrg   fi
11619e9f7eabcSmrgfi
11620e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11621e9f7eabcSmrgprintf "%s\n" "$ac_cv_path_EGREP" >&6; }
11622e9f7eabcSmrg EGREP="$ac_cv_path_EGREP"
11623e9f7eabcSmrg
11624e9f7eabcSmrg
11625e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11626e9f7eabcSmrgprintf %s "checking for fgrep... " >&6; }
11627e9f7eabcSmrgif test ${ac_cv_path_FGREP+y}
11628e9f7eabcSmrgthen :
11629e9f7eabcSmrg  printf %s "(cached) " >&6
11630e9f7eabcSmrgelse $as_nop
11631b3e38ee4Smrg  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11632b3e38ee4Smrg   then ac_cv_path_FGREP="$GREP -F"
11633b3e38ee4Smrg   else
11634b3e38ee4Smrg     if test -z "$FGREP"; then
11635b3e38ee4Smrg  ac_path_FGREP_found=false
11636b3e38ee4Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
11637b3e38ee4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638b3e38ee4Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11639a18ebfb2Smrgdo
11640b3e38ee4Smrg  IFS=$as_save_IFS
11641e9f7eabcSmrg  case $as_dir in #(((
11642e9f7eabcSmrg    '') as_dir=./ ;;
11643e9f7eabcSmrg    */) ;;
11644e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
11645e9f7eabcSmrg  esac
11646e9f7eabcSmrg    for ac_prog in fgrep
11647e9f7eabcSmrg   do
11648b3e38ee4Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
11649e9f7eabcSmrg      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
116504a8d91dcSmrg      as_fn_executable_p "$ac_path_FGREP" || continue
11651b3e38ee4Smrg# Check for GNU ac_path_FGREP and select it if it is found.
11652b3e38ee4Smrg  # Check for GNU $ac_path_FGREP
11653b3e38ee4Smrgcase `"$ac_path_FGREP" --version 2>&1` in
11654b3e38ee4Smrg*GNU*)
11655b3e38ee4Smrg  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11656b3e38ee4Smrg*)
11657b3e38ee4Smrg  ac_count=0
11658e9f7eabcSmrg  printf %s 0123456789 >"conftest.in"
11659b3e38ee4Smrg  while :
11660b3e38ee4Smrg  do
11661b3e38ee4Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
11662b3e38ee4Smrg    mv "conftest.tmp" "conftest.in"
11663b3e38ee4Smrg    cp "conftest.in" "conftest.nl"
11664e9f7eabcSmrg    printf "%s\n" 'FGREP' >> "conftest.nl"
11665b3e38ee4Smrg    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11666b3e38ee4Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11667a73423d7Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
11668b3e38ee4Smrg    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11669b3e38ee4Smrg      # Best one so far, save it but keep looking for a better one
11670b3e38ee4Smrg      ac_cv_path_FGREP="$ac_path_FGREP"
11671b3e38ee4Smrg      ac_path_FGREP_max=$ac_count
11672b3e38ee4Smrg    fi
11673b3e38ee4Smrg    # 10*(2^10) chars as input seems more than enough
11674b3e38ee4Smrg    test $ac_count -gt 10 && break
11675b3e38ee4Smrg  done
11676b3e38ee4Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11677a18ebfb2Smrgesac
11678b3e38ee4Smrg
11679b3e38ee4Smrg      $ac_path_FGREP_found && break 3
11680b3e38ee4Smrg    done
11681b3e38ee4Smrg  done
11682a73423d7Smrg  done
11683b3e38ee4SmrgIFS=$as_save_IFS
11684b3e38ee4Smrg  if test -z "$ac_cv_path_FGREP"; then
11685a73423d7Smrg    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11686b3e38ee4Smrg  fi
11687a18ebfb2Smrgelse
11688b3e38ee4Smrg  ac_cv_path_FGREP=$FGREP
11689b3e38ee4Smrgfi
1169050806d53Smrg
11691b3e38ee4Smrg   fi
11692a18ebfb2Smrgfi
11693e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11694e9f7eabcSmrgprintf "%s\n" "$ac_cv_path_FGREP" >&6; }
11695b3e38ee4Smrg FGREP="$ac_cv_path_FGREP"
1169650806d53Smrg
1169750806d53Smrg
11698b3e38ee4Smrgtest -z "$GREP" && GREP=grep
1169950806d53Smrg
1170050806d53Smrg
1170150806d53Smrg
1170250806d53Smrg
11703af1a9c97Smrg
11704af1a9c97Smrg
11705af1a9c97Smrg
11706af1a9c97Smrg
11707af1a9c97Smrg
11708af1a9c97Smrg
11709af1a9c97Smrg
11710b3e38ee4Smrg
11711b3e38ee4Smrg
11712b3e38ee4Smrg
11713b3e38ee4Smrg
11714b3e38ee4Smrg
11715b3e38ee4Smrg
11716b3e38ee4Smrg
11717b3e38ee4Smrg
11718b3e38ee4Smrg# Check whether --with-gnu-ld was given.
11719e9f7eabcSmrgif test ${with_gnu_ld+y}
11720e9f7eabcSmrgthen :
117214a8d91dcSmrg  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11722e9f7eabcSmrgelse $as_nop
11723b3e38ee4Smrg  with_gnu_ld=no
11724a18ebfb2Smrgfi
1172550806d53Smrg
11726b3e38ee4Smrgac_prog=ld
117274a8d91dcSmrgif test yes = "$GCC"; then
11728b3e38ee4Smrg  # Check if gcc -print-prog-name=ld gives a path.
11729e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11730e9f7eabcSmrgprintf %s "checking for ld used by $CC... " >&6; }
11731b3e38ee4Smrg  case $host in
11732b3e38ee4Smrg  *-*-mingw*)
117334a8d91dcSmrg    # gcc leaves a trailing carriage return, which upsets mingw
11734b3e38ee4Smrg    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11735b3e38ee4Smrg  *)
11736b3e38ee4Smrg    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11737b3e38ee4Smrg  esac
11738b3e38ee4Smrg  case $ac_prog in
11739b3e38ee4Smrg    # Accept absolute paths.
11740b3e38ee4Smrg    [\\/]* | ?:[\\/]*)
11741b3e38ee4Smrg      re_direlt='/[^/][^/]*/\.\./'
11742b3e38ee4Smrg      # Canonicalize the pathname of ld
11743b3e38ee4Smrg      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11744b3e38ee4Smrg      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11745b3e38ee4Smrg	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11746b3e38ee4Smrg      done
117474a8d91dcSmrg      test -z "$LD" && LD=$ac_prog
11748b3e38ee4Smrg      ;;
11749b3e38ee4Smrg  "")
11750b3e38ee4Smrg    # If it fails, then pretend we aren't using GCC.
11751b3e38ee4Smrg    ac_prog=ld
11752b3e38ee4Smrg    ;;
11753b3e38ee4Smrg  *)
11754b3e38ee4Smrg    # If it is relative, then search for the first ld in PATH.
11755b3e38ee4Smrg    with_gnu_ld=unknown
11756b3e38ee4Smrg    ;;
11757b3e38ee4Smrg  esac
117584a8d91dcSmrgelif test yes = "$with_gnu_ld"; then
11759e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11760e9f7eabcSmrgprintf %s "checking for GNU ld... " >&6; }
11761b3e38ee4Smrgelse
11762e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11763e9f7eabcSmrgprintf %s "checking for non-GNU ld... " >&6; }
11764b3e38ee4Smrgfi
11765e9f7eabcSmrgif test ${lt_cv_path_LD+y}
11766e9f7eabcSmrgthen :
11767e9f7eabcSmrg  printf %s "(cached) " >&6
11768e9f7eabcSmrgelse $as_nop
11769b3e38ee4Smrg  if test -z "$LD"; then
117704a8d91dcSmrg  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11771b3e38ee4Smrg  for ac_dir in $PATH; do
117724a8d91dcSmrg    IFS=$lt_save_ifs
11773b3e38ee4Smrg    test -z "$ac_dir" && ac_dir=.
11774b3e38ee4Smrg    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
117754a8d91dcSmrg      lt_cv_path_LD=$ac_dir/$ac_prog
11776b3e38ee4Smrg      # Check to see if the program is GNU ld.  I'd rather use --version,
11777b3e38ee4Smrg      # but apparently some variants of GNU ld only accept -v.
11778b3e38ee4Smrg      # Break only if it was the GNU/non-GNU ld that we prefer.
11779b3e38ee4Smrg      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11780b3e38ee4Smrg      *GNU* | *'with BFD'*)
117814a8d91dcSmrg	test no != "$with_gnu_ld" && break
11782b3e38ee4Smrg	;;
11783b3e38ee4Smrg      *)
117844a8d91dcSmrg	test yes != "$with_gnu_ld" && break
11785b3e38ee4Smrg	;;
11786b3e38ee4Smrg      esac
11787b3e38ee4Smrg    fi
11788b3e38ee4Smrg  done
117894a8d91dcSmrg  IFS=$lt_save_ifs
11790b3e38ee4Smrgelse
117914a8d91dcSmrg  lt_cv_path_LD=$LD # Let the user override the test with a path.
11792b3e38ee4Smrgfi
11793b3e38ee4Smrgfi
1179450806d53Smrg
117954a8d91dcSmrgLD=$lt_cv_path_LD
11796b3e38ee4Smrgif test -n "$LD"; then
11797e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11798e9f7eabcSmrgprintf "%s\n" "$LD" >&6; }
11799b3e38ee4Smrgelse
11800e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801e9f7eabcSmrgprintf "%s\n" "no" >&6; }
11802b3e38ee4Smrgfi
11803a73423d7Smrgtest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11804e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11805e9f7eabcSmrgprintf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11806e9f7eabcSmrgif test ${lt_cv_prog_gnu_ld+y}
11807e9f7eabcSmrgthen :
11808e9f7eabcSmrg  printf %s "(cached) " >&6
11809e9f7eabcSmrgelse $as_nop
11810b3e38ee4Smrg  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11811b3e38ee4Smrgcase `$LD -v 2>&1 </dev/null` in
11812b3e38ee4Smrg*GNU* | *'with BFD'*)
11813b3e38ee4Smrg  lt_cv_prog_gnu_ld=yes
11814b3e38ee4Smrg  ;;
11815b3e38ee4Smrg*)
11816b3e38ee4Smrg  lt_cv_prog_gnu_ld=no
11817b3e38ee4Smrg  ;;
11818b3e38ee4Smrgesac
11819a18ebfb2Smrgfi
11820e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11821e9f7eabcSmrgprintf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
11822b3e38ee4Smrgwith_gnu_ld=$lt_cv_prog_gnu_ld
1182350806d53Smrg
1182450806d53Smrg
11825b3e38ee4Smrg
11826b3e38ee4Smrg
11827b3e38ee4Smrg
11828b3e38ee4Smrg
11829b3e38ee4Smrg
11830b3e38ee4Smrg
11831b3e38ee4Smrg
11832e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11833e9f7eabcSmrgprintf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11834e9f7eabcSmrgif test ${lt_cv_path_NM+y}
11835e9f7eabcSmrgthen :
11836e9f7eabcSmrg  printf %s "(cached) " >&6
11837e9f7eabcSmrgelse $as_nop
11838b3e38ee4Smrg  if test -n "$NM"; then
11839b3e38ee4Smrg  # Let the user override the test.
118404a8d91dcSmrg  lt_cv_path_NM=$NM
11841b3e38ee4Smrgelse
118424a8d91dcSmrg  lt_nm_to_check=${ac_tool_prefix}nm
11843b3e38ee4Smrg  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11844b3e38ee4Smrg    lt_nm_to_check="$lt_nm_to_check nm"
11845b3e38ee4Smrg  fi
11846b3e38ee4Smrg  for lt_tmp_nm in $lt_nm_to_check; do
118474a8d91dcSmrg    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11848b3e38ee4Smrg    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
118494a8d91dcSmrg      IFS=$lt_save_ifs
11850b3e38ee4Smrg      test -z "$ac_dir" && ac_dir=.
118514a8d91dcSmrg      tmp_nm=$ac_dir/$lt_tmp_nm
118524a8d91dcSmrg      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11853b3e38ee4Smrg	# Check to see if the nm accepts a BSD-compat flag.
118544a8d91dcSmrg	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11855b3e38ee4Smrg	#   nm: unknown option "B" ignored
11856b3e38ee4Smrg	# Tru64's nm complains that /dev/null is an invalid object file
118574a8d91dcSmrg	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
118584a8d91dcSmrg	case $build_os in
118594a8d91dcSmrg	mingw*) lt_bad_file=conftest.nm/nofile ;;
118604a8d91dcSmrg	*) lt_bad_file=/dev/null ;;
118614a8d91dcSmrg	esac
11862e9f7eabcSmrg	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
118634a8d91dcSmrg	*$lt_bad_file* | *'Invalid file or object type'*)
11864b3e38ee4Smrg	  lt_cv_path_NM="$tmp_nm -B"
118654a8d91dcSmrg	  break 2
11866b3e38ee4Smrg	  ;;
11867b3e38ee4Smrg	*)
11868e9f7eabcSmrg	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
11869b3e38ee4Smrg	  */dev/null*)
11870b3e38ee4Smrg	    lt_cv_path_NM="$tmp_nm -p"
118714a8d91dcSmrg	    break 2
11872b3e38ee4Smrg	    ;;
11873b3e38ee4Smrg	  *)
11874b3e38ee4Smrg	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11875b3e38ee4Smrg	    continue # so that we can try to find one that supports BSD flags
11876b3e38ee4Smrg	    ;;
11877b3e38ee4Smrg	  esac
11878b3e38ee4Smrg	  ;;
11879b3e38ee4Smrg	esac
11880b3e38ee4Smrg      fi
11881b3e38ee4Smrg    done
118824a8d91dcSmrg    IFS=$lt_save_ifs
11883b3e38ee4Smrg  done
11884b3e38ee4Smrg  : ${lt_cv_path_NM=no}
11885b3e38ee4Smrgfi
11886b3e38ee4Smrgfi
11887e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11888e9f7eabcSmrgprintf "%s\n" "$lt_cv_path_NM" >&6; }
118894a8d91dcSmrgif test no != "$lt_cv_path_NM"; then
118904a8d91dcSmrg  NM=$lt_cv_path_NM
11891b3e38ee4Smrgelse
11892b3e38ee4Smrg  # Didn't find any BSD compatible name lister, look for dumpbin.
11893a73423d7Smrg  if test -n "$DUMPBIN"; then :
11894a73423d7Smrg    # Let the user override the test.
11895a73423d7Smrg  else
11896a73423d7Smrg    if test -n "$ac_tool_prefix"; then
11897a73423d7Smrg  for ac_prog in dumpbin "link -dump"
11898a18ebfb2Smrg  do
11899a18ebfb2Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11900a18ebfb2Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
11901e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
11903e9f7eabcSmrgif test ${ac_cv_prog_DUMPBIN+y}
11904e9f7eabcSmrgthen :
11905e9f7eabcSmrg  printf %s "(cached) " >&6
11906e9f7eabcSmrgelse $as_nop
11907b3e38ee4Smrg  if test -n "$DUMPBIN"; then
11908b3e38ee4Smrg  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11909a18ebfb2Smrgelse
11910a18ebfb2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911a18ebfb2Smrgfor as_dir in $PATH
11912a18ebfb2Smrgdo
11913a18ebfb2Smrg  IFS=$as_save_IFS
11914e9f7eabcSmrg  case $as_dir in #(((
11915e9f7eabcSmrg    '') as_dir=./ ;;
11916e9f7eabcSmrg    */) ;;
11917e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
11918e9f7eabcSmrg  esac
11919a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
11920e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11921b3e38ee4Smrg    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11922e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11923a18ebfb2Smrg    break 2
1192450806d53Smrg  fi
11925a18ebfb2Smrgdone
11926a73423d7Smrg  done
11927a18ebfb2SmrgIFS=$as_save_IFS
1192850806d53Smrg
11929a18ebfb2Smrgfi
11930a18ebfb2Smrgfi
11931b3e38ee4SmrgDUMPBIN=$ac_cv_prog_DUMPBIN
11932b3e38ee4Smrgif test -n "$DUMPBIN"; then
11933e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11934e9f7eabcSmrgprintf "%s\n" "$DUMPBIN" >&6; }
11935a18ebfb2Smrgelse
11936e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937e9f7eabcSmrgprintf "%s\n" "no" >&6; }
11938a18ebfb2Smrgfi
11939af1a9c97Smrg
11940af1a9c97Smrg
11941b3e38ee4Smrg    test -n "$DUMPBIN" && break
11942a18ebfb2Smrg  done
11943a18ebfb2Smrgfi
11944b3e38ee4Smrgif test -z "$DUMPBIN"; then
11945b3e38ee4Smrg  ac_ct_DUMPBIN=$DUMPBIN
11946a73423d7Smrg  for ac_prog in dumpbin "link -dump"
11947a18ebfb2Smrgdo
11948a18ebfb2Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
11949a18ebfb2Smrgset dummy $ac_prog; ac_word=$2
11950e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
11952e9f7eabcSmrgif test ${ac_cv_prog_ac_ct_DUMPBIN+y}
11953e9f7eabcSmrgthen :
11954e9f7eabcSmrg  printf %s "(cached) " >&6
11955e9f7eabcSmrgelse $as_nop
11956b3e38ee4Smrg  if test -n "$ac_ct_DUMPBIN"; then
11957b3e38ee4Smrg  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11958a18ebfb2Smrgelse
11959a18ebfb2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960a18ebfb2Smrgfor as_dir in $PATH
11961a18ebfb2Smrgdo
11962a18ebfb2Smrg  IFS=$as_save_IFS
11963e9f7eabcSmrg  case $as_dir in #(((
11964e9f7eabcSmrg    '') as_dir=./ ;;
11965e9f7eabcSmrg    */) ;;
11966e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
11967e9f7eabcSmrg  esac
11968a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
11969e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11970b3e38ee4Smrg    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11971e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11972a18ebfb2Smrg    break 2
11973a18ebfb2Smrg  fi
11974a18ebfb2Smrgdone
11975a73423d7Smrg  done
11976a18ebfb2SmrgIFS=$as_save_IFS
11977af1a9c97Smrg
11978a18ebfb2Smrgfi
11979a18ebfb2Smrgfi
11980b3e38ee4Smrgac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11981b3e38ee4Smrgif test -n "$ac_ct_DUMPBIN"; then
11982e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11983e9f7eabcSmrgprintf "%s\n" "$ac_ct_DUMPBIN" >&6; }
11984a18ebfb2Smrgelse
11985e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986e9f7eabcSmrgprintf "%s\n" "no" >&6; }
11987a18ebfb2Smrgfi
1198850806d53Smrg
1198950806d53Smrg
11990b3e38ee4Smrg  test -n "$ac_ct_DUMPBIN" && break
11991a18ebfb2Smrgdone
1199250806d53Smrg
11993b3e38ee4Smrg  if test "x$ac_ct_DUMPBIN" = x; then
11994b3e38ee4Smrg    DUMPBIN=":"
11995af1a9c97Smrg  else
11996a18ebfb2Smrg    case $cross_compiling:$ac_tool_warned in
11997a18ebfb2Smrgyes:)
11998e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11999e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12000a18ebfb2Smrgac_tool_warned=yes ;;
12001a18ebfb2Smrgesac
12002b3e38ee4Smrg    DUMPBIN=$ac_ct_DUMPBIN
12003af1a9c97Smrg  fi
12004a18ebfb2Smrgfi
1200550806d53Smrg
12006e9f7eabcSmrg    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
12007a73423d7Smrg    *COFF*)
120084a8d91dcSmrg      DUMPBIN="$DUMPBIN -symbols -headers"
12009a73423d7Smrg      ;;
12010a73423d7Smrg    *)
12011a73423d7Smrg      DUMPBIN=:
12012a73423d7Smrg      ;;
12013a73423d7Smrg    esac
12014a73423d7Smrg  fi
1201550806d53Smrg
120164a8d91dcSmrg  if test : != "$DUMPBIN"; then
120174a8d91dcSmrg    NM=$DUMPBIN
12018b3e38ee4Smrg  fi
12019b3e38ee4Smrgfi
12020b3e38ee4Smrgtest -z "$NM" && NM=nm
12021af1a9c97Smrg
1202250806d53Smrg
1202350806d53Smrg
12024b3e38ee4Smrg
12025b3e38ee4Smrg
12026b3e38ee4Smrg
12027e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12028e9f7eabcSmrgprintf %s "checking the name lister ($NM) interface... " >&6; }
12029e9f7eabcSmrgif test ${lt_cv_nm_interface+y}
12030e9f7eabcSmrgthen :
12031e9f7eabcSmrg  printf %s "(cached) " >&6
12032e9f7eabcSmrgelse $as_nop
12033b3e38ee4Smrg  lt_cv_nm_interface="BSD nm"
12034b3e38ee4Smrg  echo "int some_variable = 0;" > conftest.$ac_ext
12035a73423d7Smrg  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12036b3e38ee4Smrg  (eval "$ac_compile" 2>conftest.err)
12037b3e38ee4Smrg  cat conftest.err >&5
12038a73423d7Smrg  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12039b3e38ee4Smrg  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12040b3e38ee4Smrg  cat conftest.err >&5
12041a73423d7Smrg  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12042b3e38ee4Smrg  cat conftest.out >&5
12043b3e38ee4Smrg  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12044b3e38ee4Smrg    lt_cv_nm_interface="MS dumpbin"
12045b3e38ee4Smrg  fi
12046b3e38ee4Smrg  rm -f conftest*
12047b3e38ee4Smrgfi
12048e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12049e9f7eabcSmrgprintf "%s\n" "$lt_cv_nm_interface" >&6; }
1205050806d53Smrg
12051e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12052e9f7eabcSmrgprintf %s "checking whether ln -s works... " >&6; }
12053b3e38ee4SmrgLN_S=$as_ln_s
12054b3e38ee4Smrgif test "$LN_S" = "ln -s"; then
12055e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12056e9f7eabcSmrgprintf "%s\n" "yes" >&6; }
1205750806d53Smrgelse
12058e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12059e9f7eabcSmrgprintf "%s\n" "no, using $LN_S" >&6; }
1206050806d53Smrgfi
1206150806d53Smrg
12062a18ebfb2Smrg# find the maximum length of command line arguments
12063e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12064e9f7eabcSmrgprintf %s "checking the maximum length of command line arguments... " >&6; }
12065e9f7eabcSmrgif test ${lt_cv_sys_max_cmd_len+y}
12066e9f7eabcSmrgthen :
12067e9f7eabcSmrg  printf %s "(cached) " >&6
12068e9f7eabcSmrgelse $as_nop
12069a18ebfb2Smrg    i=0
120704a8d91dcSmrg  teststring=ABCD
1207150806d53Smrg
12072a18ebfb2Smrg  case $build_os in
12073a18ebfb2Smrg  msdosdjgpp*)
12074a18ebfb2Smrg    # On DJGPP, this test can blow up pretty badly due to problems in libc
12075a18ebfb2Smrg    # (any single argument exceeding 2000 bytes causes a buffer overrun
12076a18ebfb2Smrg    # during glob expansion).  Even if it were fixed, the result of this
12077a18ebfb2Smrg    # check would be larger than it should be.
12078a18ebfb2Smrg    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12079a18ebfb2Smrg    ;;
1208050806d53Smrg
12081a18ebfb2Smrg  gnu*)
12082a18ebfb2Smrg    # Under GNU Hurd, this test is not required because there is
12083a18ebfb2Smrg    # no limit to the length of command line arguments.
12084a18ebfb2Smrg    # Libtool will interpret -1 as no limit whatsoever
12085a18ebfb2Smrg    lt_cv_sys_max_cmd_len=-1;
12086a18ebfb2Smrg    ;;
1208750806d53Smrg
12088b3e38ee4Smrg  cygwin* | mingw* | cegcc*)
12089a18ebfb2Smrg    # On Win9x/ME, this test blows up -- it succeeds, but takes
12090a18ebfb2Smrg    # about 5 minutes as the teststring grows exponentially.
12091a18ebfb2Smrg    # Worse, since 9x/ME are not pre-emptively multitasking,
12092a18ebfb2Smrg    # you end up with a "frozen" computer, even though with patience
12093a18ebfb2Smrg    # the test eventually succeeds (with a max line length of 256k).
12094a18ebfb2Smrg    # Instead, let's just punt: use the minimum linelength reported by
12095a18ebfb2Smrg    # all of the supported platforms: 8192 (on NT/2K/XP).
12096a18ebfb2Smrg    lt_cv_sys_max_cmd_len=8192;
12097a18ebfb2Smrg    ;;
1209850806d53Smrg
12099a73423d7Smrg  mint*)
12100a73423d7Smrg    # On MiNT this can take a long time and run out of memory.
12101a73423d7Smrg    lt_cv_sys_max_cmd_len=8192;
12102a73423d7Smrg    ;;
12103a73423d7Smrg
12104a18ebfb2Smrg  amigaos*)
12105a18ebfb2Smrg    # On AmigaOS with pdksh, this test takes hours, literally.
12106a18ebfb2Smrg    # So we just punt and use a minimum line length of 8192.
12107a18ebfb2Smrg    lt_cv_sys_max_cmd_len=8192;
12108a18ebfb2Smrg    ;;
1210950806d53Smrg
12110e9f7eabcSmrg  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12111a18ebfb2Smrg    # This has been around since 386BSD, at least.  Likely further.
12112a18ebfb2Smrg    if test -x /sbin/sysctl; then
12113a18ebfb2Smrg      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12114a18ebfb2Smrg    elif test -x /usr/sbin/sysctl; then
12115a18ebfb2Smrg      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12116a18ebfb2Smrg    else
12117a18ebfb2Smrg      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12118a18ebfb2Smrg    fi
12119a18ebfb2Smrg    # And add a safety zone
12120a18ebfb2Smrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12121a18ebfb2Smrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12122a18ebfb2Smrg    ;;
121237965d9acSmrg
12124a18ebfb2Smrg  interix*)
12125a18ebfb2Smrg    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12126a18ebfb2Smrg    lt_cv_sys_max_cmd_len=196608
12127a18ebfb2Smrg    ;;
12128a18ebfb2Smrg
12129a73423d7Smrg  os2*)
12130a73423d7Smrg    # The test takes a long time on OS/2.
12131a73423d7Smrg    lt_cv_sys_max_cmd_len=8192
12132a73423d7Smrg    ;;
12133a73423d7Smrg
12134a18ebfb2Smrg  osf*)
12135a18ebfb2Smrg    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12136a18ebfb2Smrg    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12137a18ebfb2Smrg    # nice to cause kernel panics so lets avoid the loop below.
12138a18ebfb2Smrg    # First set a reasonable default.
12139a18ebfb2Smrg    lt_cv_sys_max_cmd_len=16384
12140a18ebfb2Smrg    #
12141a18ebfb2Smrg    if test -x /sbin/sysconfig; then
12142a18ebfb2Smrg      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12143a18ebfb2Smrg        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12144a18ebfb2Smrg      esac
12145a18ebfb2Smrg    fi
12146a18ebfb2Smrg    ;;
12147a18ebfb2Smrg  sco3.2v5*)
12148a18ebfb2Smrg    lt_cv_sys_max_cmd_len=102400
12149a18ebfb2Smrg    ;;
12150a18ebfb2Smrg  sysv5* | sco5v6* | sysv4.2uw2*)
12151a18ebfb2Smrg    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12152a18ebfb2Smrg    if test -n "$kargmax"; then
12153e9f7eabcSmrg      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
12154a18ebfb2Smrg    else
12155a18ebfb2Smrg      lt_cv_sys_max_cmd_len=32768
12156a18ebfb2Smrg    fi
12157a18ebfb2Smrg    ;;
12158a18ebfb2Smrg  *)
12159a18ebfb2Smrg    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
121604a8d91dcSmrg    if test -n "$lt_cv_sys_max_cmd_len" && \
121614a8d91dcSmrg       test undefined != "$lt_cv_sys_max_cmd_len"; then
12162a18ebfb2Smrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12163a18ebfb2Smrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12164a18ebfb2Smrg    else
12165b3e38ee4Smrg      # Make teststring a little bigger before we do anything with it.
12166b3e38ee4Smrg      # a 1K string should be a reasonable start.
121674a8d91dcSmrg      for i in 1 2 3 4 5 6 7 8; do
12168b3e38ee4Smrg        teststring=$teststring$teststring
12169b3e38ee4Smrg      done
12170a18ebfb2Smrg      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12171b3e38ee4Smrg      # If test is not a shell built-in, we'll probably end up computing a
12172b3e38ee4Smrg      # maximum length that is only half of the actual maximum length, but
12173b3e38ee4Smrg      # we can't tell.
121744a8d91dcSmrg      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12175a73423d7Smrg	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
121764a8d91dcSmrg	      test 17 != "$i" # 1/2 MB should be enough
12177a18ebfb2Smrg      do
12178a18ebfb2Smrg        i=`expr $i + 1`
12179a18ebfb2Smrg        teststring=$teststring$teststring
12180a18ebfb2Smrg      done
12181b3e38ee4Smrg      # Only check the string length outside the loop.
12182b3e38ee4Smrg      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12183a18ebfb2Smrg      teststring=
12184b3e38ee4Smrg      # Add a significant safety factor because C++ compilers can tack on
12185b3e38ee4Smrg      # massive amounts of additional arguments before passing them to the
12186b3e38ee4Smrg      # linker.  It appears as though 1/2 is a usable value.
12187a18ebfb2Smrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12188a18ebfb2Smrg    fi
12189a18ebfb2Smrg    ;;
12190a18ebfb2Smrg  esac
1219150806d53Smrg
1219250806d53Smrgfi
1219350806d53Smrg
121944a8d91dcSmrgif test -n "$lt_cv_sys_max_cmd_len"; then
12195e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12196e9f7eabcSmrgprintf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
1219750806d53Smrgelse
12198e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12199e9f7eabcSmrgprintf "%s\n" "none" >&6; }
1220050806d53Smrgfi
12201b3e38ee4Smrgmax_cmd_len=$lt_cv_sys_max_cmd_len
1220250806d53Smrg
1220350806d53Smrg
1220450806d53Smrg
122057965d9acSmrg
1220650806d53Smrg
1220750806d53Smrg
12208b3e38ee4Smrg: ${CP="cp -f"}
12209b3e38ee4Smrg: ${MV="mv -f"}
12210b3e38ee4Smrg: ${RM="rm -f"}
12211a18ebfb2Smrg
12212b3e38ee4Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12213b3e38ee4Smrg  lt_unset=unset
12214b3e38ee4Smrgelse
12215b3e38ee4Smrg  lt_unset=false
12216b3e38ee4Smrgfi
12217b3e38ee4Smrg
12218b3e38ee4Smrg
12219b3e38ee4Smrg
12220b3e38ee4Smrg
12221b3e38ee4Smrg
12222b3e38ee4Smrg# test EBCDIC or ASCII
12223b3e38ee4Smrgcase `echo X|tr X '\101'` in
12224b3e38ee4Smrg A) # ASCII based system
12225b3e38ee4Smrg    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12226b3e38ee4Smrg  lt_SP2NL='tr \040 \012'
12227b3e38ee4Smrg  lt_NL2SP='tr \015\012 \040\040'
12228a18ebfb2Smrg  ;;
12229b3e38ee4Smrg *) # EBCDIC based system
12230b3e38ee4Smrg  lt_SP2NL='tr \100 \n'
12231b3e38ee4Smrg  lt_NL2SP='tr \r\n \100\100'
12232a18ebfb2Smrg  ;;
12233a18ebfb2Smrgesac
12234a18ebfb2Smrg
12235a18ebfb2Smrg
12236a18ebfb2Smrg
12237a18ebfb2Smrg
12238a18ebfb2Smrg
12239a18ebfb2Smrg
12240a18ebfb2Smrg
12241a18ebfb2Smrg
12242a18ebfb2Smrg
12243e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12244e9f7eabcSmrgprintf %s "checking how to convert $build file names to $host format... " >&6; }
12245e9f7eabcSmrgif test ${lt_cv_to_host_file_cmd+y}
12246e9f7eabcSmrgthen :
12247e9f7eabcSmrg  printf %s "(cached) " >&6
12248e9f7eabcSmrgelse $as_nop
12249a73423d7Smrg  case $host in
12250a73423d7Smrg  *-*-mingw* )
12251a73423d7Smrg    case $build in
12252a73423d7Smrg      *-*-mingw* ) # actually msys
12253a73423d7Smrg        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12254a73423d7Smrg        ;;
12255a73423d7Smrg      *-*-cygwin* )
12256a73423d7Smrg        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12257a73423d7Smrg        ;;
12258a73423d7Smrg      * ) # otherwise, assume *nix
12259a73423d7Smrg        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12260a73423d7Smrg        ;;
12261a73423d7Smrg    esac
12262a73423d7Smrg    ;;
12263a73423d7Smrg  *-*-cygwin* )
12264a73423d7Smrg    case $build in
12265a73423d7Smrg      *-*-mingw* ) # actually msys
12266a73423d7Smrg        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12267a73423d7Smrg        ;;
12268a73423d7Smrg      *-*-cygwin* )
12269a73423d7Smrg        lt_cv_to_host_file_cmd=func_convert_file_noop
12270a73423d7Smrg        ;;
12271a73423d7Smrg      * ) # otherwise, assume *nix
12272a73423d7Smrg        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12273a73423d7Smrg        ;;
12274a73423d7Smrg    esac
12275a73423d7Smrg    ;;
12276a73423d7Smrg  * ) # unhandled hosts (and "normal" native builds)
12277a73423d7Smrg    lt_cv_to_host_file_cmd=func_convert_file_noop
12278a73423d7Smrg    ;;
12279a73423d7Smrgesac
12280a73423d7Smrg
12281a73423d7Smrgfi
12282a73423d7Smrg
12283a73423d7Smrgto_host_file_cmd=$lt_cv_to_host_file_cmd
12284e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12285e9f7eabcSmrgprintf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12286a73423d7Smrg
12287a73423d7Smrg
12288a73423d7Smrg
12289a73423d7Smrg
12290a73423d7Smrg
12291e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12292e9f7eabcSmrgprintf %s "checking how to convert $build file names to toolchain format... " >&6; }
12293e9f7eabcSmrgif test ${lt_cv_to_tool_file_cmd+y}
12294e9f7eabcSmrgthen :
12295e9f7eabcSmrg  printf %s "(cached) " >&6
12296e9f7eabcSmrgelse $as_nop
12297a73423d7Smrg  #assume ordinary cross tools, or native build.
12298a73423d7Smrglt_cv_to_tool_file_cmd=func_convert_file_noop
12299a73423d7Smrgcase $host in
12300a73423d7Smrg  *-*-mingw* )
12301a73423d7Smrg    case $build in
12302a73423d7Smrg      *-*-mingw* ) # actually msys
12303a73423d7Smrg        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12304a73423d7Smrg        ;;
12305a73423d7Smrg    esac
12306a73423d7Smrg    ;;
12307a73423d7Smrgesac
12308a73423d7Smrg
12309a73423d7Smrgfi
12310a73423d7Smrg
12311a73423d7Smrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd
12312e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12313e9f7eabcSmrgprintf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12314a73423d7Smrg
12315a73423d7Smrg
12316a73423d7Smrg
12317a73423d7Smrg
12318a73423d7Smrg
12319e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12320e9f7eabcSmrgprintf %s "checking for $LD option to reload object files... " >&6; }
12321e9f7eabcSmrgif test ${lt_cv_ld_reload_flag+y}
12322e9f7eabcSmrgthen :
12323e9f7eabcSmrg  printf %s "(cached) " >&6
12324e9f7eabcSmrgelse $as_nop
12325b3e38ee4Smrg  lt_cv_ld_reload_flag='-r'
12326b3e38ee4Smrgfi
12327e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12328e9f7eabcSmrgprintf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12329b3e38ee4Smrgreload_flag=$lt_cv_ld_reload_flag
12330b3e38ee4Smrgcase $reload_flag in
12331b3e38ee4Smrg"" | " "*) ;;
12332b3e38ee4Smrg*) reload_flag=" $reload_flag" ;;
12333b3e38ee4Smrgesac
12334b3e38ee4Smrgreload_cmds='$LD$reload_flag -o $output$reload_objs'
12335b3e38ee4Smrgcase $host_os in
12336a73423d7Smrg  cygwin* | mingw* | pw32* | cegcc*)
123374a8d91dcSmrg    if test yes != "$GCC"; then
12338a73423d7Smrg      reload_cmds=false
12339a73423d7Smrg    fi
12340a73423d7Smrg    ;;
12341b3e38ee4Smrg  darwin*)
123424a8d91dcSmrg    if test yes = "$GCC"; then
123434a8d91dcSmrg      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12344b3e38ee4Smrg    else
12345b3e38ee4Smrg      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12346b3e38ee4Smrg    fi
12347b3e38ee4Smrg    ;;
12348b3e38ee4Smrgesac
12349a18ebfb2Smrg
12350a18ebfb2Smrg
12351a18ebfb2Smrg
12352a18ebfb2Smrg
12353a18ebfb2Smrg
12354b3e38ee4Smrg
12355b3e38ee4Smrg
12356b3e38ee4Smrg
12357b3e38ee4Smrg
12358e9f7eabcSmrgif test -n "$ac_tool_prefix"; then
12359e9f7eabcSmrg  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12360e9f7eabcSmrgset dummy ${ac_tool_prefix}file; ac_word=$2
12361e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12362e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
12363e9f7eabcSmrgif test ${ac_cv_prog_FILECMD+y}
12364e9f7eabcSmrgthen :
12365e9f7eabcSmrg  printf %s "(cached) " >&6
12366e9f7eabcSmrgelse $as_nop
12367e9f7eabcSmrg  if test -n "$FILECMD"; then
12368e9f7eabcSmrg  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12369e9f7eabcSmrgelse
12370e9f7eabcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371e9f7eabcSmrgfor as_dir in $PATH
12372e9f7eabcSmrgdo
12373e9f7eabcSmrg  IFS=$as_save_IFS
12374e9f7eabcSmrg  case $as_dir in #(((
12375e9f7eabcSmrg    '') as_dir=./ ;;
12376e9f7eabcSmrg    */) ;;
12377e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
12378e9f7eabcSmrg  esac
12379e9f7eabcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
12380e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12381e9f7eabcSmrg    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12382e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12383e9f7eabcSmrg    break 2
12384e9f7eabcSmrg  fi
12385e9f7eabcSmrgdone
12386e9f7eabcSmrg  done
12387e9f7eabcSmrgIFS=$as_save_IFS
12388e9f7eabcSmrg
12389e9f7eabcSmrgfi
12390e9f7eabcSmrgfi
12391e9f7eabcSmrgFILECMD=$ac_cv_prog_FILECMD
12392e9f7eabcSmrgif test -n "$FILECMD"; then
12393e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12394e9f7eabcSmrgprintf "%s\n" "$FILECMD" >&6; }
12395e9f7eabcSmrgelse
12396e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397e9f7eabcSmrgprintf "%s\n" "no" >&6; }
12398e9f7eabcSmrgfi
12399e9f7eabcSmrg
12400e9f7eabcSmrg
12401e9f7eabcSmrgfi
12402e9f7eabcSmrgif test -z "$ac_cv_prog_FILECMD"; then
12403e9f7eabcSmrg  ac_ct_FILECMD=$FILECMD
12404e9f7eabcSmrg  # Extract the first word of "file", so it can be a program name with args.
12405e9f7eabcSmrgset dummy file; ac_word=$2
12406e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12407e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
12408e9f7eabcSmrgif test ${ac_cv_prog_ac_ct_FILECMD+y}
12409e9f7eabcSmrgthen :
12410e9f7eabcSmrg  printf %s "(cached) " >&6
12411e9f7eabcSmrgelse $as_nop
12412e9f7eabcSmrg  if test -n "$ac_ct_FILECMD"; then
12413e9f7eabcSmrg  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12414e9f7eabcSmrgelse
12415e9f7eabcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12416e9f7eabcSmrgfor as_dir in $PATH
12417e9f7eabcSmrgdo
12418e9f7eabcSmrg  IFS=$as_save_IFS
12419e9f7eabcSmrg  case $as_dir in #(((
12420e9f7eabcSmrg    '') as_dir=./ ;;
12421e9f7eabcSmrg    */) ;;
12422e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
12423e9f7eabcSmrg  esac
12424e9f7eabcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
12425e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12426e9f7eabcSmrg    ac_cv_prog_ac_ct_FILECMD="file"
12427e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12428e9f7eabcSmrg    break 2
12429e9f7eabcSmrg  fi
12430e9f7eabcSmrgdone
12431e9f7eabcSmrg  done
12432e9f7eabcSmrgIFS=$as_save_IFS
12433e9f7eabcSmrg
12434e9f7eabcSmrgfi
12435e9f7eabcSmrgfi
12436e9f7eabcSmrgac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12437e9f7eabcSmrgif test -n "$ac_ct_FILECMD"; then
12438e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12439e9f7eabcSmrgprintf "%s\n" "$ac_ct_FILECMD" >&6; }
12440e9f7eabcSmrgelse
12441e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442e9f7eabcSmrgprintf "%s\n" "no" >&6; }
12443e9f7eabcSmrgfi
12444e9f7eabcSmrg
12445e9f7eabcSmrg  if test "x$ac_ct_FILECMD" = x; then
12446e9f7eabcSmrg    FILECMD=":"
12447e9f7eabcSmrg  else
12448e9f7eabcSmrg    case $cross_compiling:$ac_tool_warned in
12449e9f7eabcSmrgyes:)
12450e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12451e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12452e9f7eabcSmrgac_tool_warned=yes ;;
12453e9f7eabcSmrgesac
12454e9f7eabcSmrg    FILECMD=$ac_ct_FILECMD
12455e9f7eabcSmrg  fi
12456e9f7eabcSmrgelse
12457e9f7eabcSmrg  FILECMD="$ac_cv_prog_FILECMD"
12458e9f7eabcSmrgfi
12459e9f7eabcSmrg
12460e9f7eabcSmrg
12461e9f7eabcSmrg
12462e9f7eabcSmrg
12463e9f7eabcSmrg
12464e9f7eabcSmrg
12465e9f7eabcSmrg
12466b3e38ee4Smrgif test -n "$ac_tool_prefix"; then
12467b3e38ee4Smrg  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12468b3e38ee4Smrgset dummy ${ac_tool_prefix}objdump; ac_word=$2
12469e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12470e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
12471e9f7eabcSmrgif test ${ac_cv_prog_OBJDUMP+y}
12472e9f7eabcSmrgthen :
12473e9f7eabcSmrg  printf %s "(cached) " >&6
12474e9f7eabcSmrgelse $as_nop
12475b3e38ee4Smrg  if test -n "$OBJDUMP"; then
12476b3e38ee4Smrg  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12477b3e38ee4Smrgelse
12478b3e38ee4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479b3e38ee4Smrgfor as_dir in $PATH
12480b3e38ee4Smrgdo
12481b3e38ee4Smrg  IFS=$as_save_IFS
12482e9f7eabcSmrg  case $as_dir in #(((
12483e9f7eabcSmrg    '') as_dir=./ ;;
12484e9f7eabcSmrg    */) ;;
12485e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
12486e9f7eabcSmrg  esac
12487a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
12488e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12489b3e38ee4Smrg    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12490e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12491b3e38ee4Smrg    break 2
124927965d9acSmrg  fi
12493a18ebfb2Smrgdone
12494a73423d7Smrg  done
12495b3e38ee4SmrgIFS=$as_save_IFS
12496a18ebfb2Smrg
12497a18ebfb2Smrgfi
12498a18ebfb2Smrgfi
12499b3e38ee4SmrgOBJDUMP=$ac_cv_prog_OBJDUMP
12500b3e38ee4Smrgif test -n "$OBJDUMP"; then
12501e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12502e9f7eabcSmrgprintf "%s\n" "$OBJDUMP" >&6; }
1250350806d53Smrgelse
12504e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505e9f7eabcSmrgprintf "%s\n" "no" >&6; }
125067965d9acSmrgfi
125077965d9acSmrg
125087965d9acSmrg
125097965d9acSmrgfi
12510b3e38ee4Smrgif test -z "$ac_cv_prog_OBJDUMP"; then
12511b3e38ee4Smrg  ac_ct_OBJDUMP=$OBJDUMP
12512b3e38ee4Smrg  # Extract the first word of "objdump", so it can be a program name with args.
12513b3e38ee4Smrgset dummy objdump; ac_word=$2
12514e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
12516e9f7eabcSmrgif test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12517e9f7eabcSmrgthen :
12518e9f7eabcSmrg  printf %s "(cached) " >&6
12519e9f7eabcSmrgelse $as_nop
12520b3e38ee4Smrg  if test -n "$ac_ct_OBJDUMP"; then
12521b3e38ee4Smrg  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
125227965d9acSmrgelse
125237965d9acSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
125247965d9acSmrgfor as_dir in $PATH
125257965d9acSmrgdo
125267965d9acSmrg  IFS=$as_save_IFS
12527e9f7eabcSmrg  case $as_dir in #(((
12528e9f7eabcSmrg    '') as_dir=./ ;;
12529e9f7eabcSmrg    */) ;;
12530e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
12531e9f7eabcSmrg  esac
12532a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
12533e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12534b3e38ee4Smrg    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12535e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
125367965d9acSmrg    break 2
125377965d9acSmrg  fi
125387965d9acSmrgdone
12539a73423d7Smrg  done
125407965d9acSmrgIFS=$as_save_IFS
125417965d9acSmrg
125427965d9acSmrgfi
125437965d9acSmrgfi
12544b3e38ee4Smrgac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12545b3e38ee4Smrgif test -n "$ac_ct_OBJDUMP"; then
12546e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12547e9f7eabcSmrgprintf "%s\n" "$ac_ct_OBJDUMP" >&6; }
125487965d9acSmrgelse
12549e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550e9f7eabcSmrgprintf "%s\n" "no" >&6; }
125517965d9acSmrgfi
125527965d9acSmrg
12553b3e38ee4Smrg  if test "x$ac_ct_OBJDUMP" = x; then
12554b3e38ee4Smrg    OBJDUMP="false"
125557965d9acSmrg  else
125567965d9acSmrg    case $cross_compiling:$ac_tool_warned in
125577965d9acSmrgyes:)
12558e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12559e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
125607965d9acSmrgac_tool_warned=yes ;;
125617965d9acSmrgesac
12562b3e38ee4Smrg    OBJDUMP=$ac_ct_OBJDUMP
125637965d9acSmrg  fi
125647965d9acSmrgelse
12565b3e38ee4Smrg  OBJDUMP="$ac_cv_prog_OBJDUMP"
125667965d9acSmrgfi
125677965d9acSmrg
12568b3e38ee4Smrgtest -z "$OBJDUMP" && OBJDUMP=objdump
125697965d9acSmrg
125707965d9acSmrg
125717965d9acSmrg
125727965d9acSmrg
125737965d9acSmrg
125747965d9acSmrg
125757965d9acSmrg
12576af1a9c97Smrg
12577af1a9c97Smrg
12578e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12579e9f7eabcSmrgprintf %s "checking how to recognize dependent libraries... " >&6; }
12580e9f7eabcSmrgif test ${lt_cv_deplibs_check_method+y}
12581e9f7eabcSmrgthen :
12582e9f7eabcSmrg  printf %s "(cached) " >&6
12583e9f7eabcSmrgelse $as_nop
12584b3e38ee4Smrg  lt_cv_file_magic_cmd='$MAGIC_CMD'
12585b3e38ee4Smrglt_cv_file_magic_test_file=
12586b3e38ee4Smrglt_cv_deplibs_check_method='unknown'
12587b3e38ee4Smrg# Need to set the preceding variable on all platforms that support
12588b3e38ee4Smrg# interlibrary dependencies.
12589b3e38ee4Smrg# 'none' -- dependencies not supported.
125904a8d91dcSmrg# 'unknown' -- same as none, but documents that we really don't know.
12591b3e38ee4Smrg# 'pass_all' -- all dependencies passed with no checks.
12592b3e38ee4Smrg# 'test_compile' -- check by making test program.
12593b3e38ee4Smrg# 'file_magic [[regex]]' -- check by looking for files in library path
125944a8d91dcSmrg# that responds to the $file_magic_cmd with a given extended regex.
125954a8d91dcSmrg# If you have 'file' or equivalent on your system and you're not sure
125964a8d91dcSmrg# whether 'pass_all' will *always* work, you probably want this one.
12597af1a9c97Smrg
12598b3e38ee4Smrgcase $host_os in
12599b3e38ee4Smrgaix[4-9]*)
12600b3e38ee4Smrg  lt_cv_deplibs_check_method=pass_all
12601b3e38ee4Smrg  ;;
12602af1a9c97Smrg
12603b3e38ee4Smrgbeos*)
12604b3e38ee4Smrg  lt_cv_deplibs_check_method=pass_all
12605b3e38ee4Smrg  ;;
12606b3e38ee4Smrg
12607b3e38ee4Smrgbsdi[45]*)
12608b3e38ee4Smrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12609e9f7eabcSmrg  lt_cv_file_magic_cmd='$FILECMD -L'
12610b3e38ee4Smrg  lt_cv_file_magic_test_file=/shlib/libc.so
12611b3e38ee4Smrg  ;;
12612b3e38ee4Smrg
12613b3e38ee4Smrgcygwin*)
12614b3e38ee4Smrg  # func_win32_libid is a shell function defined in ltmain.sh
12615b3e38ee4Smrg  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12616b3e38ee4Smrg  lt_cv_file_magic_cmd='func_win32_libid'
12617b3e38ee4Smrg  ;;
12618b3e38ee4Smrg
12619b3e38ee4Smrgmingw* | pw32*)
12620b3e38ee4Smrg  # Base MSYS/MinGW do not provide the 'file' command needed by
12621b3e38ee4Smrg  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12622b3e38ee4Smrg  # unless we find 'file', for example because we are cross-compiling.
126234a8d91dcSmrg  if ( file / ) >/dev/null 2>&1; then
12624b3e38ee4Smrg    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12625b3e38ee4Smrg    lt_cv_file_magic_cmd='func_win32_libid'
12626a18ebfb2Smrg  else
12627a73423d7Smrg    # Keep this pattern in sync with the one in func_win32_libid.
12628a73423d7Smrg    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12629b3e38ee4Smrg    lt_cv_file_magic_cmd='$OBJDUMP -f'
12630a18ebfb2Smrg  fi
12631b3e38ee4Smrg  ;;
12632af1a9c97Smrg
12633a73423d7Smrgcegcc*)
12634b3e38ee4Smrg  # use the weaker test based on 'objdump'. See mingw*.
12635b3e38ee4Smrg  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12636b3e38ee4Smrg  lt_cv_file_magic_cmd='$OBJDUMP -f'
12637b3e38ee4Smrg  ;;
12638af1a9c97Smrg
12639b3e38ee4Smrgdarwin* | rhapsody*)
12640b3e38ee4Smrg  lt_cv_deplibs_check_method=pass_all
12641b3e38ee4Smrg  ;;
12642af1a9c97Smrg
12643e9f7eabcSmrgfreebsd* | dragonfly* | midnightbsd*)
12644b3e38ee4Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12645b3e38ee4Smrg    case $host_cpu in
12646b3e38ee4Smrg    i*86 )
12647b3e38ee4Smrg      # Not sure whether the presence of OpenBSD here was a mistake.
12648b3e38ee4Smrg      # Let's accept both of them until this is cleared up.
12649b3e38ee4Smrg      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12650e9f7eabcSmrg      lt_cv_file_magic_cmd=$FILECMD
12651b3e38ee4Smrg      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12652b3e38ee4Smrg      ;;
12653b3e38ee4Smrg    esac
12654b3e38ee4Smrg  else
12655b3e38ee4Smrg    lt_cv_deplibs_check_method=pass_all
12656b3e38ee4Smrg  fi
12657b3e38ee4Smrg  ;;
12658af1a9c97Smrg
12659a73423d7Smrghaiku*)
12660a73423d7Smrg  lt_cv_deplibs_check_method=pass_all
12661a73423d7Smrg  ;;
12662a73423d7Smrg
12663b3e38ee4Smrghpux10.20* | hpux11*)
12664e9f7eabcSmrg  lt_cv_file_magic_cmd=$FILECMD
12665b3e38ee4Smrg  case $host_cpu in
12666b3e38ee4Smrg  ia64*)
12667b3e38ee4Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12668b3e38ee4Smrg    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12669b3e38ee4Smrg    ;;
12670b3e38ee4Smrg  hppa*64*)
12671a73423d7Smrg    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]'
12672b3e38ee4Smrg    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12673a18ebfb2Smrg    ;;
12674a18ebfb2Smrg  *)
12675a73423d7Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12676b3e38ee4Smrg    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12677a18ebfb2Smrg    ;;
12678a18ebfb2Smrg  esac
12679b3e38ee4Smrg  ;;
12680af1a9c97Smrg
12681b3e38ee4Smrginterix[3-9]*)
12682b3e38ee4Smrg  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12683b3e38ee4Smrg  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12684b3e38ee4Smrg  ;;
12685b3e38ee4Smrg
12686b3e38ee4Smrgirix5* | irix6* | nonstopux*)
12687b3e38ee4Smrg  case $LD in
12688b3e38ee4Smrg  *-32|*"-32 ") libmagic=32-bit;;
12689b3e38ee4Smrg  *-n32|*"-n32 ") libmagic=N32;;
12690b3e38ee4Smrg  *-64|*"-64 ") libmagic=64-bit;;
12691b3e38ee4Smrg  *) libmagic=never-match;;
12692a18ebfb2Smrg  esac
12693b3e38ee4Smrg  lt_cv_deplibs_check_method=pass_all
12694b3e38ee4Smrg  ;;
12695af1a9c97Smrg
12696a73423d7Smrg# This must be glibc/ELF.
126974a8d91dcSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12698b3e38ee4Smrg  lt_cv_deplibs_check_method=pass_all
12699b3e38ee4Smrg  ;;
12700af1a9c97Smrg
12701e9f7eabcSmrgnetbsd*)
12702b3e38ee4Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12703b3e38ee4Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12704b3e38ee4Smrg  else
12705b3e38ee4Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12706b3e38ee4Smrg  fi
12707a18ebfb2Smrg  ;;
12708af1a9c97Smrg
12709b3e38ee4Smrgnewos6*)
12710b3e38ee4Smrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12711e9f7eabcSmrg  lt_cv_file_magic_cmd=$FILECMD
12712b3e38ee4Smrg  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12713b3e38ee4Smrg  ;;
12714af1a9c97Smrg
12715b3e38ee4Smrg*nto* | *qnx*)
12716b3e38ee4Smrg  lt_cv_deplibs_check_method=pass_all
12717a18ebfb2Smrg  ;;
12718af1a9c97Smrg
127194a8d91dcSmrgopenbsd* | bitrig*)
127204a8d91dcSmrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12721b3e38ee4Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12722b3e38ee4Smrg  else
12723b3e38ee4Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12724b3e38ee4Smrg  fi
12725b3e38ee4Smrg  ;;
12726a18ebfb2Smrg
12727b3e38ee4Smrgosf3* | osf4* | osf5*)
12728b3e38ee4Smrg  lt_cv_deplibs_check_method=pass_all
12729a18ebfb2Smrg  ;;
127307965d9acSmrg
12731b3e38ee4Smrgrdos*)
12732b3e38ee4Smrg  lt_cv_deplibs_check_method=pass_all
12733b3e38ee4Smrg  ;;
12734a18ebfb2Smrg
12735b3e38ee4Smrgsolaris*)
12736b3e38ee4Smrg  lt_cv_deplibs_check_method=pass_all
12737a18ebfb2Smrg  ;;
12738a18ebfb2Smrg
12739b3e38ee4Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12740b3e38ee4Smrg  lt_cv_deplibs_check_method=pass_all
12741b3e38ee4Smrg  ;;
127427965d9acSmrg
12743b3e38ee4Smrgsysv4 | sysv4.3*)
12744b3e38ee4Smrg  case $host_vendor in
12745b3e38ee4Smrg  motorola)
12746b3e38ee4Smrg    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]'
12747b3e38ee4Smrg    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12748b3e38ee4Smrg    ;;
12749b3e38ee4Smrg  ncr)
12750b3e38ee4Smrg    lt_cv_deplibs_check_method=pass_all
12751b3e38ee4Smrg    ;;
12752b3e38ee4Smrg  sequent)
12753b3e38ee4Smrg    lt_cv_file_magic_cmd='/bin/file'
12754b3e38ee4Smrg    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12755b3e38ee4Smrg    ;;
12756b3e38ee4Smrg  sni)
12757b3e38ee4Smrg    lt_cv_file_magic_cmd='/bin/file'
12758b3e38ee4Smrg    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12759b3e38ee4Smrg    lt_cv_file_magic_test_file=/lib/libc.so
12760b3e38ee4Smrg    ;;
12761b3e38ee4Smrg  siemens)
12762b3e38ee4Smrg    lt_cv_deplibs_check_method=pass_all
12763b3e38ee4Smrg    ;;
12764a73423d7Smrg  pc)
12765a73423d7Smrg    lt_cv_deplibs_check_method=pass_all
12766a73423d7Smrg    ;;
12767a73423d7Smrg  esac
12768a73423d7Smrg  ;;
12769a73423d7Smrg
12770a73423d7Smrgtpf*)
12771a73423d7Smrg  lt_cv_deplibs_check_method=pass_all
12772a73423d7Smrg  ;;
127734a8d91dcSmrgos2*)
127744a8d91dcSmrg  lt_cv_deplibs_check_method=pass_all
127754a8d91dcSmrg  ;;
12776a73423d7Smrgesac
12777a73423d7Smrg
12778a73423d7Smrgfi
12779e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12780e9f7eabcSmrgprintf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12781a73423d7Smrg
12782a73423d7Smrgfile_magic_glob=
12783a73423d7Smrgwant_nocaseglob=no
12784a73423d7Smrgif test "$build" = "$host"; then
12785a73423d7Smrg  case $host_os in
12786a73423d7Smrg  mingw* | pw32*)
12787a73423d7Smrg    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12788a73423d7Smrg      want_nocaseglob=yes
12789a73423d7Smrg    else
12790a73423d7Smrg      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12791a73423d7Smrg    fi
12792a73423d7Smrg    ;;
12793a73423d7Smrg  esac
12794a73423d7Smrgfi
12795a73423d7Smrg
12796a73423d7Smrgfile_magic_cmd=$lt_cv_file_magic_cmd
12797a73423d7Smrgdeplibs_check_method=$lt_cv_deplibs_check_method
12798a73423d7Smrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown
12799a73423d7Smrg
12800a73423d7Smrg
12801a73423d7Smrg
12802a73423d7Smrg
12803a73423d7Smrg
12804a73423d7Smrg
12805a73423d7Smrg
12806a73423d7Smrg
12807a73423d7Smrg
12808a73423d7Smrg
12809a73423d7Smrg
12810a73423d7Smrg
12811a73423d7Smrg
12812a73423d7Smrg
12813a73423d7Smrg
12814a73423d7Smrg
12815a73423d7Smrg
12816a73423d7Smrg
12817a73423d7Smrg
12818a73423d7Smrg
12819a73423d7Smrg
12820a73423d7Smrg
12821a73423d7Smrgif test -n "$ac_tool_prefix"; then
12822a73423d7Smrg  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12823a73423d7Smrgset dummy ${ac_tool_prefix}dlltool; ac_word=$2
12824e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12825e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
12826e9f7eabcSmrgif test ${ac_cv_prog_DLLTOOL+y}
12827e9f7eabcSmrgthen :
12828e9f7eabcSmrg  printf %s "(cached) " >&6
12829e9f7eabcSmrgelse $as_nop
12830a73423d7Smrg  if test -n "$DLLTOOL"; then
12831a73423d7Smrg  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12832a73423d7Smrgelse
12833a73423d7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12834a73423d7Smrgfor as_dir in $PATH
12835a73423d7Smrgdo
12836a73423d7Smrg  IFS=$as_save_IFS
12837e9f7eabcSmrg  case $as_dir in #(((
12838e9f7eabcSmrg    '') as_dir=./ ;;
12839e9f7eabcSmrg    */) ;;
12840e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
12841e9f7eabcSmrg  esac
12842a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
12843e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12844a73423d7Smrg    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12845e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12846a73423d7Smrg    break 2
12847a73423d7Smrg  fi
12848a73423d7Smrgdone
12849a73423d7Smrg  done
12850a73423d7SmrgIFS=$as_save_IFS
12851a73423d7Smrg
12852a73423d7Smrgfi
12853a73423d7Smrgfi
12854a73423d7SmrgDLLTOOL=$ac_cv_prog_DLLTOOL
12855a73423d7Smrgif test -n "$DLLTOOL"; then
12856e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12857e9f7eabcSmrgprintf "%s\n" "$DLLTOOL" >&6; }
12858a73423d7Smrgelse
12859e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860e9f7eabcSmrgprintf "%s\n" "no" >&6; }
12861a73423d7Smrgfi
12862a73423d7Smrg
12863a73423d7Smrg
12864a73423d7Smrgfi
12865a73423d7Smrgif test -z "$ac_cv_prog_DLLTOOL"; then
12866a73423d7Smrg  ac_ct_DLLTOOL=$DLLTOOL
12867a73423d7Smrg  # Extract the first word of "dlltool", so it can be a program name with args.
12868a73423d7Smrgset dummy dlltool; ac_word=$2
12869e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12870e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
12871e9f7eabcSmrgif test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12872e9f7eabcSmrgthen :
12873e9f7eabcSmrg  printf %s "(cached) " >&6
12874e9f7eabcSmrgelse $as_nop
12875a73423d7Smrg  if test -n "$ac_ct_DLLTOOL"; then
12876a73423d7Smrg  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12877a73423d7Smrgelse
12878a73423d7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12879a73423d7Smrgfor as_dir in $PATH
12880a73423d7Smrgdo
12881a73423d7Smrg  IFS=$as_save_IFS
12882e9f7eabcSmrg  case $as_dir in #(((
12883e9f7eabcSmrg    '') as_dir=./ ;;
12884e9f7eabcSmrg    */) ;;
12885e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
12886e9f7eabcSmrg  esac
12887a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
12888e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12889a73423d7Smrg    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12890e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12891a73423d7Smrg    break 2
12892a73423d7Smrg  fi
12893a73423d7Smrgdone
12894a73423d7Smrg  done
12895a73423d7SmrgIFS=$as_save_IFS
12896a73423d7Smrg
12897a73423d7Smrgfi
12898a73423d7Smrgfi
12899a73423d7Smrgac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12900a73423d7Smrgif test -n "$ac_ct_DLLTOOL"; then
12901e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12902e9f7eabcSmrgprintf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12903a73423d7Smrgelse
12904e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905e9f7eabcSmrgprintf "%s\n" "no" >&6; }
12906a73423d7Smrgfi
12907a73423d7Smrg
12908a73423d7Smrg  if test "x$ac_ct_DLLTOOL" = x; then
12909a73423d7Smrg    DLLTOOL="false"
12910a73423d7Smrg  else
12911a73423d7Smrg    case $cross_compiling:$ac_tool_warned in
12912a73423d7Smrgyes:)
12913e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12914e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12915a73423d7Smrgac_tool_warned=yes ;;
12916a73423d7Smrgesac
12917a73423d7Smrg    DLLTOOL=$ac_ct_DLLTOOL
12918a73423d7Smrg  fi
12919a73423d7Smrgelse
12920a73423d7Smrg  DLLTOOL="$ac_cv_prog_DLLTOOL"
12921a73423d7Smrgfi
12922a73423d7Smrg
12923a73423d7Smrgtest -z "$DLLTOOL" && DLLTOOL=dlltool
12924a73423d7Smrg
12925a73423d7Smrg
12926a73423d7Smrg
12927a73423d7Smrg
12928a73423d7Smrg
12929a73423d7Smrg
12930a73423d7Smrg
12931a73423d7Smrg
12932a73423d7Smrg
12933a73423d7Smrg
12934e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12935e9f7eabcSmrgprintf %s "checking how to associate runtime and link libraries... " >&6; }
12936e9f7eabcSmrgif test ${lt_cv_sharedlib_from_linklib_cmd+y}
12937e9f7eabcSmrgthen :
12938e9f7eabcSmrg  printf %s "(cached) " >&6
12939e9f7eabcSmrgelse $as_nop
12940a73423d7Smrg  lt_cv_sharedlib_from_linklib_cmd='unknown'
12941a73423d7Smrg
12942a73423d7Smrgcase $host_os in
12943a73423d7Smrgcygwin* | mingw* | pw32* | cegcc*)
129444a8d91dcSmrg  # two different shell functions defined in ltmain.sh;
129454a8d91dcSmrg  # decide which one to use based on capabilities of $DLLTOOL
12946a73423d7Smrg  case `$DLLTOOL --help 2>&1` in
12947a73423d7Smrg  *--identify-strict*)
12948a73423d7Smrg    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12949a73423d7Smrg    ;;
12950a73423d7Smrg  *)
12951a73423d7Smrg    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12952b3e38ee4Smrg    ;;
12953b3e38ee4Smrg  esac
12954b3e38ee4Smrg  ;;
12955a73423d7Smrg*)
12956a73423d7Smrg  # fallback: assume linklib IS sharedlib
129574a8d91dcSmrg  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12958a18ebfb2Smrg  ;;
12959a18ebfb2Smrgesac
129607965d9acSmrg
12961b3e38ee4Smrgfi
12962e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12963e9f7eabcSmrgprintf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12964a73423d7Smrgsharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12965a73423d7Smrgtest -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12966b3e38ee4Smrg
12967b3e38ee4Smrg
12968b3e38ee4Smrg
12969b3e38ee4Smrg
12970b3e38ee4Smrg
12971b3e38ee4Smrg
12972b3e38ee4Smrg
12973b3e38ee4Smrgif test -n "$ac_tool_prefix"; then
12974a73423d7Smrg  for ac_prog in ar
12975a73423d7Smrg  do
12976a73423d7Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12977a73423d7Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
12978e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12979e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
12980e9f7eabcSmrgif test ${ac_cv_prog_AR+y}
12981e9f7eabcSmrgthen :
12982e9f7eabcSmrg  printf %s "(cached) " >&6
12983e9f7eabcSmrgelse $as_nop
12984b3e38ee4Smrg  if test -n "$AR"; then
12985b3e38ee4Smrg  ac_cv_prog_AR="$AR" # Let the user override the test.
12986af1a9c97Smrgelse
12987a18ebfb2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12988a18ebfb2Smrgfor as_dir in $PATH
12989a18ebfb2Smrgdo
12990a18ebfb2Smrg  IFS=$as_save_IFS
12991e9f7eabcSmrg  case $as_dir in #(((
12992e9f7eabcSmrg    '') as_dir=./ ;;
12993e9f7eabcSmrg    */) ;;
12994e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
12995e9f7eabcSmrg  esac
12996a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
12997e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12998a73423d7Smrg    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12999e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13000a18ebfb2Smrg    break 2
13001a18ebfb2Smrg  fi
13002a18ebfb2Smrgdone
13003a73423d7Smrg  done
13004a18ebfb2SmrgIFS=$as_save_IFS
1300550806d53Smrg
1300650806d53Smrgfi
1300750806d53Smrgfi
13008b3e38ee4SmrgAR=$ac_cv_prog_AR
13009b3e38ee4Smrgif test -n "$AR"; then
13010e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13011e9f7eabcSmrgprintf "%s\n" "$AR" >&6; }
13012a18ebfb2Smrgelse
13013e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014e9f7eabcSmrgprintf "%s\n" "no" >&6; }
13015af1a9c97Smrgfi
1301650806d53Smrg
1301750806d53Smrg
13018a73423d7Smrg    test -n "$AR" && break
13019a73423d7Smrg  done
13020af1a9c97Smrgfi
13021a73423d7Smrgif test -z "$AR"; then
13022b3e38ee4Smrg  ac_ct_AR=$AR
13023a73423d7Smrg  for ac_prog in ar
13024a73423d7Smrgdo
13025a73423d7Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
13026a73423d7Smrgset dummy $ac_prog; ac_word=$2
13027e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13028e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
13029e9f7eabcSmrgif test ${ac_cv_prog_ac_ct_AR+y}
13030e9f7eabcSmrgthen :
13031e9f7eabcSmrg  printf %s "(cached) " >&6
13032e9f7eabcSmrgelse $as_nop
13033b3e38ee4Smrg  if test -n "$ac_ct_AR"; then
13034b3e38ee4Smrg  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13035a18ebfb2Smrgelse
13036a18ebfb2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037a18ebfb2Smrgfor as_dir in $PATH
13038af1a9c97Smrgdo
13039a18ebfb2Smrg  IFS=$as_save_IFS
13040e9f7eabcSmrg  case $as_dir in #(((
13041e9f7eabcSmrg    '') as_dir=./ ;;
13042e9f7eabcSmrg    */) ;;
13043e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
13044e9f7eabcSmrg  esac
13045a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
13046e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13047a73423d7Smrg    ac_cv_prog_ac_ct_AR="$ac_prog"
13048e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13049a18ebfb2Smrg    break 2
13050a18ebfb2Smrg  fi
13051a18ebfb2Smrgdone
13052a73423d7Smrg  done
13053a18ebfb2SmrgIFS=$as_save_IFS
13054a18ebfb2Smrg
13055a18ebfb2Smrgfi
13056a18ebfb2Smrgfi
13057b3e38ee4Smrgac_ct_AR=$ac_cv_prog_ac_ct_AR
13058b3e38ee4Smrgif test -n "$ac_ct_AR"; then
13059e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13060e9f7eabcSmrgprintf "%s\n" "$ac_ct_AR" >&6; }
13061a18ebfb2Smrgelse
13062e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13063e9f7eabcSmrgprintf "%s\n" "no" >&6; }
13064a18ebfb2Smrgfi
13065a18ebfb2Smrg
13066a73423d7Smrg
13067a73423d7Smrg  test -n "$ac_ct_AR" && break
13068a73423d7Smrgdone
13069a73423d7Smrg
13070b3e38ee4Smrg  if test "x$ac_ct_AR" = x; then
13071b3e38ee4Smrg    AR="false"
13072a18ebfb2Smrg  else
13073a18ebfb2Smrg    case $cross_compiling:$ac_tool_warned in
13074a18ebfb2Smrgyes:)
13075e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13076e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13077a18ebfb2Smrgac_tool_warned=yes ;;
13078af1a9c97Smrgesac
13079b3e38ee4Smrg    AR=$ac_ct_AR
13080a18ebfb2Smrg  fi
13081a18ebfb2Smrgfi
1308250806d53Smrg
13083a73423d7Smrg: ${AR=ar}
13084a73423d7Smrg
13085a73423d7Smrg
13086a73423d7Smrg
13087a73423d7Smrg
13088a73423d7Smrg
13089a73423d7Smrg
13090e9f7eabcSmrg# Use ARFLAGS variable as AR's operation code to sync the variable naming with
13091e9f7eabcSmrg# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13092e9f7eabcSmrg# higher priority because thats what people were doing historically (setting
13093e9f7eabcSmrg# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
13094e9f7eabcSmrg# variable obsoleted/removed.
13095a73423d7Smrg
13096e9f7eabcSmrgtest ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13097e9f7eabcSmrglt_ar_flags=$AR_FLAGS
13098a73423d7Smrg
13099a73423d7Smrg
13100a73423d7Smrg
13101a73423d7Smrg
13102e9f7eabcSmrg
13103e9f7eabcSmrg
13104e9f7eabcSmrg# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
13105e9f7eabcSmrg# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13106e9f7eabcSmrg
13107e9f7eabcSmrg
13108e9f7eabcSmrg
13109e9f7eabcSmrg
13110e9f7eabcSmrg
13111e9f7eabcSmrg
13112e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13113e9f7eabcSmrgprintf %s "checking for archiver @FILE support... " >&6; }
13114e9f7eabcSmrgif test ${lt_cv_ar_at_file+y}
13115e9f7eabcSmrgthen :
13116e9f7eabcSmrg  printf %s "(cached) " >&6
13117e9f7eabcSmrgelse $as_nop
13118a73423d7Smrg  lt_cv_ar_at_file=no
13119a73423d7Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120a73423d7Smrg/* end confdefs.h.  */
13121a73423d7Smrg
13122a73423d7Smrgint
13123e9f7eabcSmrgmain (void)
13124a73423d7Smrg{
13125b3e38ee4Smrg
13126a73423d7Smrg  ;
13127a73423d7Smrg  return 0;
13128a73423d7Smrg}
13129a73423d7Smrg_ACEOF
13130e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
13131e9f7eabcSmrgthen :
13132a73423d7Smrg  echo conftest.$ac_objext > conftest.lst
13133a73423d7Smrg      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13134a73423d7Smrg      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13135a73423d7Smrg  (eval $lt_ar_try) 2>&5
13136a73423d7Smrg  ac_status=$?
13137e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13138a73423d7Smrg  test $ac_status = 0; }
131394a8d91dcSmrg      if test 0 -eq "$ac_status"; then
13140a73423d7Smrg	# Ensure the archiver fails upon bogus file names.
13141a73423d7Smrg	rm -f conftest.$ac_objext libconftest.a
13142a73423d7Smrg	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13143a73423d7Smrg  (eval $lt_ar_try) 2>&5
13144a73423d7Smrg  ac_status=$?
13145e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13146a73423d7Smrg  test $ac_status = 0; }
131474a8d91dcSmrg	if test 0 -ne "$ac_status"; then
13148a73423d7Smrg          lt_cv_ar_at_file=@
13149a73423d7Smrg        fi
13150a73423d7Smrg      fi
13151a73423d7Smrg      rm -f conftest.* libconftest.a
13152b3e38ee4Smrg
13153a73423d7Smrgfi
13154e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13155b3e38ee4Smrg
13156a73423d7Smrgfi
13157e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13158e9f7eabcSmrgprintf "%s\n" "$lt_cv_ar_at_file" >&6; }
13159b3e38ee4Smrg
131604a8d91dcSmrgif test no = "$lt_cv_ar_at_file"; then
13161a73423d7Smrg  archiver_list_spec=
13162a73423d7Smrgelse
13163a73423d7Smrg  archiver_list_spec=$lt_cv_ar_at_file
13164a73423d7Smrgfi
13165b3e38ee4Smrg
13166b3e38ee4Smrg
13167b3e38ee4Smrg
13168b3e38ee4Smrg
13169b3e38ee4Smrg
13170b3e38ee4Smrg
13171b3e38ee4Smrg
13172b3e38ee4Smrgif test -n "$ac_tool_prefix"; then
13173b3e38ee4Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13174b3e38ee4Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
13175e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13176e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
13177e9f7eabcSmrgif test ${ac_cv_prog_STRIP+y}
13178e9f7eabcSmrgthen :
13179e9f7eabcSmrg  printf %s "(cached) " >&6
13180e9f7eabcSmrgelse $as_nop
13181b3e38ee4Smrg  if test -n "$STRIP"; then
13182b3e38ee4Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13183a18ebfb2Smrgelse
13184a18ebfb2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185a18ebfb2Smrgfor as_dir in $PATH
13186a18ebfb2Smrgdo
13187a18ebfb2Smrg  IFS=$as_save_IFS
13188e9f7eabcSmrg  case $as_dir in #(((
13189e9f7eabcSmrg    '') as_dir=./ ;;
13190e9f7eabcSmrg    */) ;;
13191e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
13192e9f7eabcSmrg  esac
13193a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
13194e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13195b3e38ee4Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13196e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13197a18ebfb2Smrg    break 2
13198a18ebfb2Smrg  fi
13199a18ebfb2Smrgdone
13200a73423d7Smrg  done
13201a18ebfb2SmrgIFS=$as_save_IFS
13202a18ebfb2Smrg
13203a18ebfb2Smrgfi
13204a18ebfb2Smrgfi
13205b3e38ee4SmrgSTRIP=$ac_cv_prog_STRIP
13206b3e38ee4Smrgif test -n "$STRIP"; then
13207e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13208e9f7eabcSmrgprintf "%s\n" "$STRIP" >&6; }
13209a18ebfb2Smrgelse
13210e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211e9f7eabcSmrgprintf "%s\n" "no" >&6; }
13212af1a9c97Smrgfi
1321350806d53Smrg
1321450806d53Smrg
13215a18ebfb2Smrgfi
13216b3e38ee4Smrgif test -z "$ac_cv_prog_STRIP"; then
13217b3e38ee4Smrg  ac_ct_STRIP=$STRIP
13218b3e38ee4Smrg  # Extract the first word of "strip", so it can be a program name with args.
13219b3e38ee4Smrgset dummy strip; ac_word=$2
13220e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13221e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
13222e9f7eabcSmrgif test ${ac_cv_prog_ac_ct_STRIP+y}
13223e9f7eabcSmrgthen :
13224e9f7eabcSmrg  printf %s "(cached) " >&6
13225e9f7eabcSmrgelse $as_nop
13226b3e38ee4Smrg  if test -n "$ac_ct_STRIP"; then
13227b3e38ee4Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13228a18ebfb2Smrgelse
13229a18ebfb2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13230a18ebfb2Smrgfor as_dir in $PATH
13231a18ebfb2Smrgdo
13232a18ebfb2Smrg  IFS=$as_save_IFS
13233e9f7eabcSmrg  case $as_dir in #(((
13234e9f7eabcSmrg    '') as_dir=./ ;;
13235e9f7eabcSmrg    */) ;;
13236e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
13237e9f7eabcSmrg  esac
13238a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
13239e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13240b3e38ee4Smrg    ac_cv_prog_ac_ct_STRIP="strip"
13241e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13242a18ebfb2Smrg    break 2
13243a18ebfb2Smrg  fi
13244a18ebfb2Smrgdone
13245a73423d7Smrg  done
13246a18ebfb2SmrgIFS=$as_save_IFS
13247a18ebfb2Smrg
13248a18ebfb2Smrgfi
13249a18ebfb2Smrgfi
13250b3e38ee4Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13251b3e38ee4Smrgif test -n "$ac_ct_STRIP"; then
13252e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13253e9f7eabcSmrgprintf "%s\n" "$ac_ct_STRIP" >&6; }
13254a18ebfb2Smrgelse
13255e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256e9f7eabcSmrgprintf "%s\n" "no" >&6; }
13257a18ebfb2Smrgfi
13258a18ebfb2Smrg
13259b3e38ee4Smrg  if test "x$ac_ct_STRIP" = x; then
13260b3e38ee4Smrg    STRIP=":"
13261a18ebfb2Smrg  else
13262a18ebfb2Smrg    case $cross_compiling:$ac_tool_warned in
13263a18ebfb2Smrgyes:)
13264e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13265e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13266a18ebfb2Smrgac_tool_warned=yes ;;
13267a18ebfb2Smrgesac
13268b3e38ee4Smrg    STRIP=$ac_ct_STRIP
13269a18ebfb2Smrg  fi
13270a18ebfb2Smrgelse
13271b3e38ee4Smrg  STRIP="$ac_cv_prog_STRIP"
13272a18ebfb2Smrgfi
13273a18ebfb2Smrg
13274b3e38ee4Smrgtest -z "$STRIP" && STRIP=:
13275a18ebfb2Smrg
13276b3e38ee4Smrg
13277b3e38ee4Smrg
13278b3e38ee4Smrg
13279b3e38ee4Smrg
13280b3e38ee4Smrg
13281b3e38ee4Smrgif test -n "$ac_tool_prefix"; then
13282b3e38ee4Smrg  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13283b3e38ee4Smrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2
13284e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13285e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
13286e9f7eabcSmrgif test ${ac_cv_prog_RANLIB+y}
13287e9f7eabcSmrgthen :
13288e9f7eabcSmrg  printf %s "(cached) " >&6
13289e9f7eabcSmrgelse $as_nop
13290b3e38ee4Smrg  if test -n "$RANLIB"; then
13291b3e38ee4Smrg  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13292a18ebfb2Smrgelse
13293b3e38ee4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13294b3e38ee4Smrgfor as_dir in $PATH
13295b3e38ee4Smrgdo
13296b3e38ee4Smrg  IFS=$as_save_IFS
13297e9f7eabcSmrg  case $as_dir in #(((
13298e9f7eabcSmrg    '') as_dir=./ ;;
13299e9f7eabcSmrg    */) ;;
13300e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
13301e9f7eabcSmrg  esac
13302a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
13303e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13304b3e38ee4Smrg    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13305e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13306b3e38ee4Smrg    break 2
13307b3e38ee4Smrg  fi
13308b3e38ee4Smrgdone
13309a73423d7Smrg  done
13310b3e38ee4SmrgIFS=$as_save_IFS
13311a18ebfb2Smrg
13312b3e38ee4Smrgfi
13313b3e38ee4Smrgfi
13314b3e38ee4SmrgRANLIB=$ac_cv_prog_RANLIB
13315b3e38ee4Smrgif test -n "$RANLIB"; then
13316e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13317e9f7eabcSmrgprintf "%s\n" "$RANLIB" >&6; }
13318af1a9c97Smrgelse
13319e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13320e9f7eabcSmrgprintf "%s\n" "no" >&6; }
13321b3e38ee4Smrgfi
13322b3e38ee4Smrg
1332350806d53Smrg
13324af1a9c97Smrgfi
13325b3e38ee4Smrgif test -z "$ac_cv_prog_RANLIB"; then
13326b3e38ee4Smrg  ac_ct_RANLIB=$RANLIB
13327b3e38ee4Smrg  # Extract the first word of "ranlib", so it can be a program name with args.
13328b3e38ee4Smrgset dummy ranlib; ac_word=$2
13329e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13330e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
13331e9f7eabcSmrgif test ${ac_cv_prog_ac_ct_RANLIB+y}
13332e9f7eabcSmrgthen :
13333e9f7eabcSmrg  printf %s "(cached) " >&6
13334e9f7eabcSmrgelse $as_nop
13335b3e38ee4Smrg  if test -n "$ac_ct_RANLIB"; then
13336b3e38ee4Smrg  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13337b3e38ee4Smrgelse
13338b3e38ee4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339b3e38ee4Smrgfor as_dir in $PATH
13340b3e38ee4Smrgdo
13341b3e38ee4Smrg  IFS=$as_save_IFS
13342e9f7eabcSmrg  case $as_dir in #(((
13343e9f7eabcSmrg    '') as_dir=./ ;;
13344e9f7eabcSmrg    */) ;;
13345e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
13346e9f7eabcSmrg  esac
13347a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
13348e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13349b3e38ee4Smrg    ac_cv_prog_ac_ct_RANLIB="ranlib"
13350e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13351b3e38ee4Smrg    break 2
13352b3e38ee4Smrg  fi
13353b3e38ee4Smrgdone
13354a73423d7Smrg  done
13355b3e38ee4SmrgIFS=$as_save_IFS
1335650806d53Smrg
13357b3e38ee4Smrgfi
13358b3e38ee4Smrgfi
13359b3e38ee4Smrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13360b3e38ee4Smrgif test -n "$ac_ct_RANLIB"; then
13361e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13362e9f7eabcSmrgprintf "%s\n" "$ac_ct_RANLIB" >&6; }
13363b3e38ee4Smrgelse
13364e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365e9f7eabcSmrgprintf "%s\n" "no" >&6; }
13366b3e38ee4Smrgfi
1336750806d53Smrg
13368b3e38ee4Smrg  if test "x$ac_ct_RANLIB" = x; then
13369b3e38ee4Smrg    RANLIB=":"
13370b3e38ee4Smrg  else
13371b3e38ee4Smrg    case $cross_compiling:$ac_tool_warned in
13372b3e38ee4Smrgyes:)
13373e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13374e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13375b3e38ee4Smrgac_tool_warned=yes ;;
13376b3e38ee4Smrgesac
13377b3e38ee4Smrg    RANLIB=$ac_ct_RANLIB
13378b3e38ee4Smrg  fi
13379b3e38ee4Smrgelse
13380b3e38ee4Smrg  RANLIB="$ac_cv_prog_RANLIB"
13381af1a9c97Smrgfi
1338250806d53Smrg
13383b3e38ee4Smrgtest -z "$RANLIB" && RANLIB=:
1338450806d53Smrg
1338550806d53Smrg
1338650806d53Smrg
1338750806d53Smrg
133887965d9acSmrg
13389b3e38ee4Smrg
13390b3e38ee4Smrg# Determine commands to create old-style static archives.
13391b3e38ee4Smrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13392b3e38ee4Smrgold_postinstall_cmds='chmod 644 $oldlib'
13393b3e38ee4Smrgold_postuninstall_cmds=
13394b3e38ee4Smrg
13395b3e38ee4Smrgif test -n "$RANLIB"; then
13396b3e38ee4Smrg  case $host_os in
133974a8d91dcSmrg  bitrig* | openbsd*)
13398a73423d7Smrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13399b3e38ee4Smrg    ;;
13400b3e38ee4Smrg  *)
13401a73423d7Smrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13402b3e38ee4Smrg    ;;
13403b3e38ee4Smrg  esac
13404a73423d7Smrg  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13405af1a9c97Smrgfi
1340650806d53Smrg
13407a73423d7Smrgcase $host_os in
13408a73423d7Smrg  darwin*)
13409a73423d7Smrg    lock_old_archive_extraction=yes ;;
13410a73423d7Smrg  *)
13411a73423d7Smrg    lock_old_archive_extraction=no ;;
13412a73423d7Smrgesac
13413a73423d7Smrg
13414a73423d7Smrg
13415a73423d7Smrg
13416a73423d7Smrg
13417a73423d7Smrg
13418a73423d7Smrg
1341950806d53Smrg
1342050806d53Smrg
1342150806d53Smrg
1342250806d53Smrg
1342350806d53Smrg
1342450806d53Smrg
1342550806d53Smrg
1342650806d53Smrg
1342750806d53Smrg
1342850806d53Smrg
1342950806d53Smrg
1343050806d53Smrg
1343150806d53Smrg
1343250806d53Smrg
1343350806d53Smrg
1343450806d53Smrg
13435af1a9c97Smrg
13436af1a9c97Smrg
13437af1a9c97Smrg
1343850806d53Smrg
13439af1a9c97Smrg
13440af1a9c97Smrg
1344150806d53Smrg
1344250806d53Smrg
1344350806d53Smrg
1344450806d53Smrg
1344550806d53Smrg
1344650806d53Smrg
1344750806d53Smrg
1344850806d53Smrg
1344950806d53Smrg
13450af1a9c97Smrg
1345150806d53Smrg
13452b3e38ee4Smrg# If no C compiler was specified, use CC.
13453b3e38ee4SmrgLTCC=${LTCC-"$CC"}
1345450806d53Smrg
13455b3e38ee4Smrg# If no C compiler flags were specified, use CFLAGS.
13456b3e38ee4SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1345750806d53Smrg
13458b3e38ee4Smrg# Allow CC to be a program name with arguments.
13459b3e38ee4Smrgcompiler=$CC
13460af1a9c97Smrg
13461af1a9c97Smrg
13462b3e38ee4Smrg# Check for command to grab the raw symbol name followed by C symbol from nm.
13463e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13464e9f7eabcSmrgprintf %s "checking command to parse $NM output from $compiler object... " >&6; }
13465e9f7eabcSmrgif test ${lt_cv_sys_global_symbol_pipe+y}
13466e9f7eabcSmrgthen :
13467e9f7eabcSmrg  printf %s "(cached) " >&6
13468e9f7eabcSmrgelse $as_nop
13469af1a9c97Smrg
13470b3e38ee4Smrg# These are sane defaults that work on at least a few old systems.
13471b3e38ee4Smrg# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
134727965d9acSmrg
13473b3e38ee4Smrg# Character class describing NM global symbol codes.
13474b3e38ee4Smrgsymcode='[BCDEGRST]'
134757965d9acSmrg
13476b3e38ee4Smrg# Regexp to match symbols that can be accessed directly from C.
13477b3e38ee4Smrgsympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1347850806d53Smrg
13479b3e38ee4Smrg# Define system-specific variables.
13480b3e38ee4Smrgcase $host_os in
13481b3e38ee4Smrgaix*)
13482b3e38ee4Smrg  symcode='[BCDT]'
13483b3e38ee4Smrg  ;;
13484b3e38ee4Smrgcygwin* | mingw* | pw32* | cegcc*)
13485b3e38ee4Smrg  symcode='[ABCDGISTW]'
13486b3e38ee4Smrg  ;;
13487b3e38ee4Smrghpux*)
134884a8d91dcSmrg  if test ia64 = "$host_cpu"; then
13489b3e38ee4Smrg    symcode='[ABCDEGRST]'
13490b3e38ee4Smrg  fi
13491b3e38ee4Smrg  ;;
13492b3e38ee4Smrgirix* | nonstopux*)
13493b3e38ee4Smrg  symcode='[BCDEGRST]'
13494b3e38ee4Smrg  ;;
13495b3e38ee4Smrgosf*)
13496b3e38ee4Smrg  symcode='[BCDEGQRST]'
13497b3e38ee4Smrg  ;;
13498b3e38ee4Smrgsolaris*)
13499b3e38ee4Smrg  symcode='[BDRT]'
13500b3e38ee4Smrg  ;;
13501b3e38ee4Smrgsco3.2v5*)
13502b3e38ee4Smrg  symcode='[DT]'
13503b3e38ee4Smrg  ;;
13504b3e38ee4Smrgsysv4.2uw2*)
13505b3e38ee4Smrg  symcode='[DT]'
13506b3e38ee4Smrg  ;;
13507b3e38ee4Smrgsysv5* | sco5v6* | unixware* | OpenUNIX*)
13508b3e38ee4Smrg  symcode='[ABDT]'
13509b3e38ee4Smrg  ;;
13510b3e38ee4Smrgsysv4)
13511b3e38ee4Smrg  symcode='[DFNSTU]'
13512b3e38ee4Smrg  ;;
13513b3e38ee4Smrgesac
1351450806d53Smrg
13515b3e38ee4Smrg# If we're using GNU nm, then use its standard symbol codes.
13516b3e38ee4Smrgcase `$NM -V 2>&1` in
13517b3e38ee4Smrg*GNU* | *'with BFD'*)
13518b3e38ee4Smrg  symcode='[ABCDGIRSTW]' ;;
13519b3e38ee4Smrgesac
1352050806d53Smrg
135214a8d91dcSmrgif test "$lt_cv_nm_interface" = "MS dumpbin"; then
135224a8d91dcSmrg  # Gets list of data symbols to import.
13523e9f7eabcSmrg  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
135244a8d91dcSmrg  # Adjust the below global symbol transforms to fixup imported variables.
135254a8d91dcSmrg  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
135264a8d91dcSmrg  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
135274a8d91dcSmrg  lt_c_name_lib_hook="\
135284a8d91dcSmrg  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
135294a8d91dcSmrg  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
135304a8d91dcSmrgelse
135314a8d91dcSmrg  # Disable hooks by default.
135324a8d91dcSmrg  lt_cv_sys_global_symbol_to_import=
135334a8d91dcSmrg  lt_cdecl_hook=
135344a8d91dcSmrg  lt_c_name_hook=
135354a8d91dcSmrg  lt_c_name_lib_hook=
135364a8d91dcSmrgfi
135374a8d91dcSmrg
13538b3e38ee4Smrg# Transform an extracted symbol line into a proper C declaration.
13539b3e38ee4Smrg# Some systems (esp. on ia64) link data and code symbols differently,
13540b3e38ee4Smrg# so use this general approach.
13541e9f7eabcSmrglt_cv_sys_global_symbol_to_cdecl="$SED -n"\
135424a8d91dcSmrg$lt_cdecl_hook\
135434a8d91dcSmrg" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
135444a8d91dcSmrg" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
135457965d9acSmrg
13546b3e38ee4Smrg# Transform an extracted symbol line into symbol name and symbol address
13547e9f7eabcSmrglt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
135484a8d91dcSmrg$lt_c_name_hook\
135494a8d91dcSmrg" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
135504a8d91dcSmrg" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
135514a8d91dcSmrg
135524a8d91dcSmrg# Transform an extracted symbol line into symbol name with lib prefix and
135534a8d91dcSmrg# symbol address.
13554e9f7eabcSmrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
135554a8d91dcSmrg$lt_c_name_lib_hook\
135564a8d91dcSmrg" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
135574a8d91dcSmrg" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
135584a8d91dcSmrg" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
1355950806d53Smrg
13560b3e38ee4Smrg# Handle CRLF in mingw tool chain
13561b3e38ee4Smrgopt_cr=
13562b3e38ee4Smrgcase $build_os in
13563b3e38ee4Smrgmingw*)
13564b3e38ee4Smrg  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13565b3e38ee4Smrg  ;;
13566b3e38ee4Smrgesac
135677965d9acSmrg
13568b3e38ee4Smrg# Try without a prefix underscore, then with it.
13569b3e38ee4Smrgfor ac_symprfx in "" "_"; do
135707965d9acSmrg
13571b3e38ee4Smrg  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13572b3e38ee4Smrg  symxfrm="\\1 $ac_symprfx\\2 \\2"
1357350806d53Smrg
13574b3e38ee4Smrg  # Write the raw and C identifiers.
13575b3e38ee4Smrg  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
135764a8d91dcSmrg    # Fake it for dumpbin and say T for any non-static function,
135774a8d91dcSmrg    # D for any global variable and I for any imported variable.
13578e9f7eabcSmrg    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13579b3e38ee4Smrg    # which start with @ or ?.
13580b3e38ee4Smrg    lt_cv_sys_global_symbol_pipe="$AWK '"\
13581b3e38ee4Smrg"     {last_section=section; section=\$ 3};"\
13582a73423d7Smrg"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13583b3e38ee4Smrg"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
135844a8d91dcSmrg"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
135854a8d91dcSmrg"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
135864a8d91dcSmrg"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13587b3e38ee4Smrg"     \$ 0!~/External *\|/{next};"\
13588b3e38ee4Smrg"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13589b3e38ee4Smrg"     {if(hide[section]) next};"\
135904a8d91dcSmrg"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
135914a8d91dcSmrg"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
135924a8d91dcSmrg"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
135934a8d91dcSmrg"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13594b3e38ee4Smrg"     ' prfx=^$ac_symprfx"
13595b3e38ee4Smrg  else
13596e9f7eabcSmrg    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13597a18ebfb2Smrg  fi
13598e9f7eabcSmrg  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
1359950806d53Smrg
13600b3e38ee4Smrg  # Check to see that the pipe works correctly.
13601b3e38ee4Smrg  pipe_works=no
1360250806d53Smrg
13603b3e38ee4Smrg  rm -f conftest*
13604b3e38ee4Smrg  cat > conftest.$ac_ext <<_LT_EOF
13605b3e38ee4Smrg#ifdef __cplusplus
13606b3e38ee4Smrgextern "C" {
13607b3e38ee4Smrg#endif
13608b3e38ee4Smrgchar nm_test_var;
13609b3e38ee4Smrgvoid nm_test_func(void);
13610b3e38ee4Smrgvoid nm_test_func(void){}
13611b3e38ee4Smrg#ifdef __cplusplus
13612b3e38ee4Smrg}
13613b3e38ee4Smrg#endif
13614b3e38ee4Smrgint main(){nm_test_var='a';nm_test_func();return(0);}
13615b3e38ee4Smrg_LT_EOF
1361650806d53Smrg
13617a73423d7Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13618b3e38ee4Smrg  (eval $ac_compile) 2>&5
13619b3e38ee4Smrg  ac_status=$?
13620e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13621a73423d7Smrg  test $ac_status = 0; }; then
13622b3e38ee4Smrg    # Now try to grab the symbols.
13623b3e38ee4Smrg    nlist=conftest.nm
13624a73423d7Smrg    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13625a73423d7Smrg  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13626b3e38ee4Smrg  ac_status=$?
13627e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13628a73423d7Smrg  test $ac_status = 0; } && test -s "$nlist"; then
13629b3e38ee4Smrg      # Try sorting and uniquifying the output.
13630b3e38ee4Smrg      if sort "$nlist" | uniq > "$nlist"T; then
13631b3e38ee4Smrg	mv -f "$nlist"T "$nlist"
13632b3e38ee4Smrg      else
13633b3e38ee4Smrg	rm -f "$nlist"T
13634b3e38ee4Smrg      fi
1363550806d53Smrg
13636b3e38ee4Smrg      # Make sure that we snagged all the symbols we need.
13637b3e38ee4Smrg      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13638b3e38ee4Smrg	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13639b3e38ee4Smrg	  cat <<_LT_EOF > conftest.$ac_ext
13640a73423d7Smrg/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
136414a8d91dcSmrg#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
136424a8d91dcSmrg/* DATA imports from DLLs on WIN32 can't be const, because runtime
13643a73423d7Smrg   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13644a73423d7Smrg# define LT_DLSYM_CONST
136454a8d91dcSmrg#elif defined __osf__
13646a73423d7Smrg/* This system does not cope well with relocations in const data.  */
13647a73423d7Smrg# define LT_DLSYM_CONST
13648a73423d7Smrg#else
13649a73423d7Smrg# define LT_DLSYM_CONST const
13650a73423d7Smrg#endif
13651a73423d7Smrg
13652b3e38ee4Smrg#ifdef __cplusplus
13653b3e38ee4Smrgextern "C" {
13654b3e38ee4Smrg#endif
1365550806d53Smrg
13656b3e38ee4Smrg_LT_EOF
13657b3e38ee4Smrg	  # Now generate the symbol file.
13658b3e38ee4Smrg	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
1365950806d53Smrg
13660b3e38ee4Smrg	  cat <<_LT_EOF >> conftest.$ac_ext
1366150806d53Smrg
13662b3e38ee4Smrg/* The mapping between symbol names and symbols.  */
13663a73423d7SmrgLT_DLSYM_CONST struct {
13664b3e38ee4Smrg  const char *name;
13665b3e38ee4Smrg  void       *address;
13666b3e38ee4Smrg}
13667b3e38ee4Smrglt__PROGRAM__LTX_preloaded_symbols[] =
13668b3e38ee4Smrg{
13669b3e38ee4Smrg  { "@PROGRAM@", (void *) 0 },
13670b3e38ee4Smrg_LT_EOF
136714a8d91dcSmrg	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13672b3e38ee4Smrg	  cat <<\_LT_EOF >> conftest.$ac_ext
13673b3e38ee4Smrg  {0, (void *) 0}
13674b3e38ee4Smrg};
13675b3e38ee4Smrg
13676b3e38ee4Smrg/* This works around a problem in FreeBSD linker */
13677b3e38ee4Smrg#ifdef FREEBSD_WORKAROUND
13678b3e38ee4Smrgstatic const void *lt_preloaded_setup() {
13679b3e38ee4Smrg  return lt__PROGRAM__LTX_preloaded_symbols;
13680b3e38ee4Smrg}
13681b3e38ee4Smrg#endif
13682b3e38ee4Smrg
13683b3e38ee4Smrg#ifdef __cplusplus
13684b3e38ee4Smrg}
13685b3e38ee4Smrg#endif
13686b3e38ee4Smrg_LT_EOF
13687b3e38ee4Smrg	  # Now try linking the two files.
13688b3e38ee4Smrg	  mv conftest.$ac_objext conftstm.$ac_objext
13689a73423d7Smrg	  lt_globsym_save_LIBS=$LIBS
13690a73423d7Smrg	  lt_globsym_save_CFLAGS=$CFLAGS
136914a8d91dcSmrg	  LIBS=conftstm.$ac_objext
13692b3e38ee4Smrg	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13693a73423d7Smrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13694b3e38ee4Smrg  (eval $ac_link) 2>&5
13695b3e38ee4Smrg  ac_status=$?
13696e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
136974a8d91dcSmrg  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13698b3e38ee4Smrg	    pipe_works=yes
13699b3e38ee4Smrg	  fi
13700a73423d7Smrg	  LIBS=$lt_globsym_save_LIBS
13701a73423d7Smrg	  CFLAGS=$lt_globsym_save_CFLAGS
13702b3e38ee4Smrg	else
13703b3e38ee4Smrg	  echo "cannot find nm_test_func in $nlist" >&5
13704b3e38ee4Smrg	fi
13705b3e38ee4Smrg      else
13706b3e38ee4Smrg	echo "cannot find nm_test_var in $nlist" >&5
13707b3e38ee4Smrg      fi
13708b3e38ee4Smrg    else
13709b3e38ee4Smrg      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13710b3e38ee4Smrg    fi
13711b3e38ee4Smrg  else
13712b3e38ee4Smrg    echo "$progname: failed program was:" >&5
13713b3e38ee4Smrg    cat conftest.$ac_ext >&5
13714b3e38ee4Smrg  fi
13715b3e38ee4Smrg  rm -rf conftest* conftst*
13716b3e38ee4Smrg
13717b3e38ee4Smrg  # Do not use the global_symbol_pipe unless it works.
137184a8d91dcSmrg  if test yes = "$pipe_works"; then
13719b3e38ee4Smrg    break
13720b3e38ee4Smrg  else
13721b3e38ee4Smrg    lt_cv_sys_global_symbol_pipe=
13722b3e38ee4Smrg  fi
13723b3e38ee4Smrgdone
1372450806d53Smrg
13725a18ebfb2Smrgfi
1372650806d53Smrg
13727b3e38ee4Smrgif test -z "$lt_cv_sys_global_symbol_pipe"; then
13728b3e38ee4Smrg  lt_cv_sys_global_symbol_to_cdecl=
13729b3e38ee4Smrgfi
13730b3e38ee4Smrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13731e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13732e9f7eabcSmrgprintf "%s\n" "failed" >&6; }
13733a18ebfb2Smrgelse
13734e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13735e9f7eabcSmrgprintf "%s\n" "ok" >&6; }
13736a18ebfb2Smrgfi
1373750806d53Smrg
13738a73423d7Smrg# Response file support.
13739a73423d7Smrgif test "$lt_cv_nm_interface" = "MS dumpbin"; then
13740a73423d7Smrg  nm_file_list_spec='@'
13741a73423d7Smrgelif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13742a73423d7Smrg  nm_file_list_spec='@'
13743a73423d7Smrgfi
13744a73423d7Smrg
13745a73423d7Smrg
1374650806d53Smrg
1374750806d53Smrg
1374850806d53Smrg
1374950806d53Smrg
1375050806d53Smrg
1375150806d53Smrg
1375250806d53Smrg
1375350806d53Smrg
1375450806d53Smrg
1375550806d53Smrg
1375650806d53Smrg
1375750806d53Smrg
1375850806d53Smrg
1375950806d53Smrg
137604a8d91dcSmrg
137614a8d91dcSmrg
137624a8d91dcSmrg
137634a8d91dcSmrg
137644a8d91dcSmrg
137654a8d91dcSmrg
137664a8d91dcSmrg
137674a8d91dcSmrg
137684a8d91dcSmrg
137694a8d91dcSmrg
1377050806d53Smrg
1377150806d53Smrg
1377250806d53Smrg
1377350806d53Smrg
13774a73423d7Smrg
13775a73423d7Smrg
13776a73423d7Smrg
13777a73423d7Smrg
13778a73423d7Smrg
13779a73423d7Smrg
13780a73423d7Smrg
13781e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13782e9f7eabcSmrgprintf %s "checking for sysroot... " >&6; }
13783a73423d7Smrg
13784a73423d7Smrg# Check whether --with-sysroot was given.
13785e9f7eabcSmrgif test ${with_sysroot+y}
13786e9f7eabcSmrgthen :
13787a73423d7Smrg  withval=$with_sysroot;
13788e9f7eabcSmrgelse $as_nop
13789a73423d7Smrg  with_sysroot=no
13790a73423d7Smrgfi
13791a73423d7Smrg
13792a73423d7Smrg
13793a73423d7Smrglt_sysroot=
137944a8d91dcSmrgcase $with_sysroot in #(
13795a73423d7Smrg yes)
137964a8d91dcSmrg   if test yes = "$GCC"; then
13797a73423d7Smrg     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13798a73423d7Smrg   fi
13799a73423d7Smrg   ;; #(
13800a73423d7Smrg /*)
13801e9f7eabcSmrg   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
13802a73423d7Smrg   ;; #(
13803a73423d7Smrg no|'')
13804a73423d7Smrg   ;; #(
13805a73423d7Smrg *)
13806e9f7eabcSmrg   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13807e9f7eabcSmrgprintf "%s\n" "$with_sysroot" >&6; }
13808a73423d7Smrg   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13809a73423d7Smrg   ;;
13810a73423d7Smrgesac
13811a73423d7Smrg
13812e9f7eabcSmrg { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13813e9f7eabcSmrgprintf "%s\n" "${lt_sysroot:-no}" >&6; }
13814a73423d7Smrg
13815a73423d7Smrg
1381650806d53Smrg
1381750806d53Smrg
1381850806d53Smrg
13819e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13820e9f7eabcSmrgprintf %s "checking for a working dd... " >&6; }
13821e9f7eabcSmrgif test ${ac_cv_path_lt_DD+y}
13822e9f7eabcSmrgthen :
13823e9f7eabcSmrg  printf %s "(cached) " >&6
13824e9f7eabcSmrgelse $as_nop
138254a8d91dcSmrg  printf 0123456789abcdef0123456789abcdef >conftest.i
138264a8d91dcSmrgcat conftest.i conftest.i >conftest2.i
138274a8d91dcSmrg: ${lt_DD:=$DD}
138284a8d91dcSmrgif test -z "$lt_DD"; then
138294a8d91dcSmrg  ac_path_lt_DD_found=false
138304a8d91dcSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
138314a8d91dcSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
138324a8d91dcSmrgfor as_dir in $PATH
138334a8d91dcSmrgdo
138344a8d91dcSmrg  IFS=$as_save_IFS
13835e9f7eabcSmrg  case $as_dir in #(((
13836e9f7eabcSmrg    '') as_dir=./ ;;
13837e9f7eabcSmrg    */) ;;
13838e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
13839e9f7eabcSmrg  esac
13840e9f7eabcSmrg    for ac_prog in dd
13841e9f7eabcSmrg   do
138424a8d91dcSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
13843e9f7eabcSmrg      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
138444a8d91dcSmrg      as_fn_executable_p "$ac_path_lt_DD" || continue
138454a8d91dcSmrgif "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
138464a8d91dcSmrg  cmp -s conftest.i conftest.out \
138474a8d91dcSmrg  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
138484a8d91dcSmrgfi
138494a8d91dcSmrg      $ac_path_lt_DD_found && break 3
138504a8d91dcSmrg    done
138514a8d91dcSmrg  done
138524a8d91dcSmrg  done
138534a8d91dcSmrgIFS=$as_save_IFS
138544a8d91dcSmrg  if test -z "$ac_cv_path_lt_DD"; then
138554a8d91dcSmrg    :
138564a8d91dcSmrg  fi
138574a8d91dcSmrgelse
138584a8d91dcSmrg  ac_cv_path_lt_DD=$lt_DD
138594a8d91dcSmrgfi
138604a8d91dcSmrg
138614a8d91dcSmrgrm -f conftest.i conftest2.i conftest.out
138624a8d91dcSmrgfi
13863e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13864e9f7eabcSmrgprintf "%s\n" "$ac_cv_path_lt_DD" >&6; }
138654a8d91dcSmrg
138664a8d91dcSmrg
13867e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13868e9f7eabcSmrgprintf %s "checking how to truncate binary pipes... " >&6; }
13869e9f7eabcSmrgif test ${lt_cv_truncate_bin+y}
13870e9f7eabcSmrgthen :
13871e9f7eabcSmrg  printf %s "(cached) " >&6
13872e9f7eabcSmrgelse $as_nop
138734a8d91dcSmrg  printf 0123456789abcdef0123456789abcdef >conftest.i
138744a8d91dcSmrgcat conftest.i conftest.i >conftest2.i
138754a8d91dcSmrglt_cv_truncate_bin=
138764a8d91dcSmrgif "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
138774a8d91dcSmrg  cmp -s conftest.i conftest.out \
138784a8d91dcSmrg  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
138794a8d91dcSmrgfi
138804a8d91dcSmrgrm -f conftest.i conftest2.i conftest.out
138814a8d91dcSmrgtest -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
138824a8d91dcSmrgfi
13883e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13884e9f7eabcSmrgprintf "%s\n" "$lt_cv_truncate_bin" >&6; }
138854a8d91dcSmrg
138864a8d91dcSmrg
138874a8d91dcSmrg
138884a8d91dcSmrg
138894a8d91dcSmrg
138904a8d91dcSmrg
138914a8d91dcSmrg
138924a8d91dcSmrg# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
138934a8d91dcSmrgfunc_cc_basename ()
138944a8d91dcSmrg{
138954a8d91dcSmrg    for cc_temp in $*""; do
138964a8d91dcSmrg      case $cc_temp in
138974a8d91dcSmrg        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
138984a8d91dcSmrg        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
138994a8d91dcSmrg        \-*) ;;
139004a8d91dcSmrg        *) break;;
139014a8d91dcSmrg      esac
139024a8d91dcSmrg    done
139034a8d91dcSmrg    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
139044a8d91dcSmrg}
139054a8d91dcSmrg
13906b3e38ee4Smrg# Check whether --enable-libtool-lock was given.
13907e9f7eabcSmrgif test ${enable_libtool_lock+y}
13908e9f7eabcSmrgthen :
13909b3e38ee4Smrg  enableval=$enable_libtool_lock;
13910b3e38ee4Smrgfi
1391150806d53Smrg
139124a8d91dcSmrgtest no = "$enable_libtool_lock" || enable_libtool_lock=yes
13913af1a9c97Smrg
13914b3e38ee4Smrg# Some flags need to be propagated to the compiler or linker for good
13915b3e38ee4Smrg# libtool support.
13916b3e38ee4Smrgcase $host in
13917b3e38ee4Smrgia64-*-hpux*)
139184a8d91dcSmrg  # Find out what ABI is being produced by ac_compile, and set mode
139194a8d91dcSmrg  # options accordingly.
13920b3e38ee4Smrg  echo 'int i;' > conftest.$ac_ext
13921a73423d7Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13922b3e38ee4Smrg  (eval $ac_compile) 2>&5
13923b3e38ee4Smrg  ac_status=$?
13924e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13925a73423d7Smrg  test $ac_status = 0; }; then
13926e9f7eabcSmrg    case `$FILECMD conftest.$ac_objext` in
13927b3e38ee4Smrg      *ELF-32*)
139284a8d91dcSmrg	HPUX_IA64_MODE=32
13929a18ebfb2Smrg	;;
13930b3e38ee4Smrg      *ELF-64*)
139314a8d91dcSmrg	HPUX_IA64_MODE=64
13932b3e38ee4Smrg	;;
13933b3e38ee4Smrg    esac
13934b3e38ee4Smrg  fi
13935b3e38ee4Smrg  rm -rf conftest*
13936b3e38ee4Smrg  ;;
13937b3e38ee4Smrg*-*-irix6*)
139384a8d91dcSmrg  # Find out what ABI is being produced by ac_compile, and set linker
139394a8d91dcSmrg  # options accordingly.
13940a73423d7Smrg  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13941a73423d7Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13942b3e38ee4Smrg  (eval $ac_compile) 2>&5
13943b3e38ee4Smrg  ac_status=$?
13944e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13945a73423d7Smrg  test $ac_status = 0; }; then
139464a8d91dcSmrg    if test yes = "$lt_cv_prog_gnu_ld"; then
13947e9f7eabcSmrg      case `$FILECMD conftest.$ac_objext` in
13948b3e38ee4Smrg	*32-bit*)
13949b3e38ee4Smrg	  LD="${LD-ld} -melf32bsmip"
13950b3e38ee4Smrg	  ;;
13951b3e38ee4Smrg	*N32*)
13952b3e38ee4Smrg	  LD="${LD-ld} -melf32bmipn32"
13953b3e38ee4Smrg	  ;;
13954b3e38ee4Smrg	*64-bit*)
13955b3e38ee4Smrg	  LD="${LD-ld} -melf64bmip"
13956a18ebfb2Smrg	;;
13957a18ebfb2Smrg      esac
13958b3e38ee4Smrg    else
13959e9f7eabcSmrg      case `$FILECMD conftest.$ac_objext` in
13960b3e38ee4Smrg	*32-bit*)
13961b3e38ee4Smrg	  LD="${LD-ld} -32"
13962b3e38ee4Smrg	  ;;
13963b3e38ee4Smrg	*N32*)
13964b3e38ee4Smrg	  LD="${LD-ld} -n32"
13965b3e38ee4Smrg	  ;;
13966b3e38ee4Smrg	*64-bit*)
13967b3e38ee4Smrg	  LD="${LD-ld} -64"
13968b3e38ee4Smrg	  ;;
13969b3e38ee4Smrg      esac
13970b3e38ee4Smrg    fi
13971b3e38ee4Smrg  fi
13972b3e38ee4Smrg  rm -rf conftest*
13973b3e38ee4Smrg  ;;
13974af1a9c97Smrg
139754a8d91dcSmrgmips64*-*linux*)
139764a8d91dcSmrg  # Find out what ABI is being produced by ac_compile, and set linker
139774a8d91dcSmrg  # options accordingly.
139784a8d91dcSmrg  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
139794a8d91dcSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
139804a8d91dcSmrg  (eval $ac_compile) 2>&5
139814a8d91dcSmrg  ac_status=$?
13982e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
139834a8d91dcSmrg  test $ac_status = 0; }; then
139844a8d91dcSmrg    emul=elf
13985e9f7eabcSmrg    case `$FILECMD conftest.$ac_objext` in
139864a8d91dcSmrg      *32-bit*)
139874a8d91dcSmrg	emul="${emul}32"
139884a8d91dcSmrg	;;
139894a8d91dcSmrg      *64-bit*)
139904a8d91dcSmrg	emul="${emul}64"
139914a8d91dcSmrg	;;
139924a8d91dcSmrg    esac
13993e9f7eabcSmrg    case `$FILECMD conftest.$ac_objext` in
139944a8d91dcSmrg      *MSB*)
139954a8d91dcSmrg	emul="${emul}btsmip"
139964a8d91dcSmrg	;;
139974a8d91dcSmrg      *LSB*)
139984a8d91dcSmrg	emul="${emul}ltsmip"
139994a8d91dcSmrg	;;
140004a8d91dcSmrg    esac
14001e9f7eabcSmrg    case `$FILECMD conftest.$ac_objext` in
140024a8d91dcSmrg      *N32*)
140034a8d91dcSmrg	emul="${emul}n32"
140044a8d91dcSmrg	;;
140054a8d91dcSmrg    esac
140064a8d91dcSmrg    LD="${LD-ld} -m $emul"
140074a8d91dcSmrg  fi
140084a8d91dcSmrg  rm -rf conftest*
140094a8d91dcSmrg  ;;
140104a8d91dcSmrg
140114a8d91dcSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
140124a8d91dcSmrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*)
140134a8d91dcSmrg  # Find out what ABI is being produced by ac_compile, and set linker
140144a8d91dcSmrg  # options accordingly.  Note that the listed cases only cover the
140154a8d91dcSmrg  # situations where additional linker options are needed (such as when
140164a8d91dcSmrg  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
140174a8d91dcSmrg  # vice versa); the common cases where no linker options are needed do
140184a8d91dcSmrg  # not appear in the list.
14019b3e38ee4Smrg  echo 'int i;' > conftest.$ac_ext
14020a73423d7Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14021b3e38ee4Smrg  (eval $ac_compile) 2>&5
14022b3e38ee4Smrg  ac_status=$?
14023e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14024a73423d7Smrg  test $ac_status = 0; }; then
14025e9f7eabcSmrg    case `$FILECMD conftest.o` in
14026b3e38ee4Smrg      *32-bit*)
14027b3e38ee4Smrg	case $host in
14028b3e38ee4Smrg	  x86_64-*kfreebsd*-gnu)
14029b3e38ee4Smrg	    LD="${LD-ld} -m elf_i386_fbsd"
14030b3e38ee4Smrg	    ;;
14031b3e38ee4Smrg	  x86_64-*linux*)
14032e9f7eabcSmrg	    case `$FILECMD conftest.o` in
140334a8d91dcSmrg	      *x86-64*)
140344a8d91dcSmrg		LD="${LD-ld} -m elf32_x86_64"
140354a8d91dcSmrg		;;
140364a8d91dcSmrg	      *)
140374a8d91dcSmrg		LD="${LD-ld} -m elf_i386"
140384a8d91dcSmrg		;;
140394a8d91dcSmrg	    esac
140404a8d91dcSmrg	    ;;
140414a8d91dcSmrg	  powerpc64le-*linux*)
140424a8d91dcSmrg	    LD="${LD-ld} -m elf32lppclinux"
14043b3e38ee4Smrg	    ;;
140444a8d91dcSmrg	  powerpc64-*linux*)
14045b3e38ee4Smrg	    LD="${LD-ld} -m elf32ppclinux"
14046b3e38ee4Smrg	    ;;
14047b3e38ee4Smrg	  s390x-*linux*)
14048b3e38ee4Smrg	    LD="${LD-ld} -m elf_s390"
14049b3e38ee4Smrg	    ;;
14050b3e38ee4Smrg	  sparc64-*linux*)
14051b3e38ee4Smrg	    LD="${LD-ld} -m elf32_sparc"
14052b3e38ee4Smrg	    ;;
14053b3e38ee4Smrg	esac
14054b3e38ee4Smrg	;;
14055b3e38ee4Smrg      *64-bit*)
14056b3e38ee4Smrg	case $host in
14057b3e38ee4Smrg	  x86_64-*kfreebsd*-gnu)
14058b3e38ee4Smrg	    LD="${LD-ld} -m elf_x86_64_fbsd"
14059b3e38ee4Smrg	    ;;
14060b3e38ee4Smrg	  x86_64-*linux*)
14061b3e38ee4Smrg	    LD="${LD-ld} -m elf_x86_64"
14062b3e38ee4Smrg	    ;;
140634a8d91dcSmrg	  powerpcle-*linux*)
140644a8d91dcSmrg	    LD="${LD-ld} -m elf64lppc"
140654a8d91dcSmrg	    ;;
140664a8d91dcSmrg	  powerpc-*linux*)
14067b3e38ee4Smrg	    LD="${LD-ld} -m elf64ppc"
14068b3e38ee4Smrg	    ;;
14069b3e38ee4Smrg	  s390*-*linux*|s390*-*tpf*)
14070b3e38ee4Smrg	    LD="${LD-ld} -m elf64_s390"
14071b3e38ee4Smrg	    ;;
14072b3e38ee4Smrg	  sparc*-*linux*)
14073b3e38ee4Smrg	    LD="${LD-ld} -m elf64_sparc"
14074b3e38ee4Smrg	    ;;
14075b3e38ee4Smrg	esac
14076b3e38ee4Smrg	;;
14077a18ebfb2Smrg    esac
14078b3e38ee4Smrg  fi
14079b3e38ee4Smrg  rm -rf conftest*
14080b3e38ee4Smrg  ;;
14081a18ebfb2Smrg
14082b3e38ee4Smrg*-*-sco3.2v5*)
14083b3e38ee4Smrg  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
140844a8d91dcSmrg  SAVE_CFLAGS=$CFLAGS
14085b3e38ee4Smrg  CFLAGS="$CFLAGS -belf"
14086e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14087e9f7eabcSmrgprintf %s "checking whether the C compiler needs -belf... " >&6; }
14088e9f7eabcSmrgif test ${lt_cv_cc_needs_belf+y}
14089e9f7eabcSmrgthen :
14090e9f7eabcSmrg  printf %s "(cached) " >&6
14091e9f7eabcSmrgelse $as_nop
14092b3e38ee4Smrg  ac_ext=c
14093b3e38ee4Smrgac_cpp='$CPP $CPPFLAGS'
14094b3e38ee4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14095b3e38ee4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14096b3e38ee4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
14097af1a9c97Smrg
14098a73423d7Smrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099a18ebfb2Smrg/* end confdefs.h.  */
14100af1a9c97Smrg
14101a18ebfb2Smrgint
14102e9f7eabcSmrgmain (void)
14103a18ebfb2Smrg{
14104af1a9c97Smrg
14105a18ebfb2Smrg  ;
14106a18ebfb2Smrg  return 0;
14107a18ebfb2Smrg}
14108a18ebfb2Smrg_ACEOF
14109e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
14110e9f7eabcSmrgthen :
14111b3e38ee4Smrg  lt_cv_cc_needs_belf=yes
14112e9f7eabcSmrgelse $as_nop
14113a73423d7Smrg  lt_cv_cc_needs_belf=no
14114a18ebfb2Smrgfi
14115e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
14116a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
14117b3e38ee4Smrg     ac_ext=c
14118b3e38ee4Smrgac_cpp='$CPP $CPPFLAGS'
14119b3e38ee4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14120b3e38ee4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14121b3e38ee4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
1412250806d53Smrg
14123b3e38ee4Smrgfi
14124e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14125e9f7eabcSmrgprintf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
141264a8d91dcSmrg  if test yes != "$lt_cv_cc_needs_belf"; then
14127b3e38ee4Smrg    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
141284a8d91dcSmrg    CFLAGS=$SAVE_CFLAGS
14129b3e38ee4Smrg  fi
14130b3e38ee4Smrg  ;;
14131a73423d7Smrg*-*solaris*)
141324a8d91dcSmrg  # Find out what ABI is being produced by ac_compile, and set linker
141334a8d91dcSmrg  # options accordingly.
14134b3e38ee4Smrg  echo 'int i;' > conftest.$ac_ext
14135a73423d7Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14136b3e38ee4Smrg  (eval $ac_compile) 2>&5
14137a18ebfb2Smrg  ac_status=$?
14138e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14139a73423d7Smrg  test $ac_status = 0; }; then
14140e9f7eabcSmrg    case `$FILECMD conftest.o` in
14141b3e38ee4Smrg    *64-bit*)
14142b3e38ee4Smrg      case $lt_cv_prog_gnu_ld in
14143a73423d7Smrg      yes*)
14144a73423d7Smrg        case $host in
141454a8d91dcSmrg        i?86-*-solaris*|x86_64-*-solaris*)
14146a73423d7Smrg          LD="${LD-ld} -m elf_x86_64"
14147a73423d7Smrg          ;;
14148a73423d7Smrg        sparc*-*-solaris*)
14149a73423d7Smrg          LD="${LD-ld} -m elf64_sparc"
14150a73423d7Smrg          ;;
14151a73423d7Smrg        esac
14152a73423d7Smrg        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14153a73423d7Smrg        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
141544a8d91dcSmrg          LD=${LD-ld}_sol2
14155a73423d7Smrg        fi
14156a73423d7Smrg        ;;
14157b3e38ee4Smrg      *)
14158b3e38ee4Smrg	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14159b3e38ee4Smrg	  LD="${LD-ld} -64"
14160b3e38ee4Smrg	fi
14161b3e38ee4Smrg	;;
14162b3e38ee4Smrg      esac
14163b3e38ee4Smrg      ;;
14164b3e38ee4Smrg    esac
14165b3e38ee4Smrg  fi
14166b3e38ee4Smrg  rm -rf conftest*
14167b3e38ee4Smrg  ;;
14168b3e38ee4Smrgesac
1416950806d53Smrg
141704a8d91dcSmrgneed_locks=$enable_libtool_lock
1417150806d53Smrg
14172a73423d7Smrgif test -n "$ac_tool_prefix"; then
14173a73423d7Smrg  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14174a73423d7Smrgset dummy ${ac_tool_prefix}mt; ac_word=$2
14175e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14176e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
14177e9f7eabcSmrgif test ${ac_cv_prog_MANIFEST_TOOL+y}
14178e9f7eabcSmrgthen :
14179e9f7eabcSmrg  printf %s "(cached) " >&6
14180e9f7eabcSmrgelse $as_nop
14181a73423d7Smrg  if test -n "$MANIFEST_TOOL"; then
14182a73423d7Smrg  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14183a73423d7Smrgelse
14184a73423d7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14185a73423d7Smrgfor as_dir in $PATH
14186a73423d7Smrgdo
14187a73423d7Smrg  IFS=$as_save_IFS
14188e9f7eabcSmrg  case $as_dir in #(((
14189e9f7eabcSmrg    '') as_dir=./ ;;
14190e9f7eabcSmrg    */) ;;
14191e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
14192e9f7eabcSmrg  esac
14193a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
14194e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14195a73423d7Smrg    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14196e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14197a73423d7Smrg    break 2
14198a73423d7Smrg  fi
14199a73423d7Smrgdone
14200a73423d7Smrg  done
14201a73423d7SmrgIFS=$as_save_IFS
14202a73423d7Smrg
14203a73423d7Smrgfi
14204a73423d7Smrgfi
14205a73423d7SmrgMANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14206a73423d7Smrgif test -n "$MANIFEST_TOOL"; then
14207e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14208e9f7eabcSmrgprintf "%s\n" "$MANIFEST_TOOL" >&6; }
14209a73423d7Smrgelse
14210e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14211e9f7eabcSmrgprintf "%s\n" "no" >&6; }
14212a73423d7Smrgfi
14213a73423d7Smrg
14214a73423d7Smrg
14215a73423d7Smrgfi
14216a73423d7Smrgif test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14217a73423d7Smrg  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14218a73423d7Smrg  # Extract the first word of "mt", so it can be a program name with args.
14219a73423d7Smrgset dummy mt; ac_word=$2
14220e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14221e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
14222e9f7eabcSmrgif test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14223e9f7eabcSmrgthen :
14224e9f7eabcSmrg  printf %s "(cached) " >&6
14225e9f7eabcSmrgelse $as_nop
14226a73423d7Smrg  if test -n "$ac_ct_MANIFEST_TOOL"; then
14227a73423d7Smrg  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14228a73423d7Smrgelse
14229a73423d7Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14230a73423d7Smrgfor as_dir in $PATH
14231a73423d7Smrgdo
14232a73423d7Smrg  IFS=$as_save_IFS
14233e9f7eabcSmrg  case $as_dir in #(((
14234e9f7eabcSmrg    '') as_dir=./ ;;
14235e9f7eabcSmrg    */) ;;
14236e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
14237e9f7eabcSmrg  esac
14238a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
14239e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14240a73423d7Smrg    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14241e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14242a73423d7Smrg    break 2
14243a73423d7Smrg  fi
14244a73423d7Smrgdone
14245a73423d7Smrg  done
14246a73423d7SmrgIFS=$as_save_IFS
14247a73423d7Smrg
14248a73423d7Smrgfi
14249a73423d7Smrgfi
14250a73423d7Smrgac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14251a73423d7Smrgif test -n "$ac_ct_MANIFEST_TOOL"; then
14252e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14253e9f7eabcSmrgprintf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14254a73423d7Smrgelse
14255e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14256e9f7eabcSmrgprintf "%s\n" "no" >&6; }
14257a73423d7Smrgfi
14258a73423d7Smrg
14259a73423d7Smrg  if test "x$ac_ct_MANIFEST_TOOL" = x; then
14260a73423d7Smrg    MANIFEST_TOOL=":"
14261a73423d7Smrg  else
14262a73423d7Smrg    case $cross_compiling:$ac_tool_warned in
14263a73423d7Smrgyes:)
14264e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14265e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14266a73423d7Smrgac_tool_warned=yes ;;
14267a73423d7Smrgesac
14268a73423d7Smrg    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14269a73423d7Smrg  fi
14270a73423d7Smrgelse
14271a73423d7Smrg  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14272a73423d7Smrgfi
14273a73423d7Smrg
14274a73423d7Smrgtest -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14275e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14276e9f7eabcSmrgprintf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14277e9f7eabcSmrgif test ${lt_cv_path_mainfest_tool+y}
14278e9f7eabcSmrgthen :
14279e9f7eabcSmrg  printf %s "(cached) " >&6
14280e9f7eabcSmrgelse $as_nop
14281a73423d7Smrg  lt_cv_path_mainfest_tool=no
14282a73423d7Smrg  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14283a73423d7Smrg  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14284a73423d7Smrg  cat conftest.err >&5
14285a73423d7Smrg  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14286a73423d7Smrg    lt_cv_path_mainfest_tool=yes
14287a73423d7Smrg  fi
14288a73423d7Smrg  rm -f conftest*
14289a73423d7Smrgfi
14290e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14291e9f7eabcSmrgprintf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
142924a8d91dcSmrgif test yes != "$lt_cv_path_mainfest_tool"; then
14293a73423d7Smrg  MANIFEST_TOOL=:
14294a73423d7Smrgfi
14295a73423d7Smrg
14296a73423d7Smrg
14297a73423d7Smrg
14298a73423d7Smrg
14299a73423d7Smrg
1430050806d53Smrg
14301b3e38ee4Smrg  case $host_os in
14302b3e38ee4Smrg    rhapsody* | darwin*)
14303b3e38ee4Smrg    if test -n "$ac_tool_prefix"; then
14304b3e38ee4Smrg  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14305b3e38ee4Smrgset dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14306e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14307e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
14308e9f7eabcSmrgif test ${ac_cv_prog_DSYMUTIL+y}
14309e9f7eabcSmrgthen :
14310e9f7eabcSmrg  printf %s "(cached) " >&6
14311e9f7eabcSmrgelse $as_nop
14312b3e38ee4Smrg  if test -n "$DSYMUTIL"; then
14313b3e38ee4Smrg  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14314b3e38ee4Smrgelse
14315b3e38ee4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14316b3e38ee4Smrgfor as_dir in $PATH
14317b3e38ee4Smrgdo
14318b3e38ee4Smrg  IFS=$as_save_IFS
14319e9f7eabcSmrg  case $as_dir in #(((
14320e9f7eabcSmrg    '') as_dir=./ ;;
14321e9f7eabcSmrg    */) ;;
14322e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
14323e9f7eabcSmrg  esac
14324a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
14325e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14326b3e38ee4Smrg    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14327e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14328b3e38ee4Smrg    break 2
14329b3e38ee4Smrg  fi
14330b3e38ee4Smrgdone
14331a73423d7Smrg  done
14332b3e38ee4SmrgIFS=$as_save_IFS
1433350806d53Smrg
14334b3e38ee4Smrgfi
14335b3e38ee4Smrgfi
14336b3e38ee4SmrgDSYMUTIL=$ac_cv_prog_DSYMUTIL
14337b3e38ee4Smrgif test -n "$DSYMUTIL"; then
14338e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14339e9f7eabcSmrgprintf "%s\n" "$DSYMUTIL" >&6; }
14340b3e38ee4Smrgelse
14341e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342e9f7eabcSmrgprintf "%s\n" "no" >&6; }
14343b3e38ee4Smrgfi
1434450806d53Smrg
1434550806d53Smrg
14346b3e38ee4Smrgfi
14347b3e38ee4Smrgif test -z "$ac_cv_prog_DSYMUTIL"; then
14348b3e38ee4Smrg  ac_ct_DSYMUTIL=$DSYMUTIL
14349b3e38ee4Smrg  # Extract the first word of "dsymutil", so it can be a program name with args.
14350b3e38ee4Smrgset dummy dsymutil; ac_word=$2
14351e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14352e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
14353e9f7eabcSmrgif test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14354e9f7eabcSmrgthen :
14355e9f7eabcSmrg  printf %s "(cached) " >&6
14356e9f7eabcSmrgelse $as_nop
14357b3e38ee4Smrg  if test -n "$ac_ct_DSYMUTIL"; then
14358b3e38ee4Smrg  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14359b3e38ee4Smrgelse
14360b3e38ee4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14361b3e38ee4Smrgfor as_dir in $PATH
14362b3e38ee4Smrgdo
14363b3e38ee4Smrg  IFS=$as_save_IFS
14364e9f7eabcSmrg  case $as_dir in #(((
14365e9f7eabcSmrg    '') as_dir=./ ;;
14366e9f7eabcSmrg    */) ;;
14367e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
14368e9f7eabcSmrg  esac
14369a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
14370e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14371b3e38ee4Smrg    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14372e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14373b3e38ee4Smrg    break 2
14374b3e38ee4Smrg  fi
14375b3e38ee4Smrgdone
14376a73423d7Smrg  done
14377b3e38ee4SmrgIFS=$as_save_IFS
1437850806d53Smrg
14379b3e38ee4Smrgfi
14380b3e38ee4Smrgfi
14381b3e38ee4Smrgac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14382b3e38ee4Smrgif test -n "$ac_ct_DSYMUTIL"; then
14383e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14384e9f7eabcSmrgprintf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14385b3e38ee4Smrgelse
14386e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14387e9f7eabcSmrgprintf "%s\n" "no" >&6; }
14388b3e38ee4Smrgfi
1438950806d53Smrg
14390b3e38ee4Smrg  if test "x$ac_ct_DSYMUTIL" = x; then
14391b3e38ee4Smrg    DSYMUTIL=":"
14392b3e38ee4Smrg  else
14393b3e38ee4Smrg    case $cross_compiling:$ac_tool_warned in
14394b3e38ee4Smrgyes:)
14395e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14396e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14397b3e38ee4Smrgac_tool_warned=yes ;;
14398b3e38ee4Smrgesac
14399b3e38ee4Smrg    DSYMUTIL=$ac_ct_DSYMUTIL
14400b3e38ee4Smrg  fi
14401b3e38ee4Smrgelse
14402b3e38ee4Smrg  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14403b3e38ee4Smrgfi
1440450806d53Smrg
14405b3e38ee4Smrg    if test -n "$ac_tool_prefix"; then
14406b3e38ee4Smrg  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14407b3e38ee4Smrgset dummy ${ac_tool_prefix}nmedit; ac_word=$2
14408e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14409e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
14410e9f7eabcSmrgif test ${ac_cv_prog_NMEDIT+y}
14411e9f7eabcSmrgthen :
14412e9f7eabcSmrg  printf %s "(cached) " >&6
14413e9f7eabcSmrgelse $as_nop
14414b3e38ee4Smrg  if test -n "$NMEDIT"; then
14415b3e38ee4Smrg  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14416b3e38ee4Smrgelse
14417b3e38ee4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14418b3e38ee4Smrgfor as_dir in $PATH
14419b3e38ee4Smrgdo
14420b3e38ee4Smrg  IFS=$as_save_IFS
14421e9f7eabcSmrg  case $as_dir in #(((
14422e9f7eabcSmrg    '') as_dir=./ ;;
14423e9f7eabcSmrg    */) ;;
14424e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
14425e9f7eabcSmrg  esac
14426a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
14427e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14428b3e38ee4Smrg    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14429e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14430b3e38ee4Smrg    break 2
14431b3e38ee4Smrg  fi
14432b3e38ee4Smrgdone
14433a73423d7Smrg  done
14434b3e38ee4SmrgIFS=$as_save_IFS
1443550806d53Smrg
14436b3e38ee4Smrgfi
14437b3e38ee4Smrgfi
14438b3e38ee4SmrgNMEDIT=$ac_cv_prog_NMEDIT
14439b3e38ee4Smrgif test -n "$NMEDIT"; then
14440e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14441e9f7eabcSmrgprintf "%s\n" "$NMEDIT" >&6; }
14442b3e38ee4Smrgelse
14443e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14444e9f7eabcSmrgprintf "%s\n" "no" >&6; }
14445b3e38ee4Smrgfi
1444650806d53Smrg
1444750806d53Smrg
14448b3e38ee4Smrgfi
14449b3e38ee4Smrgif test -z "$ac_cv_prog_NMEDIT"; then
14450b3e38ee4Smrg  ac_ct_NMEDIT=$NMEDIT
14451b3e38ee4Smrg  # Extract the first word of "nmedit", so it can be a program name with args.
14452b3e38ee4Smrgset dummy nmedit; ac_word=$2
14453e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14454e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
14455e9f7eabcSmrgif test ${ac_cv_prog_ac_ct_NMEDIT+y}
14456e9f7eabcSmrgthen :
14457e9f7eabcSmrg  printf %s "(cached) " >&6
14458e9f7eabcSmrgelse $as_nop
14459b3e38ee4Smrg  if test -n "$ac_ct_NMEDIT"; then
14460b3e38ee4Smrg  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14461b3e38ee4Smrgelse
14462b3e38ee4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14463b3e38ee4Smrgfor as_dir in $PATH
14464b3e38ee4Smrgdo
14465b3e38ee4Smrg  IFS=$as_save_IFS
14466e9f7eabcSmrg  case $as_dir in #(((
14467e9f7eabcSmrg    '') as_dir=./ ;;
14468e9f7eabcSmrg    */) ;;
14469e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
14470e9f7eabcSmrg  esac
14471a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
14472e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14473b3e38ee4Smrg    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14474e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14475b3e38ee4Smrg    break 2
14476b3e38ee4Smrg  fi
14477b3e38ee4Smrgdone
14478a73423d7Smrg  done
14479b3e38ee4SmrgIFS=$as_save_IFS
1448050806d53Smrg
14481b3e38ee4Smrgfi
14482b3e38ee4Smrgfi
14483b3e38ee4Smrgac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14484b3e38ee4Smrgif test -n "$ac_ct_NMEDIT"; then
14485e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14486e9f7eabcSmrgprintf "%s\n" "$ac_ct_NMEDIT" >&6; }
14487b3e38ee4Smrgelse
14488e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14489e9f7eabcSmrgprintf "%s\n" "no" >&6; }
14490b3e38ee4Smrgfi
1449150806d53Smrg
14492b3e38ee4Smrg  if test "x$ac_ct_NMEDIT" = x; then
14493b3e38ee4Smrg    NMEDIT=":"
14494b3e38ee4Smrg  else
14495b3e38ee4Smrg    case $cross_compiling:$ac_tool_warned in
14496b3e38ee4Smrgyes:)
14497e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14498e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14499b3e38ee4Smrgac_tool_warned=yes ;;
14500b3e38ee4Smrgesac
14501b3e38ee4Smrg    NMEDIT=$ac_ct_NMEDIT
14502b3e38ee4Smrg  fi
14503b3e38ee4Smrgelse
14504b3e38ee4Smrg  NMEDIT="$ac_cv_prog_NMEDIT"
14505b3e38ee4Smrgfi
1450650806d53Smrg
14507b3e38ee4Smrg    if test -n "$ac_tool_prefix"; then
14508b3e38ee4Smrg  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14509b3e38ee4Smrgset dummy ${ac_tool_prefix}lipo; ac_word=$2
14510e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14511e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
14512e9f7eabcSmrgif test ${ac_cv_prog_LIPO+y}
14513e9f7eabcSmrgthen :
14514e9f7eabcSmrg  printf %s "(cached) " >&6
14515e9f7eabcSmrgelse $as_nop
14516b3e38ee4Smrg  if test -n "$LIPO"; then
14517b3e38ee4Smrg  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14518b3e38ee4Smrgelse
14519b3e38ee4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14520b3e38ee4Smrgfor as_dir in $PATH
14521b3e38ee4Smrgdo
14522b3e38ee4Smrg  IFS=$as_save_IFS
14523e9f7eabcSmrg  case $as_dir in #(((
14524e9f7eabcSmrg    '') as_dir=./ ;;
14525e9f7eabcSmrg    */) ;;
14526e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
14527e9f7eabcSmrg  esac
14528a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
14529e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14530b3e38ee4Smrg    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14531e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14532b3e38ee4Smrg    break 2
14533b3e38ee4Smrg  fi
14534b3e38ee4Smrgdone
14535a73423d7Smrg  done
14536b3e38ee4SmrgIFS=$as_save_IFS
145377965d9acSmrg
14538b3e38ee4Smrgfi
14539b3e38ee4Smrgfi
14540b3e38ee4SmrgLIPO=$ac_cv_prog_LIPO
14541b3e38ee4Smrgif test -n "$LIPO"; then
14542e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14543e9f7eabcSmrgprintf "%s\n" "$LIPO" >&6; }
14544b3e38ee4Smrgelse
14545e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14546e9f7eabcSmrgprintf "%s\n" "no" >&6; }
14547b3e38ee4Smrgfi
145487965d9acSmrg
145497965d9acSmrg
14550b3e38ee4Smrgfi
14551b3e38ee4Smrgif test -z "$ac_cv_prog_LIPO"; then
14552b3e38ee4Smrg  ac_ct_LIPO=$LIPO
14553b3e38ee4Smrg  # Extract the first word of "lipo", so it can be a program name with args.
14554b3e38ee4Smrgset dummy lipo; ac_word=$2
14555e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14556e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
14557e9f7eabcSmrgif test ${ac_cv_prog_ac_ct_LIPO+y}
14558e9f7eabcSmrgthen :
14559e9f7eabcSmrg  printf %s "(cached) " >&6
14560e9f7eabcSmrgelse $as_nop
14561b3e38ee4Smrg  if test -n "$ac_ct_LIPO"; then
14562b3e38ee4Smrg  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14563b3e38ee4Smrgelse
14564b3e38ee4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14565b3e38ee4Smrgfor as_dir in $PATH
14566b3e38ee4Smrgdo
14567b3e38ee4Smrg  IFS=$as_save_IFS
14568e9f7eabcSmrg  case $as_dir in #(((
14569e9f7eabcSmrg    '') as_dir=./ ;;
14570e9f7eabcSmrg    */) ;;
14571e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
14572e9f7eabcSmrg  esac
14573a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
14574e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14575b3e38ee4Smrg    ac_cv_prog_ac_ct_LIPO="lipo"
14576e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14577b3e38ee4Smrg    break 2
14578b3e38ee4Smrg  fi
14579b3e38ee4Smrgdone
14580a73423d7Smrg  done
14581b3e38ee4SmrgIFS=$as_save_IFS
1458250806d53Smrg
14583b3e38ee4Smrgfi
14584b3e38ee4Smrgfi
14585b3e38ee4Smrgac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14586b3e38ee4Smrgif test -n "$ac_ct_LIPO"; then
14587e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14588e9f7eabcSmrgprintf "%s\n" "$ac_ct_LIPO" >&6; }
14589b3e38ee4Smrgelse
14590e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14591e9f7eabcSmrgprintf "%s\n" "no" >&6; }
14592b3e38ee4Smrgfi
1459350806d53Smrg
14594b3e38ee4Smrg  if test "x$ac_ct_LIPO" = x; then
14595b3e38ee4Smrg    LIPO=":"
14596b3e38ee4Smrg  else
14597b3e38ee4Smrg    case $cross_compiling:$ac_tool_warned in
14598b3e38ee4Smrgyes:)
14599e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14600e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14601b3e38ee4Smrgac_tool_warned=yes ;;
14602b3e38ee4Smrgesac
14603b3e38ee4Smrg    LIPO=$ac_ct_LIPO
14604b3e38ee4Smrg  fi
14605b3e38ee4Smrgelse
14606b3e38ee4Smrg  LIPO="$ac_cv_prog_LIPO"
14607b3e38ee4Smrgfi
1460850806d53Smrg
14609b3e38ee4Smrg    if test -n "$ac_tool_prefix"; then
14610b3e38ee4Smrg  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14611b3e38ee4Smrgset dummy ${ac_tool_prefix}otool; ac_word=$2
14612e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14613e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
14614e9f7eabcSmrgif test ${ac_cv_prog_OTOOL+y}
14615e9f7eabcSmrgthen :
14616e9f7eabcSmrg  printf %s "(cached) " >&6
14617e9f7eabcSmrgelse $as_nop
14618b3e38ee4Smrg  if test -n "$OTOOL"; then
14619b3e38ee4Smrg  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14620b3e38ee4Smrgelse
14621b3e38ee4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14622b3e38ee4Smrgfor as_dir in $PATH
14623b3e38ee4Smrgdo
14624b3e38ee4Smrg  IFS=$as_save_IFS
14625e9f7eabcSmrg  case $as_dir in #(((
14626e9f7eabcSmrg    '') as_dir=./ ;;
14627e9f7eabcSmrg    */) ;;
14628e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
14629e9f7eabcSmrg  esac
14630a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
14631e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14632b3e38ee4Smrg    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14633e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14634b3e38ee4Smrg    break 2
14635b3e38ee4Smrg  fi
14636b3e38ee4Smrgdone
14637a73423d7Smrg  done
14638b3e38ee4SmrgIFS=$as_save_IFS
1463950806d53Smrg
14640b3e38ee4Smrgfi
14641b3e38ee4Smrgfi
14642b3e38ee4SmrgOTOOL=$ac_cv_prog_OTOOL
14643b3e38ee4Smrgif test -n "$OTOOL"; then
14644e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14645e9f7eabcSmrgprintf "%s\n" "$OTOOL" >&6; }
14646b3e38ee4Smrgelse
14647e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14648e9f7eabcSmrgprintf "%s\n" "no" >&6; }
14649b3e38ee4Smrgfi
1465050806d53Smrg
1465150806d53Smrg
14652b3e38ee4Smrgfi
14653b3e38ee4Smrgif test -z "$ac_cv_prog_OTOOL"; then
14654b3e38ee4Smrg  ac_ct_OTOOL=$OTOOL
14655b3e38ee4Smrg  # Extract the first word of "otool", so it can be a program name with args.
14656b3e38ee4Smrgset dummy otool; ac_word=$2
14657e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14658e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
14659e9f7eabcSmrgif test ${ac_cv_prog_ac_ct_OTOOL+y}
14660e9f7eabcSmrgthen :
14661e9f7eabcSmrg  printf %s "(cached) " >&6
14662e9f7eabcSmrgelse $as_nop
14663b3e38ee4Smrg  if test -n "$ac_ct_OTOOL"; then
14664b3e38ee4Smrg  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14665b3e38ee4Smrgelse
14666b3e38ee4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14667b3e38ee4Smrgfor as_dir in $PATH
14668b3e38ee4Smrgdo
14669b3e38ee4Smrg  IFS=$as_save_IFS
14670e9f7eabcSmrg  case $as_dir in #(((
14671e9f7eabcSmrg    '') as_dir=./ ;;
14672e9f7eabcSmrg    */) ;;
14673e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
14674e9f7eabcSmrg  esac
14675a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
14676e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14677b3e38ee4Smrg    ac_cv_prog_ac_ct_OTOOL="otool"
14678e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14679b3e38ee4Smrg    break 2
14680b3e38ee4Smrg  fi
14681b3e38ee4Smrgdone
14682a73423d7Smrg  done
14683b3e38ee4SmrgIFS=$as_save_IFS
1468450806d53Smrg
14685b3e38ee4Smrgfi
14686b3e38ee4Smrgfi
14687b3e38ee4Smrgac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14688b3e38ee4Smrgif test -n "$ac_ct_OTOOL"; then
14689e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14690e9f7eabcSmrgprintf "%s\n" "$ac_ct_OTOOL" >&6; }
14691b3e38ee4Smrgelse
14692e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14693e9f7eabcSmrgprintf "%s\n" "no" >&6; }
14694b3e38ee4Smrgfi
1469550806d53Smrg
14696b3e38ee4Smrg  if test "x$ac_ct_OTOOL" = x; then
14697b3e38ee4Smrg    OTOOL=":"
14698b3e38ee4Smrg  else
14699b3e38ee4Smrg    case $cross_compiling:$ac_tool_warned in
14700b3e38ee4Smrgyes:)
14701e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14702e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14703b3e38ee4Smrgac_tool_warned=yes ;;
14704b3e38ee4Smrgesac
14705b3e38ee4Smrg    OTOOL=$ac_ct_OTOOL
14706b3e38ee4Smrg  fi
14707b3e38ee4Smrgelse
14708b3e38ee4Smrg  OTOOL="$ac_cv_prog_OTOOL"
14709b3e38ee4Smrgfi
1471050806d53Smrg
14711b3e38ee4Smrg    if test -n "$ac_tool_prefix"; then
14712b3e38ee4Smrg  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14713b3e38ee4Smrgset dummy ${ac_tool_prefix}otool64; ac_word=$2
14714e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14715e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
14716e9f7eabcSmrgif test ${ac_cv_prog_OTOOL64+y}
14717e9f7eabcSmrgthen :
14718e9f7eabcSmrg  printf %s "(cached) " >&6
14719e9f7eabcSmrgelse $as_nop
14720b3e38ee4Smrg  if test -n "$OTOOL64"; then
14721b3e38ee4Smrg  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14722b3e38ee4Smrgelse
14723b3e38ee4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14724b3e38ee4Smrgfor as_dir in $PATH
14725b3e38ee4Smrgdo
14726b3e38ee4Smrg  IFS=$as_save_IFS
14727e9f7eabcSmrg  case $as_dir in #(((
14728e9f7eabcSmrg    '') as_dir=./ ;;
14729e9f7eabcSmrg    */) ;;
14730e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
14731e9f7eabcSmrg  esac
14732a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
14733e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14734b3e38ee4Smrg    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14735e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14736b3e38ee4Smrg    break 2
14737b3e38ee4Smrg  fi
14738b3e38ee4Smrgdone
14739a73423d7Smrg  done
14740b3e38ee4SmrgIFS=$as_save_IFS
1474150806d53Smrg
14742b3e38ee4Smrgfi
14743b3e38ee4Smrgfi
14744b3e38ee4SmrgOTOOL64=$ac_cv_prog_OTOOL64
14745b3e38ee4Smrgif test -n "$OTOOL64"; then
14746e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14747e9f7eabcSmrgprintf "%s\n" "$OTOOL64" >&6; }
14748b3e38ee4Smrgelse
14749e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14750e9f7eabcSmrgprintf "%s\n" "no" >&6; }
14751b3e38ee4Smrgfi
147527965d9acSmrg
1475350806d53Smrg
14754b3e38ee4Smrgfi
14755b3e38ee4Smrgif test -z "$ac_cv_prog_OTOOL64"; then
14756b3e38ee4Smrg  ac_ct_OTOOL64=$OTOOL64
14757b3e38ee4Smrg  # Extract the first word of "otool64", so it can be a program name with args.
14758b3e38ee4Smrgset dummy otool64; ac_word=$2
14759e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14760e9f7eabcSmrgprintf %s "checking for $ac_word... " >&6; }
14761e9f7eabcSmrgif test ${ac_cv_prog_ac_ct_OTOOL64+y}
14762e9f7eabcSmrgthen :
14763e9f7eabcSmrg  printf %s "(cached) " >&6
14764e9f7eabcSmrgelse $as_nop
14765b3e38ee4Smrg  if test -n "$ac_ct_OTOOL64"; then
14766b3e38ee4Smrg  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14767b3e38ee4Smrgelse
14768b3e38ee4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14769b3e38ee4Smrgfor as_dir in $PATH
14770b3e38ee4Smrgdo
14771b3e38ee4Smrg  IFS=$as_save_IFS
14772e9f7eabcSmrg  case $as_dir in #(((
14773e9f7eabcSmrg    '') as_dir=./ ;;
14774e9f7eabcSmrg    */) ;;
14775e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
14776e9f7eabcSmrg  esac
14777a73423d7Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
14778e9f7eabcSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14779b3e38ee4Smrg    ac_cv_prog_ac_ct_OTOOL64="otool64"
14780e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14781b3e38ee4Smrg    break 2
14782b3e38ee4Smrg  fi
14783b3e38ee4Smrgdone
14784a73423d7Smrg  done
14785b3e38ee4SmrgIFS=$as_save_IFS
1478650806d53Smrg
14787b3e38ee4Smrgfi
14788b3e38ee4Smrgfi
14789b3e38ee4Smrgac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14790b3e38ee4Smrgif test -n "$ac_ct_OTOOL64"; then
14791e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14792e9f7eabcSmrgprintf "%s\n" "$ac_ct_OTOOL64" >&6; }
14793b3e38ee4Smrgelse
14794e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14795e9f7eabcSmrgprintf "%s\n" "no" >&6; }
14796b3e38ee4Smrgfi
1479750806d53Smrg
14798b3e38ee4Smrg  if test "x$ac_ct_OTOOL64" = x; then
14799b3e38ee4Smrg    OTOOL64=":"
14800b3e38ee4Smrg  else
14801b3e38ee4Smrg    case $cross_compiling:$ac_tool_warned in
14802b3e38ee4Smrgyes:)
14803e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14804e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14805b3e38ee4Smrgac_tool_warned=yes ;;
14806b3e38ee4Smrgesac
14807b3e38ee4Smrg    OTOOL64=$ac_ct_OTOOL64
14808b3e38ee4Smrg  fi
14809b3e38ee4Smrgelse
14810b3e38ee4Smrg  OTOOL64="$ac_cv_prog_OTOOL64"
14811b3e38ee4Smrgfi
1481250806d53Smrg
1481350806d53Smrg
1481450806d53Smrg
1481550806d53Smrg
1481650806d53Smrg
1481750806d53Smrg
1481850806d53Smrg
14819af1a9c97Smrg
1482050806d53Smrg
1482150806d53Smrg
1482250806d53Smrg
1482350806d53Smrg
14824a18ebfb2Smrg
14825a18ebfb2Smrg
148267965d9acSmrg
1482750806d53Smrg
1482850806d53Smrg
1482950806d53Smrg
1483050806d53Smrg
1483150806d53Smrg
1483250806d53Smrg
14833af1a9c97Smrg
1483450806d53Smrg
148357965d9acSmrg
14836af1a9c97Smrg
14837af1a9c97Smrg
14838af1a9c97Smrg
14839e9f7eabcSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14840e9f7eabcSmrgprintf %s "checking for -single_module linker flag... " >&6; }
14841e9f7eabcSmrgif test ${lt_cv_apple_cc_single_mod+y}
14842e9f7eabcSmrgthen :
14843e9f7eabcSmrg  printf %s "(cached) " >&6
14844e9f7eabcSmrgelse $as_nop
14845b3e38ee4Smrg  lt_cv_apple_cc_single_mod=no
148464a8d91dcSmrg      if test -z "$LT_MULTI_MODULE"; then
14847b3e38ee4Smrg	# By default we will add the -single_module flag. You can override
14848b3e38ee4Smrg	# by either setting the environment variable LT_MULTI_MODULE
14849b3e38ee4Smrg	# non-empty at configure time, or by adding -multi_module to the
14850b3e38ee4Smrg	# link flags.
14851b3e38ee4Smrg	rm -rf libconftest.dylib*
14852b3e38ee4Smrg	echo "int foo(void){return 1;}" > conftest.c
14853b3e38ee4Smrg	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14854b3e38ee4Smrg-dynamiclib -Wl,-single_module conftest.c" >&5
14855b3e38ee4Smrg	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14856b3e38ee4Smrg	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14857b3e38ee4Smrg        _lt_result=$?
14858a73423d7Smrg	# If there is a non-empty error log, and "single_module"
14859a73423d7Smrg	# appears in it, assume the flag caused a linker warning
14860a73423d7Smrg        if test -s conftest.err && $GREP single_module conftest.err; then
14861a73423d7Smrg	  cat conftest.err >&5
14862a73423d7Smrg	# Otherwise, if the output was created with a 0 exit code from
14863a73423d7Smrg	# the compiler, it worked.
148644a8d91dcSmrg	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14865b3e38ee4Smrg	  lt_cv_apple_cc_single_mod=yes
14866b3e38ee4Smrg	else
14867b3e38ee4Smrg	  cat conftest.err >&5
14868b3e38ee4Smrg	fi
14869b3e38ee4Smrg	rm -rf libconftest.dylib*
14870b3e38ee4Smrg	rm -f conftest.*
14871b3e38ee4Smrg      fi
14872b3e38ee4Smrgfi
14873e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14874e9f7eabcSmrgprintf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14875a73423d7Smrg
14876e9f7eabcSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14877e9f7eabcSmrgprintf %s "checking for -exported_symbols_list linker flag... " >&6; }
14878e9f7eabcSmrgif test ${lt_cv_ld_exported_symbols_list+y}
14879e9f7eabcSmrgthen :
14880e9f7eabcSmrg  printf %s "(cached) " >&6
14881e9f7eabcSmrgelse $as_nop
14882b3e38ee4Smrg  lt_cv_ld_exported_symbols_list=no
14883b3e38ee4Smrg      save_LDFLAGS=$LDFLAGS
14884b3e38ee4Smrg      echo "_main" > conftest.sym
14885b3e38ee4Smrg      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14886a73423d7Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14887a73423d7Smrg/* end confdefs.h.  */
14888a73423d7Smrg
14889a73423d7Smrgint
14890e9f7eabcSmrgmain (void)
14891a73423d7Smrg{
14892a73423d7Smrg
14893a73423d7Smrg  ;
14894a73423d7Smrg  return 0;
14895a73423d7Smrg}
14896a73423d7Smrg_ACEOF
14897e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
14898e9f7eabcSmrgthen :
14899b3e38ee4Smrg  lt_cv_ld_exported_symbols_list=yes
14900e9f7eabcSmrgelse $as_nop
14901a73423d7Smrg  lt_cv_ld_exported_symbols_list=no
14902b3e38ee4Smrgfi
14903e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
14904a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
149054a8d91dcSmrg	LDFLAGS=$save_LDFLAGS
14906b3e38ee4Smrg
14907b3e38ee4Smrgfi
14908e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14909e9f7eabcSmrgprintf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
14910a73423d7Smrg
14911e9f7eabcSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14912e9f7eabcSmrgprintf %s "checking for -force_load linker flag... " >&6; }
14913e9f7eabcSmrgif test ${lt_cv_ld_force_load+y}
14914e9f7eabcSmrgthen :
14915e9f7eabcSmrg  printf %s "(cached) " >&6
14916e9f7eabcSmrgelse $as_nop
14917a73423d7Smrg  lt_cv_ld_force_load=no
14918a73423d7Smrg      cat > conftest.c << _LT_EOF
14919a73423d7Smrgint forced_loaded() { return 2;}
14920a73423d7Smrg_LT_EOF
14921a73423d7Smrg      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14922a73423d7Smrg      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14923e9f7eabcSmrg      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14924e9f7eabcSmrg      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14925a73423d7Smrg      echo "$RANLIB libconftest.a" >&5
14926a73423d7Smrg      $RANLIB libconftest.a 2>&5
14927a73423d7Smrg      cat > conftest.c << _LT_EOF
14928a73423d7Smrgint main() { return 0;}
14929a73423d7Smrg_LT_EOF
14930a73423d7Smrg      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14931a73423d7Smrg      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14932a73423d7Smrg      _lt_result=$?
14933a73423d7Smrg      if test -s conftest.err && $GREP force_load conftest.err; then
14934a73423d7Smrg	cat conftest.err >&5
149354a8d91dcSmrg      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14936a73423d7Smrg	lt_cv_ld_force_load=yes
14937a73423d7Smrg      else
14938a73423d7Smrg	cat conftest.err >&5
14939a73423d7Smrg      fi
14940a73423d7Smrg        rm -f conftest.err libconftest.a conftest conftest.c
14941a73423d7Smrg        rm -rf conftest.dSYM
14942a73423d7Smrg
14943a73423d7Smrgfi
14944e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14945e9f7eabcSmrgprintf "%s\n" "$lt_cv_ld_force_load" >&6; }
14946a18ebfb2Smrg    case $host_os in
14947b3e38ee4Smrg    rhapsody* | darwin1.[012])
149484a8d91dcSmrg      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14949b3e38ee4Smrg    darwin1.*)
149504a8d91dcSmrg      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14951e9f7eabcSmrg    darwin*)
14952e9f7eabcSmrg      case $MACOSX_DEPLOYMENT_TARGET,$host in
14953e9f7eabcSmrg        10.[012],*|,*powerpc*-darwin[5-8]*)
14954e9f7eabcSmrg          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14955e9f7eabcSmrg        *)
14956e9f7eabcSmrg          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14957b3e38ee4Smrg      esac
14958a18ebfb2Smrg    ;;
14959a18ebfb2Smrg  esac
149604a8d91dcSmrg    if test yes = "$lt_cv_apple_cc_single_mod"; then
14961b3e38ee4Smrg      _lt_dar_single_mod='$single_module'
14962b3e38ee4Smrg    fi
149634a8d91dcSmrg    if test yes = "$lt_cv_ld_exported_symbols_list"; then
149644a8d91dcSmrg      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14965a18ebfb2Smrg    else
149664a8d91dcSmrg      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14967b3e38ee4Smrg    fi
149684a8d91dcSmrg    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14969b3e38ee4Smrg      _lt_dsymutil='~$DSYMUTIL $lib || :'
14970b3e38ee4Smrg    else
14971b3e38ee4Smrg      _lt_dsymutil=
14972a18ebfb2Smrg    fi
14973a18ebfb2Smrg    ;;
14974a18ebfb2Smrg  esac
149757965d9acSmrg
149764a8d91dcSmrg# func_munge_path_list VARIABLE PATH
149774a8d91dcSmrg# -----------------------------------
149784a8d91dcSmrg# VARIABLE is name of variable containing _space_ separated list of
149794a8d91dcSmrg# directories to be munged by the contents of PATH, which is string
149804a8d91dcSmrg# having a format:
149814a8d91dcSmrg# "DIR[:DIR]:"
149824a8d91dcSmrg#       string "DIR[ DIR]" will be prepended to VARIABLE
149834a8d91dcSmrg# ":DIR[:DIR]"
149844a8d91dcSmrg#       string "DIR[ DIR]" will be appended to VARIABLE
149854a8d91dcSmrg# "DIRP[:DIRP]::[DIRA:]DIRA"
149864a8d91dcSmrg#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
149874a8d91dcSmrg#       "DIRA[ DIRA]" will be appended to VARIABLE
149884a8d91dcSmrg# "DIR[:DIR]"
149894a8d91dcSmrg#       VARIABLE will be replaced by "DIR[ DIR]"
149904a8d91dcSmrgfunc_munge_path_list ()
149914a8d91dcSmrg{
149924a8d91dcSmrg    case x$2 in
149934a8d91dcSmrg    x)
149944a8d91dcSmrg        ;;
149954a8d91dcSmrg    *:)
149964a8d91dcSmrg        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
149974a8d91dcSmrg        ;;
149984a8d91dcSmrg    x:*)
149994a8d91dcSmrg        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
150004a8d91dcSmrg        ;;
150014a8d91dcSmrg    *::*)
150024a8d91dcSmrg        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
150034a8d91dcSmrg        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
150044a8d91dcSmrg        ;;
150054a8d91dcSmrg    *)
150064a8d91dcSmrg        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
150074a8d91dcSmrg        ;;
150084a8d91dcSmrg    esac
150094a8d91dcSmrg}
150104a8d91dcSmrg
15011e9f7eabcSmrgac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15012a73423d7Smrg"
15013e9f7eabcSmrgif test "x$ac_cv_header_dlfcn_h" = xyes
15014e9f7eabcSmrgthen :
15015e9f7eabcSmrg  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15016af1a9c97Smrg
15017b3e38ee4Smrgfi
15018af1a9c97Smrg
15019af1a9c97Smrg
15020af1a9c97Smrg
15021a73423d7Smrg
15022a73423d7Smrg
15023b3e38ee4Smrg# Set options
1502450806d53Smrg
15025af1a9c97Smrg
1502650806d53Smrg
15027b3e38ee4Smrg        enable_dlopen=no
1502850806d53Smrg
1502950806d53Smrg
15030b3e38ee4Smrg  enable_win32_dll=no
1503150806d53Smrg
1503250806d53Smrg
15033b3e38ee4Smrg            # Check whether --enable-shared was given.
15034e9f7eabcSmrgif test ${enable_shared+y}
15035e9f7eabcSmrgthen :
15036b3e38ee4Smrg  enableval=$enable_shared; p=${PACKAGE-default}
15037b3e38ee4Smrg    case $enableval in
15038b3e38ee4Smrg    yes) enable_shared=yes ;;
15039b3e38ee4Smrg    no) enable_shared=no ;;
15040b3e38ee4Smrg    *)
15041b3e38ee4Smrg      enable_shared=no
15042b3e38ee4Smrg      # Look at the argument we got.  We use all the common list separators.
150434a8d91dcSmrg      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15044b3e38ee4Smrg      for pkg in $enableval; do
150454a8d91dcSmrg	IFS=$lt_save_ifs
15046b3e38ee4Smrg	if test "X$pkg" = "X$p"; then
15047b3e38ee4Smrg	  enable_shared=yes
15048b3e38ee4Smrg	fi
15049b3e38ee4Smrg      done
150504a8d91dcSmrg      IFS=$lt_save_ifs
15051b3e38ee4Smrg      ;;
15052a18ebfb2Smrg    esac
15053e9f7eabcSmrgelse $as_nop
15054b3e38ee4Smrg  enable_shared=yes
15055a18ebfb2Smrgfi
1505650806d53Smrg
1505750806d53Smrg
1505850806d53Smrg
1505950806d53Smrg
1506050806d53Smrg
1506150806d53Smrg
1506250806d53Smrg
1506350806d53Smrg
1506450806d53Smrg
1506550806d53Smrg
1506650806d53Smrg
15067b3e38ee4Smrg# Check whether --with-pic was given.
15068e9f7eabcSmrgif test ${with_pic+y}
15069e9f7eabcSmrgthen :
15070a73423d7Smrg  withval=$with_pic; lt_p=${PACKAGE-default}
15071a73423d7Smrg    case $withval in
15072a73423d7Smrg    yes|no) pic_mode=$withval ;;
15073a73423d7Smrg    *)
15074a73423d7Smrg      pic_mode=default
15075a73423d7Smrg      # Look at the argument we got.  We use all the common list separators.
150764a8d91dcSmrg      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15077a73423d7Smrg      for lt_pkg in $withval; do
150784a8d91dcSmrg	IFS=$lt_save_ifs
15079a73423d7Smrg	if test "X$lt_pkg" = "X$lt_p"; then
15080a73423d7Smrg	  pic_mode=yes
15081a73423d7Smrg	fi
15082a73423d7Smrg      done
150834a8d91dcSmrg      IFS=$lt_save_ifs
15084a73423d7Smrg      ;;
15085a73423d7Smrg    esac
15086e9f7eabcSmrgelse $as_nop
15087b3e38ee4Smrg  pic_mode=default
15088b3e38ee4Smrgfi
1508950806d53Smrg
1509050806d53Smrg
1509150806d53Smrg
1509250806d53Smrg
15093a18ebfb2Smrg
15094a18ebfb2Smrg
15095b3e38ee4Smrg
15096b3e38ee4Smrg
15097b3e38ee4Smrg  # Check whether --enable-fast-install was given.
15098e9f7eabcSmrgif test ${enable_fast_install+y}
15099e9f7eabcSmrgthen :
15100b3e38ee4Smrg  enableval=$enable_fast_install; p=${PACKAGE-default}
15101b3e38ee4Smrg    case $enableval in
15102b3e38ee4Smrg    yes) enable_fast_install=yes ;;
15103b3e38ee4Smrg    no) enable_fast_install=no ;;
15104b3e38ee4Smrg    *)
15105b3e38ee4Smrg      enable_fast_install=no
15106b3e38ee4Smrg      # Look at the argument we got.  We use all the common list separators.
151074a8d91dcSmrg      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15108b3e38ee4Smrg      for pkg in $enableval; do
151094a8d91dcSmrg	IFS=$lt_save_ifs
15110b3e38ee4Smrg	if test "X$pkg" = "X$p"; then
15111b3e38ee4Smrg	  enable_fast_install=yes
15112b3e38ee4Smrg	fi
15113b3e38ee4Smrg      done
151144a8d91dcSmrg      IFS=$lt_save_ifs
15115b3e38ee4Smrg      ;;
15116b3e38ee4Smrg    esac
15117e9f7eabcSmrgelse $as_nop
15118b3e38ee4Smrg  enable_fast_install=yes
15119b3e38ee4Smrgfi
15120a18ebfb2Smrg
15121a18ebfb2Smrg
15122a18ebfb2Smrg
15123a18ebfb2Smrg
1512450806d53Smrg
1512550806d53Smrg
1512650806d53Smrg
1512750806d53Smrg
151284a8d91dcSmrg  shared_archive_member_spec=
151294a8d91dcSmrgcase $host,$enable_shared in
151304a8d91dcSmrgpower*-*-aix[5-9]*,yes)
15131e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15132e9f7eabcSmrgprintf %s "checking which variant of shared library versioning to provide... " >&6; }
151334a8d91dcSmrg
151344a8d91dcSmrg# Check whether --with-aix-soname was given.
15135e9f7eabcSmrgif test ${with_aix_soname+y}
15136e9f7eabcSmrgthen :
151374a8d91dcSmrg  withval=$with_aix_soname; case $withval in
151384a8d91dcSmrg    aix|svr4|both)
151394a8d91dcSmrg      ;;
151404a8d91dcSmrg    *)
151414a8d91dcSmrg      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
151424a8d91dcSmrg      ;;
151434a8d91dcSmrg    esac
151444a8d91dcSmrg    lt_cv_with_aix_soname=$with_aix_soname
15145e9f7eabcSmrgelse $as_nop
15146e9f7eabcSmrg  if test ${lt_cv_with_aix_soname+y}
15147e9f7eabcSmrgthen :
15148e9f7eabcSmrg  printf %s "(cached) " >&6
15149e9f7eabcSmrgelse $as_nop
151504a8d91dcSmrg  lt_cv_with_aix_soname=aix
151514a8d91dcSmrgfi
151524a8d91dcSmrg
151534a8d91dcSmrg    with_aix_soname=$lt_cv_with_aix_soname
151544a8d91dcSmrgfi
151554a8d91dcSmrg
15156e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15157e9f7eabcSmrgprintf "%s\n" "$with_aix_soname" >&6; }
151584a8d91dcSmrg  if test aix != "$with_aix_soname"; then
151594a8d91dcSmrg    # For the AIX way of multilib, we name the shared archive member
151604a8d91dcSmrg    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
151614a8d91dcSmrg    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
151624a8d91dcSmrg    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
151634a8d91dcSmrg    # the AIX toolchain works better with OBJECT_MODE set (default 32).
151644a8d91dcSmrg    if test 64 = "${OBJECT_MODE-32}"; then
151654a8d91dcSmrg      shared_archive_member_spec=shr_64
151664a8d91dcSmrg    else
151674a8d91dcSmrg      shared_archive_member_spec=shr
151684a8d91dcSmrg    fi
151694a8d91dcSmrg  fi
151704a8d91dcSmrg  ;;
151714a8d91dcSmrg*)
151724a8d91dcSmrg  with_aix_soname=aix
151734a8d91dcSmrg  ;;
151744a8d91dcSmrgesac
151754a8d91dcSmrg
151764a8d91dcSmrg
151774a8d91dcSmrg
151784a8d91dcSmrg
151794a8d91dcSmrg
151804a8d91dcSmrg
151814a8d91dcSmrg
1518250806d53Smrg
1518350806d53Smrg
15184b3e38ee4Smrg
15185b3e38ee4Smrg# This can be used to rebuild libtool when needed
151864a8d91dcSmrgLIBTOOL_DEPS=$ltmain
15187b3e38ee4Smrg
15188b3e38ee4Smrg# Always use our own libtool.
15189b3e38ee4SmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool'
15190b3e38ee4Smrg
15191b3e38ee4Smrg
15192b3e38ee4Smrg
15193b3e38ee4Smrg
15194b3e38ee4Smrg
15195b3e38ee4Smrg
15196b3e38ee4Smrg
15197b3e38ee4Smrg
15198b3e38ee4Smrg
15199b3e38ee4Smrg
15200b3e38ee4Smrg
15201b3e38ee4Smrg
15202b3e38ee4Smrg
15203b3e38ee4Smrg
15204b3e38ee4Smrg
15205b3e38ee4Smrg
15206b3e38ee4Smrg
15207b3e38ee4Smrg
15208b3e38ee4Smrg
15209a73423d7Smrg
15210a73423d7Smrg
15211a73423d7Smrg
15212a73423d7Smrg
15213a73423d7Smrg
15214b3e38ee4Smrg
15215b3e38ee4Smrg
15216b3e38ee4Smrg
15217b3e38ee4Smrg
15218b3e38ee4Smrg
15219b3e38ee4Smrg
15220b3e38ee4Smrgtest -z "$LN_S" && LN_S="ln -s"
15221b3e38ee4Smrg
15222b3e38ee4Smrg
15223b3e38ee4Smrg
15224b3e38ee4Smrg
15225b3e38ee4Smrg
15226b3e38ee4Smrg
15227b3e38ee4Smrg
15228b3e38ee4Smrg
15229b3e38ee4Smrg
15230b3e38ee4Smrg
15231b3e38ee4Smrg
15232b3e38ee4Smrg
15233b3e38ee4Smrg
15234b3e38ee4Smrg
152354a8d91dcSmrgif test -n "${ZSH_VERSION+set}"; then
15236b3e38ee4Smrg   setopt NO_GLOB_SUBST
15237a18ebfb2Smrgfi
15238b3e38ee4Smrg
15239e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15240e9f7eabcSmrgprintf %s "checking for objdir... " >&6; }
15241e9f7eabcSmrgif test ${lt_cv_objdir+y}
15242e9f7eabcSmrgthen :
15243e9f7eabcSmrg  printf %s "(cached) " >&6
15244e9f7eabcSmrgelse $as_nop
15245b3e38ee4Smrg  rm -f .libs 2>/dev/null
15246b3e38ee4Smrgmkdir .libs 2>/dev/null
15247b3e38ee4Smrgif test -d .libs; then
15248b3e38ee4Smrg  lt_cv_objdir=.libs
15249b3e38ee4Smrgelse
15250b3e38ee4Smrg  # MS-DOS does not allow filenames that begin with a dot.
15251b3e38ee4Smrg  lt_cv_objdir=_libs
15252b3e38ee4Smrgfi
15253b3e38ee4Smrgrmdir .libs 2>/dev/null
15254b3e38ee4Smrgfi
15255e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15256e9f7eabcSmrgprintf "%s\n" "$lt_cv_objdir" >&6; }
15257b3e38ee4Smrgobjdir=$lt_cv_objdir
15258b3e38ee4Smrg
15259b3e38ee4Smrg
15260b3e38ee4Smrg
15261b3e38ee4Smrg
15262b3e38ee4Smrg
15263e9f7eabcSmrgprintf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
1526450806d53Smrg
1526550806d53Smrg
1526650806d53Smrg
1526750806d53Smrg
15268b3e38ee4Smrgcase $host_os in
15269b3e38ee4Smrgaix3*)
15270b3e38ee4Smrg  # AIX sometimes has problems with the GCC collect2 program.  For some
15271b3e38ee4Smrg  # reason, if we set the COLLECT_NAMES environment variable, the problems
15272b3e38ee4Smrg  # vanish in a puff of smoke.
152734a8d91dcSmrg  if test set != "${COLLECT_NAMES+set}"; then
15274b3e38ee4Smrg    COLLECT_NAMES=
15275b3e38ee4Smrg    export COLLECT_NAMES
15276b3e38ee4Smrg  fi
15277b3e38ee4Smrg  ;;
15278b3e38ee4Smrgesac
15279a18ebfb2Smrg
15280b3e38ee4Smrg# Global variables:
15281b3e38ee4Smrgofile=libtool
15282b3e38ee4Smrgcan_build_shared=yes
15283a18ebfb2Smrg
15284e9f7eabcSmrg# All known linkers require a '.a' archive for static linking (except MSVC and
15285e9f7eabcSmrg# ICC, which need '.lib').
15286b3e38ee4Smrglibext=a
15287a18ebfb2Smrg
152884a8d91dcSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld
15289a18ebfb2Smrg
152904a8d91dcSmrgold_CC=$CC
152914a8d91dcSmrgold_CFLAGS=$CFLAGS
15292a18ebfb2Smrg
15293b3e38ee4Smrg# Set sane defaults for various variables
15294b3e38ee4Smrgtest -z "$CC" && CC=cc
15295b3e38ee4Smrgtest -z "$LTCC" && LTCC=$CC
15296b3e38ee4Smrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15297b3e38ee4Smrgtest -z "$LD" && LD=ld
15298b3e38ee4Smrgtest -z "$ac_objext" && ac_objext=o
15299a18ebfb2Smrg
153004a8d91dcSmrgfunc_cc_basename $compiler
153014a8d91dcSmrgcc_basename=$func_cc_basename_result
15302a18ebfb2Smrg
15303b3e38ee4Smrg
15304b3e38ee4Smrg# Only perform the check for file, if the check method requires it
15305b3e38ee4Smrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file
15306b3e38ee4Smrgcase $deplibs_check_method in
15307b3e38ee4Smrgfile_magic*)
15308b3e38ee4Smrg  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15309e9f7eabcSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15310e9f7eabcSmrgprintf %s "checking for ${ac_tool_prefix}file... " >&6; }
15311e9f7eabcSmrgif test ${lt_cv_path_MAGIC_CMD+y}
15312e9f7eabcSmrgthen :
15313e9f7eabcSmrg  printf %s "(cached) " >&6
15314e9f7eabcSmrgelse $as_nop
15315b3e38ee4Smrg  case $MAGIC_CMD in
15316b3e38ee4Smrg[\\/*] |  ?:[\\/]*)
153174a8d91dcSmrg  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15318b3e38ee4Smrg  ;;
15319b3e38ee4Smrg*)
153204a8d91dcSmrg  lt_save_MAGIC_CMD=$MAGIC_CMD
153214a8d91dcSmrg  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15322b3e38ee4Smrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15323b3e38ee4Smrg  for ac_dir in $ac_dummy; do
153244a8d91dcSmrg    IFS=$lt_save_ifs
15325b3e38ee4Smrg    test -z "$ac_dir" && ac_dir=.
153264a8d91dcSmrg    if test -f "$ac_dir/${ac_tool_prefix}file"; then
153274a8d91dcSmrg      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15328b3e38ee4Smrg      if test -n "$file_magic_test_file"; then
15329b3e38ee4Smrg	case $deplibs_check_method in
15330b3e38ee4Smrg	"file_magic "*)
15331b3e38ee4Smrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
153324a8d91dcSmrg	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15333b3e38ee4Smrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15334b3e38ee4Smrg	    $EGREP "$file_magic_regex" > /dev/null; then
15335b3e38ee4Smrg	    :
15336b3e38ee4Smrg	  else
15337b3e38ee4Smrg	    cat <<_LT_EOF 1>&2
15338a18ebfb2Smrg
15339b3e38ee4Smrg*** Warning: the command libtool uses to detect shared libraries,
15340b3e38ee4Smrg*** $file_magic_cmd, produces output that libtool cannot recognize.
15341b3e38ee4Smrg*** The result is that libtool may fail to recognize shared libraries
15342b3e38ee4Smrg*** as such.  This will affect the creation of libtool libraries that
15343b3e38ee4Smrg*** depend on shared libraries, but programs linked with such libtool
15344b3e38ee4Smrg*** libraries will work regardless of this problem.  Nevertheless, you
15345b3e38ee4Smrg*** may want to report the problem to your system manager and/or to
15346b3e38ee4Smrg*** bug-libtool@gnu.org
15347a18ebfb2Smrg
15348b3e38ee4Smrg_LT_EOF
15349b3e38ee4Smrg	  fi ;;
15350b3e38ee4Smrg	esac
15351b3e38ee4Smrg      fi
15352b3e38ee4Smrg      break
15353b3e38ee4Smrg    fi
15354b3e38ee4Smrg  done
153554a8d91dcSmrg  IFS=$lt_save_ifs
153564a8d91dcSmrg  MAGIC_CMD=$lt_save_MAGIC_CMD
15357b3e38ee4Smrg  ;;
15358b3e38ee4Smrgesac
15359b3e38ee4Smrgfi
15360a18ebfb2Smrg
153614a8d91dcSmrgMAGIC_CMD=$lt_cv_path_MAGIC_CMD
15362b3e38ee4Smrgif test -n "$MAGIC_CMD"; then
15363e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15364e9f7eabcSmrgprintf "%s\n" "$MAGIC_CMD" >&6; }
15365b3e38ee4Smrgelse
15366e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15367e9f7eabcSmrgprintf "%s\n" "no" >&6; }
15368b3e38ee4Smrgfi
15369a18ebfb2Smrg
15370a18ebfb2Smrg
15371a18ebfb2Smrg
15372a18ebfb2Smrg
15373a18ebfb2Smrg
15374b3e38ee4Smrgif test -z "$lt_cv_path_MAGIC_CMD"; then
15375b3e38ee4Smrg  if test -n "$ac_tool_prefix"; then
15376e9f7eabcSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15377e9f7eabcSmrgprintf %s "checking for file... " >&6; }
15378e9f7eabcSmrgif test ${lt_cv_path_MAGIC_CMD+y}
15379e9f7eabcSmrgthen :
15380e9f7eabcSmrg  printf %s "(cached) " >&6
15381e9f7eabcSmrgelse $as_nop
15382b3e38ee4Smrg  case $MAGIC_CMD in
15383b3e38ee4Smrg[\\/*] |  ?:[\\/]*)
153844a8d91dcSmrg  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15385b3e38ee4Smrg  ;;
15386b3e38ee4Smrg*)
153874a8d91dcSmrg  lt_save_MAGIC_CMD=$MAGIC_CMD
153884a8d91dcSmrg  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15389b3e38ee4Smrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15390b3e38ee4Smrg  for ac_dir in $ac_dummy; do
153914a8d91dcSmrg    IFS=$lt_save_ifs
15392b3e38ee4Smrg    test -z "$ac_dir" && ac_dir=.
153934a8d91dcSmrg    if test -f "$ac_dir/file"; then
153944a8d91dcSmrg      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15395b3e38ee4Smrg      if test -n "$file_magic_test_file"; then
15396b3e38ee4Smrg	case $deplibs_check_method in
15397b3e38ee4Smrg	"file_magic "*)
15398b3e38ee4Smrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
153994a8d91dcSmrg	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15400b3e38ee4Smrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15401b3e38ee4Smrg	    $EGREP "$file_magic_regex" > /dev/null; then
15402b3e38ee4Smrg	    :
15403b3e38ee4Smrg	  else
15404b3e38ee4Smrg	    cat <<_LT_EOF 1>&2
15405a18ebfb2Smrg
15406b3e38ee4Smrg*** Warning: the command libtool uses to detect shared libraries,
15407b3e38ee4Smrg*** $file_magic_cmd, produces output that libtool cannot recognize.
15408b3e38ee4Smrg*** The result is that libtool may fail to recognize shared libraries
15409b3e38ee4Smrg*** as such.  This will affect the creation of libtool libraries that
15410b3e38ee4Smrg*** depend on shared libraries, but programs linked with such libtool
15411b3e38ee4Smrg*** libraries will work regardless of this problem.  Nevertheless, you
15412b3e38ee4Smrg*** may want to report the problem to your system manager and/or to
15413b3e38ee4Smrg*** bug-libtool@gnu.org
15414a18ebfb2Smrg
15415b3e38ee4Smrg_LT_EOF
15416b3e38ee4Smrg	  fi ;;
15417b3e38ee4Smrg	esac
15418b3e38ee4Smrg      fi
15419b3e38ee4Smrg      break
15420b3e38ee4Smrg    fi
15421b3e38ee4Smrg  done
154224a8d91dcSmrg  IFS=$lt_save_ifs
154234a8d91dcSmrg  MAGIC_CMD=$lt_save_MAGIC_CMD
15424b3e38ee4Smrg  ;;
15425b3e38ee4Smrgesac
15426a18ebfb2Smrgfi
15427a18ebfb2Smrg
154284a8d91dcSmrgMAGIC_CMD=$lt_cv_path_MAGIC_CMD
15429b3e38ee4Smrgif test -n "$MAGIC_CMD"; then
15430e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15431e9f7eabcSmrgprintf "%s\n" "$MAGIC_CMD" >&6; }
15432a18ebfb2Smrgelse
15433e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15434e9f7eabcSmrgprintf "%s\n" "no" >&6; }
15435b3e38ee4Smrgfi
15436a18ebfb2Smrg
15437a18ebfb2Smrg
15438a18ebfb2Smrg  else
15439b3e38ee4Smrg    MAGIC_CMD=:
15440a18ebfb2Smrg  fi
15441a18ebfb2Smrgfi
15442a18ebfb2Smrg
15443a18ebfb2Smrg  fi
15444a18ebfb2Smrg  ;;
15445a18ebfb2Smrgesac
15446a18ebfb2Smrg
15447b3e38ee4Smrg# Use C for the default configuration in the libtool script
15448a18ebfb2Smrg
154494a8d91dcSmrglt_save_CC=$CC
15450b3e38ee4Smrgac_ext=c
15451b3e38ee4Smrgac_cpp='$CPP $CPPFLAGS'
15452b3e38ee4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15453b3e38ee4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15454b3e38ee4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
15455a18ebfb2Smrg
15456a18ebfb2Smrg
15457b3e38ee4Smrg# Source file extension for C test sources.
15458b3e38ee4Smrgac_ext=c
15459a18ebfb2Smrg
15460b3e38ee4Smrg# Object file extension for compiled C test sources.
15461b3e38ee4Smrgobjext=o
15462b3e38ee4Smrgobjext=$objext
15463a18ebfb2Smrg
15464b3e38ee4Smrg# Code to be used in simple compile tests
15465b3e38ee4Smrglt_simple_compile_test_code="int some_variable = 0;"
15466a18ebfb2Smrg
15467b3e38ee4Smrg# Code to be used in simple link tests
15468b3e38ee4Smrglt_simple_link_test_code='int main(){return(0);}'
15469a18ebfb2Smrg
15470a18ebfb2Smrg
15471a18ebfb2Smrg
15472a18ebfb2Smrg
15473a18ebfb2Smrg
15474a18ebfb2Smrg
15475a18ebfb2Smrg
15476b3e38ee4Smrg# If no C compiler was specified, use CC.
15477b3e38ee4SmrgLTCC=${LTCC-"$CC"}
15478a18ebfb2Smrg
15479b3e38ee4Smrg# If no C compiler flags were specified, use CFLAGS.
15480b3e38ee4SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15481a18ebfb2Smrg
15482b3e38ee4Smrg# Allow CC to be a program name with arguments.
15483b3e38ee4Smrgcompiler=$CC
15484a18ebfb2Smrg
15485b3e38ee4Smrg# Save the default compiler, since it gets overwritten when the other
15486b3e38ee4Smrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15487b3e38ee4Smrgcompiler_DEFAULT=$CC
15488a18ebfb2Smrg
15489b3e38ee4Smrg# save warnings/boilerplate of simple test code
15490b3e38ee4Smrgac_outfile=conftest.$ac_objext
15491b3e38ee4Smrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
15492b3e38ee4Smrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15493b3e38ee4Smrg_lt_compiler_boilerplate=`cat conftest.err`
15494b3e38ee4Smrg$RM conftest*
15495a18ebfb2Smrg
15496b3e38ee4Smrgac_outfile=conftest.$ac_objext
15497b3e38ee4Smrgecho "$lt_simple_link_test_code" >conftest.$ac_ext
15498b3e38ee4Smrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15499b3e38ee4Smrg_lt_linker_boilerplate=`cat conftest.err`
15500b3e38ee4Smrg$RM -r conftest*
15501a18ebfb2Smrg
15502a18ebfb2Smrg
15503b3e38ee4Smrgif test -n "$compiler"; then
15504a18ebfb2Smrg
15505b3e38ee4Smrglt_prog_compiler_no_builtin_flag=
15506a18ebfb2Smrg
155074a8d91dcSmrgif test yes = "$GCC"; then
15508a73423d7Smrg  case $cc_basename in
15509a73423d7Smrg  nvcc*)
15510a73423d7Smrg    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15511a73423d7Smrg  *)
15512a73423d7Smrg    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15513a73423d7Smrg  esac
15514a18ebfb2Smrg
15515e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15516e9f7eabcSmrgprintf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15517e9f7eabcSmrgif test ${lt_cv_prog_compiler_rtti_exceptions+y}
15518e9f7eabcSmrgthen :
15519e9f7eabcSmrg  printf %s "(cached) " >&6
15520e9f7eabcSmrgelse $as_nop
15521b3e38ee4Smrg  lt_cv_prog_compiler_rtti_exceptions=no
15522b3e38ee4Smrg   ac_outfile=conftest.$ac_objext
15523b3e38ee4Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
155244a8d91dcSmrg   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
15525b3e38ee4Smrg   # Insert the option either (1) after the last *FLAGS variable, or
15526b3e38ee4Smrg   # (2) before a word containing "conftest.", or (3) at the end.
15527b3e38ee4Smrg   # Note that $ac_compile itself does not contain backslashes and begins
15528b3e38ee4Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
15529b3e38ee4Smrg   # The option is referenced via a variable to avoid confusing sed.
15530b3e38ee4Smrg   lt_compile=`echo "$ac_compile" | $SED \
15531b3e38ee4Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15532b3e38ee4Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15533b3e38ee4Smrg   -e 's:$: $lt_compiler_flag:'`
15534a73423d7Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15535b3e38ee4Smrg   (eval "$lt_compile" 2>conftest.err)
15536b3e38ee4Smrg   ac_status=$?
15537b3e38ee4Smrg   cat conftest.err >&5
15538a73423d7Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539b3e38ee4Smrg   if (exit $ac_status) && test -s "$ac_outfile"; then
15540b3e38ee4Smrg     # The compiler can only warn and ignore the option if not recognized
15541b3e38ee4Smrg     # So say no if there are warnings other than the usual output.
15542a73423d7Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15543b3e38ee4Smrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15544b3e38ee4Smrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15545b3e38ee4Smrg       lt_cv_prog_compiler_rtti_exceptions=yes
15546b3e38ee4Smrg     fi
15547b3e38ee4Smrg   fi
15548b3e38ee4Smrg   $RM conftest*
15549a18ebfb2Smrg
15550b3e38ee4Smrgfi
15551e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15552e9f7eabcSmrgprintf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15553a18ebfb2Smrg
155544a8d91dcSmrgif test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15555b3e38ee4Smrg    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15556b3e38ee4Smrgelse
15557b3e38ee4Smrg    :
15558b3e38ee4Smrgfi
15559a18ebfb2Smrg
15560b3e38ee4Smrgfi
15561a18ebfb2Smrg
15562a18ebfb2Smrg
15563a18ebfb2Smrg
15564a18ebfb2Smrg
15565a18ebfb2Smrg
15566a18ebfb2Smrg
15567b3e38ee4Smrg  lt_prog_compiler_wl=
15568b3e38ee4Smrglt_prog_compiler_pic=
15569b3e38ee4Smrglt_prog_compiler_static=
15570a18ebfb2Smrg
15571a18ebfb2Smrg
155724a8d91dcSmrg  if test yes = "$GCC"; then
15573b3e38ee4Smrg    lt_prog_compiler_wl='-Wl,'
15574b3e38ee4Smrg    lt_prog_compiler_static='-static'
15575a18ebfb2Smrg
15576b3e38ee4Smrg    case $host_os in
15577b3e38ee4Smrg      aix*)
15578b3e38ee4Smrg      # All AIX code is PIC.
155794a8d91dcSmrg      if test ia64 = "$host_cpu"; then
15580b3e38ee4Smrg	# AIX 5 now supports IA64 processor
15581b3e38ee4Smrg	lt_prog_compiler_static='-Bstatic'
15582b3e38ee4Smrg      fi
155834a8d91dcSmrg      lt_prog_compiler_pic='-fPIC'
15584b3e38ee4Smrg      ;;
15585a18ebfb2Smrg
15586b3e38ee4Smrg    amigaos*)
15587b3e38ee4Smrg      case $host_cpu in
15588b3e38ee4Smrg      powerpc)
15589b3e38ee4Smrg            # see comment about AmigaOS4 .so support
15590b3e38ee4Smrg            lt_prog_compiler_pic='-fPIC'
15591b3e38ee4Smrg        ;;
15592b3e38ee4Smrg      m68k)
15593b3e38ee4Smrg            # FIXME: we need at least 68020 code to build shared libraries, but
155944a8d91dcSmrg            # adding the '-m68020' flag to GCC prevents building anything better,
155954a8d91dcSmrg            # like '-m68040'.
15596b3e38ee4Smrg            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15597b3e38ee4Smrg        ;;
15598b3e38ee4Smrg      esac
15599b3e38ee4Smrg      ;;
15600a18ebfb2Smrg
15601b3e38ee4Smrg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15602b3e38ee4Smrg      # PIC is the default for these OSes.
15603b3e38ee4Smrg      ;;
15604a18ebfb2Smrg
15605b3e38ee4Smrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
15606b3e38ee4Smrg      # This hack is so that the source file can tell whether it is being
15607b3e38ee4Smrg      # built for inclusion in a dll (and should export symbols for example).
15608b3e38ee4Smrg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15609b3e38ee4Smrg      # (--disable-auto-import) libraries
15610b3e38ee4Smrg      lt_prog_compiler_pic='-DDLL_EXPORT'
156114a8d91dcSmrg      case $host_os in
156124a8d91dcSmrg      os2*)
156134a8d91dcSmrg	lt_prog_compiler_static='$wl-static'
156144a8d91dcSmrg	;;
156154a8d91dcSmrg      esac
15616b3e38ee4Smrg      ;;
15617a18ebfb2Smrg
15618b3e38ee4Smrg    darwin* | rhapsody*)
15619b3e38ee4Smrg      # PIC is the default on this platform
15620b3e38ee4Smrg      # Common symbols not allowed in MH_DYLIB files
15621b3e38ee4Smrg      lt_prog_compiler_pic='-fno-common'
15622b3e38ee4Smrg      ;;
15623a18ebfb2Smrg
15624a73423d7Smrg    haiku*)
15625a73423d7Smrg      # PIC is the default for Haiku.
15626a73423d7Smrg      # The "-static" flag exists, but is broken.
15627a73423d7Smrg      lt_prog_compiler_static=
15628a73423d7Smrg      ;;
15629a73423d7Smrg
15630b3e38ee4Smrg    hpux*)
15631b3e38ee4Smrg      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15632b3e38ee4Smrg      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15633b3e38ee4Smrg      # sets the default TLS model and affects inlining.
15634b3e38ee4Smrg      case $host_cpu in
15635b3e38ee4Smrg      hppa*64*)
15636b3e38ee4Smrg	# +Z the default
15637b3e38ee4Smrg	;;
15638b3e38ee4Smrg      *)
15639b3e38ee4Smrg	lt_prog_compiler_pic='-fPIC'
15640b3e38ee4Smrg	;;
15641b3e38ee4Smrg      esac
15642b3e38ee4Smrg      ;;
15643a18ebfb2Smrg
15644b3e38ee4Smrg    interix[3-9]*)
15645b3e38ee4Smrg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15646b3e38ee4Smrg      # Instead, we relocate shared libraries at runtime.
15647b3e38ee4Smrg      ;;
15648a18ebfb2Smrg
15649b3e38ee4Smrg    msdosdjgpp*)
15650b3e38ee4Smrg      # Just because we use GCC doesn't mean we suddenly get shared libraries
15651b3e38ee4Smrg      # on systems that don't support them.
15652b3e38ee4Smrg      lt_prog_compiler_can_build_shared=no
15653b3e38ee4Smrg      enable_shared=no
15654b3e38ee4Smrg      ;;
15655a18ebfb2Smrg
15656b3e38ee4Smrg    *nto* | *qnx*)
15657b3e38ee4Smrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
15658b3e38ee4Smrg      # it will coredump.
15659b3e38ee4Smrg      lt_prog_compiler_pic='-fPIC -shared'
15660b3e38ee4Smrg      ;;
15661a18ebfb2Smrg
15662b3e38ee4Smrg    sysv4*MP*)
15663b3e38ee4Smrg      if test -d /usr/nec; then
15664b3e38ee4Smrg	lt_prog_compiler_pic=-Kconform_pic
15665b3e38ee4Smrg      fi
15666b3e38ee4Smrg      ;;
15667a18ebfb2Smrg
15668b3e38ee4Smrg    *)
15669b3e38ee4Smrg      lt_prog_compiler_pic='-fPIC'
15670b3e38ee4Smrg      ;;
15671b3e38ee4Smrg    esac
15672a73423d7Smrg
15673a73423d7Smrg    case $cc_basename in
15674a73423d7Smrg    nvcc*) # Cuda Compiler Driver 2.2
15675a73423d7Smrg      lt_prog_compiler_wl='-Xlinker '
15676a73423d7Smrg      if test -n "$lt_prog_compiler_pic"; then
15677a73423d7Smrg        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15678a73423d7Smrg      fi
15679a73423d7Smrg      ;;
15680a73423d7Smrg    esac
15681b3e38ee4Smrg  else
15682b3e38ee4Smrg    # PORTME Check for flag to pass linker flags through the system compiler.
15683b3e38ee4Smrg    case $host_os in
15684b3e38ee4Smrg    aix*)
15685b3e38ee4Smrg      lt_prog_compiler_wl='-Wl,'
156864a8d91dcSmrg      if test ia64 = "$host_cpu"; then
15687b3e38ee4Smrg	# AIX 5 now supports IA64 processor
15688b3e38ee4Smrg	lt_prog_compiler_static='-Bstatic'
15689b3e38ee4Smrg      else
15690b3e38ee4Smrg	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15691b3e38ee4Smrg      fi
15692b3e38ee4Smrg      ;;
15693a18ebfb2Smrg
156944a8d91dcSmrg    darwin* | rhapsody*)
156954a8d91dcSmrg      # PIC is the default on this platform
156964a8d91dcSmrg      # Common symbols not allowed in MH_DYLIB files
156974a8d91dcSmrg      lt_prog_compiler_pic='-fno-common'
156984a8d91dcSmrg      case $cc_basename in
156994a8d91dcSmrg      nagfor*)
157004a8d91dcSmrg        # NAG Fortran compiler
157014a8d91dcSmrg        lt_prog_compiler_wl='-Wl,-Wl,,'
157024a8d91dcSmrg        lt_prog_compiler_pic='-PIC'
157034a8d91dcSmrg        lt_prog_compiler_static='-Bstatic'
157044a8d91dcSmrg        ;;
157054a8d91dcSmrg      esac
157064a8d91dcSmrg      ;;
157074a8d91dcSmrg
15708b3e38ee4Smrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
15709b3e38ee4Smrg      # This hack is so that the source file can tell whether it is being
15710b3e38ee4Smrg      # built for inclusion in a dll (and should export symbols for example).
15711b3e38ee4Smrg      lt_prog_compiler_pic='-DDLL_EXPORT'
157124a8d91dcSmrg      case $host_os in
157134a8d91dcSmrg      os2*)
157144a8d91dcSmrg	lt_prog_compiler_static='$wl-static'
157154a8d91dcSmrg	;;
157164a8d91dcSmrg      esac
15717b3e38ee4Smrg      ;;
15718a18ebfb2Smrg
15719b3e38ee4Smrg    hpux9* | hpux10* | hpux11*)
15720b3e38ee4Smrg      lt_prog_compiler_wl='-Wl,'
15721b3e38ee4Smrg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15722b3e38ee4Smrg      # not for PA HP-UX.
15723b3e38ee4Smrg      case $host_cpu in
15724b3e38ee4Smrg      hppa*64*|ia64*)
15725b3e38ee4Smrg	# +Z the default
15726b3e38ee4Smrg	;;
15727b3e38ee4Smrg      *)
15728b3e38ee4Smrg	lt_prog_compiler_pic='+Z'
15729b3e38ee4Smrg	;;
15730b3e38ee4Smrg      esac
15731b3e38ee4Smrg      # Is there a better lt_prog_compiler_static that works with the bundled CC?
157324a8d91dcSmrg      lt_prog_compiler_static='$wl-a ${wl}archive'
15733b3e38ee4Smrg      ;;
15734a18ebfb2Smrg
15735b3e38ee4Smrg    irix5* | irix6* | nonstopux*)
15736b3e38ee4Smrg      lt_prog_compiler_wl='-Wl,'
15737b3e38ee4Smrg      # PIC (with -KPIC) is the default.
15738b3e38ee4Smrg      lt_prog_compiler_static='-non_shared'
15739b3e38ee4Smrg      ;;
15740a18ebfb2Smrg
157414a8d91dcSmrg    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15742b3e38ee4Smrg      case $cc_basename in
157434a8d91dcSmrg      # old Intel for x86_64, which still supported -KPIC.
15744b3e38ee4Smrg      ecc*)
15745b3e38ee4Smrg	lt_prog_compiler_wl='-Wl,'
15746b3e38ee4Smrg	lt_prog_compiler_pic='-KPIC'
15747b3e38ee4Smrg	lt_prog_compiler_static='-static'
15748b3e38ee4Smrg        ;;
15749b3e38ee4Smrg      # icc used to be incompatible with GCC.
15750b3e38ee4Smrg      # ICC 10 doesn't accept -KPIC any more.
15751b3e38ee4Smrg      icc* | ifort*)
15752b3e38ee4Smrg	lt_prog_compiler_wl='-Wl,'
15753b3e38ee4Smrg	lt_prog_compiler_pic='-fPIC'
15754b3e38ee4Smrg	lt_prog_compiler_static='-static'
15755b3e38ee4Smrg        ;;
15756b3e38ee4Smrg      # Lahey Fortran 8.1.
15757b3e38ee4Smrg      lf95*)
15758b3e38ee4Smrg	lt_prog_compiler_wl='-Wl,'
15759b3e38ee4Smrg	lt_prog_compiler_pic='--shared'
15760b3e38ee4Smrg	lt_prog_compiler_static='--static'
15761b3e38ee4Smrg	;;
15762a73423d7Smrg      nagfor*)
15763a73423d7Smrg	# NAG Fortran compiler
15764a73423d7Smrg	lt_prog_compiler_wl='-Wl,-Wl,,'
15765a73423d7Smrg	lt_prog_compiler_pic='-PIC'
15766a73423d7Smrg	lt_prog_compiler_static='-Bstatic'
15767a73423d7Smrg	;;
157684a8d91dcSmrg      tcc*)
157694a8d91dcSmrg	# Fabrice Bellard et al's Tiny C Compiler
157704a8d91dcSmrg	lt_prog_compiler_wl='-Wl,'
157714a8d91dcSmrg	lt_prog_compiler_pic='-fPIC'
157724a8d91dcSmrg	lt_prog_compiler_static='-static'
157734a8d91dcSmrg	;;
15774a73423d7Smrg      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15775b3e38ee4Smrg        # Portland Group compilers (*not* the Pentium gcc compiler,
15776b3e38ee4Smrg	# which looks to be a dead project)
15777b3e38ee4Smrg	lt_prog_compiler_wl='-Wl,'
15778b3e38ee4Smrg	lt_prog_compiler_pic='-fpic'
15779b3e38ee4Smrg	lt_prog_compiler_static='-Bstatic'
15780b3e38ee4Smrg        ;;
15781b3e38ee4Smrg      ccc*)
15782b3e38ee4Smrg        lt_prog_compiler_wl='-Wl,'
15783b3e38ee4Smrg        # All Alpha code is PIC.
15784b3e38ee4Smrg        lt_prog_compiler_static='-non_shared'
15785b3e38ee4Smrg        ;;
15786a73423d7Smrg      xl* | bgxl* | bgf* | mpixl*)
15787a73423d7Smrg	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15788b3e38ee4Smrg	lt_prog_compiler_wl='-Wl,'
15789b3e38ee4Smrg	lt_prog_compiler_pic='-qpic'
15790b3e38ee4Smrg	lt_prog_compiler_static='-qstaticlink'
15791b3e38ee4Smrg	;;
15792b3e38ee4Smrg      *)
15793e9f7eabcSmrg	case `$CC -V 2>&1 | $SED 5q` in
15794a73423d7Smrg	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15795a73423d7Smrg	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15796a73423d7Smrg	  lt_prog_compiler_pic='-KPIC'
15797a73423d7Smrg	  lt_prog_compiler_static='-Bstatic'
15798a73423d7Smrg	  lt_prog_compiler_wl=''
15799a73423d7Smrg	  ;;
15800a73423d7Smrg	*Sun\ F* | *Sun*Fortran*)
15801a73423d7Smrg	  lt_prog_compiler_pic='-KPIC'
15802a73423d7Smrg	  lt_prog_compiler_static='-Bstatic'
15803a73423d7Smrg	  lt_prog_compiler_wl='-Qoption ld '
15804a73423d7Smrg	  ;;
15805b3e38ee4Smrg	*Sun\ C*)
15806b3e38ee4Smrg	  # Sun C 5.9
15807b3e38ee4Smrg	  lt_prog_compiler_pic='-KPIC'
15808b3e38ee4Smrg	  lt_prog_compiler_static='-Bstatic'
15809b3e38ee4Smrg	  lt_prog_compiler_wl='-Wl,'
15810b3e38ee4Smrg	  ;;
15811a73423d7Smrg        *Intel*\ [CF]*Compiler*)
15812a73423d7Smrg	  lt_prog_compiler_wl='-Wl,'
15813a73423d7Smrg	  lt_prog_compiler_pic='-fPIC'
15814a73423d7Smrg	  lt_prog_compiler_static='-static'
15815a73423d7Smrg	  ;;
15816a73423d7Smrg	*Portland\ Group*)
15817a73423d7Smrg	  lt_prog_compiler_wl='-Wl,'
15818a73423d7Smrg	  lt_prog_compiler_pic='-fpic'
15819b3e38ee4Smrg	  lt_prog_compiler_static='-Bstatic'
15820b3e38ee4Smrg	  ;;
15821b3e38ee4Smrg	esac
15822b3e38ee4Smrg	;;
15823b3e38ee4Smrg      esac
15824b3e38ee4Smrg      ;;
15825a18ebfb2Smrg
15826b3e38ee4Smrg    newsos6)
15827b3e38ee4Smrg      lt_prog_compiler_pic='-KPIC'
15828b3e38ee4Smrg      lt_prog_compiler_static='-Bstatic'
15829b3e38ee4Smrg      ;;
15830a18ebfb2Smrg
15831b3e38ee4Smrg    *nto* | *qnx*)
15832b3e38ee4Smrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
15833b3e38ee4Smrg      # it will coredump.
15834b3e38ee4Smrg      lt_prog_compiler_pic='-fPIC -shared'
15835b3e38ee4Smrg      ;;
15836a18ebfb2Smrg
15837b3e38ee4Smrg    osf3* | osf4* | osf5*)
15838b3e38ee4Smrg      lt_prog_compiler_wl='-Wl,'
15839b3e38ee4Smrg      # All OSF/1 code is PIC.
15840b3e38ee4Smrg      lt_prog_compiler_static='-non_shared'
15841b3e38ee4Smrg      ;;
15842a18ebfb2Smrg
15843b3e38ee4Smrg    rdos*)
15844b3e38ee4Smrg      lt_prog_compiler_static='-non_shared'
15845b3e38ee4Smrg      ;;
15846a18ebfb2Smrg
15847b3e38ee4Smrg    solaris*)
15848b3e38ee4Smrg      lt_prog_compiler_pic='-KPIC'
15849b3e38ee4Smrg      lt_prog_compiler_static='-Bstatic'
15850b3e38ee4Smrg      case $cc_basename in
15851a73423d7Smrg      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15852b3e38ee4Smrg	lt_prog_compiler_wl='-Qoption ld ';;
15853b3e38ee4Smrg      *)
15854b3e38ee4Smrg	lt_prog_compiler_wl='-Wl,';;
15855b3e38ee4Smrg      esac
15856b3e38ee4Smrg      ;;
15857a18ebfb2Smrg
15858b3e38ee4Smrg    sunos4*)
15859b3e38ee4Smrg      lt_prog_compiler_wl='-Qoption ld '
15860b3e38ee4Smrg      lt_prog_compiler_pic='-PIC'
15861b3e38ee4Smrg      lt_prog_compiler_static='-Bstatic'
15862b3e38ee4Smrg      ;;
15863a18ebfb2Smrg
15864b3e38ee4Smrg    sysv4 | sysv4.2uw2* | sysv4.3*)
15865b3e38ee4Smrg      lt_prog_compiler_wl='-Wl,'
15866b3e38ee4Smrg      lt_prog_compiler_pic='-KPIC'
15867b3e38ee4Smrg      lt_prog_compiler_static='-Bstatic'
15868b3e38ee4Smrg      ;;
15869a18ebfb2Smrg
15870b3e38ee4Smrg    sysv4*MP*)
158714a8d91dcSmrg      if test -d /usr/nec; then
15872b3e38ee4Smrg	lt_prog_compiler_pic='-Kconform_pic'
15873b3e38ee4Smrg	lt_prog_compiler_static='-Bstatic'
15874b3e38ee4Smrg      fi
15875b3e38ee4Smrg      ;;
15876a18ebfb2Smrg
15877b3e38ee4Smrg    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15878b3e38ee4Smrg      lt_prog_compiler_wl='-Wl,'
15879b3e38ee4Smrg      lt_prog_compiler_pic='-KPIC'
15880b3e38ee4Smrg      lt_prog_compiler_static='-Bstatic'
15881b3e38ee4Smrg      ;;
15882a18ebfb2Smrg
15883b3e38ee4Smrg    unicos*)
15884b3e38ee4Smrg      lt_prog_compiler_wl='-Wl,'
15885b3e38ee4Smrg      lt_prog_compiler_can_build_shared=no
15886b3e38ee4Smrg      ;;
15887a18ebfb2Smrg
15888b3e38ee4Smrg    uts4*)
15889b3e38ee4Smrg      lt_prog_compiler_pic='-pic'
15890b3e38ee4Smrg      lt_prog_compiler_static='-Bstatic'
15891b3e38ee4Smrg      ;;
15892a18ebfb2Smrg
15893b3e38ee4Smrg    *)
15894b3e38ee4Smrg      lt_prog_compiler_can_build_shared=no
15895b3e38ee4Smrg      ;;
15896b3e38ee4Smrg    esac
15897b3e38ee4Smrg  fi
15898a18ebfb2Smrg
15899b3e38ee4Smrgcase $host_os in
159004a8d91dcSmrg  # For platforms that do not support PIC, -DPIC is meaningless:
15901b3e38ee4Smrg  *djgpp*)
15902b3e38ee4Smrg    lt_prog_compiler_pic=
15903b3e38ee4Smrg    ;;
15904b3e38ee4Smrg  *)
15905b3e38ee4Smrg    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15906b3e38ee4Smrg    ;;
15907b3e38ee4Smrgesac
15908a18ebfb2Smrg
15909e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15910e9f7eabcSmrgprintf %s "checking for $compiler option to produce PIC... " >&6; }
15911e9f7eabcSmrgif test ${lt_cv_prog_compiler_pic+y}
15912e9f7eabcSmrgthen :
15913e9f7eabcSmrg  printf %s "(cached) " >&6
15914e9f7eabcSmrgelse $as_nop
15915a73423d7Smrg  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15916a73423d7Smrgfi
15917e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15918e9f7eabcSmrgprintf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15919a73423d7Smrglt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15920a18ebfb2Smrg
15921b3e38ee4Smrg#
15922b3e38ee4Smrg# Check to make sure the PIC flag actually works.
15923b3e38ee4Smrg#
15924b3e38ee4Smrgif test -n "$lt_prog_compiler_pic"; then
15925e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15926e9f7eabcSmrgprintf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15927e9f7eabcSmrgif test ${lt_cv_prog_compiler_pic_works+y}
15928e9f7eabcSmrgthen :
15929e9f7eabcSmrg  printf %s "(cached) " >&6
15930e9f7eabcSmrgelse $as_nop
15931b3e38ee4Smrg  lt_cv_prog_compiler_pic_works=no
15932b3e38ee4Smrg   ac_outfile=conftest.$ac_objext
15933b3e38ee4Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
159344a8d91dcSmrg   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15935b3e38ee4Smrg   # Insert the option either (1) after the last *FLAGS variable, or
15936b3e38ee4Smrg   # (2) before a word containing "conftest.", or (3) at the end.
15937b3e38ee4Smrg   # Note that $ac_compile itself does not contain backslashes and begins
15938b3e38ee4Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
15939b3e38ee4Smrg   # The option is referenced via a variable to avoid confusing sed.
15940b3e38ee4Smrg   lt_compile=`echo "$ac_compile" | $SED \
15941b3e38ee4Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15942b3e38ee4Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15943b3e38ee4Smrg   -e 's:$: $lt_compiler_flag:'`
15944a73423d7Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15945b3e38ee4Smrg   (eval "$lt_compile" 2>conftest.err)
15946b3e38ee4Smrg   ac_status=$?
15947b3e38ee4Smrg   cat conftest.err >&5
15948a73423d7Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949b3e38ee4Smrg   if (exit $ac_status) && test -s "$ac_outfile"; then
15950b3e38ee4Smrg     # The compiler can only warn and ignore the option if not recognized
15951b3e38ee4Smrg     # So say no if there are warnings other than the usual output.
15952a73423d7Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15953b3e38ee4Smrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15954b3e38ee4Smrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15955b3e38ee4Smrg       lt_cv_prog_compiler_pic_works=yes
15956b3e38ee4Smrg     fi
15957b3e38ee4Smrg   fi
15958b3e38ee4Smrg   $RM conftest*
15959a18ebfb2Smrg
15960b3e38ee4Smrgfi
15961e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15962e9f7eabcSmrgprintf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15963a18ebfb2Smrg
159644a8d91dcSmrgif test yes = "$lt_cv_prog_compiler_pic_works"; then
15965b3e38ee4Smrg    case $lt_prog_compiler_pic in
15966b3e38ee4Smrg     "" | " "*) ;;
15967b3e38ee4Smrg     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15968b3e38ee4Smrg     esac
15969b3e38ee4Smrgelse
15970b3e38ee4Smrg    lt_prog_compiler_pic=
15971b3e38ee4Smrg     lt_prog_compiler_can_build_shared=no
15972b3e38ee4Smrgfi
15973a18ebfb2Smrg
15974b3e38ee4Smrgfi
15975a18ebfb2Smrg
15976a18ebfb2Smrg
15977a18ebfb2Smrg
15978a18ebfb2Smrg
15979a18ebfb2Smrg
15980a18ebfb2Smrg
15981a73423d7Smrg
15982a73423d7Smrg
15983a73423d7Smrg
15984a73423d7Smrg
15985a73423d7Smrg
15986b3e38ee4Smrg#
15987b3e38ee4Smrg# Check to make sure the static flag actually works.
15988b3e38ee4Smrg#
15989b3e38ee4Smrgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15990e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15991e9f7eabcSmrgprintf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15992e9f7eabcSmrgif test ${lt_cv_prog_compiler_static_works+y}
15993e9f7eabcSmrgthen :
15994e9f7eabcSmrg  printf %s "(cached) " >&6
15995e9f7eabcSmrgelse $as_nop
15996b3e38ee4Smrg  lt_cv_prog_compiler_static_works=no
159974a8d91dcSmrg   save_LDFLAGS=$LDFLAGS
15998b3e38ee4Smrg   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15999b3e38ee4Smrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16000b3e38ee4Smrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16001b3e38ee4Smrg     # The linker can only warn and ignore the option if not recognized
16002b3e38ee4Smrg     # So say no if there are warnings
16003b3e38ee4Smrg     if test -s conftest.err; then
16004b3e38ee4Smrg       # Append any errors to the config.log.
16005b3e38ee4Smrg       cat conftest.err 1>&5
16006a73423d7Smrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16007b3e38ee4Smrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16008b3e38ee4Smrg       if diff conftest.exp conftest.er2 >/dev/null; then
16009b3e38ee4Smrg         lt_cv_prog_compiler_static_works=yes
16010b3e38ee4Smrg       fi
16011b3e38ee4Smrg     else
16012b3e38ee4Smrg       lt_cv_prog_compiler_static_works=yes
16013b3e38ee4Smrg     fi
16014b3e38ee4Smrg   fi
16015b3e38ee4Smrg   $RM -r conftest*
160164a8d91dcSmrg   LDFLAGS=$save_LDFLAGS
16017a18ebfb2Smrg
16018b3e38ee4Smrgfi
16019e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16020e9f7eabcSmrgprintf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
16021a18ebfb2Smrg
160224a8d91dcSmrgif test yes = "$lt_cv_prog_compiler_static_works"; then
16023b3e38ee4Smrg    :
16024b3e38ee4Smrgelse
16025b3e38ee4Smrg    lt_prog_compiler_static=
16026b3e38ee4Smrgfi
16027a18ebfb2Smrg
16028a18ebfb2Smrg
16029a18ebfb2Smrg
16030a18ebfb2Smrg
16031a18ebfb2Smrg
16032a18ebfb2Smrg
16033a18ebfb2Smrg
16034e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16035e9f7eabcSmrgprintf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16036e9f7eabcSmrgif test ${lt_cv_prog_compiler_c_o+y}
16037e9f7eabcSmrgthen :
16038e9f7eabcSmrg  printf %s "(cached) " >&6
16039e9f7eabcSmrgelse $as_nop
16040b3e38ee4Smrg  lt_cv_prog_compiler_c_o=no
16041b3e38ee4Smrg   $RM -r conftest 2>/dev/null
16042b3e38ee4Smrg   mkdir conftest
16043b3e38ee4Smrg   cd conftest
16044b3e38ee4Smrg   mkdir out
16045b3e38ee4Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16046a18ebfb2Smrg
16047b3e38ee4Smrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
16048b3e38ee4Smrg   # Insert the option either (1) after the last *FLAGS variable, or
16049b3e38ee4Smrg   # (2) before a word containing "conftest.", or (3) at the end.
16050b3e38ee4Smrg   # Note that $ac_compile itself does not contain backslashes and begins
16051b3e38ee4Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
16052b3e38ee4Smrg   lt_compile=`echo "$ac_compile" | $SED \
16053b3e38ee4Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16054b3e38ee4Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16055b3e38ee4Smrg   -e 's:$: $lt_compiler_flag:'`
16056a73423d7Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16057b3e38ee4Smrg   (eval "$lt_compile" 2>out/conftest.err)
16058b3e38ee4Smrg   ac_status=$?
16059b3e38ee4Smrg   cat out/conftest.err >&5
16060a73423d7Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061b3e38ee4Smrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16062b3e38ee4Smrg   then
16063b3e38ee4Smrg     # The compiler can only warn and ignore the option if not recognized
16064b3e38ee4Smrg     # So say no if there are warnings
16065a73423d7Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16066b3e38ee4Smrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16067b3e38ee4Smrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16068b3e38ee4Smrg       lt_cv_prog_compiler_c_o=yes
16069b3e38ee4Smrg     fi
16070b3e38ee4Smrg   fi
16071b3e38ee4Smrg   chmod u+w . 2>&5
16072b3e38ee4Smrg   $RM conftest*
16073b3e38ee4Smrg   # SGI C++ compiler will create directory out/ii_files/ for
16074b3e38ee4Smrg   # template instantiation
16075b3e38ee4Smrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16076b3e38ee4Smrg   $RM out/* && rmdir out
16077b3e38ee4Smrg   cd ..
16078b3e38ee4Smrg   $RM -r conftest
16079b3e38ee4Smrg   $RM conftest*
16080a18ebfb2Smrg
16081b3e38ee4Smrgfi
16082e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16083e9f7eabcSmrgprintf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16084a18ebfb2Smrg
16085a18ebfb2Smrg
16086a18ebfb2Smrg
16087a18ebfb2Smrg
16088a18ebfb2Smrg
16089a18ebfb2Smrg
16090e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16091e9f7eabcSmrgprintf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16092e9f7eabcSmrgif test ${lt_cv_prog_compiler_c_o+y}
16093e9f7eabcSmrgthen :
16094e9f7eabcSmrg  printf %s "(cached) " >&6
16095e9f7eabcSmrgelse $as_nop
16096b3e38ee4Smrg  lt_cv_prog_compiler_c_o=no
16097b3e38ee4Smrg   $RM -r conftest 2>/dev/null
16098b3e38ee4Smrg   mkdir conftest
16099b3e38ee4Smrg   cd conftest
16100b3e38ee4Smrg   mkdir out
16101b3e38ee4Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16102a18ebfb2Smrg
16103b3e38ee4Smrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
16104b3e38ee4Smrg   # Insert the option either (1) after the last *FLAGS variable, or
16105b3e38ee4Smrg   # (2) before a word containing "conftest.", or (3) at the end.
16106b3e38ee4Smrg   # Note that $ac_compile itself does not contain backslashes and begins
16107b3e38ee4Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
16108b3e38ee4Smrg   lt_compile=`echo "$ac_compile" | $SED \
16109b3e38ee4Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16110b3e38ee4Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16111b3e38ee4Smrg   -e 's:$: $lt_compiler_flag:'`
16112a73423d7Smrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16113b3e38ee4Smrg   (eval "$lt_compile" 2>out/conftest.err)
16114b3e38ee4Smrg   ac_status=$?
16115b3e38ee4Smrg   cat out/conftest.err >&5
16116a73423d7Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117b3e38ee4Smrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16118b3e38ee4Smrg   then
16119b3e38ee4Smrg     # The compiler can only warn and ignore the option if not recognized
16120b3e38ee4Smrg     # So say no if there are warnings
16121a73423d7Smrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16122b3e38ee4Smrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16123b3e38ee4Smrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16124b3e38ee4Smrg       lt_cv_prog_compiler_c_o=yes
16125b3e38ee4Smrg     fi
16126b3e38ee4Smrg   fi
16127b3e38ee4Smrg   chmod u+w . 2>&5
16128b3e38ee4Smrg   $RM conftest*
16129b3e38ee4Smrg   # SGI C++ compiler will create directory out/ii_files/ for
16130b3e38ee4Smrg   # template instantiation
16131b3e38ee4Smrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16132b3e38ee4Smrg   $RM out/* && rmdir out
16133b3e38ee4Smrg   cd ..
16134b3e38ee4Smrg   $RM -r conftest
16135b3e38ee4Smrg   $RM conftest*
16136a18ebfb2Smrg
16137b3e38ee4Smrgfi
16138e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16139e9f7eabcSmrgprintf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16140a18ebfb2Smrg
16141a18ebfb2Smrg
16142a18ebfb2Smrg
16143a18ebfb2Smrg
161444a8d91dcSmrghard_links=nottested
161454a8d91dcSmrgif test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16146b3e38ee4Smrg  # do not overwrite the value of need_locks provided by the user
16147e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16148e9f7eabcSmrgprintf %s "checking if we can lock with hard links... " >&6; }
16149b3e38ee4Smrg  hard_links=yes
16150b3e38ee4Smrg  $RM conftest*
16151b3e38ee4Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16152b3e38ee4Smrg  touch conftest.a
16153b3e38ee4Smrg  ln conftest.a conftest.b 2>&5 || hard_links=no
16154b3e38ee4Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16155e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16156e9f7eabcSmrgprintf "%s\n" "$hard_links" >&6; }
161574a8d91dcSmrg  if test no = "$hard_links"; then
16158e9f7eabcSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16159e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16160b3e38ee4Smrg    need_locks=warn
16161b3e38ee4Smrg  fi
16162b3e38ee4Smrgelse
16163b3e38ee4Smrg  need_locks=no
16164b3e38ee4Smrgfi
16165a18ebfb2Smrg
16166a18ebfb2Smrg
16167a18ebfb2Smrg
16168a18ebfb2Smrg
16169a18ebfb2Smrg
16170a18ebfb2Smrg
16171e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16172e9f7eabcSmrgprintf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16173a18ebfb2Smrg
16174b3e38ee4Smrg  runpath_var=
16175b3e38ee4Smrg  allow_undefined_flag=
16176b3e38ee4Smrg  always_export_symbols=no
16177b3e38ee4Smrg  archive_cmds=
16178b3e38ee4Smrg  archive_expsym_cmds=
16179b3e38ee4Smrg  compiler_needs_object=no
16180b3e38ee4Smrg  enable_shared_with_static_runtimes=no
16181b3e38ee4Smrg  export_dynamic_flag_spec=
16182b3e38ee4Smrg  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16183b3e38ee4Smrg  hardcode_automatic=no
16184b3e38ee4Smrg  hardcode_direct=no
16185b3e38ee4Smrg  hardcode_direct_absolute=no
16186b3e38ee4Smrg  hardcode_libdir_flag_spec=
16187b3e38ee4Smrg  hardcode_libdir_separator=
16188b3e38ee4Smrg  hardcode_minus_L=no
16189b3e38ee4Smrg  hardcode_shlibpath_var=unsupported
16190b3e38ee4Smrg  inherit_rpath=no
16191b3e38ee4Smrg  link_all_deplibs=unknown
16192b3e38ee4Smrg  module_cmds=
16193b3e38ee4Smrg  module_expsym_cmds=
16194b3e38ee4Smrg  old_archive_from_new_cmds=
16195b3e38ee4Smrg  old_archive_from_expsyms_cmds=
16196b3e38ee4Smrg  thread_safe_flag_spec=
16197b3e38ee4Smrg  whole_archive_flag_spec=
16198b3e38ee4Smrg  # include_expsyms should be a list of space-separated symbols to be *always*
16199b3e38ee4Smrg  # included in the symbol list
16200b3e38ee4Smrg  include_expsyms=
16201b3e38ee4Smrg  # exclude_expsyms can be an extended regexp of symbols to exclude
162024a8d91dcSmrg  # it will be wrapped by ' (' and ')$', so one must not match beginning or
162034a8d91dcSmrg  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
162044a8d91dcSmrg  # as well as any symbol that contains 'd'.
16205b3e38ee4Smrg  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16206b3e38ee4Smrg  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16207b3e38ee4Smrg  # platforms (ab)use it in PIC code, but their linkers get confused if
16208b3e38ee4Smrg  # the symbol is explicitly referenced.  Since portable code cannot
16209b3e38ee4Smrg  # rely on this symbol name, it's probably fine to never include it in
16210b3e38ee4Smrg  # preloaded symbol tables.
16211b3e38ee4Smrg  # Exclude shared library initialization/finalization symbols.
16212b3e38ee4Smrg  extract_expsyms_cmds=
16213a18ebfb2Smrg
16214b3e38ee4Smrg  case $host_os in
16215b3e38ee4Smrg  cygwin* | mingw* | pw32* | cegcc*)
16216e9f7eabcSmrg    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16217b3e38ee4Smrg    # When not using gcc, we currently assume that we are using
16218e9f7eabcSmrg    # Microsoft Visual C++ or Intel C++ Compiler.
162194a8d91dcSmrg    if test yes != "$GCC"; then
16220b3e38ee4Smrg      with_gnu_ld=no
16221b3e38ee4Smrg    fi
16222b3e38ee4Smrg    ;;
16223b3e38ee4Smrg  interix*)
16224e9f7eabcSmrg    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16225b3e38ee4Smrg    with_gnu_ld=yes
16226b3e38ee4Smrg    ;;
162274a8d91dcSmrg  openbsd* | bitrig*)
16228b3e38ee4Smrg    with_gnu_ld=no
16229b3e38ee4Smrg    ;;
16230b3e38ee4Smrg  esac
16231a18ebfb2Smrg
16232b3e38ee4Smrg  ld_shlibs=yes
16233a73423d7Smrg
16234a73423d7Smrg  # On some targets, GNU ld is compatible enough with the native linker
16235a73423d7Smrg  # that we're better off using the native interface for both.
16236a73423d7Smrg  lt_use_gnu_ld_interface=no
162374a8d91dcSmrg  if test yes = "$with_gnu_ld"; then
16238a73423d7Smrg    case $host_os in
16239a73423d7Smrg      aix*)
16240a73423d7Smrg	# The AIX port of GNU ld has always aspired to compatibility
16241a73423d7Smrg	# with the native linker.  However, as the warning in the GNU ld
16242a73423d7Smrg	# block says, versions before 2.19.5* couldn't really create working
16243a73423d7Smrg	# shared libraries, regardless of the interface used.
16244a73423d7Smrg	case `$LD -v 2>&1` in
16245a73423d7Smrg	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16246a73423d7Smrg	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16247a73423d7Smrg	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16248a73423d7Smrg	  *)
16249a73423d7Smrg	    lt_use_gnu_ld_interface=yes
16250a73423d7Smrg	    ;;
16251a73423d7Smrg	esac
16252a73423d7Smrg	;;
16253a73423d7Smrg      *)
16254a73423d7Smrg	lt_use_gnu_ld_interface=yes
16255a73423d7Smrg	;;
16256a73423d7Smrg    esac
16257a73423d7Smrg  fi
16258a73423d7Smrg
162594a8d91dcSmrg  if test yes = "$lt_use_gnu_ld_interface"; then
16260b3e38ee4Smrg    # If archive_cmds runs LD, not CC, wlarc should be empty
162614a8d91dcSmrg    wlarc='$wl'
16262a18ebfb2Smrg
16263b3e38ee4Smrg    # Set some defaults for GNU ld with shared library support. These
16264b3e38ee4Smrg    # are reset later if shared libraries are not supported. Putting them
16265b3e38ee4Smrg    # here allows them to be overridden if necessary.
16266b3e38ee4Smrg    runpath_var=LD_RUN_PATH
162674a8d91dcSmrg    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
162684a8d91dcSmrg    export_dynamic_flag_spec='$wl--export-dynamic'
16269b3e38ee4Smrg    # ancient GNU ld didn't support --whole-archive et. al.
16270b3e38ee4Smrg    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
162714a8d91dcSmrg      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16272a18ebfb2Smrg    else
16273b3e38ee4Smrg      whole_archive_flag_spec=
16274a18ebfb2Smrg    fi
16275b3e38ee4Smrg    supports_anon_versioning=no
16276e9f7eabcSmrg    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16277a73423d7Smrg      *GNU\ gold*) supports_anon_versioning=yes ;;
16278b3e38ee4Smrg      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16279b3e38ee4Smrg      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16280b3e38ee4Smrg      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16281b3e38ee4Smrg      *\ 2.11.*) ;; # other 2.11 versions
16282b3e38ee4Smrg      *) supports_anon_versioning=yes ;;
16283a18ebfb2Smrg    esac
16284a18ebfb2Smrg
16285b3e38ee4Smrg    # See if GNU ld supports shared libraries.
16286b3e38ee4Smrg    case $host_os in
16287b3e38ee4Smrg    aix[3-9]*)
16288b3e38ee4Smrg      # On AIX/PPC, the GNU linker is very broken
162894a8d91dcSmrg      if test ia64 != "$host_cpu"; then
16290b3e38ee4Smrg	ld_shlibs=no
16291b3e38ee4Smrg	cat <<_LT_EOF 1>&2
16292a18ebfb2Smrg
16293a73423d7Smrg*** Warning: the GNU linker, at least up to release 2.19, is reported
16294b3e38ee4Smrg*** to be unable to reliably create shared libraries on AIX.
16295b3e38ee4Smrg*** Therefore, libtool is disabling shared libraries support.  If you
16296a73423d7Smrg*** really care for shared libraries, you may want to install binutils
16297a73423d7Smrg*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16298a73423d7Smrg*** You will then need to restart the configuration process.
16299a18ebfb2Smrg
16300b3e38ee4Smrg_LT_EOF
16301b3e38ee4Smrg      fi
16302b3e38ee4Smrg      ;;
16303a18ebfb2Smrg
16304b3e38ee4Smrg    amigaos*)
16305b3e38ee4Smrg      case $host_cpu in
16306b3e38ee4Smrg      powerpc)
16307b3e38ee4Smrg            # see comment about AmigaOS4 .so support
163084a8d91dcSmrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16309b3e38ee4Smrg            archive_expsym_cmds=''
16310b3e38ee4Smrg        ;;
16311b3e38ee4Smrg      m68k)
16312b3e38ee4Smrg            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)'
16313b3e38ee4Smrg            hardcode_libdir_flag_spec='-L$libdir'
16314b3e38ee4Smrg            hardcode_minus_L=yes
16315b3e38ee4Smrg        ;;
16316b3e38ee4Smrg      esac
16317b3e38ee4Smrg      ;;
16318a18ebfb2Smrg
16319b3e38ee4Smrg    beos*)
16320b3e38ee4Smrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16321b3e38ee4Smrg	allow_undefined_flag=unsupported
16322b3e38ee4Smrg	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16323b3e38ee4Smrg	# support --undefined.  This deserves some investigation.  FIXME
163244a8d91dcSmrg	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16325b3e38ee4Smrg      else
16326b3e38ee4Smrg	ld_shlibs=no
16327b3e38ee4Smrg      fi
16328b3e38ee4Smrg      ;;
16329a18ebfb2Smrg
16330b3e38ee4Smrg    cygwin* | mingw* | pw32* | cegcc*)
16331b3e38ee4Smrg      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16332b3e38ee4Smrg      # as there is no search path for DLLs.
16333b3e38ee4Smrg      hardcode_libdir_flag_spec='-L$libdir'
163344a8d91dcSmrg      export_dynamic_flag_spec='$wl--export-all-symbols'
16335b3e38ee4Smrg      allow_undefined_flag=unsupported
16336b3e38ee4Smrg      always_export_symbols=no
16337b3e38ee4Smrg      enable_shared_with_static_runtimes=yes
16338a73423d7Smrg      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'
16339a73423d7Smrg      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16340a18ebfb2Smrg
16341b3e38ee4Smrg      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
163424a8d91dcSmrg        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
163434a8d91dcSmrg	# If the export-symbols file already is a .def file, use it as
163444a8d91dcSmrg	# is; otherwise, prepend EXPORTS...
163454a8d91dcSmrg	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
163464a8d91dcSmrg          cp $export_symbols $output_objdir/$soname.def;
163474a8d91dcSmrg        else
163484a8d91dcSmrg          echo EXPORTS > $output_objdir/$soname.def;
163494a8d91dcSmrg          cat $export_symbols >> $output_objdir/$soname.def;
163504a8d91dcSmrg        fi~
163514a8d91dcSmrg        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16352b3e38ee4Smrg      else
16353b3e38ee4Smrg	ld_shlibs=no
16354b3e38ee4Smrg      fi
16355b3e38ee4Smrg      ;;
16356a18ebfb2Smrg
16357a73423d7Smrg    haiku*)
163584a8d91dcSmrg      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16359a73423d7Smrg      link_all_deplibs=yes
16360a73423d7Smrg      ;;
16361a73423d7Smrg
163624a8d91dcSmrg    os2*)
163634a8d91dcSmrg      hardcode_libdir_flag_spec='-L$libdir'
163644a8d91dcSmrg      hardcode_minus_L=yes
163654a8d91dcSmrg      allow_undefined_flag=unsupported
163664a8d91dcSmrg      shrext_cmds=.dll
163674a8d91dcSmrg      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
163684a8d91dcSmrg	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
163694a8d91dcSmrg	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
163704a8d91dcSmrg	$ECHO EXPORTS >> $output_objdir/$libname.def~
163714a8d91dcSmrg	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
163724a8d91dcSmrg	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
163734a8d91dcSmrg	emximp -o $lib $output_objdir/$libname.def'
163744a8d91dcSmrg      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
163754a8d91dcSmrg	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
163764a8d91dcSmrg	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
163774a8d91dcSmrg	$ECHO EXPORTS >> $output_objdir/$libname.def~
163784a8d91dcSmrg	prefix_cmds="$SED"~
163794a8d91dcSmrg	if test EXPORTS = "`$SED 1q $export_symbols`"; then
163804a8d91dcSmrg	  prefix_cmds="$prefix_cmds -e 1d";
163814a8d91dcSmrg	fi~
163824a8d91dcSmrg	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
163834a8d91dcSmrg	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
163844a8d91dcSmrg	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
163854a8d91dcSmrg	emximp -o $lib $output_objdir/$libname.def'
163864a8d91dcSmrg      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
163874a8d91dcSmrg      enable_shared_with_static_runtimes=yes
16388e9f7eabcSmrg      file_list_spec='@'
163894a8d91dcSmrg      ;;
163904a8d91dcSmrg
16391b3e38ee4Smrg    interix[3-9]*)
16392b3e38ee4Smrg      hardcode_direct=no
16393b3e38ee4Smrg      hardcode_shlibpath_var=no
163944a8d91dcSmrg      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
163954a8d91dcSmrg      export_dynamic_flag_spec='$wl-E'
16396b3e38ee4Smrg      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16397b3e38ee4Smrg      # Instead, shared libraries are loaded at an image base (0x10000000 by
16398b3e38ee4Smrg      # default) and relocated if they conflict, which is a slow very memory
16399b3e38ee4Smrg      # consuming and fragmenting process.  To avoid this, we pick a random,
16400b3e38ee4Smrg      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16401b3e38ee4Smrg      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
164024a8d91dcSmrg      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16403e9f7eabcSmrg      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'
16404b3e38ee4Smrg      ;;
16405a18ebfb2Smrg
16406a73423d7Smrg    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16407b3e38ee4Smrg      tmp_diet=no
164084a8d91dcSmrg      if test linux-dietlibc = "$host_os"; then
16409b3e38ee4Smrg	case $cc_basename in
16410b3e38ee4Smrg	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16411b3e38ee4Smrg	esac
16412b3e38ee4Smrg      fi
16413b3e38ee4Smrg      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
164144a8d91dcSmrg	 && test no = "$tmp_diet"
16415b3e38ee4Smrg      then
16416a73423d7Smrg	tmp_addflag=' $pic_flag'
16417b3e38ee4Smrg	tmp_sharedflag='-shared'
16418b3e38ee4Smrg	case $cc_basename,$host_cpu in
16419b3e38ee4Smrg        pgcc*)				# Portland Group C compiler
164204a8d91dcSmrg	  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'
16421b3e38ee4Smrg	  tmp_addflag=' $pic_flag'
16422b3e38ee4Smrg	  ;;
16423a73423d7Smrg	pgf77* | pgf90* | pgf95* | pgfortran*)
16424a73423d7Smrg					# Portland Group f77 and f90 compilers
164254a8d91dcSmrg	  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'
16426b3e38ee4Smrg	  tmp_addflag=' $pic_flag -Mnomain' ;;
16427b3e38ee4Smrg	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16428b3e38ee4Smrg	  tmp_addflag=' -i_dynamic' ;;
16429b3e38ee4Smrg	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16430b3e38ee4Smrg	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16431b3e38ee4Smrg	ifc* | ifort*)			# Intel Fortran compiler
16432b3e38ee4Smrg	  tmp_addflag=' -nofor_main' ;;
16433b3e38ee4Smrg	lf95*)				# Lahey Fortran 8.1
16434b3e38ee4Smrg	  whole_archive_flag_spec=
16435b3e38ee4Smrg	  tmp_sharedflag='--shared' ;;
164364a8d91dcSmrg        nagfor*)                        # NAGFOR 5.3
164374a8d91dcSmrg          tmp_sharedflag='-Wl,-shared' ;;
16438a73423d7Smrg	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16439b3e38ee4Smrg	  tmp_sharedflag='-qmkshrobj'
16440b3e38ee4Smrg	  tmp_addflag= ;;
16441a73423d7Smrg	nvcc*)	# Cuda Compiler Driver 2.2
164424a8d91dcSmrg	  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'
16443a73423d7Smrg	  compiler_needs_object=yes
16444a73423d7Smrg	  ;;
16445b3e38ee4Smrg	esac
16446e9f7eabcSmrg	case `$CC -V 2>&1 | $SED 5q` in
16447b3e38ee4Smrg	*Sun\ C*)			# Sun C 5.9
164484a8d91dcSmrg	  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'
16449b3e38ee4Smrg	  compiler_needs_object=yes
16450b3e38ee4Smrg	  tmp_sharedflag='-G' ;;
16451b3e38ee4Smrg	*Sun\ F*)			# Sun Fortran 8.3
16452b3e38ee4Smrg	  tmp_sharedflag='-G' ;;
16453b3e38ee4Smrg	esac
164544a8d91dcSmrg	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16455a18ebfb2Smrg
164564a8d91dcSmrg        if test yes = "$supports_anon_versioning"; then
16457b3e38ee4Smrg          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16458e9f7eabcSmrg            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
164594a8d91dcSmrg            echo "local: *; };" >> $output_objdir/$libname.ver~
164604a8d91dcSmrg            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16461b3e38ee4Smrg        fi
16462a18ebfb2Smrg
16463b3e38ee4Smrg	case $cc_basename in
164644a8d91dcSmrg	tcc*)
164654a8d91dcSmrg	  export_dynamic_flag_spec='-rdynamic'
164664a8d91dcSmrg	  ;;
16467a73423d7Smrg	xlf* | bgf* | bgxlf* | mpixlf*)
16468b3e38ee4Smrg	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16469b3e38ee4Smrg	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
164704a8d91dcSmrg	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16471a73423d7Smrg	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
164724a8d91dcSmrg	  if test yes = "$supports_anon_versioning"; then
16473b3e38ee4Smrg	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16474e9f7eabcSmrg              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
164754a8d91dcSmrg              echo "local: *; };" >> $output_objdir/$libname.ver~
164764a8d91dcSmrg              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16477b3e38ee4Smrg	  fi
16478b3e38ee4Smrg	  ;;
16479b3e38ee4Smrg	esac
16480b3e38ee4Smrg      else
16481b3e38ee4Smrg        ld_shlibs=no
16482b3e38ee4Smrg      fi
16483b3e38ee4Smrg      ;;
16484a18ebfb2Smrg
16485e9f7eabcSmrg    netbsd*)
16486b3e38ee4Smrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16487b3e38ee4Smrg	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16488b3e38ee4Smrg	wlarc=
16489b3e38ee4Smrg      else
164904a8d91dcSmrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
164914a8d91dcSmrg	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16492b3e38ee4Smrg      fi
16493b3e38ee4Smrg      ;;
16494a18ebfb2Smrg
16495b3e38ee4Smrg    solaris*)
16496b3e38ee4Smrg      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16497b3e38ee4Smrg	ld_shlibs=no
16498b3e38ee4Smrg	cat <<_LT_EOF 1>&2
16499a18ebfb2Smrg
16500b3e38ee4Smrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16501b3e38ee4Smrg*** create shared libraries on Solaris systems.  Therefore, libtool
16502b3e38ee4Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
16503b3e38ee4Smrg*** binutils to release 2.9.1 or newer.  Another option is to modify
16504b3e38ee4Smrg*** your PATH or compiler configuration so that the native linker is
16505b3e38ee4Smrg*** used, and then restart.
16506a18ebfb2Smrg
16507b3e38ee4Smrg_LT_EOF
16508b3e38ee4Smrg      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
165094a8d91dcSmrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
165104a8d91dcSmrg	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16511b3e38ee4Smrg      else
16512b3e38ee4Smrg	ld_shlibs=no
16513b3e38ee4Smrg      fi
16514b3e38ee4Smrg      ;;
16515a18ebfb2Smrg
16516b3e38ee4Smrg    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16517b3e38ee4Smrg      case `$LD -v 2>&1` in
16518b3e38ee4Smrg        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16519b3e38ee4Smrg	ld_shlibs=no
16520b3e38ee4Smrg	cat <<_LT_EOF 1>&2
16521a18ebfb2Smrg
165224a8d91dcSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16523b3e38ee4Smrg*** reliably create shared libraries on SCO systems.  Therefore, libtool
16524b3e38ee4Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
16525b3e38ee4Smrg*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16526b3e38ee4Smrg*** your PATH or compiler configuration so that the native linker is
16527b3e38ee4Smrg*** used, and then restart.
16528a18ebfb2Smrg
16529b3e38ee4Smrg_LT_EOF
16530a18ebfb2Smrg	;;
16531b3e38ee4Smrg	*)
16532b3e38ee4Smrg	  # For security reasons, it is highly recommended that you always
16533b3e38ee4Smrg	  # use absolute paths for naming shared libraries, and exclude the
16534b3e38ee4Smrg	  # DT_RUNPATH tag from executables and libraries.  But doing so
16535b3e38ee4Smrg	  # requires that you compile everything twice, which is a pain.
16536b3e38ee4Smrg	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
165374a8d91dcSmrg	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
165384a8d91dcSmrg	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
165394a8d91dcSmrg	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16540b3e38ee4Smrg	  else
16541b3e38ee4Smrg	    ld_shlibs=no
16542b3e38ee4Smrg	  fi
16543a18ebfb2Smrg	;;
16544a18ebfb2Smrg      esac
16545b3e38ee4Smrg      ;;
16546a18ebfb2Smrg
16547b3e38ee4Smrg    sunos4*)
16548b3e38ee4Smrg      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16549b3e38ee4Smrg      wlarc=
16550b3e38ee4Smrg      hardcode_direct=yes
16551b3e38ee4Smrg      hardcode_shlibpath_var=no
16552b3e38ee4Smrg      ;;
16553a18ebfb2Smrg
16554b3e38ee4Smrg    *)
16555b3e38ee4Smrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
165564a8d91dcSmrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
165574a8d91dcSmrg	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16558b3e38ee4Smrg      else
16559b3e38ee4Smrg	ld_shlibs=no
16560b3e38ee4Smrg      fi
16561b3e38ee4Smrg      ;;
16562b3e38ee4Smrg    esac
16563a18ebfb2Smrg
165644a8d91dcSmrg    if test no = "$ld_shlibs"; then
16565b3e38ee4Smrg      runpath_var=
16566b3e38ee4Smrg      hardcode_libdir_flag_spec=
16567b3e38ee4Smrg      export_dynamic_flag_spec=
16568b3e38ee4Smrg      whole_archive_flag_spec=
16569a18ebfb2Smrg    fi
16570a18ebfb2Smrg  else
16571b3e38ee4Smrg    # PORTME fill in a description of your system's linker (not GNU ld)
16572b3e38ee4Smrg    case $host_os in
16573b3e38ee4Smrg    aix3*)
16574b3e38ee4Smrg      allow_undefined_flag=unsupported
16575b3e38ee4Smrg      always_export_symbols=yes
16576b3e38ee4Smrg      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'
16577b3e38ee4Smrg      # Note: this linker hardcodes the directories in LIBPATH if there
16578b3e38ee4Smrg      # are no directories specified by -L.
16579b3e38ee4Smrg      hardcode_minus_L=yes
165804a8d91dcSmrg      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16581b3e38ee4Smrg	# Neither direct hardcoding nor static linking is supported with a
16582b3e38ee4Smrg	# broken collect2.
16583b3e38ee4Smrg	hardcode_direct=unsupported
16584b3e38ee4Smrg      fi
16585b3e38ee4Smrg      ;;
16586a18ebfb2Smrg
16587b3e38ee4Smrg    aix[4-9]*)
165884a8d91dcSmrg      if test ia64 = "$host_cpu"; then
16589b3e38ee4Smrg	# On IA64, the linker does run time linking by default, so we don't
16590b3e38ee4Smrg	# have to do anything special.
16591b3e38ee4Smrg	aix_use_runtimelinking=no
16592b3e38ee4Smrg	exp_sym_flag='-Bexport'
165934a8d91dcSmrg	no_entry_flag=
16594b3e38ee4Smrg      else
16595b3e38ee4Smrg	# If we're using GNU nm, then we don't want the "-C" option.
165964a8d91dcSmrg	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
165974a8d91dcSmrg	# Without the "-l" option, or with the "-B" option, AIX nm treats
165984a8d91dcSmrg	# weak defined symbols like other global defined symbols, whereas
165994a8d91dcSmrg	# GNU nm marks them as "W".
166004a8d91dcSmrg	# While the 'weak' keyword is ignored in the Export File, we need
166014a8d91dcSmrg	# it in the Import File for the 'aix-soname' feature, so we have
166024a8d91dcSmrg	# to replace the "-B" option with "-P" for AIX nm.
16603b3e38ee4Smrg	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
166044a8d91dcSmrg	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16605b3e38ee4Smrg	else
16606e9f7eabcSmrg	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16607b3e38ee4Smrg	fi
16608b3e38ee4Smrg	aix_use_runtimelinking=no
16609a18ebfb2Smrg
16610b3e38ee4Smrg	# Test if we are trying to use run time linking or normal
16611b3e38ee4Smrg	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
166124a8d91dcSmrg	# have runtime linking enabled, and use it for executables.
166134a8d91dcSmrg	# For shared libraries, we enable/disable runtime linking
166144a8d91dcSmrg	# depending on the kind of the shared library created -
166154a8d91dcSmrg	# when "with_aix_soname,aix_use_runtimelinking" is:
166164a8d91dcSmrg	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
166174a8d91dcSmrg	# "aix,yes"  lib.so          shared, rtl:yes, for executables
166184a8d91dcSmrg	#            lib.a           static archive
166194a8d91dcSmrg	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
166204a8d91dcSmrg	#            lib.a(lib.so.V) shared, rtl:no,  for executables
166214a8d91dcSmrg	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
166224a8d91dcSmrg	#            lib.a(lib.so.V) shared, rtl:no
166234a8d91dcSmrg	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
166244a8d91dcSmrg	#            lib.a           static archive
16625b3e38ee4Smrg	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16626b3e38ee4Smrg	  for ld_flag in $LDFLAGS; do
166274a8d91dcSmrg	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16628a18ebfb2Smrg	    aix_use_runtimelinking=yes
16629a18ebfb2Smrg	    break
16630b3e38ee4Smrg	  fi
16631b3e38ee4Smrg	  done
166324a8d91dcSmrg	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
166334a8d91dcSmrg	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
166344a8d91dcSmrg	    # so we don't have lib.a shared libs to link our executables.
166354a8d91dcSmrg	    # We have to force runtime linking in this case.
166364a8d91dcSmrg	    aix_use_runtimelinking=yes
166374a8d91dcSmrg	    LDFLAGS="$LDFLAGS -Wl,-brtl"
166384a8d91dcSmrg	  fi
16639b3e38ee4Smrg	  ;;
16640b3e38ee4Smrg	esac
16641a18ebfb2Smrg
16642b3e38ee4Smrg	exp_sym_flag='-bexport'
16643b3e38ee4Smrg	no_entry_flag='-bnoentry'
16644b3e38ee4Smrg      fi
16645b3e38ee4Smrg
16646b3e38ee4Smrg      # When large executables or shared objects are built, AIX ld can
16647b3e38ee4Smrg      # have problems creating the table of contents.  If linking a library
16648b3e38ee4Smrg      # or program results in "error TOC overflow" add -mminimal-toc to
16649b3e38ee4Smrg      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16650b3e38ee4Smrg      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16651b3e38ee4Smrg
16652b3e38ee4Smrg      archive_cmds=''
16653b3e38ee4Smrg      hardcode_direct=yes
16654b3e38ee4Smrg      hardcode_direct_absolute=yes
16655b3e38ee4Smrg      hardcode_libdir_separator=':'
16656b3e38ee4Smrg      link_all_deplibs=yes
166574a8d91dcSmrg      file_list_spec='$wl-f,'
166584a8d91dcSmrg      case $with_aix_soname,$aix_use_runtimelinking in
166594a8d91dcSmrg      aix,*) ;; # traditional, no import file
166604a8d91dcSmrg      svr4,* | *,yes) # use import file
166614a8d91dcSmrg	# The Import File defines what to hardcode.
166624a8d91dcSmrg	hardcode_direct=no
166634a8d91dcSmrg	hardcode_direct_absolute=no
166644a8d91dcSmrg	;;
166654a8d91dcSmrg      esac
16666a18ebfb2Smrg
166674a8d91dcSmrg      if test yes = "$GCC"; then
16668b3e38ee4Smrg	case $host_os in aix4.[012]|aix4.[012].*)
16669b3e38ee4Smrg	# We only want to do this on AIX 4.2 and lower, the check
16670b3e38ee4Smrg	# below for broken collect2 doesn't work under 4.3+
166714a8d91dcSmrg	  collect2name=`$CC -print-prog-name=collect2`
16672b3e38ee4Smrg	  if test -f "$collect2name" &&
16673b3e38ee4Smrg	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16674b3e38ee4Smrg	  then
16675a18ebfb2Smrg	  # We have reworked collect2
16676a18ebfb2Smrg	  :
16677b3e38ee4Smrg	  else
16678a18ebfb2Smrg	  # We have old collect2
16679b3e38ee4Smrg	  hardcode_direct=unsupported
16680a18ebfb2Smrg	  # It fails to find uninstalled libraries when the uninstalled
16681a18ebfb2Smrg	  # path is not listed in the libpath.  Setting hardcode_minus_L
16682a18ebfb2Smrg	  # to unsupported forces relinking
16683b3e38ee4Smrg	  hardcode_minus_L=yes
16684b3e38ee4Smrg	  hardcode_libdir_flag_spec='-L$libdir'
16685b3e38ee4Smrg	  hardcode_libdir_separator=
16686b3e38ee4Smrg	  fi
16687b3e38ee4Smrg	  ;;
16688b3e38ee4Smrg	esac
16689b3e38ee4Smrg	shared_flag='-shared'
166904a8d91dcSmrg	if test yes = "$aix_use_runtimelinking"; then
166914a8d91dcSmrg	  shared_flag="$shared_flag "'$wl-G'
16692a18ebfb2Smrg	fi
166934a8d91dcSmrg	# Need to ensure runtime linking is disabled for the traditional
166944a8d91dcSmrg	# shared library, or the linker may eventually find shared libraries
166954a8d91dcSmrg	# /with/ Import File - we do not want to mix them.
166964a8d91dcSmrg	shared_flag_aix='-shared'
166974a8d91dcSmrg	shared_flag_svr4='-shared $wl-G'
16698b3e38ee4Smrg      else
16699b3e38ee4Smrg	# not using gcc
167004a8d91dcSmrg	if test ia64 = "$host_cpu"; then
16701a18ebfb2Smrg	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16702a18ebfb2Smrg	# chokes on -Wl,-G. The following line is correct:
16703b3e38ee4Smrg	  shared_flag='-G'
16704a18ebfb2Smrg	else
167054a8d91dcSmrg	  if test yes = "$aix_use_runtimelinking"; then
167064a8d91dcSmrg	    shared_flag='$wl-G'
16707b3e38ee4Smrg	  else
167084a8d91dcSmrg	    shared_flag='$wl-bM:SRE'
16709b3e38ee4Smrg	  fi
167104a8d91dcSmrg	  shared_flag_aix='$wl-bM:SRE'
167114a8d91dcSmrg	  shared_flag_svr4='$wl-G'
16712a18ebfb2Smrg	fi
16713a18ebfb2Smrg      fi
16714a18ebfb2Smrg
167154a8d91dcSmrg      export_dynamic_flag_spec='$wl-bexpall'
16716b3e38ee4Smrg      # It seems that -bexpall does not export symbols beginning with
16717b3e38ee4Smrg      # underscore (_), so it is better to generate a list of symbols to export.
16718b3e38ee4Smrg      always_export_symbols=yes
167194a8d91dcSmrg      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16720b3e38ee4Smrg	# Warning - without using the other runtime loading flags (-brtl),
16721b3e38ee4Smrg	# -berok will link without error, but may produce a broken library.
16722b3e38ee4Smrg	allow_undefined_flag='-berok'
16723b3e38ee4Smrg        # Determine the default libpath from the value encoded in an
16724b3e38ee4Smrg        # empty executable.
167254a8d91dcSmrg        if test set = "${lt_cv_aix_libpath+set}"; then
16726a73423d7Smrg  aix_libpath=$lt_cv_aix_libpath
16727a73423d7Smrgelse
16728e9f7eabcSmrg  if test ${lt_cv_aix_libpath_+y}
16729e9f7eabcSmrgthen :
16730e9f7eabcSmrg  printf %s "(cached) " >&6
16731e9f7eabcSmrgelse $as_nop
16732a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16733a18ebfb2Smrg/* end confdefs.h.  */
16734a18ebfb2Smrg
16735a18ebfb2Smrgint
16736e9f7eabcSmrgmain (void)
16737a18ebfb2Smrg{
16738a18ebfb2Smrg
16739a18ebfb2Smrg  ;
16740a18ebfb2Smrg  return 0;
16741a18ebfb2Smrg}
16742a18ebfb2Smrg_ACEOF
16743e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
16744e9f7eabcSmrgthen :
16745a18ebfb2Smrg
16746a73423d7Smrg  lt_aix_libpath_sed='
16747a73423d7Smrg      /Import File Strings/,/^$/ {
16748a73423d7Smrg	  /^0/ {
16749a73423d7Smrg	      s/^0  *\([^ ]*\) *$/\1/
16750a73423d7Smrg	      p
16751a73423d7Smrg	  }
16752a73423d7Smrg      }'
16753a73423d7Smrg  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16754a73423d7Smrg  # Check for a 64-bit object if we didn't find anything.
16755a73423d7Smrg  if test -z "$lt_cv_aix_libpath_"; then
16756a73423d7Smrg    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16757a73423d7Smrg  fi
16758a18ebfb2Smrgfi
16759e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
16760a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
16761a73423d7Smrg  if test -z "$lt_cv_aix_libpath_"; then
167624a8d91dcSmrg    lt_cv_aix_libpath_=/usr/lib:/lib
16763a73423d7Smrg  fi
16764a18ebfb2Smrg
16765a18ebfb2Smrgfi
16766a18ebfb2Smrg
16767a73423d7Smrg  aix_libpath=$lt_cv_aix_libpath_
16768a73423d7Smrgfi
16769a18ebfb2Smrg
167704a8d91dcSmrg        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
167714a8d91dcSmrg        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
16772a18ebfb2Smrg      else
167734a8d91dcSmrg	if test ia64 = "$host_cpu"; then
167744a8d91dcSmrg	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16775b3e38ee4Smrg	  allow_undefined_flag="-z nodefs"
167764a8d91dcSmrg	  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"
16777b3e38ee4Smrg	else
16778b3e38ee4Smrg	 # Determine the default libpath from the value encoded in an
16779b3e38ee4Smrg	 # empty executable.
167804a8d91dcSmrg	 if test set = "${lt_cv_aix_libpath+set}"; then
16781a73423d7Smrg  aix_libpath=$lt_cv_aix_libpath
16782a73423d7Smrgelse
16783e9f7eabcSmrg  if test ${lt_cv_aix_libpath_+y}
16784e9f7eabcSmrgthen :
16785e9f7eabcSmrg  printf %s "(cached) " >&6
16786e9f7eabcSmrgelse $as_nop
16787a73423d7Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788a18ebfb2Smrg/* end confdefs.h.  */
16789a18ebfb2Smrg
16790a18ebfb2Smrgint
16791e9f7eabcSmrgmain (void)
16792a18ebfb2Smrg{
16793a18ebfb2Smrg
16794a18ebfb2Smrg  ;
16795a18ebfb2Smrg  return 0;
16796a18ebfb2Smrg}
16797a18ebfb2Smrg_ACEOF
16798e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
16799e9f7eabcSmrgthen :
16800a18ebfb2Smrg
16801a73423d7Smrg  lt_aix_libpath_sed='
16802a73423d7Smrg      /Import File Strings/,/^$/ {
16803a73423d7Smrg	  /^0/ {
16804a73423d7Smrg	      s/^0  *\([^ ]*\) *$/\1/
16805a73423d7Smrg	      p
16806a73423d7Smrg	  }
16807a73423d7Smrg      }'
16808a73423d7Smrg  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16809a73423d7Smrg  # Check for a 64-bit object if we didn't find anything.
16810a73423d7Smrg  if test -z "$lt_cv_aix_libpath_"; then
16811a73423d7Smrg    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16812a73423d7Smrg  fi
16813a18ebfb2Smrgfi
16814e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
16815a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
16816a73423d7Smrg  if test -z "$lt_cv_aix_libpath_"; then
168174a8d91dcSmrg    lt_cv_aix_libpath_=/usr/lib:/lib
16818a73423d7Smrg  fi
16819a18ebfb2Smrg
16820a18ebfb2Smrgfi
16821a18ebfb2Smrg
16822a73423d7Smrg  aix_libpath=$lt_cv_aix_libpath_
16823a73423d7Smrgfi
16824a18ebfb2Smrg
168254a8d91dcSmrg	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16826b3e38ee4Smrg	  # Warning - without using the other run time loading flags,
16827b3e38ee4Smrg	  # -berok will link without error, but may produce a broken library.
168284a8d91dcSmrg	  no_undefined_flag=' $wl-bernotok'
168294a8d91dcSmrg	  allow_undefined_flag=' $wl-berok'
168304a8d91dcSmrg	  if test yes = "$with_gnu_ld"; then
16831a73423d7Smrg	    # We only use this code for GNU lds that support --whole-archive.
168324a8d91dcSmrg	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16833a73423d7Smrg	  else
16834a73423d7Smrg	    # Exported symbols can be pulled into shared objects from archives
16835a73423d7Smrg	    whole_archive_flag_spec='$convenience'
16836a73423d7Smrg	  fi
16837b3e38ee4Smrg	  archive_cmds_need_lc=yes
168384a8d91dcSmrg	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
168394a8d91dcSmrg	  # -brtl affects multiple linker settings, -berok does not and is overridden later
168404a8d91dcSmrg	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
168414a8d91dcSmrg	  if test svr4 != "$with_aix_soname"; then
168424a8d91dcSmrg	    # This is similar to how AIX traditionally builds its shared libraries.
168434a8d91dcSmrg	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
168444a8d91dcSmrg	  fi
168454a8d91dcSmrg	  if test aix != "$with_aix_soname"; then
168464a8d91dcSmrg	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
168474a8d91dcSmrg	  else
168484a8d91dcSmrg	    # used by -dlpreopen to get the symbols
168494a8d91dcSmrg	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
168504a8d91dcSmrg	  fi
168514a8d91dcSmrg	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16852b3e38ee4Smrg	fi
16853a18ebfb2Smrg      fi
16854b3e38ee4Smrg      ;;
16855a18ebfb2Smrg
16856b3e38ee4Smrg    amigaos*)
16857b3e38ee4Smrg      case $host_cpu in
16858b3e38ee4Smrg      powerpc)
16859b3e38ee4Smrg            # see comment about AmigaOS4 .so support
168604a8d91dcSmrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16861b3e38ee4Smrg            archive_expsym_cmds=''
16862b3e38ee4Smrg        ;;
16863b3e38ee4Smrg      m68k)
16864b3e38ee4Smrg            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)'
16865b3e38ee4Smrg            hardcode_libdir_flag_spec='-L$libdir'
16866b3e38ee4Smrg            hardcode_minus_L=yes
16867b3e38ee4Smrg        ;;
16868b3e38ee4Smrg      esac
16869b3e38ee4Smrg      ;;
16870a18ebfb2Smrg
16871b3e38ee4Smrg    bsdi[45]*)
16872b3e38ee4Smrg      export_dynamic_flag_spec=-rdynamic
16873b3e38ee4Smrg      ;;
16874a18ebfb2Smrg
16875b3e38ee4Smrg    cygwin* | mingw* | pw32* | cegcc*)
16876b3e38ee4Smrg      # When not using gcc, we currently assume that we are using
16877e9f7eabcSmrg      # Microsoft Visual C++ or Intel C++ Compiler.
16878b3e38ee4Smrg      # hardcode_libdir_flag_spec is actually meaningless, as there is
16879b3e38ee4Smrg      # no search path for DLLs.
16880a73423d7Smrg      case $cc_basename in
16881e9f7eabcSmrg      cl* | icl*)
16882e9f7eabcSmrg	# Native MSVC or ICC
16883a73423d7Smrg	hardcode_libdir_flag_spec=' '
16884a73423d7Smrg	allow_undefined_flag=unsupported
16885a73423d7Smrg	always_export_symbols=yes
16886a73423d7Smrg	file_list_spec='@'
16887a73423d7Smrg	# Tell ltmain to make .lib files, not .a files.
16888a73423d7Smrg	libext=lib
16889a73423d7Smrg	# Tell ltmain to make .dll files, not .so files.
168904a8d91dcSmrg	shrext_cmds=.dll
16891a73423d7Smrg	# FIXME: Setting linknames here is a bad hack.
168924a8d91dcSmrg	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
168934a8d91dcSmrg	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
168944a8d91dcSmrg            cp "$export_symbols" "$output_objdir/$soname.def";
168954a8d91dcSmrg            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
168964a8d91dcSmrg          else
168974a8d91dcSmrg            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
168984a8d91dcSmrg          fi~
168994a8d91dcSmrg          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
169004a8d91dcSmrg          linknames='
16901a73423d7Smrg	# The linker will not automatically build a static lib if we build a DLL.
16902a73423d7Smrg	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16903a73423d7Smrg	enable_shared_with_static_runtimes=yes
16904a73423d7Smrg	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16905a73423d7Smrg	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16906a73423d7Smrg	# Don't use ranlib
16907a73423d7Smrg	old_postinstall_cmds='chmod 644 $oldlib'
16908a73423d7Smrg	postlink_cmds='lt_outputfile="@OUTPUT@"~
169094a8d91dcSmrg          lt_tool_outputfile="@TOOL_OUTPUT@"~
169104a8d91dcSmrg          case $lt_outputfile in
169114a8d91dcSmrg            *.exe|*.EXE) ;;
169124a8d91dcSmrg            *)
169134a8d91dcSmrg              lt_outputfile=$lt_outputfile.exe
169144a8d91dcSmrg              lt_tool_outputfile=$lt_tool_outputfile.exe
169154a8d91dcSmrg              ;;
169164a8d91dcSmrg          esac~
169174a8d91dcSmrg          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
169184a8d91dcSmrg            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
169194a8d91dcSmrg            $RM "$lt_outputfile.manifest";
169204a8d91dcSmrg          fi'
16921a73423d7Smrg	;;
16922a73423d7Smrg      *)
16923e9f7eabcSmrg	# Assume MSVC and ICC wrapper
16924a73423d7Smrg	hardcode_libdir_flag_spec=' '
16925a73423d7Smrg	allow_undefined_flag=unsupported
16926a73423d7Smrg	# Tell ltmain to make .lib files, not .a files.
16927a73423d7Smrg	libext=lib
16928a73423d7Smrg	# Tell ltmain to make .dll files, not .so files.
169294a8d91dcSmrg	shrext_cmds=.dll
16930a73423d7Smrg	# FIXME: Setting linknames here is a bad hack.
16931a73423d7Smrg	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16932a73423d7Smrg	# The linker will automatically build a .lib file if we build a DLL.
16933a73423d7Smrg	old_archive_from_new_cmds='true'
16934a73423d7Smrg	# FIXME: Should let the user specify the lib program.
16935a73423d7Smrg	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16936a73423d7Smrg	enable_shared_with_static_runtimes=yes
16937a73423d7Smrg	;;
16938a73423d7Smrg      esac
16939b3e38ee4Smrg      ;;
16940b3e38ee4Smrg
16941b3e38ee4Smrg    darwin* | rhapsody*)
16942b3e38ee4Smrg
16943b3e38ee4Smrg
16944b3e38ee4Smrg  archive_cmds_need_lc=no
16945b3e38ee4Smrg  hardcode_direct=no
16946b3e38ee4Smrg  hardcode_automatic=yes
16947b3e38ee4Smrg  hardcode_shlibpath_var=unsupported
169484a8d91dcSmrg  if test yes = "$lt_cv_ld_force_load"; then
169494a8d91dcSmrg    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\"`'
16950a73423d7Smrg
16951a73423d7Smrg  else
16952a73423d7Smrg    whole_archive_flag_spec=''
16953a73423d7Smrg  fi
16954b3e38ee4Smrg  link_all_deplibs=yes
169554a8d91dcSmrg  allow_undefined_flag=$_lt_dar_allow_undefined
16956b3e38ee4Smrg  case $cc_basename in
169574a8d91dcSmrg     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16958b3e38ee4Smrg     *) _lt_dar_can_shared=$GCC ;;
16959b3e38ee4Smrg  esac
169604a8d91dcSmrg  if test yes = "$_lt_dar_can_shared"; then
16961a73423d7Smrg    output_verbose_link_cmd=func_echo_all
169624a8d91dcSmrg    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
169634a8d91dcSmrg    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16964e9f7eabcSmrg    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"
16965e9f7eabcSmrg    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"
16966b3e38ee4Smrg
16967b3e38ee4Smrg  else
16968b3e38ee4Smrg  ld_shlibs=no
16969b3e38ee4Smrg  fi
16970a18ebfb2Smrg
16971a18ebfb2Smrg      ;;
16972b3e38ee4Smrg
16973b3e38ee4Smrg    dgux*)
16974b3e38ee4Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16975b3e38ee4Smrg      hardcode_libdir_flag_spec='-L$libdir'
16976b3e38ee4Smrg      hardcode_shlibpath_var=no
16977a18ebfb2Smrg      ;;
16978b3e38ee4Smrg
16979b3e38ee4Smrg    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16980b3e38ee4Smrg    # support.  Future versions do this automatically, but an explicit c++rt0.o
16981b3e38ee4Smrg    # does not break anything, and helps significantly (at the cost of a little
16982b3e38ee4Smrg    # extra space).
16983b3e38ee4Smrg    freebsd2.2*)
16984b3e38ee4Smrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16985b3e38ee4Smrg      hardcode_libdir_flag_spec='-R$libdir'
16986b3e38ee4Smrg      hardcode_direct=yes
16987b3e38ee4Smrg      hardcode_shlibpath_var=no
16988b3e38ee4Smrg      ;;
16989b3e38ee4Smrg
16990b3e38ee4Smrg    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16991a73423d7Smrg    freebsd2.*)
16992b3e38ee4Smrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16993b3e38ee4Smrg      hardcode_direct=yes
16994b3e38ee4Smrg      hardcode_minus_L=yes
16995b3e38ee4Smrg      hardcode_shlibpath_var=no
16996b3e38ee4Smrg      ;;
16997b3e38ee4Smrg
16998b3e38ee4Smrg    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16999e9f7eabcSmrg    freebsd* | dragonfly* | midnightbsd*)
17000a73423d7Smrg      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17001b3e38ee4Smrg      hardcode_libdir_flag_spec='-R$libdir'
17002b3e38ee4Smrg      hardcode_direct=yes
17003b3e38ee4Smrg      hardcode_shlibpath_var=no
17004b3e38ee4Smrg      ;;
17005b3e38ee4Smrg
17006b3e38ee4Smrg    hpux9*)
170074a8d91dcSmrg      if test yes = "$GCC"; then
170084a8d91dcSmrg	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17009a18ebfb2Smrg      else
170104a8d91dcSmrg	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17011a18ebfb2Smrg      fi
170124a8d91dcSmrg      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17013b3e38ee4Smrg      hardcode_libdir_separator=:
17014b3e38ee4Smrg      hardcode_direct=yes
17015a18ebfb2Smrg
17016b3e38ee4Smrg      # hardcode_minus_L: Not really in the search PATH,
17017b3e38ee4Smrg      # but as the default location of the library.
17018b3e38ee4Smrg      hardcode_minus_L=yes
170194a8d91dcSmrg      export_dynamic_flag_spec='$wl-E'
17020a18ebfb2Smrg      ;;
17021b3e38ee4Smrg
17022b3e38ee4Smrg    hpux10*)
170234a8d91dcSmrg      if test yes,no = "$GCC,$with_gnu_ld"; then
170244a8d91dcSmrg	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17025b3e38ee4Smrg      else
17026b3e38ee4Smrg	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17027b3e38ee4Smrg      fi
170284a8d91dcSmrg      if test no = "$with_gnu_ld"; then
170294a8d91dcSmrg	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17030b3e38ee4Smrg	hardcode_libdir_separator=:
17031b3e38ee4Smrg	hardcode_direct=yes
17032b3e38ee4Smrg	hardcode_direct_absolute=yes
170334a8d91dcSmrg	export_dynamic_flag_spec='$wl-E'
17034b3e38ee4Smrg	# hardcode_minus_L: Not really in the search PATH,
17035b3e38ee4Smrg	# but as the default location of the library.
17036b3e38ee4Smrg	hardcode_minus_L=yes
17037b3e38ee4Smrg      fi
17038a18ebfb2Smrg      ;;
17039a18ebfb2Smrg
17040b3e38ee4Smrg    hpux11*)
170414a8d91dcSmrg      if test yes,no = "$GCC,$with_gnu_ld"; then
17042a18ebfb2Smrg	case $host_cpu in
17043a18ebfb2Smrg	hppa*64*)
170444a8d91dcSmrg	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17045a18ebfb2Smrg	  ;;
17046a18ebfb2Smrg	ia64*)
170474a8d91dcSmrg	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17048a18ebfb2Smrg	  ;;
17049a18ebfb2Smrg	*)
170504a8d91dcSmrg	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17051a18ebfb2Smrg	  ;;
17052a18ebfb2Smrg	esac
17053b3e38ee4Smrg      else
17054b3e38ee4Smrg	case $host_cpu in
17055b3e38ee4Smrg	hppa*64*)
170564a8d91dcSmrg	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17057a18ebfb2Smrg	  ;;
17058b3e38ee4Smrg	ia64*)
170594a8d91dcSmrg	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17060b3e38ee4Smrg	  ;;
17061b3e38ee4Smrg	*)
17062a73423d7Smrg
17063a73423d7Smrg	  # Older versions of the 11.00 compiler do not understand -b yet
17064a73423d7Smrg	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17065e9f7eabcSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17066e9f7eabcSmrgprintf %s "checking if $CC understands -b... " >&6; }
17067e9f7eabcSmrgif test ${lt_cv_prog_compiler__b+y}
17068e9f7eabcSmrgthen :
17069e9f7eabcSmrg  printf %s "(cached) " >&6
17070e9f7eabcSmrgelse $as_nop
17071a73423d7Smrg  lt_cv_prog_compiler__b=no
170724a8d91dcSmrg   save_LDFLAGS=$LDFLAGS
17073a73423d7Smrg   LDFLAGS="$LDFLAGS -b"
17074a73423d7Smrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17075a73423d7Smrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17076a73423d7Smrg     # The linker can only warn and ignore the option if not recognized
17077a73423d7Smrg     # So say no if there are warnings
17078a73423d7Smrg     if test -s conftest.err; then
17079a73423d7Smrg       # Append any errors to the config.log.
17080a73423d7Smrg       cat conftest.err 1>&5
17081a73423d7Smrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17082a73423d7Smrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17083a73423d7Smrg       if diff conftest.exp conftest.er2 >/dev/null; then
17084a73423d7Smrg         lt_cv_prog_compiler__b=yes
17085a73423d7Smrg       fi
17086a73423d7Smrg     else
17087a73423d7Smrg       lt_cv_prog_compiler__b=yes
17088a73423d7Smrg     fi
17089a73423d7Smrg   fi
17090a73423d7Smrg   $RM -r conftest*
170914a8d91dcSmrg   LDFLAGS=$save_LDFLAGS
17092a73423d7Smrg
17093a73423d7Smrgfi
17094e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17095e9f7eabcSmrgprintf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17096a73423d7Smrg
170974a8d91dcSmrgif test yes = "$lt_cv_prog_compiler__b"; then
170984a8d91dcSmrg    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17099a73423d7Smrgelse
17100a73423d7Smrg    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17101a73423d7Smrgfi
17102a73423d7Smrg
17103a18ebfb2Smrg	  ;;
17104a18ebfb2Smrg	esac
17105b3e38ee4Smrg      fi
171064a8d91dcSmrg      if test no = "$with_gnu_ld"; then
171074a8d91dcSmrg	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17108b3e38ee4Smrg	hardcode_libdir_separator=:
17109a18ebfb2Smrg
17110b3e38ee4Smrg	case $host_cpu in
17111b3e38ee4Smrg	hppa*64*|ia64*)
17112b3e38ee4Smrg	  hardcode_direct=no
17113b3e38ee4Smrg	  hardcode_shlibpath_var=no
17114b3e38ee4Smrg	  ;;
17115b3e38ee4Smrg	*)
17116b3e38ee4Smrg	  hardcode_direct=yes
17117b3e38ee4Smrg	  hardcode_direct_absolute=yes
171184a8d91dcSmrg	  export_dynamic_flag_spec='$wl-E'
17119b3e38ee4Smrg
17120b3e38ee4Smrg	  # hardcode_minus_L: Not really in the search PATH,
17121b3e38ee4Smrg	  # but as the default location of the library.
17122b3e38ee4Smrg	  hardcode_minus_L=yes
17123a18ebfb2Smrg	  ;;
17124a18ebfb2Smrg	esac
17125a18ebfb2Smrg      fi
17126b3e38ee4Smrg      ;;
17127a18ebfb2Smrg
17128b3e38ee4Smrg    irix5* | irix6* | nonstopux*)
171294a8d91dcSmrg      if test yes = "$GCC"; then
171304a8d91dcSmrg	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'
17131b3e38ee4Smrg	# Try to use the -exported_symbol ld option, if it does not
17132b3e38ee4Smrg	# work, assume that -exports_file does not work either and
17133b3e38ee4Smrg	# implicitly export all symbols.
17134a73423d7Smrg	# This should be the same for all languages, so no per-tag cache variable.
17135e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17136e9f7eabcSmrgprintf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17137e9f7eabcSmrgif test ${lt_cv_irix_exported_symbol+y}
17138e9f7eabcSmrgthen :
17139e9f7eabcSmrg  printf %s "(cached) " >&6
17140e9f7eabcSmrgelse $as_nop
171414a8d91dcSmrg  save_LDFLAGS=$LDFLAGS
171424a8d91dcSmrg	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17143a73423d7Smrg	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17144a73423d7Smrg/* end confdefs.h.  */
17145a73423d7Smrgint foo (void) { return 0; }
17146a73423d7Smrg_ACEOF
17147e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
17148e9f7eabcSmrgthen :
17149a73423d7Smrg  lt_cv_irix_exported_symbol=yes
17150e9f7eabcSmrgelse $as_nop
17151a73423d7Smrg  lt_cv_irix_exported_symbol=no
17152b3e38ee4Smrgfi
17153e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
17154a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
171554a8d91dcSmrg           LDFLAGS=$save_LDFLAGS
17156a73423d7Smrgfi
17157e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17158e9f7eabcSmrgprintf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
171594a8d91dcSmrg	if test yes = "$lt_cv_irix_exported_symbol"; then
171604a8d91dcSmrg          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'
17161a73423d7Smrg	fi
17162b3e38ee4Smrg      else
171634a8d91dcSmrg	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'
171644a8d91dcSmrg	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'
17165b3e38ee4Smrg      fi
17166b3e38ee4Smrg      archive_cmds_need_lc='no'
171674a8d91dcSmrg      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17168b3e38ee4Smrg      hardcode_libdir_separator=:
17169b3e38ee4Smrg      inherit_rpath=yes
17170b3e38ee4Smrg      link_all_deplibs=yes
17171b3e38ee4Smrg      ;;
17172a18ebfb2Smrg
171734a8d91dcSmrg    linux*)
171744a8d91dcSmrg      case $cc_basename in
171754a8d91dcSmrg      tcc*)
171764a8d91dcSmrg	# Fabrice Bellard et al's Tiny C Compiler
171774a8d91dcSmrg	ld_shlibs=yes
171784a8d91dcSmrg	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
171794a8d91dcSmrg	;;
171804a8d91dcSmrg      esac
171814a8d91dcSmrg      ;;
171824a8d91dcSmrg
17183e9f7eabcSmrg    netbsd*)
17184b3e38ee4Smrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17185b3e38ee4Smrg	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17186b3e38ee4Smrg      else
17187b3e38ee4Smrg	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17188b3e38ee4Smrg      fi
17189b3e38ee4Smrg      hardcode_libdir_flag_spec='-R$libdir'
17190b3e38ee4Smrg      hardcode_direct=yes
17191b3e38ee4Smrg      hardcode_shlibpath_var=no
17192b3e38ee4Smrg      ;;
17193a18ebfb2Smrg
17194b3e38ee4Smrg    newsos6)
17195b3e38ee4Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17196b3e38ee4Smrg      hardcode_direct=yes
171974a8d91dcSmrg      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17198b3e38ee4Smrg      hardcode_libdir_separator=:
17199b3e38ee4Smrg      hardcode_shlibpath_var=no
17200b3e38ee4Smrg      ;;
17201a18ebfb2Smrg
17202b3e38ee4Smrg    *nto* | *qnx*)
17203b3e38ee4Smrg      ;;
17204a18ebfb2Smrg
172054a8d91dcSmrg    openbsd* | bitrig*)
17206b3e38ee4Smrg      if test -f /usr/libexec/ld.so; then
17207b3e38ee4Smrg	hardcode_direct=yes
17208b3e38ee4Smrg	hardcode_shlibpath_var=no
17209b3e38ee4Smrg	hardcode_direct_absolute=yes
172104a8d91dcSmrg	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17211b3e38ee4Smrg	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
172124a8d91dcSmrg	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
172134a8d91dcSmrg	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
172144a8d91dcSmrg	  export_dynamic_flag_spec='$wl-E'
17215a18ebfb2Smrg	else
172164a8d91dcSmrg	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
172174a8d91dcSmrg	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17218a18ebfb2Smrg	fi
17219b3e38ee4Smrg      else
17220b3e38ee4Smrg	ld_shlibs=no
17221b3e38ee4Smrg      fi
17222a18ebfb2Smrg      ;;
17223a18ebfb2Smrg
17224b3e38ee4Smrg    os2*)
17225b3e38ee4Smrg      hardcode_libdir_flag_spec='-L$libdir'
17226b3e38ee4Smrg      hardcode_minus_L=yes
17227b3e38ee4Smrg      allow_undefined_flag=unsupported
172284a8d91dcSmrg      shrext_cmds=.dll
172294a8d91dcSmrg      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
172304a8d91dcSmrg	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
172314a8d91dcSmrg	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
172324a8d91dcSmrg	$ECHO EXPORTS >> $output_objdir/$libname.def~
172334a8d91dcSmrg	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
172344a8d91dcSmrg	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
172354a8d91dcSmrg	emximp -o $lib $output_objdir/$libname.def'
172364a8d91dcSmrg      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
172374a8d91dcSmrg	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
172384a8d91dcSmrg	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
172394a8d91dcSmrg	$ECHO EXPORTS >> $output_objdir/$libname.def~
172404a8d91dcSmrg	prefix_cmds="$SED"~
172414a8d91dcSmrg	if test EXPORTS = "`$SED 1q $export_symbols`"; then
172424a8d91dcSmrg	  prefix_cmds="$prefix_cmds -e 1d";
172434a8d91dcSmrg	fi~
172444a8d91dcSmrg	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
172454a8d91dcSmrg	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
172464a8d91dcSmrg	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
172474a8d91dcSmrg	emximp -o $lib $output_objdir/$libname.def'
172484a8d91dcSmrg      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
172494a8d91dcSmrg      enable_shared_with_static_runtimes=yes
17250e9f7eabcSmrg      file_list_spec='@'
17251a18ebfb2Smrg      ;;
17252a18ebfb2Smrg
17253b3e38ee4Smrg    osf3*)
172544a8d91dcSmrg      if test yes = "$GCC"; then
172554a8d91dcSmrg	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
172564a8d91dcSmrg	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'
17257b3e38ee4Smrg      else
17258b3e38ee4Smrg	allow_undefined_flag=' -expect_unresolved \*'
172594a8d91dcSmrg	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'
17260b3e38ee4Smrg      fi
17261b3e38ee4Smrg      archive_cmds_need_lc='no'
172624a8d91dcSmrg      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17263b3e38ee4Smrg      hardcode_libdir_separator=:
17264b3e38ee4Smrg      ;;
17265a18ebfb2Smrg
17266b3e38ee4Smrg    osf4* | osf5*)	# as osf3* with the addition of -msym flag
172674a8d91dcSmrg      if test yes = "$GCC"; then
172684a8d91dcSmrg	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
172694a8d91dcSmrg	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'
172704a8d91dcSmrg	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17271b3e38ee4Smrg      else
17272b3e38ee4Smrg	allow_undefined_flag=' -expect_unresolved \*'
172734a8d91dcSmrg	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'
17274b3e38ee4Smrg	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~
172754a8d91dcSmrg          $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'
17276a18ebfb2Smrg
17277b3e38ee4Smrg	# Both c and cxx compiler support -rpath directly
17278b3e38ee4Smrg	hardcode_libdir_flag_spec='-rpath $libdir'
17279a18ebfb2Smrg      fi
17280b3e38ee4Smrg      archive_cmds_need_lc='no'
17281b3e38ee4Smrg      hardcode_libdir_separator=:
17282a18ebfb2Smrg      ;;
17283b3e38ee4Smrg
17284b3e38ee4Smrg    solaris*)
17285b3e38ee4Smrg      no_undefined_flag=' -z defs'
172864a8d91dcSmrg      if test yes = "$GCC"; then
172874a8d91dcSmrg	wlarc='$wl'
172884a8d91dcSmrg	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17289b3e38ee4Smrg	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
172904a8d91dcSmrg          $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'
17291b3e38ee4Smrg      else
17292b3e38ee4Smrg	case `$CC -V 2>&1` in
17293b3e38ee4Smrg	*"Compilers 5.0"*)
17294b3e38ee4Smrg	  wlarc=''
172954a8d91dcSmrg	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17296b3e38ee4Smrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
172974a8d91dcSmrg            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17298b3e38ee4Smrg	  ;;
17299b3e38ee4Smrg	*)
173004a8d91dcSmrg	  wlarc='$wl'
173014a8d91dcSmrg	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17302b3e38ee4Smrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
173034a8d91dcSmrg            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17304b3e38ee4Smrg	  ;;
17305b3e38ee4Smrg	esac
17306a18ebfb2Smrg      fi
17307b3e38ee4Smrg      hardcode_libdir_flag_spec='-R$libdir'
17308b3e38ee4Smrg      hardcode_shlibpath_var=no
17309b3e38ee4Smrg      case $host_os in
17310b3e38ee4Smrg      solaris2.[0-5] | solaris2.[0-5].*) ;;
17311a18ebfb2Smrg      *)
17312b3e38ee4Smrg	# The compiler driver will combine and reorder linker options,
173134a8d91dcSmrg	# but understands '-z linker_flag'.  GCC discards it without '$wl',
17314b3e38ee4Smrg	# but is careful enough not to reorder.
17315b3e38ee4Smrg	# Supported since Solaris 2.6 (maybe 2.5.1?)
173164a8d91dcSmrg	if test yes = "$GCC"; then
173174a8d91dcSmrg	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17318b3e38ee4Smrg	else
17319b3e38ee4Smrg	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17320b3e38ee4Smrg	fi
17321a18ebfb2Smrg	;;
17322a18ebfb2Smrg      esac
17323b3e38ee4Smrg      link_all_deplibs=yes
17324a18ebfb2Smrg      ;;
17325b3e38ee4Smrg
17326b3e38ee4Smrg    sunos4*)
173274a8d91dcSmrg      if test sequent = "$host_vendor"; then
17328b3e38ee4Smrg	# Use $CC to link under sequent, because it throws in some extra .o
17329b3e38ee4Smrg	# files that make .init and .fini sections work.
173304a8d91dcSmrg	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17331b3e38ee4Smrg      else
17332b3e38ee4Smrg	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17333b3e38ee4Smrg      fi
17334b3e38ee4Smrg      hardcode_libdir_flag_spec='-L$libdir'
17335b3e38ee4Smrg      hardcode_direct=yes
17336b3e38ee4Smrg      hardcode_minus_L=yes
17337b3e38ee4Smrg      hardcode_shlibpath_var=no
17338a18ebfb2Smrg      ;;
17339b3e38ee4Smrg
17340b3e38ee4Smrg    sysv4)
17341b3e38ee4Smrg      case $host_vendor in
17342b3e38ee4Smrg	sni)
17343b3e38ee4Smrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17344b3e38ee4Smrg	  hardcode_direct=yes # is this really true???
17345a18ebfb2Smrg	;;
17346b3e38ee4Smrg	siemens)
17347b3e38ee4Smrg	  ## LD is ld it makes a PLAMLIB
17348b3e38ee4Smrg	  ## CC just makes a GrossModule.
17349b3e38ee4Smrg	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17350b3e38ee4Smrg	  reload_cmds='$CC -r -o $output$reload_objs'
17351b3e38ee4Smrg	  hardcode_direct=no
17352b3e38ee4Smrg        ;;
17353b3e38ee4Smrg	motorola)
17354b3e38ee4Smrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17355b3e38ee4Smrg	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17356a18ebfb2Smrg	;;
17357b3e38ee4Smrg      esac
17358b3e38ee4Smrg      runpath_var='LD_RUN_PATH'
17359b3e38ee4Smrg      hardcode_shlibpath_var=no
17360b3e38ee4Smrg      ;;
17361b3e38ee4Smrg
17362b3e38ee4Smrg    sysv4.3*)
17363b3e38ee4Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17364b3e38ee4Smrg      hardcode_shlibpath_var=no
17365b3e38ee4Smrg      export_dynamic_flag_spec='-Bexport'
17366b3e38ee4Smrg      ;;
17367b3e38ee4Smrg
17368b3e38ee4Smrg    sysv4*MP*)
17369b3e38ee4Smrg      if test -d /usr/nec; then
17370b3e38ee4Smrg	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17371b3e38ee4Smrg	hardcode_shlibpath_var=no
17372b3e38ee4Smrg	runpath_var=LD_RUN_PATH
17373b3e38ee4Smrg	hardcode_runpath_var=yes
17374b3e38ee4Smrg	ld_shlibs=yes
17375b3e38ee4Smrg      fi
17376b3e38ee4Smrg      ;;
17377b3e38ee4Smrg
17378b3e38ee4Smrg    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
173794a8d91dcSmrg      no_undefined_flag='$wl-z,text'
17380b3e38ee4Smrg      archive_cmds_need_lc=no
17381b3e38ee4Smrg      hardcode_shlibpath_var=no
17382b3e38ee4Smrg      runpath_var='LD_RUN_PATH'
17383b3e38ee4Smrg
173844a8d91dcSmrg      if test yes = "$GCC"; then
173854a8d91dcSmrg	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
173864a8d91dcSmrg	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17387b3e38ee4Smrg      else
173884a8d91dcSmrg	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
173894a8d91dcSmrg	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17390b3e38ee4Smrg      fi
17391b3e38ee4Smrg      ;;
17392b3e38ee4Smrg
17393b3e38ee4Smrg    sysv5* | sco3.2v5* | sco5v6*)
173944a8d91dcSmrg      # Note: We CANNOT use -z defs as we might desire, because we do not
17395b3e38ee4Smrg      # link with -lc, and that would cause any symbols used from libc to
17396b3e38ee4Smrg      # always be unresolved, which means just about no library would
17397b3e38ee4Smrg      # ever link correctly.  If we're not using GNU ld we use -z text
17398b3e38ee4Smrg      # though, which does catch some bad symbols but isn't as heavy-handed
17399b3e38ee4Smrg      # as -z defs.
174004a8d91dcSmrg      no_undefined_flag='$wl-z,text'
174014a8d91dcSmrg      allow_undefined_flag='$wl-z,nodefs'
17402b3e38ee4Smrg      archive_cmds_need_lc=no
17403b3e38ee4Smrg      hardcode_shlibpath_var=no
174044a8d91dcSmrg      hardcode_libdir_flag_spec='$wl-R,$libdir'
17405b3e38ee4Smrg      hardcode_libdir_separator=':'
17406b3e38ee4Smrg      link_all_deplibs=yes
174074a8d91dcSmrg      export_dynamic_flag_spec='$wl-Bexport'
17408b3e38ee4Smrg      runpath_var='LD_RUN_PATH'
17409b3e38ee4Smrg
174104a8d91dcSmrg      if test yes = "$GCC"; then
174114a8d91dcSmrg	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
174124a8d91dcSmrg	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17413b3e38ee4Smrg      else
174144a8d91dcSmrg	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
174154a8d91dcSmrg	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17416b3e38ee4Smrg      fi
17417b3e38ee4Smrg      ;;
17418b3e38ee4Smrg
17419b3e38ee4Smrg    uts4*)
17420b3e38ee4Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17421b3e38ee4Smrg      hardcode_libdir_flag_spec='-L$libdir'
17422b3e38ee4Smrg      hardcode_shlibpath_var=no
17423b3e38ee4Smrg      ;;
17424b3e38ee4Smrg
17425b3e38ee4Smrg    *)
17426b3e38ee4Smrg      ld_shlibs=no
17427b3e38ee4Smrg      ;;
17428a18ebfb2Smrg    esac
17429b3e38ee4Smrg
174304a8d91dcSmrg    if test sni = "$host_vendor"; then
17431b3e38ee4Smrg      case $host in
17432b3e38ee4Smrg      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
174334a8d91dcSmrg	export_dynamic_flag_spec='$wl-Blargedynsym'
17434b3e38ee4Smrg	;;
17435b3e38ee4Smrg      esac
17436b3e38ee4Smrg    fi
17437a18ebfb2Smrg  fi
17438a18ebfb2Smrg
17439e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17440e9f7eabcSmrgprintf "%s\n" "$ld_shlibs" >&6; }
174414a8d91dcSmrgtest no = "$ld_shlibs" && can_build_shared=no
17442a18ebfb2Smrg
17443b3e38ee4Smrgwith_gnu_ld=$with_gnu_ld
17444a18ebfb2Smrg
17445a18ebfb2Smrg
17446a18ebfb2Smrg
17447a18ebfb2Smrg
17448a18ebfb2Smrg
17449a18ebfb2Smrg
17450a18ebfb2Smrg
17451a18ebfb2Smrg
17452a18ebfb2Smrg
17453a18ebfb2Smrg
17454a18ebfb2Smrg
17455a18ebfb2Smrg
17456a18ebfb2Smrg
17457a18ebfb2Smrg
17458a18ebfb2Smrg
17459a18ebfb2Smrg#
17460a18ebfb2Smrg# Do we need to explicitly link libc?
17461a18ebfb2Smrg#
17462b3e38ee4Smrgcase "x$archive_cmds_need_lc" in
17463a18ebfb2Smrgx|xyes)
17464a18ebfb2Smrg  # Assume -lc should be added
17465b3e38ee4Smrg  archive_cmds_need_lc=yes
17466a18ebfb2Smrg
174674a8d91dcSmrg  if test yes,yes = "$GCC,$enable_shared"; then
17468b3e38ee4Smrg    case $archive_cmds in
17469a18ebfb2Smrg    *'~'*)
17470a18ebfb2Smrg      # FIXME: we may have to deal with multi-command sequences.
17471a18ebfb2Smrg      ;;
17472a18ebfb2Smrg    '$CC '*)
17473a18ebfb2Smrg      # Test whether the compiler implicitly links with -lc since on some
17474a18ebfb2Smrg      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17475a18ebfb2Smrg      # to ld, don't add -lc before -lgcc.
17476e9f7eabcSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17477e9f7eabcSmrgprintf %s "checking whether -lc should be explicitly linked in... " >&6; }
17478e9f7eabcSmrgif test ${lt_cv_archive_cmds_need_lc+y}
17479e9f7eabcSmrgthen :
17480e9f7eabcSmrg  printf %s "(cached) " >&6
17481e9f7eabcSmrgelse $as_nop
17482a73423d7Smrg  $RM conftest*
17483a73423d7Smrg	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17484a18ebfb2Smrg
17485a73423d7Smrg	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17486a18ebfb2Smrg  (eval $ac_compile) 2>&5
17487a18ebfb2Smrg  ac_status=$?
17488e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17489a73423d7Smrg  test $ac_status = 0; } 2>conftest.err; then
17490a73423d7Smrg	  soname=conftest
17491a73423d7Smrg	  lib=conftest
17492a73423d7Smrg	  libobjs=conftest.$ac_objext
17493a73423d7Smrg	  deplibs=
17494a73423d7Smrg	  wl=$lt_prog_compiler_wl
17495a73423d7Smrg	  pic_flag=$lt_prog_compiler_pic
17496a73423d7Smrg	  compiler_flags=-v
17497a73423d7Smrg	  linker_flags=-v
17498a73423d7Smrg	  verstring=
17499a73423d7Smrg	  output_objdir=.
17500a73423d7Smrg	  libname=conftest
17501a73423d7Smrg	  lt_save_allow_undefined_flag=$allow_undefined_flag
17502a73423d7Smrg	  allow_undefined_flag=
17503a73423d7Smrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17504b3e38ee4Smrg  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17505a18ebfb2Smrg  ac_status=$?
17506e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17507a73423d7Smrg  test $ac_status = 0; }
17508a73423d7Smrg	  then
17509a73423d7Smrg	    lt_cv_archive_cmds_need_lc=no
17510a73423d7Smrg	  else
17511a73423d7Smrg	    lt_cv_archive_cmds_need_lc=yes
17512a73423d7Smrg	  fi
17513a73423d7Smrg	  allow_undefined_flag=$lt_save_allow_undefined_flag
17514a73423d7Smrg	else
17515a73423d7Smrg	  cat conftest.err 1>&5
17516a73423d7Smrg	fi
17517a73423d7Smrg	$RM conftest*
17518a73423d7Smrg
17519a73423d7Smrgfi
17520e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17521e9f7eabcSmrgprintf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17522a73423d7Smrg      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17523a18ebfb2Smrg      ;;
17524a18ebfb2Smrg    esac
17525a18ebfb2Smrg  fi
17526a18ebfb2Smrg  ;;
17527a18ebfb2Smrgesac
17528a18ebfb2Smrg
17529a18ebfb2Smrg
17530a18ebfb2Smrg
17531a18ebfb2Smrg
17532a18ebfb2Smrg
17533a18ebfb2Smrg
17534a18ebfb2Smrg
17535a18ebfb2Smrg
17536a18ebfb2Smrg
17537a18ebfb2Smrg
17538a18ebfb2Smrg
17539a18ebfb2Smrg
17540a18ebfb2Smrg
17541a18ebfb2Smrg
17542a18ebfb2Smrg
17543a18ebfb2Smrg
17544a18ebfb2Smrg
17545a18ebfb2Smrg
17546a18ebfb2Smrg
17547a18ebfb2Smrg
17548a18ebfb2Smrg
17549a18ebfb2Smrg
17550a18ebfb2Smrg
17551a18ebfb2Smrg
17552a18ebfb2Smrg
17553a18ebfb2Smrg
17554a18ebfb2Smrg
17555a18ebfb2Smrg
17556a18ebfb2Smrg
17557a18ebfb2Smrg
17558a18ebfb2Smrg
17559a18ebfb2Smrg
17560a18ebfb2Smrg
17561a18ebfb2Smrg
17562a18ebfb2Smrg
17563a18ebfb2Smrg
17564a18ebfb2Smrg
17565a18ebfb2Smrg
17566a18ebfb2Smrg
17567a18ebfb2Smrg
17568a18ebfb2Smrg
17569a18ebfb2Smrg
17570a18ebfb2Smrg
17571a18ebfb2Smrg
17572a18ebfb2Smrg
17573a18ebfb2Smrg
17574a18ebfb2Smrg
17575a18ebfb2Smrg
17576a18ebfb2Smrg
17577a18ebfb2Smrg
17578a18ebfb2Smrg
17579a18ebfb2Smrg
17580a18ebfb2Smrg
17581a18ebfb2Smrg
17582a18ebfb2Smrg
17583a18ebfb2Smrg
17584a18ebfb2Smrg
17585a18ebfb2Smrg
17586a18ebfb2Smrg
17587a18ebfb2Smrg
17588a18ebfb2Smrg
17589a18ebfb2Smrg
17590a18ebfb2Smrg
17591a18ebfb2Smrg
17592a18ebfb2Smrg
17593a18ebfb2Smrg
17594a18ebfb2Smrg
17595a18ebfb2Smrg
17596a18ebfb2Smrg
17597a18ebfb2Smrg
17598a18ebfb2Smrg
17599a18ebfb2Smrg
17600a18ebfb2Smrg
17601a18ebfb2Smrg
17602a18ebfb2Smrg
17603a18ebfb2Smrg
17604a18ebfb2Smrg
17605a18ebfb2Smrg
17606a18ebfb2Smrg
17607a18ebfb2Smrg
17608a18ebfb2Smrg
17609a18ebfb2Smrg
17610a18ebfb2Smrg
17611a18ebfb2Smrg
17612a18ebfb2Smrg
17613a18ebfb2Smrg
17614a18ebfb2Smrg
17615a18ebfb2Smrg
17616a18ebfb2Smrg
17617a18ebfb2Smrg
17618a18ebfb2Smrg
17619a18ebfb2Smrg
17620a18ebfb2Smrg
17621a18ebfb2Smrg
17622a18ebfb2Smrg
17623a18ebfb2Smrg
17624a18ebfb2Smrg
17625a18ebfb2Smrg
17626a18ebfb2Smrg
17627a18ebfb2Smrg
17628a18ebfb2Smrg
17629a18ebfb2Smrg
17630a18ebfb2Smrg
17631a18ebfb2Smrg
17632a18ebfb2Smrg
17633a18ebfb2Smrg
17634a18ebfb2Smrg
17635a18ebfb2Smrg
17636a18ebfb2Smrg
17637a18ebfb2Smrg
17638a18ebfb2Smrg
17639a18ebfb2Smrg
17640a18ebfb2Smrg
17641a18ebfb2Smrg
17642a18ebfb2Smrg
17643a18ebfb2Smrg
17644a18ebfb2Smrg
17645a18ebfb2Smrg
17646a18ebfb2Smrg
17647a18ebfb2Smrg
17648a18ebfb2Smrg
17649a18ebfb2Smrg
17650a18ebfb2Smrg
17651a18ebfb2Smrg
17652a18ebfb2Smrg
17653a18ebfb2Smrg
17654a18ebfb2Smrg
17655a18ebfb2Smrg
17656a18ebfb2Smrg
17657a18ebfb2Smrg
17658a18ebfb2Smrg
17659a18ebfb2Smrg
17660a18ebfb2Smrg
17661a18ebfb2Smrg
17662a18ebfb2Smrg
17663a18ebfb2Smrg
17664a18ebfb2Smrg
17665a18ebfb2Smrg
17666a18ebfb2Smrg
17667a18ebfb2Smrg
17668a18ebfb2Smrg
17669a18ebfb2Smrg
17670a18ebfb2Smrg
17671a18ebfb2Smrg
17672a18ebfb2Smrg
17673a18ebfb2Smrg
17674a18ebfb2Smrg
17675a18ebfb2Smrg
17676a18ebfb2Smrg
17677a18ebfb2Smrg
17678a18ebfb2Smrg
17679a18ebfb2Smrg
17680e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17681e9f7eabcSmrgprintf %s "checking dynamic linker characteristics... " >&6; }
17682a18ebfb2Smrg
176834a8d91dcSmrgif test yes = "$GCC"; then
17684b3e38ee4Smrg  case $host_os in
176854a8d91dcSmrg    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
176864a8d91dcSmrg    *) lt_awk_arg='/^libraries:/' ;;
17687a18ebfb2Smrg  esac
17688a73423d7Smrg  case $host_os in
176894a8d91dcSmrg    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
176904a8d91dcSmrg    *) lt_sed_strip_eq='s|=/|/|g' ;;
17691a73423d7Smrg  esac
17692a73423d7Smrg  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17693a73423d7Smrg  case $lt_search_path_spec in
17694a73423d7Smrg  *\;*)
17695b3e38ee4Smrg    # if the path contains ";" then we assume it to be the separator
17696b3e38ee4Smrg    # otherwise default to the standard path separator (i.e. ":") - it is
17697b3e38ee4Smrg    # assumed that no part of a normal pathname contains ";" but that should
17698b3e38ee4Smrg    # okay in the real world where ";" in dirpaths is itself problematic.
17699a73423d7Smrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17700a73423d7Smrg    ;;
17701a73423d7Smrg  *)
17702a73423d7Smrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17703a73423d7Smrg    ;;
17704a73423d7Smrg  esac
17705b3e38ee4Smrg  # Ok, now we have the path, separated by spaces, we can step through it
177064a8d91dcSmrg  # and add multilib dir if necessary...
17707b3e38ee4Smrg  lt_tmp_lt_search_path_spec=
177084a8d91dcSmrg  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
177094a8d91dcSmrg  # ...but if some path component already ends with the multilib dir we assume
177104a8d91dcSmrg  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
177114a8d91dcSmrg  case "$lt_multi_os_dir; $lt_search_path_spec " in
177124a8d91dcSmrg  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
177134a8d91dcSmrg    lt_multi_os_dir=
177144a8d91dcSmrg    ;;
177154a8d91dcSmrg  esac
17716b3e38ee4Smrg  for lt_sys_path in $lt_search_path_spec; do
177174a8d91dcSmrg    if test -d "$lt_sys_path$lt_multi_os_dir"; then
177184a8d91dcSmrg      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
177194a8d91dcSmrg    elif test -n "$lt_multi_os_dir"; then
17720b3e38ee4Smrg      test -d "$lt_sys_path" && \
17721b3e38ee4Smrg	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17722b3e38ee4Smrg    fi
17723b3e38ee4Smrg  done
17724a73423d7Smrg  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
177254a8d91dcSmrgBEGIN {RS = " "; FS = "/|\n";} {
177264a8d91dcSmrg  lt_foo = "";
177274a8d91dcSmrg  lt_count = 0;
17728b3e38ee4Smrg  for (lt_i = NF; lt_i > 0; lt_i--) {
17729b3e38ee4Smrg    if ($lt_i != "" && $lt_i != ".") {
17730b3e38ee4Smrg      if ($lt_i == "..") {
17731b3e38ee4Smrg        lt_count++;
17732b3e38ee4Smrg      } else {
17733b3e38ee4Smrg        if (lt_count == 0) {
177344a8d91dcSmrg          lt_foo = "/" $lt_i lt_foo;
17735b3e38ee4Smrg        } else {
17736b3e38ee4Smrg          lt_count--;
17737b3e38ee4Smrg        }
17738b3e38ee4Smrg      }
17739b3e38ee4Smrg    }
17740b3e38ee4Smrg  }
17741b3e38ee4Smrg  if (lt_foo != "") { lt_freq[lt_foo]++; }
17742b3e38ee4Smrg  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17743b3e38ee4Smrg}'`
17744a73423d7Smrg  # AWK program above erroneously prepends '/' to C:/dos/paths
17745a73423d7Smrg  # for these hosts.
17746a73423d7Smrg  case $host_os in
17747a73423d7Smrg    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
177484a8d91dcSmrg      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17749a73423d7Smrg  esac
17750a73423d7Smrg  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17751b3e38ee4Smrgelse
17752b3e38ee4Smrg  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17753b3e38ee4Smrgfi
17754b3e38ee4Smrglibrary_names_spec=
17755b3e38ee4Smrglibname_spec='lib$name'
17756b3e38ee4Smrgsoname_spec=
177574a8d91dcSmrgshrext_cmds=.so
17758b3e38ee4Smrgpostinstall_cmds=
17759b3e38ee4Smrgpostuninstall_cmds=
17760b3e38ee4Smrgfinish_cmds=
17761b3e38ee4Smrgfinish_eval=
17762b3e38ee4Smrgshlibpath_var=
17763b3e38ee4Smrgshlibpath_overrides_runpath=unknown
17764b3e38ee4Smrgversion_type=none
17765b3e38ee4Smrgdynamic_linker="$host_os ld.so"
17766b3e38ee4Smrgsys_lib_dlsearch_path_spec="/lib /usr/lib"
17767b3e38ee4Smrgneed_lib_prefix=unknown
17768b3e38ee4Smrghardcode_into_libs=no
17769a18ebfb2Smrg
17770b3e38ee4Smrg# when you set need_version to no, make sure it does not cause -set_version
17771b3e38ee4Smrg# flags to be left without arguments
17772b3e38ee4Smrgneed_version=unknown
17773a18ebfb2Smrg
177744a8d91dcSmrg
177754a8d91dcSmrg
17776b3e38ee4Smrgcase $host_os in
17777b3e38ee4Smrgaix3*)
17778a73423d7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
177794a8d91dcSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17780b3e38ee4Smrg  shlibpath_var=LIBPATH
17781a18ebfb2Smrg
17782b3e38ee4Smrg  # AIX 3 has no versioning support, so we append a major version to the name.
177834a8d91dcSmrg  soname_spec='$libname$release$shared_ext$major'
17784b3e38ee4Smrg  ;;
17785a18ebfb2Smrg
17786b3e38ee4Smrgaix[4-9]*)
17787a73423d7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
17788b3e38ee4Smrg  need_lib_prefix=no
17789b3e38ee4Smrg  need_version=no
17790b3e38ee4Smrg  hardcode_into_libs=yes
177914a8d91dcSmrg  if test ia64 = "$host_cpu"; then
17792b3e38ee4Smrg    # AIX 5 supports IA64
177934a8d91dcSmrg    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17794b3e38ee4Smrg    shlibpath_var=LD_LIBRARY_PATH
17795b3e38ee4Smrg  else
17796b3e38ee4Smrg    # With GCC up to 2.95.x, collect2 would create an import file
17797b3e38ee4Smrg    # for dependence libraries.  The import file would start with
177984a8d91dcSmrg    # the line '#! .'.  This would cause the generated library to
177994a8d91dcSmrg    # depend on '.', always an invalid library.  This was fixed in
17800b3e38ee4Smrg    # development snapshots of GCC prior to 3.0.
17801a18ebfb2Smrg    case $host_os in
17802b3e38ee4Smrg      aix4 | aix4.[01] | aix4.[01].*)
17803b3e38ee4Smrg      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17804b3e38ee4Smrg	   echo ' yes '
178054a8d91dcSmrg	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17806b3e38ee4Smrg	:
17807b3e38ee4Smrg      else
17808b3e38ee4Smrg	can_build_shared=no
17809a18ebfb2Smrg      fi
17810a18ebfb2Smrg      ;;
17811b3e38ee4Smrg    esac
178124a8d91dcSmrg    # Using Import Files as archive members, it is possible to support
178134a8d91dcSmrg    # filename-based versioning of shared library archives on AIX. While
178144a8d91dcSmrg    # this would work for both with and without runtime linking, it will
178154a8d91dcSmrg    # prevent static linking of such archives. So we do filename-based
178164a8d91dcSmrg    # shared library versioning with .so extension only, which is used
178174a8d91dcSmrg    # when both runtime linking and shared linking is enabled.
178184a8d91dcSmrg    # Unfortunately, runtime linking may impact performance, so we do
178194a8d91dcSmrg    # not want this to be the default eventually. Also, we use the
178204a8d91dcSmrg    # versioned .so libs for executables only if there is the -brtl
178214a8d91dcSmrg    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
178224a8d91dcSmrg    # To allow for filename-based versioning support, we need to create
178234a8d91dcSmrg    # libNAME.so.V as an archive file, containing:
178244a8d91dcSmrg    # *) an Import File, referring to the versioned filename of the
178254a8d91dcSmrg    #    archive as well as the shared archive member, telling the
178264a8d91dcSmrg    #    bitwidth (32 or 64) of that shared object, and providing the
178274a8d91dcSmrg    #    list of exported symbols of that shared object, eventually
178284a8d91dcSmrg    #    decorated with the 'weak' keyword
178294a8d91dcSmrg    # *) the shared object with the F_LOADONLY flag set, to really avoid
178304a8d91dcSmrg    #    it being seen by the linker.
178314a8d91dcSmrg    # At run time we better use the real file rather than another symlink,
178324a8d91dcSmrg    # but for link time we create the symlink libNAME.so -> libNAME.so.V
178334a8d91dcSmrg
178344a8d91dcSmrg    case $with_aix_soname,$aix_use_runtimelinking in
178354a8d91dcSmrg    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17836b3e38ee4Smrg    # soname into executable. Probably we can add versioning support to
17837b3e38ee4Smrg    # collect2, so additional links can be useful in future.
178384a8d91dcSmrg    aix,yes) # traditional libtool
178394a8d91dcSmrg      dynamic_linker='AIX unversionable lib.so'
17840b3e38ee4Smrg      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17841b3e38ee4Smrg      # instead of lib<name>.a to let people know that these are not
17842b3e38ee4Smrg      # typical AIX shared libraries.
178434a8d91dcSmrg      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
178444a8d91dcSmrg      ;;
178454a8d91dcSmrg    aix,no) # traditional AIX only
178464a8d91dcSmrg      dynamic_linker='AIX lib.a(lib.so.V)'
17847b3e38ee4Smrg      # We preserve .a as extension for shared libraries through AIX4.2
17848b3e38ee4Smrg      # and later when we are not doing run time linking.
178494a8d91dcSmrg      library_names_spec='$libname$release.a $libname.a'
178504a8d91dcSmrg      soname_spec='$libname$release$shared_ext$major'
178514a8d91dcSmrg      ;;
178524a8d91dcSmrg    svr4,*) # full svr4 only
178534a8d91dcSmrg      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
178544a8d91dcSmrg      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
178554a8d91dcSmrg      # We do not specify a path in Import Files, so LIBPATH fires.
178564a8d91dcSmrg      shlibpath_overrides_runpath=yes
178574a8d91dcSmrg      ;;
178584a8d91dcSmrg    *,yes) # both, prefer svr4
178594a8d91dcSmrg      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
178604a8d91dcSmrg      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
178614a8d91dcSmrg      # unpreferred sharedlib libNAME.a needs extra handling
178624a8d91dcSmrg      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
178634a8d91dcSmrg      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
178644a8d91dcSmrg      # We do not specify a path in Import Files, so LIBPATH fires.
178654a8d91dcSmrg      shlibpath_overrides_runpath=yes
178664a8d91dcSmrg      ;;
178674a8d91dcSmrg    *,no) # both, prefer aix
178684a8d91dcSmrg      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
178694a8d91dcSmrg      library_names_spec='$libname$release.a $libname.a'
178704a8d91dcSmrg      soname_spec='$libname$release$shared_ext$major'
178714a8d91dcSmrg      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
178724a8d91dcSmrg      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
178734a8d91dcSmrg      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
178744a8d91dcSmrg      ;;
178754a8d91dcSmrg    esac
17876b3e38ee4Smrg    shlibpath_var=LIBPATH
17877b3e38ee4Smrg  fi
17878b3e38ee4Smrg  ;;
17879a18ebfb2Smrg
17880b3e38ee4Smrgamigaos*)
17881b3e38ee4Smrg  case $host_cpu in
17882b3e38ee4Smrg  powerpc)
17883b3e38ee4Smrg    # Since July 2007 AmigaOS4 officially supports .so libraries.
17884b3e38ee4Smrg    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
178854a8d91dcSmrg    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17886b3e38ee4Smrg    ;;
17887b3e38ee4Smrg  m68k)
17888b3e38ee4Smrg    library_names_spec='$libname.ixlibrary $libname.a'
17889b3e38ee4Smrg    # Create ${libname}_ixlibrary.a entries in /sys/libs.
178904a8d91dcSmrg    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
17891b3e38ee4Smrg    ;;
17892b3e38ee4Smrg  esac
17893b3e38ee4Smrg  ;;
17894a18ebfb2Smrg
17895b3e38ee4Smrgbeos*)
178964a8d91dcSmrg  library_names_spec='$libname$shared_ext'
17897b3e38ee4Smrg  dynamic_linker="$host_os ld.so"
17898b3e38ee4Smrg  shlibpath_var=LIBRARY_PATH
17899b3e38ee4Smrg  ;;
17900a18ebfb2Smrg
17901b3e38ee4Smrgbsdi[45]*)
17902a73423d7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
17903b3e38ee4Smrg  need_version=no
179044a8d91dcSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
179054a8d91dcSmrg  soname_spec='$libname$release$shared_ext$major'
17906b3e38ee4Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17907b3e38ee4Smrg  shlibpath_var=LD_LIBRARY_PATH
17908b3e38ee4Smrg  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17909b3e38ee4Smrg  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17910b3e38ee4Smrg  # the default ld.so.conf also contains /usr/contrib/lib and
17911b3e38ee4Smrg  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17912b3e38ee4Smrg  # libtool to hard-code these into programs
17913b3e38ee4Smrg  ;;
17914a18ebfb2Smrg
17915b3e38ee4Smrgcygwin* | mingw* | pw32* | cegcc*)
17916b3e38ee4Smrg  version_type=windows
179174a8d91dcSmrg  shrext_cmds=.dll
17918b3e38ee4Smrg  need_version=no
17919b3e38ee4Smrg  need_lib_prefix=no
17920a18ebfb2Smrg
17921a73423d7Smrg  case $GCC,$cc_basename in
17922a73423d7Smrg  yes,*)
17923a73423d7Smrg    # gcc
17924b3e38ee4Smrg    library_names_spec='$libname.dll.a'
17925b3e38ee4Smrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
179264a8d91dcSmrg    postinstall_cmds='base_file=`basename \$file`~
179274a8d91dcSmrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17928b3e38ee4Smrg      dldir=$destdir/`dirname \$dlpath`~
17929b3e38ee4Smrg      test -d \$dldir || mkdir -p \$dldir~
17930b3e38ee4Smrg      $install_prog $dir/$dlname \$dldir/$dlname~
17931b3e38ee4Smrg      chmod a+x \$dldir/$dlname~
17932b3e38ee4Smrg      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17933b3e38ee4Smrg        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17934b3e38ee4Smrg      fi'
17935b3e38ee4Smrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17936b3e38ee4Smrg      dlpath=$dir/\$dldll~
17937b3e38ee4Smrg       $RM \$dlpath'
17938b3e38ee4Smrg    shlibpath_overrides_runpath=yes
17939a18ebfb2Smrg
17940a18ebfb2Smrg    case $host_os in
17941b3e38ee4Smrg    cygwin*)
17942b3e38ee4Smrg      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17943e9f7eabcSmrg      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17944a73423d7Smrg
17945a73423d7Smrg      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17946b3e38ee4Smrg      ;;
17947b3e38ee4Smrg    mingw* | cegcc*)
17948b3e38ee4Smrg      # MinGW DLLs use traditional 'lib' prefix
179494a8d91dcSmrg      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17950a18ebfb2Smrg      ;;
17951b3e38ee4Smrg    pw32*)
17952b3e38ee4Smrg      # pw32 DLLs use 'pw' prefix rather than 'lib'
17953e9f7eabcSmrg      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17954a18ebfb2Smrg      ;;
17955b3e38ee4Smrg    esac
17956a73423d7Smrg    dynamic_linker='Win32 ld.exe'
17957a73423d7Smrg    ;;
17958a73423d7Smrg
17959e9f7eabcSmrg  *,cl* | *,icl*)
17960e9f7eabcSmrg    # Native MSVC or ICC
17961a73423d7Smrg    libname_spec='$name'
179624a8d91dcSmrg    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
179634a8d91dcSmrg    library_names_spec='$libname.dll.lib'
17964a73423d7Smrg
17965a73423d7Smrg    case $build_os in
17966a73423d7Smrg    mingw*)
17967a73423d7Smrg      sys_lib_search_path_spec=
17968a73423d7Smrg      lt_save_ifs=$IFS
17969a73423d7Smrg      IFS=';'
17970a73423d7Smrg      for lt_path in $LIB
17971a73423d7Smrg      do
17972a73423d7Smrg        IFS=$lt_save_ifs
17973a73423d7Smrg        # Let DOS variable expansion print the short 8.3 style file name.
17974a73423d7Smrg        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17975a73423d7Smrg        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17976a73423d7Smrg      done
17977a73423d7Smrg      IFS=$lt_save_ifs
17978a73423d7Smrg      # Convert to MSYS style.
17979e9f7eabcSmrg      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17980a73423d7Smrg      ;;
17981a73423d7Smrg    cygwin*)
17982a73423d7Smrg      # Convert to unix form, then to dos form, then back to unix form
17983a73423d7Smrg      # but this time dos style (no spaces!) so that the unix form looks
17984a73423d7Smrg      # like /cygdrive/c/PROGRA~1:/cygdr...
17985a73423d7Smrg      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17986a73423d7Smrg      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17987a73423d7Smrg      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17988a73423d7Smrg      ;;
17989a73423d7Smrg    *)
179904a8d91dcSmrg      sys_lib_search_path_spec=$LIB
17991a73423d7Smrg      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17992a73423d7Smrg        # It is most probably a Windows format PATH.
17993a73423d7Smrg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17994a73423d7Smrg      else
17995a73423d7Smrg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17996a73423d7Smrg      fi
17997a73423d7Smrg      # FIXME: find the short name or the path components, as spaces are
17998a73423d7Smrg      # common. (e.g. "Program Files" -> "PROGRA~1")
17999a73423d7Smrg      ;;
18000a73423d7Smrg    esac
18001a73423d7Smrg
18002a73423d7Smrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
180034a8d91dcSmrg    postinstall_cmds='base_file=`basename \$file`~
180044a8d91dcSmrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18005a73423d7Smrg      dldir=$destdir/`dirname \$dlpath`~
18006a73423d7Smrg      test -d \$dldir || mkdir -p \$dldir~
18007a73423d7Smrg      $install_prog $dir/$dlname \$dldir/$dlname'
18008a73423d7Smrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18009a73423d7Smrg      dlpath=$dir/\$dldll~
18010a73423d7Smrg       $RM \$dlpath'
18011a73423d7Smrg    shlibpath_overrides_runpath=yes
18012a73423d7Smrg    dynamic_linker='Win32 link.exe'
18013b3e38ee4Smrg    ;;
18014a18ebfb2Smrg
18015b3e38ee4Smrg  *)
18016e9f7eabcSmrg    # Assume MSVC and ICC wrapper
180174a8d91dcSmrg    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18018a73423d7Smrg    dynamic_linker='Win32 ld.exe'
18019b3e38ee4Smrg    ;;
18020b3e38ee4Smrg  esac
18021b3e38ee4Smrg  # FIXME: first we should search . and the directory the executable is in
18022b3e38ee4Smrg  shlibpath_var=PATH
18023b3e38ee4Smrg  ;;
18024a18ebfb2Smrg
18025b3e38ee4Smrgdarwin* | rhapsody*)
18026b3e38ee4Smrg  dynamic_linker="$host_os dyld"
18027b3e38ee4Smrg  version_type=darwin
18028b3e38ee4Smrg  need_lib_prefix=no
18029b3e38ee4Smrg  need_version=no
180304a8d91dcSmrg  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
180314a8d91dcSmrg  soname_spec='$libname$release$major$shared_ext'
18032b3e38ee4Smrg  shlibpath_overrides_runpath=yes
18033b3e38ee4Smrg  shlibpath_var=DYLD_LIBRARY_PATH
18034b3e38ee4Smrg  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18035a18ebfb2Smrg
18036b3e38ee4Smrg  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18037b3e38ee4Smrg  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18038b3e38ee4Smrg  ;;
18039a18ebfb2Smrg
18040b3e38ee4Smrgdgux*)
18041a73423d7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
18042b3e38ee4Smrg  need_lib_prefix=no
18043b3e38ee4Smrg  need_version=no
180444a8d91dcSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
180454a8d91dcSmrg  soname_spec='$libname$release$shared_ext$major'
18046b3e38ee4Smrg  shlibpath_var=LD_LIBRARY_PATH
18047b3e38ee4Smrg  ;;
18048a18ebfb2Smrg
18049e9f7eabcSmrgfreebsd* | dragonfly* | midnightbsd*)
18050b3e38ee4Smrg  # DragonFly does not have aout.  When/if they implement a new
18051b3e38ee4Smrg  # versioning mechanism, adjust this.
18052b3e38ee4Smrg  if test -x /usr/bin/objformat; then
18053b3e38ee4Smrg    objformat=`/usr/bin/objformat`
18054b3e38ee4Smrg  else
18055b3e38ee4Smrg    case $host_os in
18056a73423d7Smrg    freebsd[23].*) objformat=aout ;;
18057b3e38ee4Smrg    *) objformat=elf ;;
18058b3e38ee4Smrg    esac
18059b3e38ee4Smrg  fi
18060b3e38ee4Smrg  version_type=freebsd-$objformat
18061b3e38ee4Smrg  case $version_type in
18062b3e38ee4Smrg    freebsd-elf*)
180634a8d91dcSmrg      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
180644a8d91dcSmrg      soname_spec='$libname$release$shared_ext$major'
18065b3e38ee4Smrg      need_version=no
18066b3e38ee4Smrg      need_lib_prefix=no
18067a18ebfb2Smrg      ;;
18068b3e38ee4Smrg    freebsd-*)
180694a8d91dcSmrg      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18070b3e38ee4Smrg      need_version=yes
18071a18ebfb2Smrg      ;;
18072b3e38ee4Smrg  esac
18073b3e38ee4Smrg  shlibpath_var=LD_LIBRARY_PATH
18074b3e38ee4Smrg  case $host_os in
18075a73423d7Smrg  freebsd2.*)
18076b3e38ee4Smrg    shlibpath_overrides_runpath=yes
18077b3e38ee4Smrg    ;;
18078b3e38ee4Smrg  freebsd3.[01]* | freebsdelf3.[01]*)
18079b3e38ee4Smrg    shlibpath_overrides_runpath=yes
18080b3e38ee4Smrg    hardcode_into_libs=yes
18081b3e38ee4Smrg    ;;
18082b3e38ee4Smrg  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18083b3e38ee4Smrg  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18084b3e38ee4Smrg    shlibpath_overrides_runpath=no
18085b3e38ee4Smrg    hardcode_into_libs=yes
18086b3e38ee4Smrg    ;;
18087b3e38ee4Smrg  *) # from 4.6 on, and DragonFly
18088b3e38ee4Smrg    shlibpath_overrides_runpath=yes
18089b3e38ee4Smrg    hardcode_into_libs=yes
18090b3e38ee4Smrg    ;;
18091b3e38ee4Smrg  esac
18092b3e38ee4Smrg  ;;
18093a18ebfb2Smrg
18094a73423d7Smrghaiku*)
18095a73423d7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
18096a73423d7Smrg  need_lib_prefix=no
18097a73423d7Smrg  need_version=no
18098a73423d7Smrg  dynamic_linker="$host_os runtime_loader"
180994a8d91dcSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
181004a8d91dcSmrg  soname_spec='$libname$release$shared_ext$major'
18101a73423d7Smrg  shlibpath_var=LIBRARY_PATH
181024a8d91dcSmrg  shlibpath_overrides_runpath=no
18103a73423d7Smrg  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18104b3e38ee4Smrg  hardcode_into_libs=yes
18105b3e38ee4Smrg  ;;
18106a18ebfb2Smrg
18107b3e38ee4Smrghpux9* | hpux10* | hpux11*)
18108b3e38ee4Smrg  # Give a soname corresponding to the major version so that dld.sl refuses to
18109b3e38ee4Smrg  # link against other versions.
18110b3e38ee4Smrg  version_type=sunos
18111b3e38ee4Smrg  need_lib_prefix=no
18112b3e38ee4Smrg  need_version=no
18113b3e38ee4Smrg  case $host_cpu in
18114b3e38ee4Smrg  ia64*)
18115b3e38ee4Smrg    shrext_cmds='.so'
18116b3e38ee4Smrg    hardcode_into_libs=yes
18117b3e38ee4Smrg    dynamic_linker="$host_os dld.so"
18118b3e38ee4Smrg    shlibpath_var=LD_LIBRARY_PATH
18119b3e38ee4Smrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
181204a8d91dcSmrg    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
181214a8d91dcSmrg    soname_spec='$libname$release$shared_ext$major'
181224a8d91dcSmrg    if test 32 = "$HPUX_IA64_MODE"; then
18123b3e38ee4Smrg      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
181244a8d91dcSmrg      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18125b3e38ee4Smrg    else
18126b3e38ee4Smrg      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
181274a8d91dcSmrg      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18128b3e38ee4Smrg    fi
18129b3e38ee4Smrg    ;;
18130b3e38ee4Smrg  hppa*64*)
18131b3e38ee4Smrg    shrext_cmds='.sl'
18132b3e38ee4Smrg    hardcode_into_libs=yes
18133b3e38ee4Smrg    dynamic_linker="$host_os dld.sl"
18134b3e38ee4Smrg    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18135b3e38ee4Smrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
181364a8d91dcSmrg    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
181374a8d91dcSmrg    soname_spec='$libname$release$shared_ext$major'
18138b3e38ee4Smrg    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18139b3e38ee4Smrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18140b3e38ee4Smrg    ;;
18141b3e38ee4Smrg  *)
18142b3e38ee4Smrg    shrext_cmds='.sl'
18143b3e38ee4Smrg    dynamic_linker="$host_os dld.sl"
18144b3e38ee4Smrg    shlibpath_var=SHLIB_PATH
18145b3e38ee4Smrg    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
181464a8d91dcSmrg    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
181474a8d91dcSmrg    soname_spec='$libname$release$shared_ext$major'
18148b3e38ee4Smrg    ;;
18149b3e38ee4Smrg  esac
18150a73423d7Smrg  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18151b3e38ee4Smrg  postinstall_cmds='chmod 555 $lib'
18152a73423d7Smrg  # or fails outright, so override atomically:
18153a73423d7Smrg  install_override_mode=555
18154b3e38ee4Smrg  ;;
18155a18ebfb2Smrg
18156b3e38ee4Smrginterix[3-9]*)
18157a73423d7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
18158b3e38ee4Smrg  need_lib_prefix=no
18159b3e38ee4Smrg  need_version=no
181604a8d91dcSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
181614a8d91dcSmrg  soname_spec='$libname$release$shared_ext$major'
18162b3e38ee4Smrg  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18163b3e38ee4Smrg  shlibpath_var=LD_LIBRARY_PATH
18164b3e38ee4Smrg  shlibpath_overrides_runpath=no
18165b3e38ee4Smrg  hardcode_into_libs=yes
18166b3e38ee4Smrg  ;;
18167a18ebfb2Smrg
18168b3e38ee4Smrgirix5* | irix6* | nonstopux*)
18169b3e38ee4Smrg  case $host_os in
18170b3e38ee4Smrg    nonstopux*) version_type=nonstopux ;;
18171a18ebfb2Smrg    *)
181724a8d91dcSmrg	if test yes = "$lt_cv_prog_gnu_ld"; then
18173a73423d7Smrg		version_type=linux # correct to gnu/linux during the next big refactor
18174b3e38ee4Smrg	else
18175b3e38ee4Smrg		version_type=irix
18176b3e38ee4Smrg	fi ;;
18177b3e38ee4Smrg  esac
18178b3e38ee4Smrg  need_lib_prefix=no
18179b3e38ee4Smrg  need_version=no
181804a8d91dcSmrg  soname_spec='$libname$release$shared_ext$major'
181814a8d91dcSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18182b3e38ee4Smrg  case $host_os in
18183b3e38ee4Smrg  irix5* | nonstopux*)
18184b3e38ee4Smrg    libsuff= shlibsuff=
18185b3e38ee4Smrg    ;;
18186b3e38ee4Smrg  *)
18187b3e38ee4Smrg    case $LD in # libtool.m4 will add one of these switches to LD
18188b3e38ee4Smrg    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18189b3e38ee4Smrg      libsuff= shlibsuff= libmagic=32-bit;;
18190b3e38ee4Smrg    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18191b3e38ee4Smrg      libsuff=32 shlibsuff=N32 libmagic=N32;;
18192b3e38ee4Smrg    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18193b3e38ee4Smrg      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18194b3e38ee4Smrg    *) libsuff= shlibsuff= libmagic=never-match;;
18195a18ebfb2Smrg    esac
18196b3e38ee4Smrg    ;;
18197b3e38ee4Smrg  esac
18198b3e38ee4Smrg  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18199b3e38ee4Smrg  shlibpath_overrides_runpath=no
182004a8d91dcSmrg  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
182014a8d91dcSmrg  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18202b3e38ee4Smrg  hardcode_into_libs=yes
18203b3e38ee4Smrg  ;;
18204a18ebfb2Smrg
18205b3e38ee4Smrg# No shared lib support for Linux oldld, aout, or coff.
18206b3e38ee4Smrglinux*oldld* | linux*aout* | linux*coff*)
18207b3e38ee4Smrg  dynamic_linker=no
18208b3e38ee4Smrg  ;;
18209a18ebfb2Smrg
182104a8d91dcSmrglinux*android*)
182114a8d91dcSmrg  version_type=none # Android doesn't support versioned libraries.
182124a8d91dcSmrg  need_lib_prefix=no
182134a8d91dcSmrg  need_version=no
182144a8d91dcSmrg  library_names_spec='$libname$release$shared_ext'
182154a8d91dcSmrg  soname_spec='$libname$release$shared_ext'
182164a8d91dcSmrg  finish_cmds=
182174a8d91dcSmrg  shlibpath_var=LD_LIBRARY_PATH
182184a8d91dcSmrg  shlibpath_overrides_runpath=yes
182194a8d91dcSmrg
182204a8d91dcSmrg  # This implies no fast_install, which is unacceptable.
182214a8d91dcSmrg  # Some rework will be needed to allow for fast_install
182224a8d91dcSmrg  # before this can be enabled.
182234a8d91dcSmrg  hardcode_into_libs=yes
182244a8d91dcSmrg
182254a8d91dcSmrg  dynamic_linker='Android linker'
182264a8d91dcSmrg  # Don't embed -rpath directories since the linker doesn't support them.
182274a8d91dcSmrg  hardcode_libdir_flag_spec='-L$libdir'
182284a8d91dcSmrg  ;;
182294a8d91dcSmrg
18230a73423d7Smrg# This must be glibc/ELF.
182314a8d91dcSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18232a73423d7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
18233b3e38ee4Smrg  need_lib_prefix=no
18234b3e38ee4Smrg  need_version=no
182354a8d91dcSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
182364a8d91dcSmrg  soname_spec='$libname$release$shared_ext$major'
18237b3e38ee4Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18238b3e38ee4Smrg  shlibpath_var=LD_LIBRARY_PATH
18239b3e38ee4Smrg  shlibpath_overrides_runpath=no
18240a73423d7Smrg
18241b3e38ee4Smrg  # Some binutils ld are patched to set DT_RUNPATH
18242e9f7eabcSmrg  if test ${lt_cv_shlibpath_overrides_runpath+y}
18243e9f7eabcSmrgthen :
18244e9f7eabcSmrg  printf %s "(cached) " >&6
18245e9f7eabcSmrgelse $as_nop
18246a73423d7Smrg  lt_cv_shlibpath_overrides_runpath=no
18247a73423d7Smrg    save_LDFLAGS=$LDFLAGS
18248a73423d7Smrg    save_libdir=$libdir
18249a73423d7Smrg    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18250a73423d7Smrg	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18251a73423d7Smrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18252b3e38ee4Smrg/* end confdefs.h.  */
18253a18ebfb2Smrg
18254b3e38ee4Smrgint
18255e9f7eabcSmrgmain (void)
18256b3e38ee4Smrg{
18257a18ebfb2Smrg
18258b3e38ee4Smrg  ;
18259b3e38ee4Smrg  return 0;
18260b3e38ee4Smrg}
18261b3e38ee4Smrg_ACEOF
18262e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
18263e9f7eabcSmrgthen :
18264e9f7eabcSmrg  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18265e9f7eabcSmrgthen :
18266a73423d7Smrg  lt_cv_shlibpath_overrides_runpath=yes
18267b3e38ee4Smrgfi
18268a73423d7Smrgfi
18269e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
18270a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
18271a73423d7Smrg    LDFLAGS=$save_LDFLAGS
18272a73423d7Smrg    libdir=$save_libdir
18273a18ebfb2Smrg
18274a18ebfb2Smrgfi
18275a18ebfb2Smrg
18276a73423d7Smrg  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18277a18ebfb2Smrg
18278b3e38ee4Smrg  # This implies no fast_install, which is unacceptable.
18279b3e38ee4Smrg  # Some rework will be needed to allow for fast_install
18280b3e38ee4Smrg  # before this can be enabled.
18281b3e38ee4Smrg  hardcode_into_libs=yes
18282a18ebfb2Smrg
182834a8d91dcSmrg  # Ideally, we could use ldconfig to report *all* directores which are
182844a8d91dcSmrg  # searched for libraries, however this is still not possible.  Aside from not
182854a8d91dcSmrg  # being certain /sbin/ldconfig is available, command
182864a8d91dcSmrg  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
182874a8d91dcSmrg  # even though it is searched at run-time.  Try to do the best guess by
182884a8d91dcSmrg  # appending ld.so.conf contents (and includes) to the search path.
18289b3e38ee4Smrg  if test -f /etc/ld.so.conf; then
18290a73423d7Smrg    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' ' '`
182914a8d91dcSmrg    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18292b3e38ee4Smrg  fi
18293a18ebfb2Smrg
18294b3e38ee4Smrg  # We used to test for /lib/ld.so.1 and disable shared libraries on
18295b3e38ee4Smrg  # powerpc, because MkLinux only supported shared libraries with the
18296b3e38ee4Smrg  # GNU dynamic linker.  Since this was broken with cross compilers,
18297b3e38ee4Smrg  # most powerpc-linux boxes support dynamic linking these days and
18298b3e38ee4Smrg  # people can always --disable-shared, the test was removed, and we
18299b3e38ee4Smrg  # assume the GNU/Linux dynamic linker is in use.
18300b3e38ee4Smrg  dynamic_linker='GNU/Linux ld.so'
18301b3e38ee4Smrg  ;;
18302a18ebfb2Smrg
18303b3e38ee4Smrgnetbsd*)
18304b3e38ee4Smrg  version_type=sunos
18305b3e38ee4Smrg  need_lib_prefix=no
18306b3e38ee4Smrg  need_version=no
18307b3e38ee4Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
183084a8d91dcSmrg    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18309b3e38ee4Smrg    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18310b3e38ee4Smrg    dynamic_linker='NetBSD (a.out) ld.so'
18311b3e38ee4Smrg  else
183124a8d91dcSmrg    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
183134a8d91dcSmrg    soname_spec='$libname$release$shared_ext$major'
18314b3e38ee4Smrg    dynamic_linker='NetBSD ld.elf_so'
18315a18ebfb2Smrg  fi
18316b3e38ee4Smrg  shlibpath_var=LD_LIBRARY_PATH
18317b3e38ee4Smrg  shlibpath_overrides_runpath=yes
18318b3e38ee4Smrg  hardcode_into_libs=yes
18319b3e38ee4Smrg  ;;
18320a18ebfb2Smrg
18321b3e38ee4Smrgnewsos6)
18322a73423d7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
183234a8d91dcSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18324b3e38ee4Smrg  shlibpath_var=LD_LIBRARY_PATH
18325b3e38ee4Smrg  shlibpath_overrides_runpath=yes
18326b3e38ee4Smrg  ;;
18327a18ebfb2Smrg
18328b3e38ee4Smrg*nto* | *qnx*)
18329b3e38ee4Smrg  version_type=qnx
18330b3e38ee4Smrg  need_lib_prefix=no
18331b3e38ee4Smrg  need_version=no
183324a8d91dcSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
183334a8d91dcSmrg  soname_spec='$libname$release$shared_ext$major'
18334b3e38ee4Smrg  shlibpath_var=LD_LIBRARY_PATH
18335b3e38ee4Smrg  shlibpath_overrides_runpath=no
18336b3e38ee4Smrg  hardcode_into_libs=yes
18337b3e38ee4Smrg  dynamic_linker='ldqnx.so'
18338b3e38ee4Smrg  ;;
18339a18ebfb2Smrg
183404a8d91dcSmrgopenbsd* | bitrig*)
18341b3e38ee4Smrg  version_type=sunos
183424a8d91dcSmrg  sys_lib_dlsearch_path_spec=/usr/lib
18343b3e38ee4Smrg  need_lib_prefix=no
183444a8d91dcSmrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
183454a8d91dcSmrg    need_version=no
18346b3e38ee4Smrg  else
183474a8d91dcSmrg    need_version=yes
18348b3e38ee4Smrg  fi
183494a8d91dcSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
183504a8d91dcSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
183514a8d91dcSmrg  shlibpath_var=LD_LIBRARY_PATH
183524a8d91dcSmrg  shlibpath_overrides_runpath=yes
18353b3e38ee4Smrg  ;;
18354a18ebfb2Smrg
18355b3e38ee4Smrgos2*)
18356b3e38ee4Smrg  libname_spec='$name'
183574a8d91dcSmrg  version_type=windows
183584a8d91dcSmrg  shrext_cmds=.dll
183594a8d91dcSmrg  need_version=no
18360b3e38ee4Smrg  need_lib_prefix=no
183614a8d91dcSmrg  # OS/2 can only load a DLL with a base name of 8 characters or less.
183624a8d91dcSmrg  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
183634a8d91dcSmrg    v=$($ECHO $release$versuffix | tr -d .-);
183644a8d91dcSmrg    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
183654a8d91dcSmrg    $ECHO $n$v`$shared_ext'
183664a8d91dcSmrg  library_names_spec='${libname}_dll.$libext'
18367b3e38ee4Smrg  dynamic_linker='OS/2 ld.exe'
183684a8d91dcSmrg  shlibpath_var=BEGINLIBPATH
183694a8d91dcSmrg  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
183704a8d91dcSmrg  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
183714a8d91dcSmrg  postinstall_cmds='base_file=`basename \$file`~
183724a8d91dcSmrg    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
183734a8d91dcSmrg    dldir=$destdir/`dirname \$dlpath`~
183744a8d91dcSmrg    test -d \$dldir || mkdir -p \$dldir~
183754a8d91dcSmrg    $install_prog $dir/$dlname \$dldir/$dlname~
183764a8d91dcSmrg    chmod a+x \$dldir/$dlname~
183774a8d91dcSmrg    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
183784a8d91dcSmrg      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
183794a8d91dcSmrg    fi'
183804a8d91dcSmrg  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
183814a8d91dcSmrg    dlpath=$dir/\$dldll~
183824a8d91dcSmrg    $RM \$dlpath'
18383b3e38ee4Smrg  ;;
18384a18ebfb2Smrg
18385b3e38ee4Smrgosf3* | osf4* | osf5*)
18386b3e38ee4Smrg  version_type=osf
18387b3e38ee4Smrg  need_lib_prefix=no
18388b3e38ee4Smrg  need_version=no
183894a8d91dcSmrg  soname_spec='$libname$release$shared_ext$major'
183904a8d91dcSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18391b3e38ee4Smrg  shlibpath_var=LD_LIBRARY_PATH
18392b3e38ee4Smrg  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
183934a8d91dcSmrg  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18394b3e38ee4Smrg  ;;
18395a18ebfb2Smrg
18396b3e38ee4Smrgrdos*)
18397b3e38ee4Smrg  dynamic_linker=no
18398b3e38ee4Smrg  ;;
18399a18ebfb2Smrg
18400b3e38ee4Smrgsolaris*)
18401a73423d7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
18402b3e38ee4Smrg  need_lib_prefix=no
18403b3e38ee4Smrg  need_version=no
184044a8d91dcSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
184054a8d91dcSmrg  soname_spec='$libname$release$shared_ext$major'
18406b3e38ee4Smrg  shlibpath_var=LD_LIBRARY_PATH
18407b3e38ee4Smrg  shlibpath_overrides_runpath=yes
18408b3e38ee4Smrg  hardcode_into_libs=yes
18409b3e38ee4Smrg  # ldd complains unless libraries are executable
18410b3e38ee4Smrg  postinstall_cmds='chmod +x $lib'
18411b3e38ee4Smrg  ;;
18412a18ebfb2Smrg
18413b3e38ee4Smrgsunos4*)
18414b3e38ee4Smrg  version_type=sunos
184154a8d91dcSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18416b3e38ee4Smrg  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18417b3e38ee4Smrg  shlibpath_var=LD_LIBRARY_PATH
18418b3e38ee4Smrg  shlibpath_overrides_runpath=yes
184194a8d91dcSmrg  if test yes = "$with_gnu_ld"; then
18420b3e38ee4Smrg    need_lib_prefix=no
18421b3e38ee4Smrg  fi
18422b3e38ee4Smrg  need_version=yes
18423b3e38ee4Smrg  ;;
18424a18ebfb2Smrg
18425b3e38ee4Smrgsysv4 | sysv4.3*)
18426a73423d7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
184274a8d91dcSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
184284a8d91dcSmrg  soname_spec='$libname$release$shared_ext$major'
18429b3e38ee4Smrg  shlibpath_var=LD_LIBRARY_PATH
18430b3e38ee4Smrg  case $host_vendor in
18431b3e38ee4Smrg    sni)
18432b3e38ee4Smrg      shlibpath_overrides_runpath=no
18433b3e38ee4Smrg      need_lib_prefix=no
18434b3e38ee4Smrg      runpath_var=LD_RUN_PATH
18435a18ebfb2Smrg      ;;
18436b3e38ee4Smrg    siemens)
18437b3e38ee4Smrg      need_lib_prefix=no
18438a18ebfb2Smrg      ;;
18439b3e38ee4Smrg    motorola)
18440b3e38ee4Smrg      need_lib_prefix=no
18441b3e38ee4Smrg      need_version=no
18442b3e38ee4Smrg      shlibpath_overrides_runpath=no
18443b3e38ee4Smrg      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18444a18ebfb2Smrg      ;;
18445b3e38ee4Smrg  esac
18446b3e38ee4Smrg  ;;
18447a18ebfb2Smrg
18448b3e38ee4Smrgsysv4*MP*)
184494a8d91dcSmrg  if test -d /usr/nec; then
18450a73423d7Smrg    version_type=linux # correct to gnu/linux during the next big refactor
184514a8d91dcSmrg    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
184524a8d91dcSmrg    soname_spec='$libname$shared_ext.$major'
18453b3e38ee4Smrg    shlibpath_var=LD_LIBRARY_PATH
18454b3e38ee4Smrg  fi
18455b3e38ee4Smrg  ;;
18456a18ebfb2Smrg
18457b3e38ee4Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
184584a8d91dcSmrg  version_type=sco
18459b3e38ee4Smrg  need_lib_prefix=no
18460b3e38ee4Smrg  need_version=no
184614a8d91dcSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
184624a8d91dcSmrg  soname_spec='$libname$release$shared_ext$major'
18463b3e38ee4Smrg  shlibpath_var=LD_LIBRARY_PATH
18464b3e38ee4Smrg  shlibpath_overrides_runpath=yes
18465b3e38ee4Smrg  hardcode_into_libs=yes
184664a8d91dcSmrg  if test yes = "$with_gnu_ld"; then
18467b3e38ee4Smrg    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18468b3e38ee4Smrg  else
18469b3e38ee4Smrg    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18470b3e38ee4Smrg    case $host_os in
18471b3e38ee4Smrg      sco3.2v5*)
18472b3e38ee4Smrg        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18473b3e38ee4Smrg	;;
18474b3e38ee4Smrg    esac
18475b3e38ee4Smrg  fi
18476b3e38ee4Smrg  sys_lib_dlsearch_path_spec='/usr/lib'
18477b3e38ee4Smrg  ;;
18478a18ebfb2Smrg
18479b3e38ee4Smrgtpf*)
18480b3e38ee4Smrg  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18481a73423d7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
18482b3e38ee4Smrg  need_lib_prefix=no
18483b3e38ee4Smrg  need_version=no
184844a8d91dcSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18485b3e38ee4Smrg  shlibpath_var=LD_LIBRARY_PATH
18486b3e38ee4Smrg  shlibpath_overrides_runpath=no
18487b3e38ee4Smrg  hardcode_into_libs=yes
18488b3e38ee4Smrg  ;;
18489a18ebfb2Smrg
18490b3e38ee4Smrguts4*)
18491a73423d7Smrg  version_type=linux # correct to gnu/linux during the next big refactor
184924a8d91dcSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
184934a8d91dcSmrg  soname_spec='$libname$release$shared_ext$major'
18494b3e38ee4Smrg  shlibpath_var=LD_LIBRARY_PATH
18495b3e38ee4Smrg  ;;
18496a18ebfb2Smrg
18497b3e38ee4Smrg*)
18498b3e38ee4Smrg  dynamic_linker=no
18499b3e38ee4Smrg  ;;
18500b3e38ee4Smrgesac
18501e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18502e9f7eabcSmrgprintf "%s\n" "$dynamic_linker" >&6; }
185034a8d91dcSmrgtest no = "$dynamic_linker" && can_build_shared=no
18504a18ebfb2Smrg
18505b3e38ee4Smrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
185064a8d91dcSmrgif test yes = "$GCC"; then
18507b3e38ee4Smrg  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18508b3e38ee4Smrgfi
18509a18ebfb2Smrg
185104a8d91dcSmrgif test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
185114a8d91dcSmrg  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18512b3e38ee4Smrgfi
185134a8d91dcSmrg
185144a8d91dcSmrgif test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
185154a8d91dcSmrg  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18516b3e38ee4Smrgfi
18517a18ebfb2Smrg
185184a8d91dcSmrg# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
185194a8d91dcSmrgconfigure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
185204a8d91dcSmrg
185214a8d91dcSmrg# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
185224a8d91dcSmrgfunc_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
185234a8d91dcSmrg
185244a8d91dcSmrg# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
185254a8d91dcSmrgconfigure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
185264a8d91dcSmrg
185274a8d91dcSmrg
185284a8d91dcSmrg
185294a8d91dcSmrg
185304a8d91dcSmrg
185314a8d91dcSmrg
18532a18ebfb2Smrg
18533a18ebfb2Smrg
18534a18ebfb2Smrg
18535a18ebfb2Smrg
18536a18ebfb2Smrg
18537a18ebfb2Smrg
18538a18ebfb2Smrg
18539a18ebfb2Smrg
18540a18ebfb2Smrg
18541a18ebfb2Smrg
18542a18ebfb2Smrg
18543a18ebfb2Smrg
18544a18ebfb2Smrg
18545a18ebfb2Smrg
18546b3e38ee4Smrg
18547b3e38ee4Smrg
18548b3e38ee4Smrg
18549b3e38ee4Smrg
18550b3e38ee4Smrg
18551b3e38ee4Smrg
18552b3e38ee4Smrg
18553b3e38ee4Smrg
18554b3e38ee4Smrg
18555b3e38ee4Smrg
18556b3e38ee4Smrg
18557b3e38ee4Smrg
18558b3e38ee4Smrg
18559b3e38ee4Smrg
18560b3e38ee4Smrg
18561b3e38ee4Smrg
18562b3e38ee4Smrg
18563b3e38ee4Smrg
18564b3e38ee4Smrg
18565b3e38ee4Smrg
18566b3e38ee4Smrg
18567b3e38ee4Smrg
18568b3e38ee4Smrg
18569b3e38ee4Smrg
18570b3e38ee4Smrg
18571b3e38ee4Smrg
18572b3e38ee4Smrg
18573b3e38ee4Smrg
18574b3e38ee4Smrg
18575b3e38ee4Smrg
18576b3e38ee4Smrg
18577b3e38ee4Smrg
18578b3e38ee4Smrg
18579b3e38ee4Smrg
18580b3e38ee4Smrg
18581b3e38ee4Smrg
18582b3e38ee4Smrg
18583b3e38ee4Smrg
18584b3e38ee4Smrg
18585b3e38ee4Smrg
18586b3e38ee4Smrg
18587b3e38ee4Smrg
18588b3e38ee4Smrg
18589b3e38ee4Smrg
18590b3e38ee4Smrg
18591b3e38ee4Smrg
18592b3e38ee4Smrg
18593b3e38ee4Smrg
18594b3e38ee4Smrg
18595b3e38ee4Smrg
18596b3e38ee4Smrg
18597b3e38ee4Smrg
18598b3e38ee4Smrg
18599b3e38ee4Smrg
18600b3e38ee4Smrg
18601b3e38ee4Smrg
18602b3e38ee4Smrg
18603b3e38ee4Smrg
18604b3e38ee4Smrg
18605b3e38ee4Smrg
18606b3e38ee4Smrg
18607b3e38ee4Smrg
18608b3e38ee4Smrg
18609b3e38ee4Smrg
18610b3e38ee4Smrg
18611b3e38ee4Smrg
18612b3e38ee4Smrg
18613b3e38ee4Smrg
18614b3e38ee4Smrg
18615b3e38ee4Smrg
18616b3e38ee4Smrg
18617b3e38ee4Smrg
18618a73423d7Smrg
18619a73423d7Smrg
18620a73423d7Smrg
18621a73423d7Smrg
18622a73423d7Smrg
18623e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18624e9f7eabcSmrgprintf %s "checking how to hardcode library paths into programs... " >&6; }
18625b3e38ee4Smrghardcode_action=
18626b3e38ee4Smrgif test -n "$hardcode_libdir_flag_spec" ||
18627b3e38ee4Smrg   test -n "$runpath_var" ||
186284a8d91dcSmrg   test yes = "$hardcode_automatic"; then
18629b3e38ee4Smrg
18630b3e38ee4Smrg  # We can hardcode non-existent directories.
186314a8d91dcSmrg  if test no != "$hardcode_direct" &&
18632b3e38ee4Smrg     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18633b3e38ee4Smrg     # have to relink, otherwise we might link with an installed library
18634b3e38ee4Smrg     # when we should be linking with a yet-to-be-installed one
186354a8d91dcSmrg     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
186364a8d91dcSmrg     test no != "$hardcode_minus_L"; then
18637b3e38ee4Smrg    # Linking always hardcodes the temporary library directory.
18638b3e38ee4Smrg    hardcode_action=relink
18639b3e38ee4Smrg  else
18640b3e38ee4Smrg    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18641b3e38ee4Smrg    hardcode_action=immediate
18642b3e38ee4Smrg  fi
18643b3e38ee4Smrgelse
18644b3e38ee4Smrg  # We cannot hardcode anything, or else we can only hardcode existing
18645b3e38ee4Smrg  # directories.
18646b3e38ee4Smrg  hardcode_action=unsupported
18647b3e38ee4Smrgfi
18648e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18649e9f7eabcSmrgprintf "%s\n" "$hardcode_action" >&6; }
18650b3e38ee4Smrg
186514a8d91dcSmrgif test relink = "$hardcode_action" ||
186524a8d91dcSmrg   test yes = "$inherit_rpath"; then
18653b3e38ee4Smrg  # Fast installation is not supported
18654b3e38ee4Smrg  enable_fast_install=no
186554a8d91dcSmrgelif test yes = "$shlibpath_overrides_runpath" ||
186564a8d91dcSmrg     test no = "$enable_shared"; then
18657b3e38ee4Smrg  # Fast installation is not necessary
18658b3e38ee4Smrg  enable_fast_install=needless
18659a18ebfb2Smrgfi
18660b3e38ee4Smrg
18661b3e38ee4Smrg
18662b3e38ee4Smrg
18663b3e38ee4Smrg
18664b3e38ee4Smrg
18665b3e38ee4Smrg
186664a8d91dcSmrg  if test yes != "$enable_dlopen"; then
18667b3e38ee4Smrg  enable_dlopen=unknown
18668b3e38ee4Smrg  enable_dlopen_self=unknown
18669b3e38ee4Smrg  enable_dlopen_self_static=unknown
18670a18ebfb2Smrgelse
18671b3e38ee4Smrg  lt_cv_dlopen=no
18672b3e38ee4Smrg  lt_cv_dlopen_libs=
18673a18ebfb2Smrg
18674b3e38ee4Smrg  case $host_os in
18675b3e38ee4Smrg  beos*)
186764a8d91dcSmrg    lt_cv_dlopen=load_add_on
18677b3e38ee4Smrg    lt_cv_dlopen_libs=
18678b3e38ee4Smrg    lt_cv_dlopen_self=yes
18679b3e38ee4Smrg    ;;
18680a18ebfb2Smrg
18681b3e38ee4Smrg  mingw* | pw32* | cegcc*)
186824a8d91dcSmrg    lt_cv_dlopen=LoadLibrary
18683b3e38ee4Smrg    lt_cv_dlopen_libs=
18684b3e38ee4Smrg    ;;
18685a18ebfb2Smrg
18686b3e38ee4Smrg  cygwin*)
186874a8d91dcSmrg    lt_cv_dlopen=dlopen
18688b3e38ee4Smrg    lt_cv_dlopen_libs=
18689b3e38ee4Smrg    ;;
18690a18ebfb2Smrg
18691b3e38ee4Smrg  darwin*)
186924a8d91dcSmrg    # if libdl is installed we need to link against it
18693e9f7eabcSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18694e9f7eabcSmrgprintf %s "checking for dlopen in -ldl... " >&6; }
18695e9f7eabcSmrgif test ${ac_cv_lib_dl_dlopen+y}
18696e9f7eabcSmrgthen :
18697e9f7eabcSmrg  printf %s "(cached) " >&6
18698e9f7eabcSmrgelse $as_nop
18699b3e38ee4Smrg  ac_check_lib_save_LIBS=$LIBS
18700b3e38ee4SmrgLIBS="-ldl  $LIBS"
18701a73423d7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702b3e38ee4Smrg/* end confdefs.h.  */
18703a18ebfb2Smrg
18704b3e38ee4Smrg/* Override any GCC internal prototype to avoid an error.
18705b3e38ee4Smrg   Use char because int might match the return type of a GCC
18706b3e38ee4Smrg   builtin and then its argument prototype would still apply.  */
18707b3e38ee4Smrgchar dlopen ();
18708b3e38ee4Smrgint
18709e9f7eabcSmrgmain (void)
18710b3e38ee4Smrg{
18711b3e38ee4Smrgreturn dlopen ();
18712b3e38ee4Smrg  ;
18713b3e38ee4Smrg  return 0;
18714b3e38ee4Smrg}
18715a18ebfb2Smrg_ACEOF
18716e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
18717e9f7eabcSmrgthen :
18718b3e38ee4Smrg  ac_cv_lib_dl_dlopen=yes
18719e9f7eabcSmrgelse $as_nop
18720a73423d7Smrg  ac_cv_lib_dl_dlopen=no
18721a18ebfb2Smrgfi
18722e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
18723a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
18724b3e38ee4SmrgLIBS=$ac_check_lib_save_LIBS
18725b3e38ee4Smrgfi
18726e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18727e9f7eabcSmrgprintf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18728e9f7eabcSmrgif test "x$ac_cv_lib_dl_dlopen" = xyes
18729e9f7eabcSmrgthen :
187304a8d91dcSmrg  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18731e9f7eabcSmrgelse $as_nop
18732a18ebfb2Smrg
187334a8d91dcSmrg    lt_cv_dlopen=dyld
18734b3e38ee4Smrg    lt_cv_dlopen_libs=
18735b3e38ee4Smrg    lt_cv_dlopen_self=yes
18736a18ebfb2Smrg
18737b3e38ee4Smrgfi
18738a18ebfb2Smrg
18739b3e38ee4Smrg    ;;
18740a18ebfb2Smrg
187414a8d91dcSmrg  tpf*)
187424a8d91dcSmrg    # Don't try to run any link tests for TPF.  We know it's impossible
187434a8d91dcSmrg    # because TPF is a cross-compiler, and we know how we open DSOs.
187444a8d91dcSmrg    lt_cv_dlopen=dlopen
187454a8d91dcSmrg    lt_cv_dlopen_libs=
187464a8d91dcSmrg    lt_cv_dlopen_self=no
187474a8d91dcSmrg    ;;
187484a8d91dcSmrg
18749b3e38ee4Smrg  *)
18750a73423d7Smrg    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18751e9f7eabcSmrgif test "x$ac_cv_func_shl_load" = xyes
18752e9f7eabcSmrgthen :
187534a8d91dcSmrg  lt_cv_dlopen=shl_load
18754e9f7eabcSmrgelse $as_nop
18755e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18756e9f7eabcSmrgprintf %s "checking for shl_load in -ldld... " >&6; }
18757e9f7eabcSmrgif test ${ac_cv_lib_dld_shl_load+y}
18758e9f7eabcSmrgthen :
18759e9f7eabcSmrg  printf %s "(cached) " >&6
18760e9f7eabcSmrgelse $as_nop
18761b3e38ee4Smrg  ac_check_lib_save_LIBS=$LIBS
18762b3e38ee4SmrgLIBS="-ldld  $LIBS"
18763a73423d7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
18764b3e38ee4Smrg/* end confdefs.h.  */
18765a18ebfb2Smrg
18766b3e38ee4Smrg/* Override any GCC internal prototype to avoid an error.
18767b3e38ee4Smrg   Use char because int might match the return type of a GCC
18768b3e38ee4Smrg   builtin and then its argument prototype would still apply.  */
18769b3e38ee4Smrgchar shl_load ();
18770b3e38ee4Smrgint
18771e9f7eabcSmrgmain (void)
18772b3e38ee4Smrg{
18773b3e38ee4Smrgreturn shl_load ();
18774b3e38ee4Smrg  ;
18775b3e38ee4Smrg  return 0;
18776b3e38ee4Smrg}
18777b3e38ee4Smrg_ACEOF
18778e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
18779e9f7eabcSmrgthen :
18780b3e38ee4Smrg  ac_cv_lib_dld_shl_load=yes
18781e9f7eabcSmrgelse $as_nop
18782a73423d7Smrg  ac_cv_lib_dld_shl_load=no
18783b3e38ee4Smrgfi
18784e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
18785a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
18786b3e38ee4SmrgLIBS=$ac_check_lib_save_LIBS
18787b3e38ee4Smrgfi
18788e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18789e9f7eabcSmrgprintf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
18790e9f7eabcSmrgif test "x$ac_cv_lib_dld_shl_load" = xyes
18791e9f7eabcSmrgthen :
187924a8d91dcSmrg  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18793e9f7eabcSmrgelse $as_nop
18794a73423d7Smrg  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18795e9f7eabcSmrgif test "x$ac_cv_func_dlopen" = xyes
18796e9f7eabcSmrgthen :
187974a8d91dcSmrg  lt_cv_dlopen=dlopen
18798e9f7eabcSmrgelse $as_nop
18799e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18800e9f7eabcSmrgprintf %s "checking for dlopen in -ldl... " >&6; }
18801e9f7eabcSmrgif test ${ac_cv_lib_dl_dlopen+y}
18802e9f7eabcSmrgthen :
18803e9f7eabcSmrg  printf %s "(cached) " >&6
18804e9f7eabcSmrgelse $as_nop
18805b3e38ee4Smrg  ac_check_lib_save_LIBS=$LIBS
18806b3e38ee4SmrgLIBS="-ldl  $LIBS"
18807a73423d7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
18808b3e38ee4Smrg/* end confdefs.h.  */
1880950806d53Smrg
18810b3e38ee4Smrg/* Override any GCC internal prototype to avoid an error.
18811b3e38ee4Smrg   Use char because int might match the return type of a GCC
18812b3e38ee4Smrg   builtin and then its argument prototype would still apply.  */
18813b3e38ee4Smrgchar dlopen ();
18814b3e38ee4Smrgint
18815e9f7eabcSmrgmain (void)
18816b3e38ee4Smrg{
18817b3e38ee4Smrgreturn dlopen ();
18818b3e38ee4Smrg  ;
18819b3e38ee4Smrg  return 0;
18820b3e38ee4Smrg}
18821b3e38ee4Smrg_ACEOF
18822e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
18823e9f7eabcSmrgthen :
18824b3e38ee4Smrg  ac_cv_lib_dl_dlopen=yes
18825e9f7eabcSmrgelse $as_nop
18826a73423d7Smrg  ac_cv_lib_dl_dlopen=no
18827b3e38ee4Smrgfi
18828e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
18829a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
18830b3e38ee4SmrgLIBS=$ac_check_lib_save_LIBS
18831b3e38ee4Smrgfi
18832e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18833e9f7eabcSmrgprintf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18834e9f7eabcSmrgif test "x$ac_cv_lib_dl_dlopen" = xyes
18835e9f7eabcSmrgthen :
188364a8d91dcSmrg  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18837e9f7eabcSmrgelse $as_nop
18838e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18839e9f7eabcSmrgprintf %s "checking for dlopen in -lsvld... " >&6; }
18840e9f7eabcSmrgif test ${ac_cv_lib_svld_dlopen+y}
18841e9f7eabcSmrgthen :
18842e9f7eabcSmrg  printf %s "(cached) " >&6
18843e9f7eabcSmrgelse $as_nop
18844b3e38ee4Smrg  ac_check_lib_save_LIBS=$LIBS
18845b3e38ee4SmrgLIBS="-lsvld  $LIBS"
18846a73423d7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
18847b3e38ee4Smrg/* end confdefs.h.  */
18848a18ebfb2Smrg
18849b3e38ee4Smrg/* Override any GCC internal prototype to avoid an error.
18850b3e38ee4Smrg   Use char because int might match the return type of a GCC
18851b3e38ee4Smrg   builtin and then its argument prototype would still apply.  */
18852b3e38ee4Smrgchar dlopen ();
18853b3e38ee4Smrgint
18854e9f7eabcSmrgmain (void)
18855b3e38ee4Smrg{
18856b3e38ee4Smrgreturn dlopen ();
18857b3e38ee4Smrg  ;
18858b3e38ee4Smrg  return 0;
18859b3e38ee4Smrg}
18860b3e38ee4Smrg_ACEOF
18861e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
18862e9f7eabcSmrgthen :
18863b3e38ee4Smrg  ac_cv_lib_svld_dlopen=yes
18864e9f7eabcSmrgelse $as_nop
18865a73423d7Smrg  ac_cv_lib_svld_dlopen=no
18866b3e38ee4Smrgfi
18867e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
18868a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
18869b3e38ee4SmrgLIBS=$ac_check_lib_save_LIBS
18870b3e38ee4Smrgfi
18871e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18872e9f7eabcSmrgprintf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
18873e9f7eabcSmrgif test "x$ac_cv_lib_svld_dlopen" = xyes
18874e9f7eabcSmrgthen :
188754a8d91dcSmrg  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18876e9f7eabcSmrgelse $as_nop
18877e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18878e9f7eabcSmrgprintf %s "checking for dld_link in -ldld... " >&6; }
18879e9f7eabcSmrgif test ${ac_cv_lib_dld_dld_link+y}
18880e9f7eabcSmrgthen :
18881e9f7eabcSmrg  printf %s "(cached) " >&6
18882e9f7eabcSmrgelse $as_nop
18883b3e38ee4Smrg  ac_check_lib_save_LIBS=$LIBS
18884b3e38ee4SmrgLIBS="-ldld  $LIBS"
18885a73423d7Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
18886b3e38ee4Smrg/* end confdefs.h.  */
18887a18ebfb2Smrg
18888b3e38ee4Smrg/* Override any GCC internal prototype to avoid an error.
18889b3e38ee4Smrg   Use char because int might match the return type of a GCC
18890b3e38ee4Smrg   builtin and then its argument prototype would still apply.  */
18891b3e38ee4Smrgchar dld_link ();
18892b3e38ee4Smrgint
18893e9f7eabcSmrgmain (void)
18894b3e38ee4Smrg{
18895b3e38ee4Smrgreturn dld_link ();
18896b3e38ee4Smrg  ;
18897b3e38ee4Smrg  return 0;
18898b3e38ee4Smrg}
18899b3e38ee4Smrg_ACEOF
18900e9f7eabcSmrgif ac_fn_c_try_link "$LINENO"
18901e9f7eabcSmrgthen :
18902b3e38ee4Smrg  ac_cv_lib_dld_dld_link=yes
18903e9f7eabcSmrgelse $as_nop
18904a73423d7Smrg  ac_cv_lib_dld_dld_link=no
18905b3e38ee4Smrgfi
18906e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
18907a73423d7Smrg    conftest$ac_exeext conftest.$ac_ext
18908b3e38ee4SmrgLIBS=$ac_check_lib_save_LIBS
18909b3e38ee4Smrgfi
18910e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18911e9f7eabcSmrgprintf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
18912e9f7eabcSmrgif test "x$ac_cv_lib_dld_dld_link" = xyes
18913e9f7eabcSmrgthen :
189144a8d91dcSmrg  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18915b3e38ee4Smrgfi
18916a18ebfb2Smrg
18917a18ebfb2Smrg
18918b3e38ee4Smrgfi
18919a18ebfb2Smrg
18920a18ebfb2Smrg
18921b3e38ee4Smrgfi
18922a18ebfb2Smrg
18923a18ebfb2Smrg
18924b3e38ee4Smrgfi
18925a18ebfb2Smrg
18926a18ebfb2Smrg
18927b3e38ee4Smrgfi
18928a18ebfb2Smrg
18929a18ebfb2Smrg
18930b3e38ee4Smrgfi
18931a18ebfb2Smrg
18932b3e38ee4Smrg    ;;
18933b3e38ee4Smrg  esac
18934a18ebfb2Smrg
189354a8d91dcSmrg  if test no = "$lt_cv_dlopen"; then
18936b3e38ee4Smrg    enable_dlopen=no
189374a8d91dcSmrg  else
189384a8d91dcSmrg    enable_dlopen=yes
18939a18ebfb2Smrg  fi
18940a18ebfb2Smrg
18941b3e38ee4Smrg  case $lt_cv_dlopen in
18942b3e38ee4Smrg  dlopen)
189434a8d91dcSmrg    save_CPPFLAGS=$CPPFLAGS
189444a8d91dcSmrg    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18945a18ebfb2Smrg
189464a8d91dcSmrg    save_LDFLAGS=$LDFLAGS
18947b3e38ee4Smrg    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1894850806d53Smrg
189494a8d91dcSmrg    save_LIBS=$LIBS
18950b3e38ee4Smrg    LIBS="$lt_cv_dlopen_libs $LIBS"
1895150806d53Smrg
18952e9f7eabcSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18953e9f7eabcSmrgprintf %s "checking whether a program can dlopen itself... " >&6; }
18954e9f7eabcSmrgif test ${lt_cv_dlopen_self+y}
18955e9f7eabcSmrgthen :
18956e9f7eabcSmrg  printf %s "(cached) " >&6
18957e9f7eabcSmrgelse $as_nop
189584a8d91dcSmrg  	  if test yes = "$cross_compiling"; then :
18959b3e38ee4Smrg  lt_cv_dlopen_self=cross
18960b3e38ee4Smrgelse
18961b3e38ee4Smrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18962b3e38ee4Smrg  lt_status=$lt_dlunknown
18963b3e38ee4Smrg  cat > conftest.$ac_ext <<_LT_EOF
18964a73423d7Smrg#line $LINENO "configure"
18965b3e38ee4Smrg#include "confdefs.h"
1896650806d53Smrg
18967b3e38ee4Smrg#if HAVE_DLFCN_H
18968b3e38ee4Smrg#include <dlfcn.h>
18969b3e38ee4Smrg#endif
1897050806d53Smrg
18971b3e38ee4Smrg#include <stdio.h>
1897250806d53Smrg
18973b3e38ee4Smrg#ifdef RTLD_GLOBAL
18974b3e38ee4Smrg#  define LT_DLGLOBAL		RTLD_GLOBAL
18975b3e38ee4Smrg#else
18976b3e38ee4Smrg#  ifdef DL_GLOBAL
18977b3e38ee4Smrg#    define LT_DLGLOBAL		DL_GLOBAL
18978b3e38ee4Smrg#  else
18979b3e38ee4Smrg#    define LT_DLGLOBAL		0
18980b3e38ee4Smrg#  endif
18981b3e38ee4Smrg#endif
1898250806d53Smrg
18983b3e38ee4Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18984b3e38ee4Smrg   find out it does not work in some platform. */
18985b3e38ee4Smrg#ifndef LT_DLLAZY_OR_NOW
18986b3e38ee4Smrg#  ifdef RTLD_LAZY
18987b3e38ee4Smrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18988b3e38ee4Smrg#  else
18989b3e38ee4Smrg#    ifdef DL_LAZY
18990b3e38ee4Smrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
18991b3e38ee4Smrg#    else
18992b3e38ee4Smrg#      ifdef RTLD_NOW
18993b3e38ee4Smrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18994b3e38ee4Smrg#      else
18995b3e38ee4Smrg#        ifdef DL_NOW
18996b3e38ee4Smrg#          define LT_DLLAZY_OR_NOW	DL_NOW
18997b3e38ee4Smrg#        else
18998b3e38ee4Smrg#          define LT_DLLAZY_OR_NOW	0
18999b3e38ee4Smrg#        endif
19000b3e38ee4Smrg#      endif
19001b3e38ee4Smrg#    endif
19002b3e38ee4Smrg#  endif
19003b3e38ee4Smrg#endif
1900450806d53Smrg
190054a8d91dcSmrg/* When -fvisibility=hidden is used, assume the code has been annotated
19006a73423d7Smrg   correspondingly for the symbols needed.  */
190074a8d91dcSmrg#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19008a73423d7Smrgint fnord () __attribute__((visibility("default")));
19009a73423d7Smrg#endif
19010a73423d7Smrg
19011a73423d7Smrgint fnord () { return 42; }
19012b3e38ee4Smrgint main ()
19013b3e38ee4Smrg{
19014b3e38ee4Smrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19015b3e38ee4Smrg  int status = $lt_dlunknown;
1901650806d53Smrg
19017b3e38ee4Smrg  if (self)
19018b3e38ee4Smrg    {
19019b3e38ee4Smrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19020a73423d7Smrg      else
19021a73423d7Smrg        {
19022a73423d7Smrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19023a73423d7Smrg          else puts (dlerror ());
19024a73423d7Smrg	}
19025b3e38ee4Smrg      /* dlclose (self); */
19026b3e38ee4Smrg    }
19027a18ebfb2Smrg  else
19028b3e38ee4Smrg    puts (dlerror ());
19029b3e38ee4Smrg
19030b3e38ee4Smrg  return status;
19031b3e38ee4Smrg}
19032b3e38ee4Smrg_LT_EOF
19033a73423d7Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19034b3e38ee4Smrg  (eval $ac_link) 2>&5
19035b3e38ee4Smrg  ac_status=$?
19036e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
190374a8d91dcSmrg  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19038b3e38ee4Smrg    (./conftest; exit; ) >&5 2>/dev/null
19039b3e38ee4Smrg    lt_status=$?
19040b3e38ee4Smrg    case x$lt_status in
19041b3e38ee4Smrg      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19042b3e38ee4Smrg      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19043b3e38ee4Smrg      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19044af1a9c97Smrg    esac
19045b3e38ee4Smrg  else :
19046b3e38ee4Smrg    # compilation failed
19047b3e38ee4Smrg    lt_cv_dlopen_self=no
19048af1a9c97Smrg  fi
19049b3e38ee4Smrgfi
19050b3e38ee4Smrgrm -fr conftest*
1905150806d53Smrg
1905250806d53Smrg
19053b3e38ee4Smrgfi
19054e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19055e9f7eabcSmrgprintf "%s\n" "$lt_cv_dlopen_self" >&6; }
1905650806d53Smrg
190574a8d91dcSmrg    if test yes = "$lt_cv_dlopen_self"; then
19058b3e38ee4Smrg      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19059e9f7eabcSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19060e9f7eabcSmrgprintf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19061e9f7eabcSmrgif test ${lt_cv_dlopen_self_static+y}
19062e9f7eabcSmrgthen :
19063e9f7eabcSmrg  printf %s "(cached) " >&6
19064e9f7eabcSmrgelse $as_nop
190654a8d91dcSmrg  	  if test yes = "$cross_compiling"; then :
19066b3e38ee4Smrg  lt_cv_dlopen_self_static=cross
19067b3e38ee4Smrgelse
19068b3e38ee4Smrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19069b3e38ee4Smrg  lt_status=$lt_dlunknown
19070b3e38ee4Smrg  cat > conftest.$ac_ext <<_LT_EOF
19071a73423d7Smrg#line $LINENO "configure"
19072b3e38ee4Smrg#include "confdefs.h"
1907350806d53Smrg
19074b3e38ee4Smrg#if HAVE_DLFCN_H
19075b3e38ee4Smrg#include <dlfcn.h>
19076b3e38ee4Smrg#endif
19077b3e38ee4Smrg
19078b3e38ee4Smrg#include <stdio.h>
19079b3e38ee4Smrg
19080b3e38ee4Smrg#ifdef RTLD_GLOBAL
19081b3e38ee4Smrg#  define LT_DLGLOBAL		RTLD_GLOBAL
19082b3e38ee4Smrg#else
19083b3e38ee4Smrg#  ifdef DL_GLOBAL
19084b3e38ee4Smrg#    define LT_DLGLOBAL		DL_GLOBAL
19085b3e38ee4Smrg#  else
19086b3e38ee4Smrg#    define LT_DLGLOBAL		0
19087b3e38ee4Smrg#  endif
19088b3e38ee4Smrg#endif
19089b3e38ee4Smrg
19090b3e38ee4Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19091b3e38ee4Smrg   find out it does not work in some platform. */
19092b3e38ee4Smrg#ifndef LT_DLLAZY_OR_NOW
19093b3e38ee4Smrg#  ifdef RTLD_LAZY
19094b3e38ee4Smrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19095b3e38ee4Smrg#  else
19096b3e38ee4Smrg#    ifdef DL_LAZY
19097b3e38ee4Smrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
19098b3e38ee4Smrg#    else
19099b3e38ee4Smrg#      ifdef RTLD_NOW
19100b3e38ee4Smrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19101b3e38ee4Smrg#      else
19102b3e38ee4Smrg#        ifdef DL_NOW
19103b3e38ee4Smrg#          define LT_DLLAZY_OR_NOW	DL_NOW
19104b3e38ee4Smrg#        else
19105b3e38ee4Smrg#          define LT_DLLAZY_OR_NOW	0
19106b3e38ee4Smrg#        endif
19107b3e38ee4Smrg#      endif
19108b3e38ee4Smrg#    endif
19109b3e38ee4Smrg#  endif
19110b3e38ee4Smrg#endif
19111b3e38ee4Smrg
191124a8d91dcSmrg/* When -fvisibility=hidden is used, assume the code has been annotated
19113a73423d7Smrg   correspondingly for the symbols needed.  */
191144a8d91dcSmrg#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19115a73423d7Smrgint fnord () __attribute__((visibility("default")));
19116a73423d7Smrg#endif
19117a73423d7Smrg
19118a73423d7Smrgint fnord () { return 42; }
19119b3e38ee4Smrgint main ()
19120b3e38ee4Smrg{
19121b3e38ee4Smrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19122b3e38ee4Smrg  int status = $lt_dlunknown;
19123b3e38ee4Smrg
19124b3e38ee4Smrg  if (self)
19125b3e38ee4Smrg    {
19126b3e38ee4Smrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19127a73423d7Smrg      else
19128a73423d7Smrg        {
19129a73423d7Smrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19130a73423d7Smrg          else puts (dlerror ());
19131a73423d7Smrg	}
19132b3e38ee4Smrg      /* dlclose (self); */
19133b3e38ee4Smrg    }
19134b3e38ee4Smrg  else
19135b3e38ee4Smrg    puts (dlerror ());
19136b3e38ee4Smrg
19137b3e38ee4Smrg  return status;
19138b3e38ee4Smrg}
19139b3e38ee4Smrg_LT_EOF
19140a73423d7Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19141b3e38ee4Smrg  (eval $ac_link) 2>&5
19142b3e38ee4Smrg  ac_status=$?
19143e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
191444a8d91dcSmrg  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19145b3e38ee4Smrg    (./conftest; exit; ) >&5 2>/dev/null
19146b3e38ee4Smrg    lt_status=$?
19147b3e38ee4Smrg    case x$lt_status in
19148b3e38ee4Smrg      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19149b3e38ee4Smrg      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19150b3e38ee4Smrg      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19151b3e38ee4Smrg    esac
19152b3e38ee4Smrg  else :
19153b3e38ee4Smrg    # compilation failed
19154b3e38ee4Smrg    lt_cv_dlopen_self_static=no
19155b3e38ee4Smrg  fi
19156b3e38ee4Smrgfi
19157b3e38ee4Smrgrm -fr conftest*
19158b3e38ee4Smrg
19159b3e38ee4Smrg
19160b3e38ee4Smrgfi
19161e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19162e9f7eabcSmrgprintf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19163b3e38ee4Smrg    fi
19164b3e38ee4Smrg
191654a8d91dcSmrg    CPPFLAGS=$save_CPPFLAGS
191664a8d91dcSmrg    LDFLAGS=$save_LDFLAGS
191674a8d91dcSmrg    LIBS=$save_LIBS
19168b3e38ee4Smrg    ;;
19169a18ebfb2Smrg  esac
19170b3e38ee4Smrg
19171b3e38ee4Smrg  case $lt_cv_dlopen_self in
19172b3e38ee4Smrg  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19173b3e38ee4Smrg  *) enable_dlopen_self=unknown ;;
19174b3e38ee4Smrg  esac
19175b3e38ee4Smrg
19176b3e38ee4Smrg  case $lt_cv_dlopen_self_static in
19177b3e38ee4Smrg  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19178b3e38ee4Smrg  *) enable_dlopen_self_static=unknown ;;
19179b3e38ee4Smrg  esac
19180b3e38ee4Smrgfi
19181b3e38ee4Smrg
19182b3e38ee4Smrg
19183b3e38ee4Smrg
19184b3e38ee4Smrg
19185b3e38ee4Smrg
19186b3e38ee4Smrg
19187b3e38ee4Smrg
19188b3e38ee4Smrg
19189b3e38ee4Smrg
19190b3e38ee4Smrg
19191b3e38ee4Smrg
19192b3e38ee4Smrg
19193b3e38ee4Smrg
19194b3e38ee4Smrg
19195b3e38ee4Smrg
19196b3e38ee4Smrg
19197b3e38ee4Smrg
19198b3e38ee4Smrgstriplib=
19199b3e38ee4Smrgold_striplib=
19200e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19201e9f7eabcSmrgprintf %s "checking whether stripping libraries is possible... " >&6; }
19202e9f7eabcSmrgif test -z "$STRIP"; then
19203e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19204e9f7eabcSmrgprintf "%s\n" "no" >&6; }
19205e9f7eabcSmrgelse
19206e9f7eabcSmrg  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19207e9f7eabcSmrg    old_striplib="$STRIP --strip-debug"
19208e9f7eabcSmrg    striplib="$STRIP --strip-unneeded"
19209e9f7eabcSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19210e9f7eabcSmrgprintf "%s\n" "yes" >&6; }
19211e9f7eabcSmrg  else
19212e9f7eabcSmrg    case $host_os in
19213e9f7eabcSmrg    darwin*)
19214e9f7eabcSmrg      # FIXME - insert some real tests, host_os isn't really good enough
19215b3e38ee4Smrg      striplib="$STRIP -x"
19216b3e38ee4Smrg      old_striplib="$STRIP -S"
19217e9f7eabcSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19218e9f7eabcSmrgprintf "%s\n" "yes" >&6; }
19219e9f7eabcSmrg      ;;
19220e9f7eabcSmrg    freebsd*)
19221e9f7eabcSmrg      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19222e9f7eabcSmrg        old_striplib="$STRIP --strip-debug"
19223e9f7eabcSmrg        striplib="$STRIP --strip-unneeded"
19224e9f7eabcSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19225e9f7eabcSmrgprintf "%s\n" "yes" >&6; }
19226e9f7eabcSmrg      else
19227e9f7eabcSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19228e9f7eabcSmrgprintf "%s\n" "no" >&6; }
19229e9f7eabcSmrg      fi
19230e9f7eabcSmrg      ;;
19231e9f7eabcSmrg    *)
19232e9f7eabcSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19233e9f7eabcSmrgprintf "%s\n" "no" >&6; }
19234e9f7eabcSmrg      ;;
19235e9f7eabcSmrg    esac
19236e9f7eabcSmrg  fi
19237b3e38ee4Smrgfi
1923850806d53Smrg
1923950806d53Smrg
1924050806d53Smrg
1924150806d53Smrg
1924250806d53Smrg
1924350806d53Smrg
1924450806d53Smrg
1924550806d53Smrg
1924650806d53Smrg
1924750806d53Smrg
1924850806d53Smrg
1924950806d53Smrg
192504a8d91dcSmrg  # Report what library types will actually be built
19251e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19252e9f7eabcSmrgprintf %s "checking if libtool supports shared libraries... " >&6; }
19253e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19254e9f7eabcSmrgprintf "%s\n" "$can_build_shared" >&6; }
19255af1a9c97Smrg
19256e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19257e9f7eabcSmrgprintf %s "checking whether to build shared libraries... " >&6; }
192584a8d91dcSmrg  test no = "$can_build_shared" && enable_shared=no
19259af1a9c97Smrg
19260b3e38ee4Smrg  # On AIX, shared libraries and static libraries use the same namespace, and
19261b3e38ee4Smrg  # are all built from PIC.
19262b3e38ee4Smrg  case $host_os in
19263b3e38ee4Smrg  aix3*)
192644a8d91dcSmrg    test yes = "$enable_shared" && enable_static=no
19265b3e38ee4Smrg    if test -n "$RANLIB"; then
19266b3e38ee4Smrg      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19267b3e38ee4Smrg      postinstall_cmds='$RANLIB $lib'
19268b3e38ee4Smrg    fi
19269b3e38ee4Smrg    ;;
19270b3e38ee4Smrg
19271b3e38ee4Smrg  aix[4-9]*)
192724a8d91dcSmrg    if test ia64 != "$host_cpu"; then
192734a8d91dcSmrg      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
192744a8d91dcSmrg      yes,aix,yes) ;;			# shared object as lib.so file only
192754a8d91dcSmrg      yes,svr4,*) ;;			# shared object as lib.so archive member only
192764a8d91dcSmrg      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
192774a8d91dcSmrg      esac
19278b3e38ee4Smrg    fi
19279b3e38ee4Smrg    ;;
19280a18ebfb2Smrg  esac
19281e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19282e9f7eabcSmrgprintf "%s\n" "$enable_shared" >&6; }
19283a18ebfb2Smrg
19284e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19285e9f7eabcSmrgprintf %s "checking whether to build static libraries... " >&6; }
19286b3e38ee4Smrg  # Make sure either enable_shared or enable_static is yes.
192874a8d91dcSmrg  test yes = "$enable_shared" || enable_static=yes
19288e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19289e9f7eabcSmrgprintf "%s\n" "$enable_static" >&6; }
19290a18ebfb2Smrg
1929150806d53Smrg
1929250806d53Smrg
1929350806d53Smrg
19294a18ebfb2Smrgfi
19295b3e38ee4Smrgac_ext=c
19296b3e38ee4Smrgac_cpp='$CPP $CPPFLAGS'
19297b3e38ee4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19298b3e38ee4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19299b3e38ee4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
1930050806d53Smrg
193014a8d91dcSmrgCC=$lt_save_CC
1930250806d53Smrg
1930350806d53Smrg
1930450806d53Smrg
1930550806d53Smrg
1930650806d53Smrg
1930750806d53Smrg
1930850806d53Smrg
1930950806d53Smrg
1931050806d53Smrg
1931150806d53Smrg
193127965d9acSmrg
1931350806d53Smrg
1931450806d53Smrg
19315a73423d7Smrg
19316a73423d7Smrg
19317b3e38ee4Smrg        ac_config_commands="$ac_config_commands libtool"
1931850806d53Smrg
1931950806d53Smrg
1932050806d53Smrg
1932150806d53Smrg
19322b3e38ee4Smrg# Only expand once:
1932350806d53Smrg
193247965d9acSmrg
1932550806d53Smrg
1932650806d53Smrg
1932750806d53Smrg
19328b3e38ee4Smrg# Define a configure option for an alternate module directory
1932950806d53Smrg
19330b3e38ee4Smrg# Check whether --with-xorg-module-dir was given.
19331e9f7eabcSmrgif test ${with_xorg_module_dir+y}
19332e9f7eabcSmrgthen :
19333b3e38ee4Smrg  withval=$with_xorg_module_dir; moduledir="$withval"
19334e9f7eabcSmrgelse $as_nop
19335b3e38ee4Smrg  moduledir="$libdir/xorg/modules"
19336b3e38ee4Smrgfi
1933750806d53Smrg
193387965d9acSmrg
19339b3e38ee4Smrg# Store the list of server defined optional extensions in REQUIRED_MODULES
1934050806d53Smrg
1934150806d53Smrg
19342b3e38ee4Smrg	SAVE_CFLAGS="$CFLAGS"
19343b3e38ee4Smrg	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19344a73423d7Smrg	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19345b3e38ee4Smrg/* end confdefs.h.  */
1934650806d53Smrg
19347b3e38ee4Smrg#include "xorg-server.h"
19348b3e38ee4Smrg#if !defined RANDR
19349b3e38ee4Smrg#error RANDR not defined
19350b3e38ee4Smrg#endif
1935150806d53Smrg
19352b3e38ee4Smrgint
19353e9f7eabcSmrgmain (void)
19354b3e38ee4Smrg{
1935550806d53Smrg
19356b3e38ee4Smrg  ;
19357b3e38ee4Smrg  return 0;
19358b3e38ee4Smrg}
19359b3e38ee4Smrg_ACEOF
19360e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
19361e9f7eabcSmrgthen :
19362b3e38ee4Smrg  _EXT_CHECK=yes
19363e9f7eabcSmrgelse $as_nop
19364a73423d7Smrg  _EXT_CHECK=no
19365b3e38ee4Smrgfi
19366e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19367b3e38ee4Smrg	CFLAGS="$SAVE_CFLAGS"
19368e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19369e9f7eabcSmrgprintf %s "checking if RANDR is defined... " >&6; }
19370e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19371e9f7eabcSmrgprintf "%s\n" "$_EXT_CHECK" >&6; }
19372b3e38ee4Smrg	if test "$_EXT_CHECK" != no; then
19373b3e38ee4Smrg		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19374b3e38ee4Smrg	fi
1937550806d53Smrg
1937650806d53Smrg
1937750806d53Smrg
19378b3e38ee4Smrg	SAVE_CFLAGS="$CFLAGS"
19379b3e38ee4Smrg	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19380a73423d7Smrg	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19381b3e38ee4Smrg/* end confdefs.h.  */
1938250806d53Smrg
19383b3e38ee4Smrg#include "xorg-server.h"
19384b3e38ee4Smrg#if !defined RENDER
19385b3e38ee4Smrg#error RENDER not defined
19386b3e38ee4Smrg#endif
1938750806d53Smrg
19388b3e38ee4Smrgint
19389e9f7eabcSmrgmain (void)
19390b3e38ee4Smrg{
1939150806d53Smrg
19392b3e38ee4Smrg  ;
19393b3e38ee4Smrg  return 0;
19394b3e38ee4Smrg}
19395b3e38ee4Smrg_ACEOF
19396e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
19397e9f7eabcSmrgthen :
19398b3e38ee4Smrg  _EXT_CHECK=yes
19399e9f7eabcSmrgelse $as_nop
19400a73423d7Smrg  _EXT_CHECK=no
19401b3e38ee4Smrgfi
19402e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19403b3e38ee4Smrg	CFLAGS="$SAVE_CFLAGS"
19404e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19405e9f7eabcSmrgprintf %s "checking if RENDER is defined... " >&6; }
19406e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19407e9f7eabcSmrgprintf "%s\n" "$_EXT_CHECK" >&6; }
19408b3e38ee4Smrg	if test "$_EXT_CHECK" != no; then
19409b3e38ee4Smrg		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19410b3e38ee4Smrg	fi
1941150806d53Smrg
1941250806d53Smrg
1941350806d53Smrg
19414b3e38ee4Smrg	SAVE_CFLAGS="$CFLAGS"
19415b3e38ee4Smrg	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19416a73423d7Smrg	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19417b3e38ee4Smrg/* end confdefs.h.  */
1941850806d53Smrg
19419b3e38ee4Smrg#include "xorg-server.h"
19420b3e38ee4Smrg#if !defined XV
19421b3e38ee4Smrg#error XV not defined
19422b3e38ee4Smrg#endif
1942350806d53Smrg
19424b3e38ee4Smrgint
19425e9f7eabcSmrgmain (void)
19426b3e38ee4Smrg{
1942750806d53Smrg
19428b3e38ee4Smrg  ;
19429b3e38ee4Smrg  return 0;
19430b3e38ee4Smrg}
19431b3e38ee4Smrg_ACEOF
19432e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
19433e9f7eabcSmrgthen :
19434b3e38ee4Smrg  _EXT_CHECK=yes
19435e9f7eabcSmrgelse $as_nop
19436a73423d7Smrg  _EXT_CHECK=no
19437b3e38ee4Smrgfi
19438e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19439b3e38ee4Smrg	CFLAGS="$SAVE_CFLAGS"
19440e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
19441e9f7eabcSmrgprintf %s "checking if XV is defined... " >&6; }
19442e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19443e9f7eabcSmrgprintf "%s\n" "$_EXT_CHECK" >&6; }
19444b3e38ee4Smrg	if test "$_EXT_CHECK" != no; then
19445b3e38ee4Smrg		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19446b3e38ee4Smrg	fi
1944750806d53Smrg
1944850806d53Smrg
1944950806d53Smrg
19450b3e38ee4Smrg	SAVE_CFLAGS="$CFLAGS"
19451b3e38ee4Smrg	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19452a73423d7Smrg	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19453b3e38ee4Smrg/* end confdefs.h.  */
1945450806d53Smrg
19455b3e38ee4Smrg#include "xorg-server.h"
19456b3e38ee4Smrg#if !defined DPMSExtension
19457b3e38ee4Smrg#error DPMSExtension not defined
19458b3e38ee4Smrg#endif
1945950806d53Smrg
19460b3e38ee4Smrgint
19461e9f7eabcSmrgmain (void)
19462b3e38ee4Smrg{
1946350806d53Smrg
19464b3e38ee4Smrg  ;
19465b3e38ee4Smrg  return 0;
19466b3e38ee4Smrg}
19467b3e38ee4Smrg_ACEOF
19468e9f7eabcSmrgif ac_fn_c_try_compile "$LINENO"
19469e9f7eabcSmrgthen :
19470b3e38ee4Smrg  _EXT_CHECK=yes
19471e9f7eabcSmrgelse $as_nop
19472a73423d7Smrg  _EXT_CHECK=no
19473b3e38ee4Smrgfi
19474e9f7eabcSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19475b3e38ee4Smrg	CFLAGS="$SAVE_CFLAGS"
19476e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19477e9f7eabcSmrgprintf %s "checking if DPMSExtension is defined... " >&6; }
19478e9f7eabcSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19479e9f7eabcSmrgprintf "%s\n" "$_EXT_CHECK" >&6; }
19480b3e38ee4Smrg	if test "$_EXT_CHECK" != no; then
19481b3e38ee4Smrg		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19482b3e38ee4Smrg	fi
1948350806d53Smrg
1948450806d53Smrg
19485b3e38ee4Smrg# Obtain compiler/linker options for the driver dependencies
1948650806d53Smrg
19487b3e38ee4Smrgpkg_failed=no
19488e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19489e9f7eabcSmrgprintf %s "checking for XORG... " >&6; }
1949050806d53Smrg
19491b3e38ee4Smrgif test -n "$XORG_CFLAGS"; then
19492b3e38ee4Smrg    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19493b3e38ee4Smrg elif test -n "$PKG_CONFIG"; then
19494b3e38ee4Smrg    if test -n "$PKG_CONFIG" && \
19495e9f7eabcSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19496b3e38ee4Smrg  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
19497b3e38ee4Smrg  ac_status=$?
19498e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19499a73423d7Smrg  test $ac_status = 0; }; then
19500b3e38ee4Smrg  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
195014a8d91dcSmrg		      test "x$?" != "x0" && pkg_failed=yes
19502b3e38ee4Smrgelse
19503b3e38ee4Smrg  pkg_failed=yes
19504b3e38ee4Smrgfi
19505b3e38ee4Smrg else
19506b3e38ee4Smrg    pkg_failed=untried
19507b3e38ee4Smrgfi
19508b3e38ee4Smrgif test -n "$XORG_LIBS"; then
19509b3e38ee4Smrg    pkg_cv_XORG_LIBS="$XORG_LIBS"
19510b3e38ee4Smrg elif test -n "$PKG_CONFIG"; then
19511b3e38ee4Smrg    if test -n "$PKG_CONFIG" && \
19512e9f7eabcSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19513b3e38ee4Smrg  ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5
19514b3e38ee4Smrg  ac_status=$?
19515e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19516a73423d7Smrg  test $ac_status = 0; }; then
19517b3e38ee4Smrg  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
195184a8d91dcSmrg		      test "x$?" != "x0" && pkg_failed=yes
19519b3e38ee4Smrgelse
19520a73423d7Smrg  pkg_failed=yes
19521a73423d7Smrgfi
19522a73423d7Smrg else
19523a73423d7Smrg    pkg_failed=untried
19524b3e38ee4Smrgfi
1952550806d53Smrg
1952650806d53Smrg
19527a73423d7Smrg
19528a73423d7Smrgif test $pkg_failed = yes; then
19529e9f7eabcSmrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19530e9f7eabcSmrgprintf "%s\n" "no" >&6; }
19531a73423d7Smrg
19532a73423d7Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19533a73423d7Smrg        _pkg_short_errors_supported=yes
19534a18ebfb2Smrgelse
19535a73423d7Smrg        _pkg_short_errors_supported=no
19536a18ebfb2Smrgfi
19537a73423d7Smrg        if test $_pkg_short_errors_supported = yes; then
195384a8d91dcSmrg	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1`
19539a73423d7Smrg        else
195404a8d91dcSmrg	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1`
19541a73423d7Smrg        fi
19542a73423d7Smrg	# Put the nasty error message in config.log where it belongs
19543a73423d7Smrg	echo "$XORG_PKG_ERRORS" >&5
1954450806d53Smrg
19545a73423d7Smrg	as_fn_error $? "Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met:
1954650806d53Smrg
19547a73423d7Smrg$XORG_PKG_ERRORS
1954850806d53Smrg
19549a73423d7SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
19550a73423d7Smrginstalled software in a non-standard prefix.
1955150806d53Smrg
19552a73423d7SmrgAlternatively, you may set the environment variables XORG_CFLAGS
19553a73423d7Smrgand XORG_LIBS to avoid the need to call pkg-config.
19554a73423d7SmrgSee the pkg-config man page for more details." "$LINENO" 5
19555a73423d7Smrgelif test $pkg_failed = untried; then
19556e9f7eabcSmrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19557e9f7eabcSmrgprintf "%s\n" "no" >&6; }
19558e9f7eabcSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19559e9f7eabcSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19560a73423d7Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19561a73423d7Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
19562a73423d7Smrgpath to pkg-config.
1956350806d53Smrg
19564a73423d7SmrgAlternatively, you may set the environment variables XORG_CFLAGS
19565a73423d7Smrgand XORG_LIBS to avoid the need to call pkg-config.
19566a73423d7SmrgSee the pkg-config man page for more details.
1956750806d53Smrg
19568a73423d7SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
19569a73423d7SmrgSee \`config.log' for more details" "$LINENO" 5; }
19570b3e38ee4Smrgelse
19571a73423d7Smrg	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19572a73423d7Smrg	XORG_LIBS=$pkg_cv_XORG_LIBS
19573e9f7eabcSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19574e9f7eabcSmrgprintf "%s\n" "yes" >&6; }
1957550806d53Smrg
19576b3e38ee4Smrgfi
1957750806d53Smrg
19578a73423d7Smrg# Checks for libraries.
19579a73423d7SmrgSAVE_CPPFLAGS="$CPPFLAGS"
19580a73423d7SmrgCPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19581e9f7eabcSmrgac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
19582e9f7eabcSmrg" "$ac_c_undeclared_builtin_options" "CFLAGS"
19583e9f7eabcSmrgif test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
19584e9f7eabcSmrgthen :
19585a73423d7Smrg  XSERVER_LIBPCIACCESS=yes
19586e9f7eabcSmrgelse $as_nop
19587a73423d7Smrg  XSERVER_LIBPCIACCESS=no
19588b3e38ee4Smrgfi
19589e9f7eabcSmrgac_fn_c_check_header_compile "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default"
19590e9f7eabcSmrgif test "x$ac_cv_header_xf1bpp_h" = xyes
19591e9f7eabcSmrgthen :
19592a73423d7Smrg
19593e9f7eabcSmrgprintf "%s\n" "#define HAVE_XF1BPP 1" >>confdefs.h
1959450806d53Smrg
19595b3e38ee4Smrgfi
1959650806d53Smrg
19597e9f7eabcSmrgac_fn_c_check_header_compile "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default"
19598e9f7eabcSmrgif test "x$ac_cv_header_xf4bpp_h" = xyes
19599e9f7eabcSmrgthen :
19600a73423d7Smrg
19601e9f7eabcSmrgprintf "%s\n" "#define HAVE_XF4BPP 1" >>confdefs.h
1960250806d53Smrg
19603b3e38ee4Smrgfi
1960450806d53Smrg
19605b3e38ee4SmrgCPPFLAGS="$SAVE_CPPFLAGS"
1960650806d53Smrg
19607b3e38ee4Smrgif test "x$XSERVER_LIBPCIACCESS" = xyes; then
1960850806d53Smrg
19609b3e38ee4Smrgpkg_failed=no
19610e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19611e9f7eabcSmrgprintf %s "checking for PCIACCESS... " >&6; }
1961250806d53Smrg
19613b3e38ee4Smrgif test -n "$PCIACCESS_CFLAGS"; then
19614b3e38ee4Smrg    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19615b3e38ee4Smrg elif test -n "$PKG_CONFIG"; then
19616b3e38ee4Smrg    if test -n "$PKG_CONFIG" && \
19617e9f7eabcSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19618b3e38ee4Smrg  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19619b3e38ee4Smrg  ac_status=$?
19620e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19621a73423d7Smrg  test $ac_status = 0; }; then
19622b3e38ee4Smrg  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
196234a8d91dcSmrg		      test "x$?" != "x0" && pkg_failed=yes
19624b3e38ee4Smrgelse
19625b3e38ee4Smrg  pkg_failed=yes
19626b3e38ee4Smrgfi
19627b3e38ee4Smrg else
19628b3e38ee4Smrg    pkg_failed=untried
19629b3e38ee4Smrgfi
19630b3e38ee4Smrgif test -n "$PCIACCESS_LIBS"; then
19631b3e38ee4Smrg    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19632b3e38ee4Smrg elif test -n "$PKG_CONFIG"; then
19633b3e38ee4Smrg    if test -n "$PKG_CONFIG" && \
19634e9f7eabcSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19635b3e38ee4Smrg  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19636b3e38ee4Smrg  ac_status=$?
19637e9f7eabcSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19638a73423d7Smrg  test $ac_status = 0; }; then
19639b3e38ee4Smrg  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
196404a8d91dcSmrg		      test "x$?" != "x0" && pkg_failed=yes
19641b3e38ee4Smrgelse
19642b3e38ee4Smrg  pkg_failed=yes
19643b3e38ee4Smrgfi
19644b3e38ee4Smrg else
19645b3e38ee4Smrg    pkg_failed=untried
19646b3e38ee4Smrgfi
1964750806d53Smrg
1964850806d53Smrg
1964950806d53Smrg
19650b3e38ee4Smrgif test $pkg_failed = yes; then
19651e9f7eabcSmrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19652e9f7eabcSmrgprintf "%s\n" "no" >&6; }
19653af1a9c97Smrg
19654b3e38ee4Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19655b3e38ee4Smrg        _pkg_short_errors_supported=yes
19656af1a9c97Smrgelse
19657b3e38ee4Smrg        _pkg_short_errors_supported=no
19658af1a9c97Smrgfi
19659b3e38ee4Smrg        if test $_pkg_short_errors_supported = yes; then
196604a8d91dcSmrg	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19661b3e38ee4Smrg        else
196624a8d91dcSmrg	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19663b3e38ee4Smrg        fi
19664b3e38ee4Smrg	# Put the nasty error message in config.log where it belongs
19665b3e38ee4Smrg	echo "$PCIACCESS_PKG_ERRORS" >&5
1966650806d53Smrg
19667a73423d7Smrg	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
1966850806d53Smrg
19669b3e38ee4Smrg$PCIACCESS_PKG_ERRORS
1967050806d53Smrg
19671b3e38ee4SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
19672b3e38ee4Smrginstalled software in a non-standard prefix.
19673a18ebfb2Smrg
19674b3e38ee4SmrgAlternatively, you may set the environment variables PCIACCESS_CFLAGS
19675b3e38ee4Smrgand PCIACCESS_LIBS to avoid the need to call pkg-config.
19676a73423d7SmrgSee the pkg-config man page for more details." "$LINENO" 5
19677b3e38ee4Smrgelif test $pkg_failed = untried; then
19678e9f7eabcSmrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19679e9f7eabcSmrgprintf "%s\n" "no" >&6; }
19680e9f7eabcSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19681e9f7eabcSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19682a73423d7Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19683b3e38ee4Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
19684b3e38ee4Smrgpath to pkg-config.
1968550806d53Smrg
19686b3e38ee4SmrgAlternatively, you may set the environment variables PCIACCESS_CFLAGS
19687b3e38ee4Smrgand PCIACCESS_LIBS to avoid the need to call pkg-config.
19688b3e38ee4SmrgSee the pkg-config man page for more details.
1968950806d53Smrg
19690b3e38ee4SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
19691a73423d7SmrgSee \`config.log' for more details" "$LINENO" 5; }
19692b3e38ee4Smrgelse
19693b3e38ee4Smrg	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19694b3e38ee4Smrg	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19695e9f7eabcSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19696e9f7eabcSmrgprintf "%s\n" "yes" >&6; }
19697a73423d7Smrg
19698b3e38ee4Smrgfi
19699b3e38ee4Smrg    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
19700b3e38ee4Smrgfi
19701b3e38ee4Smrg if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19702b3e38ee4Smrg  XSERVER_LIBPCIACCESS_TRUE=
19703b3e38ee4Smrg  XSERVER_LIBPCIACCESS_FALSE='#'
19704b3e38ee4Smrgelse
19705b3e38ee4Smrg  XSERVER_LIBPCIACCESS_TRUE='#'
19706b3e38ee4Smrg  XSERVER_LIBPCIACCESS_FALSE=
19707b3e38ee4Smrgfi
197087965d9acSmrg
1970950806d53Smrg
1971050806d53Smrg
19711a73423d7Smrg# Check whether --enable-xaa was given.
19712e9f7eabcSmrgif test ${enable_xaa+y}
19713e9f7eabcSmrgthen :
19714a73423d7Smrg  enableval=$enable_xaa; XAA="$enableval"
19715e9f7eabcSmrgelse $as_nop
19716a73423d7Smrg  XAA=auto
19717a73423d7Smrgfi
19718a73423d7Smrg
19719a73423d7Smrgif test "x$XAA" != xno; then
19720a73423d7Smrg        save_CFLAGS=$CFLAGS
19721a73423d7Smrg        save_CPPFLAGS=$CPPFLAGS
19722a73423d7Smrg        CFLAGS=$XORG_CFLAGS
19723a73423d7Smrg        CPPFLAGS="$XORG_CFLAGS"
19724e9f7eabcSmrg               for ac_header in xaa.h
19725a73423d7Smrgdo :
19726e9f7eabcSmrg  ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19727e9f7eabcSmrgif test "x$ac_cv_header_xaa_h" = xyes
19728e9f7eabcSmrgthen :
19729e9f7eabcSmrg  printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h
19730a73423d7Smrg XAA=yes
19731e9f7eabcSmrgelse $as_nop
19732a73423d7Smrg  XAA=no
19733a73423d7Smrgfi
19734a73423d7Smrg
19735a73423d7Smrgdone
19736a73423d7Smrg        CFLAGS=$save_CFLAGS
19737a73423d7Smrg        CPPFLAGS=$save_CPPFLAGS
19738a73423d7Smrgfi
19739e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19740e9f7eabcSmrgprintf %s "checking whether to include XAA support... " >&6; }
19741a73423d7Smrg if test "x$XAA" = xyes; then
19742a73423d7Smrg  XAA_TRUE=
19743a73423d7Smrg  XAA_FALSE='#'
19744a73423d7Smrgelse
19745a73423d7Smrg  XAA_TRUE='#'
19746a73423d7Smrg  XAA_FALSE=
19747a73423d7Smrgfi
19748a73423d7Smrg
19749e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
19750e9f7eabcSmrgprintf "%s\n" "$XAA" >&6; }
19751a73423d7Smrg
19752a73423d7Smrg# Required by exa.h
19753a73423d7Smrg
19754e9f7eabcSmrgprintf "%s\n" "#define EXA_DRIVER_KNOWN_MAJOR 3" >>confdefs.h
1975550806d53Smrg
1975650806d53Smrg
1975750806d53Smrg
1975850806d53Smrg
1975950806d53Smrg
19760b3e38ee4SmrgDRIVER_NAME=i128
1976150806d53Smrg
1976250806d53Smrg
19763b3e38ee4Smrgac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19764af1a9c97Smrg
19765b3e38ee4Smrgcat >confcache <<\_ACEOF
19766b3e38ee4Smrg# This file is a shell script that caches the results of configure
19767b3e38ee4Smrg# tests run on this system so they can be shared between configure
19768b3e38ee4Smrg# scripts and configure runs, see configure's option --config-cache.
19769b3e38ee4Smrg# It is not useful on other systems.  If it contains results you don't
19770b3e38ee4Smrg# want to keep, you may remove or edit it.
19771b3e38ee4Smrg#
19772b3e38ee4Smrg# config.status only pays attention to the cache file if you give it
19773b3e38ee4Smrg# the --recheck option to rerun configure.
19774b3e38ee4Smrg#
19775b3e38ee4Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
19776b3e38ee4Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
19777b3e38ee4Smrg# following values.
19778af1a9c97Smrg
19779b3e38ee4Smrg_ACEOF
19780a18ebfb2Smrg
19781b3e38ee4Smrg# The following way of writing the cache mishandles newlines in values,
19782b3e38ee4Smrg# but we know of no workaround that is simple, portable, and efficient.
19783b3e38ee4Smrg# So, we kill variables containing newlines.
19784b3e38ee4Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
19785b3e38ee4Smrg# and sets the high bit in the cache file unless we assign to the vars.
19786b3e38ee4Smrg(
19787b3e38ee4Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19788b3e38ee4Smrg    eval ac_val=\$$ac_var
19789b3e38ee4Smrg    case $ac_val in #(
19790b3e38ee4Smrg    *${as_nl}*)
19791b3e38ee4Smrg      case $ac_var in #(
19792e9f7eabcSmrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19793e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19794a18ebfb2Smrg      esac
19795b3e38ee4Smrg      case $ac_var in #(
19796b3e38ee4Smrg      _ | IFS | as_nl) ;; #(
19797b3e38ee4Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19798a73423d7Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
19799b3e38ee4Smrg      esac ;;
19800b3e38ee4Smrg    esac
19801b3e38ee4Smrg  done
19802af1a9c97Smrg
19803b3e38ee4Smrg  (set) 2>&1 |
19804b3e38ee4Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19805b3e38ee4Smrg    *${as_nl}ac_space=\ *)
19806a73423d7Smrg      # `set' does not quote correctly, so add quotes: double-quote
19807a73423d7Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
19808b3e38ee4Smrg      sed -n \
19809b3e38ee4Smrg	"s/'/'\\\\''/g;
19810b3e38ee4Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19811b3e38ee4Smrg      ;; #(
19812a18ebfb2Smrg    *)
19813b3e38ee4Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
19814b3e38ee4Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19815a18ebfb2Smrg      ;;
19816b3e38ee4Smrg    esac |
19817b3e38ee4Smrg    sort
19818b3e38ee4Smrg) |
19819b3e38ee4Smrg  sed '
19820b3e38ee4Smrg     /^ac_cv_env_/b end
19821b3e38ee4Smrg     t clear
19822b3e38ee4Smrg     :clear
19823e9f7eabcSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19824b3e38ee4Smrg     t end
19825b3e38ee4Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19826b3e38ee4Smrg     :end' >>confcache
19827b3e38ee4Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19828b3e38ee4Smrg  if test -w "$cache_file"; then
19829a73423d7Smrg    if test "x$cache_file" != "x/dev/null"; then
19830e9f7eabcSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19831e9f7eabcSmrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19832a73423d7Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
19833a73423d7Smrg	cat confcache >"$cache_file"
19834a73423d7Smrg      else
19835a73423d7Smrg        case $cache_file in #(
19836a73423d7Smrg        */* | ?:*)
19837a73423d7Smrg	  mv -f confcache "$cache_file"$$ &&
19838a73423d7Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19839a73423d7Smrg        *)
19840a73423d7Smrg	  mv -f confcache "$cache_file" ;;
19841a73423d7Smrg	esac
19842a73423d7Smrg      fi
19843a73423d7Smrg    fi
19844b3e38ee4Smrg  else
19845e9f7eabcSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19846e9f7eabcSmrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1984750806d53Smrg  fi
19848b3e38ee4Smrgfi
19849b3e38ee4Smrgrm -f confcache
1985050806d53Smrg
19851b3e38ee4Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
19852b3e38ee4Smrg# Let make expand exec_prefix.
19853b3e38ee4Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1985450806d53Smrg
19855b3e38ee4SmrgDEFS=-DHAVE_CONFIG_H
1985650806d53Smrg
19857b3e38ee4Smrgac_libobjs=
19858b3e38ee4Smrgac_ltlibobjs=
19859a73423d7SmrgU=
19860b3e38ee4Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19861b3e38ee4Smrg  # 1. Remove the extension, and $U if already installed.
19862b3e38ee4Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19863e9f7eabcSmrg  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19864b3e38ee4Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19865b3e38ee4Smrg  #    will be set to the directory where LIBOBJS objects are built.
19866a73423d7Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19867a73423d7Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19868b3e38ee4Smrgdone
19869b3e38ee4SmrgLIBOBJS=$ac_libobjs
1987050806d53Smrg
19871b3e38ee4SmrgLTLIBOBJS=$ac_ltlibobjs
1987250806d53Smrg
19873b3e38ee4Smrg
19874e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19875e9f7eabcSmrgprintf %s "checking that generated files are newer than configure... " >&6; }
198764a8d91dcSmrg   if test -n "$am_sleep_pid"; then
198774a8d91dcSmrg     # Hide warnings about reused PIDs.
198784a8d91dcSmrg     wait $am_sleep_pid 2>/dev/null
198794a8d91dcSmrg   fi
19880e9f7eabcSmrg   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19881e9f7eabcSmrgprintf "%s\n" "done" >&6; }
19882b3e38ee4Smrg if test -n "$EXEEXT"; then
19883b3e38ee4Smrg  am__EXEEXT_TRUE=
19884b3e38ee4Smrg  am__EXEEXT_FALSE='#'
19885a18ebfb2Smrgelse
19886b3e38ee4Smrg  am__EXEEXT_TRUE='#'
19887b3e38ee4Smrg  am__EXEEXT_FALSE=
19888a18ebfb2Smrgfi
1988950806d53Smrg
19890b3e38ee4Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19891a73423d7Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19892a73423d7SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
19893b3e38ee4Smrgfi
19894b3e38ee4Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19895a73423d7Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
19896a73423d7SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
19897b3e38ee4Smrgfi
19898b3e38ee4Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19899a73423d7Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19900a73423d7SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
19901b3e38ee4Smrgfi
19902b3e38ee4Smrgif test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19903a73423d7Smrg  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19904a73423d7SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
19905a73423d7Smrgfi
19906a73423d7Smrgif test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19907a73423d7Smrg  as_fn_error $? "conditional \"XAA\" was never defined.
19908a73423d7SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
19909a18ebfb2Smrgfi
1991050806d53Smrg
19911a73423d7Smrg: "${CONFIG_STATUS=./config.status}"
19912b3e38ee4Smrgac_write_fail=0
19913b3e38ee4Smrgac_clean_files_save=$ac_clean_files
19914b3e38ee4Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
19915e9f7eabcSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19916e9f7eabcSmrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19917a73423d7Smrgas_write_fail=0
19918a73423d7Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19919b3e38ee4Smrg#! $SHELL
19920b3e38ee4Smrg# Generated by $as_me.
19921b3e38ee4Smrg# Run this file to recreate the current configuration.
19922b3e38ee4Smrg# Compiler output produced by configure, useful for debugging
19923b3e38ee4Smrg# configure, is in config.log if it exists.
1992450806d53Smrg
19925b3e38ee4Smrgdebug=false
19926b3e38ee4Smrgac_cs_recheck=false
19927b3e38ee4Smrgac_cs_silent=false
199287965d9acSmrg
19929a73423d7SmrgSHELL=\${CONFIG_SHELL-$SHELL}
19930a73423d7Smrgexport SHELL
19931a73423d7Smrg_ASEOF
19932a73423d7Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19933a73423d7Smrg## -------------------- ##
19934a73423d7Smrg## M4sh Initialization. ##
19935a73423d7Smrg## -------------------- ##
19936b3e38ee4Smrg
19937b3e38ee4Smrg# Be more Bourne compatible
19938b3e38ee4SmrgDUALCASE=1; export DUALCASE # for MKS sh
19939e9f7eabcSmrgas_nop=:
19940e9f7eabcSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19941e9f7eabcSmrgthen :
19942b3e38ee4Smrg  emulate sh
19943b3e38ee4Smrg  NULLCMD=:
19944b3e38ee4Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19945b3e38ee4Smrg  # is contrary to our usage.  Disable this feature.
19946b3e38ee4Smrg  alias -g '${1+"$@"}'='"$@"'
19947b3e38ee4Smrg  setopt NO_GLOB_SUBST
19948e9f7eabcSmrgelse $as_nop
19949a73423d7Smrg  case `(set -o) 2>/dev/null` in #(
19950a73423d7Smrg  *posix*) :
19951a73423d7Smrg    set -o posix ;; #(
19952a73423d7Smrg  *) :
19953a73423d7Smrg     ;;
19954b3e38ee4Smrgesac
19955a18ebfb2Smrgfi
1995650806d53Smrg
1995750806d53Smrg
19958e9f7eabcSmrg
19959e9f7eabcSmrg# Reset variables that may have inherited troublesome values from
19960e9f7eabcSmrg# the environment.
19961e9f7eabcSmrg
19962e9f7eabcSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
19963e9f7eabcSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
19964e9f7eabcSmrg# side effect of setting IFS to empty, thus disabling word splitting.)
19965e9f7eabcSmrg# Quoting is to prevent editors from complaining about space-tab.
19966b3e38ee4Smrgas_nl='
19967b3e38ee4Smrg'
19968b3e38ee4Smrgexport as_nl
19969e9f7eabcSmrgIFS=" ""	$as_nl"
19970e9f7eabcSmrg
19971e9f7eabcSmrgPS1='$ '
19972e9f7eabcSmrgPS2='> '
19973e9f7eabcSmrgPS4='+ '
19974e9f7eabcSmrg
19975e9f7eabcSmrg# Ensure predictable behavior from utilities with locale-dependent output.
19976e9f7eabcSmrgLC_ALL=C
19977e9f7eabcSmrgexport LC_ALL
19978e9f7eabcSmrgLANGUAGE=C
19979e9f7eabcSmrgexport LANGUAGE
19980e9f7eabcSmrg
19981e9f7eabcSmrg# We cannot yet rely on "unset" to work, but we need these variables
19982e9f7eabcSmrg# to be unset--not just set to an empty or harmless value--now, to
19983e9f7eabcSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19984e9f7eabcSmrg# also avoids known problems related to "unset" and subshell syntax
19985e9f7eabcSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19986e9f7eabcSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19987e9f7eabcSmrgdo eval test \${$as_var+y} \
19988e9f7eabcSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19989e9f7eabcSmrgdone
19990e9f7eabcSmrg
19991e9f7eabcSmrg# Ensure that fds 0, 1, and 2 are open.
19992e9f7eabcSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19993e9f7eabcSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19994e9f7eabcSmrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
1999550806d53Smrg
19996b3e38ee4Smrg# The user is always right.
19997e9f7eabcSmrgif ${PATH_SEPARATOR+false} :; then
19998b3e38ee4Smrg  PATH_SEPARATOR=:
19999b3e38ee4Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20000b3e38ee4Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20001b3e38ee4Smrg      PATH_SEPARATOR=';'
20002b3e38ee4Smrg  }
20003b3e38ee4Smrgfi
20004a18ebfb2Smrg
20005af1a9c97Smrg
20006b3e38ee4Smrg# Find who we are.  Look in the path if we contain no directory separator.
20007a73423d7Smrgas_myself=
20008a73423d7Smrgcase $0 in #((
20009b3e38ee4Smrg  *[\\/]* ) as_myself=$0 ;;
20010b3e38ee4Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20011b3e38ee4Smrgfor as_dir in $PATH
20012b3e38ee4Smrgdo
20013b3e38ee4Smrg  IFS=$as_save_IFS
20014e9f7eabcSmrg  case $as_dir in #(((
20015e9f7eabcSmrg    '') as_dir=./ ;;
20016e9f7eabcSmrg    */) ;;
20017e9f7eabcSmrg    *) as_dir=$as_dir/ ;;
20018e9f7eabcSmrg  esac
20019e9f7eabcSmrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20020a73423d7Smrg  done
20021b3e38ee4SmrgIFS=$as_save_IFS
2002250806d53Smrg
20023b3e38ee4Smrg     ;;
20024b3e38ee4Smrgesac
20025b3e38ee4Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
20026b3e38ee4Smrg# in which case we are not to be found in the path.
20027b3e38ee4Smrgif test "x$as_myself" = x; then
20028b3e38ee4Smrg  as_myself=$0
20029b3e38ee4Smrgfi
20030b3e38ee4Smrgif test ! -f "$as_myself"; then
20031e9f7eabcSmrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20032a73423d7Smrg  exit 1
20033b3e38ee4Smrgfi
200347965d9acSmrg
20035a73423d7Smrg
20036a73423d7Smrg
20037a73423d7Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
20038a73423d7Smrg# ----------------------------------------
20039a73423d7Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20040a73423d7Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20041a73423d7Smrg# script with STATUS, using 1 if that was 0.
20042a73423d7Smrgas_fn_error ()
20043a73423d7Smrg{
20044a73423d7Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
20045a73423d7Smrg  if test "$4"; then
20046a73423d7Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20047e9f7eabcSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20048a73423d7Smrg  fi
20049e9f7eabcSmrg  printf "%s\n" "$as_me: error: $2" >&2
20050a73423d7Smrg  as_fn_exit $as_status
20051a73423d7Smrg} # as_fn_error
20052a73423d7Smrg
20053a73423d7Smrg
20054e9f7eabcSmrg
20055a73423d7Smrg# as_fn_set_status STATUS
20056a73423d7Smrg# -----------------------
20057a73423d7Smrg# Set $? to STATUS, without forking.
20058a73423d7Smrgas_fn_set_status ()
20059a73423d7Smrg{
20060a73423d7Smrg  return $1
20061a73423d7Smrg} # as_fn_set_status
20062a73423d7Smrg
20063a73423d7Smrg# as_fn_exit STATUS
20064a73423d7Smrg# -----------------
20065a73423d7Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20066a73423d7Smrgas_fn_exit ()
20067a73423d7Smrg{
20068a73423d7Smrg  set +e
20069a73423d7Smrg  as_fn_set_status $1
20070a73423d7Smrg  exit $1
20071a73423d7Smrg} # as_fn_exit
20072a73423d7Smrg
20073a73423d7Smrg# as_fn_unset VAR
20074a73423d7Smrg# ---------------
20075a73423d7Smrg# Portably unset VAR.
20076a73423d7Smrgas_fn_unset ()
20077a73423d7Smrg{
20078a73423d7Smrg  { eval $1=; unset $1;}
20079a73423d7Smrg}
20080a73423d7Smrgas_unset=as_fn_unset
20081e9f7eabcSmrg
20082a73423d7Smrg# as_fn_append VAR VALUE
20083a73423d7Smrg# ----------------------
20084a73423d7Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
20085a73423d7Smrg# advantage of any shell optimizations that allow amortized linear growth over
20086a73423d7Smrg# repeated appends, instead of the typical quadratic growth present in naive
20087a73423d7Smrg# implementations.
20088e9f7eabcSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20089e9f7eabcSmrgthen :
20090a73423d7Smrg  eval 'as_fn_append ()
20091a73423d7Smrg  {
20092a73423d7Smrg    eval $1+=\$2
20093a73423d7Smrg  }'
20094e9f7eabcSmrgelse $as_nop
20095a73423d7Smrg  as_fn_append ()
20096a73423d7Smrg  {
20097a73423d7Smrg    eval $1=\$$1\$2
20098a73423d7Smrg  }
20099a73423d7Smrgfi # as_fn_append
20100a73423d7Smrg
20101a73423d7Smrg# as_fn_arith ARG...
20102a73423d7Smrg# ------------------
20103a73423d7Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
20104a73423d7Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
20105a73423d7Smrg# must be portable across $(()) and expr.
20106e9f7eabcSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20107e9f7eabcSmrgthen :
20108a73423d7Smrg  eval 'as_fn_arith ()
20109a73423d7Smrg  {
20110a73423d7Smrg    as_val=$(( $* ))
20111a73423d7Smrg  }'
20112e9f7eabcSmrgelse $as_nop
20113a73423d7Smrg  as_fn_arith ()
20114a73423d7Smrg  {
20115a73423d7Smrg    as_val=`expr "$@" || test $? -eq 1`
20116a73423d7Smrg  }
20117a73423d7Smrgfi # as_fn_arith
20118a73423d7Smrg
20119a73423d7Smrg
20120b3e38ee4Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
20121b3e38ee4Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20122b3e38ee4Smrg  as_expr=expr
20123b3e38ee4Smrgelse
20124b3e38ee4Smrg  as_expr=false
20125b3e38ee4Smrgfi
201267965d9acSmrg
20127b3e38ee4Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20128b3e38ee4Smrg  as_basename=basename
20129b3e38ee4Smrgelse
20130b3e38ee4Smrg  as_basename=false
20131b3e38ee4Smrgfi
2013250806d53Smrg
20133a73423d7Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20134a73423d7Smrg  as_dirname=dirname
20135a73423d7Smrgelse
20136a73423d7Smrg  as_dirname=false
20137a73423d7Smrgfi
2013850806d53Smrg
20139b3e38ee4Smrgas_me=`$as_basename -- "$0" ||
20140b3e38ee4Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20141b3e38ee4Smrg	 X"$0" : 'X\(//\)$' \| \
20142b3e38ee4Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20143e9f7eabcSmrgprintf "%s\n" X/"$0" |
20144b3e38ee4Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
20145b3e38ee4Smrg	    s//\1/
20146b3e38ee4Smrg	    q
20147b3e38ee4Smrg	  }
20148b3e38ee4Smrg	  /^X\/\(\/\/\)$/{
20149b3e38ee4Smrg	    s//\1/
20150b3e38ee4Smrg	    q
20151b3e38ee4Smrg	  }
20152b3e38ee4Smrg	  /^X\/\(\/\).*/{
20153b3e38ee4Smrg	    s//\1/
20154b3e38ee4Smrg	    q
20155b3e38ee4Smrg	  }
20156b3e38ee4Smrg	  s/.*/./; q'`
2015750806d53Smrg
20158a73423d7Smrg# Avoid depending upon Character Ranges.
20159a73423d7Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
20160a73423d7Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20161a73423d7Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
20162a73423d7Smrgas_cr_digits='0123456789'
20163a73423d7Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
2016450806d53Smrg
20165e9f7eabcSmrg
20166e9f7eabcSmrg# Determine whether it's possible to make 'echo' print without a newline.
20167e9f7eabcSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20168e9f7eabcSmrg# for compatibility with existing Makefiles.
20169b3e38ee4SmrgECHO_C= ECHO_N= ECHO_T=
20170a73423d7Smrgcase `echo -n x` in #(((((
20171b3e38ee4Smrg-n*)
20172a73423d7Smrg  case `echo 'xy\c'` in
20173b3e38ee4Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20174a73423d7Smrg  xy)  ECHO_C='\c';;
20175a73423d7Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20176a73423d7Smrg       ECHO_T='	';;
20177b3e38ee4Smrg  esac;;
20178b3e38ee4Smrg*)
20179b3e38ee4Smrg  ECHO_N='-n';;
20180b3e38ee4Smrgesac
2018150806d53Smrg
20182e9f7eabcSmrg# For backward compatibility with old third-party macros, we provide
20183e9f7eabcSmrg# the shell variables $as_echo and $as_echo_n.  New code should use
20184e9f7eabcSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20185e9f7eabcSmrgas_echo='printf %s\n'
20186e9f7eabcSmrgas_echo_n='printf %s'
20187e9f7eabcSmrg
20188b3e38ee4Smrgrm -f conf$$ conf$$.exe conf$$.file
20189b3e38ee4Smrgif test -d conf$$.dir; then
20190b3e38ee4Smrg  rm -f conf$$.dir/conf$$.file
20191b3e38ee4Smrgelse
20192b3e38ee4Smrg  rm -f conf$$.dir
20193b3e38ee4Smrg  mkdir conf$$.dir 2>/dev/null
20194b3e38ee4Smrgfi
20195b3e38ee4Smrgif (echo >conf$$.file) 2>/dev/null; then
20196b3e38ee4Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
20197b3e38ee4Smrg    as_ln_s='ln -s'
20198b3e38ee4Smrg    # ... but there are two gotchas:
20199b3e38ee4Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20200b3e38ee4Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
202014a8d91dcSmrg    # In both cases, we have to default to `cp -pR'.
20202b3e38ee4Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
202034a8d91dcSmrg      as_ln_s='cp -pR'
20204b3e38ee4Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
20205b3e38ee4Smrg    as_ln_s=ln
20206b3e38ee4Smrg  else
202074a8d91dcSmrg    as_ln_s='cp -pR'
20208b3e38ee4Smrg  fi
20209b3e38ee4Smrgelse
202104a8d91dcSmrg  as_ln_s='cp -pR'
20211b3e38ee4Smrgfi
20212b3e38ee4Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20213b3e38ee4Smrgrmdir conf$$.dir 2>/dev/null
2021450806d53Smrg
20215a73423d7Smrg
20216a73423d7Smrg# as_fn_mkdir_p
20217a73423d7Smrg# -------------
20218a73423d7Smrg# Create "$as_dir" as a directory, including parents if necessary.
20219a73423d7Smrgas_fn_mkdir_p ()
20220a73423d7Smrg{
20221a73423d7Smrg
20222a73423d7Smrg  case $as_dir in #(
20223a73423d7Smrg  -*) as_dir=./$as_dir;;
20224a73423d7Smrg  esac
20225a73423d7Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
20226a73423d7Smrg    as_dirs=
20227a73423d7Smrg    while :; do
20228a73423d7Smrg      case $as_dir in #(
20229e9f7eabcSmrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20230a73423d7Smrg      *) as_qdir=$as_dir;;
20231a73423d7Smrg      esac
20232a73423d7Smrg      as_dirs="'$as_qdir' $as_dirs"
20233a73423d7Smrg      as_dir=`$as_dirname -- "$as_dir" ||
20234a73423d7Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20235a73423d7Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
20236a73423d7Smrg	 X"$as_dir" : 'X\(//\)$' \| \
20237a73423d7Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20238e9f7eabcSmrgprintf "%s\n" X"$as_dir" |
20239a73423d7Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20240a73423d7Smrg	    s//\1/
20241a73423d7Smrg	    q
20242a73423d7Smrg	  }
20243a73423d7Smrg	  /^X\(\/\/\)[^/].*/{
20244a73423d7Smrg	    s//\1/
20245a73423d7Smrg	    q
20246a73423d7Smrg	  }
20247a73423d7Smrg	  /^X\(\/\/\)$/{
20248a73423d7Smrg	    s//\1/
20249a73423d7Smrg	    q
20250a73423d7Smrg	  }
20251a73423d7Smrg	  /^X\(\/\).*/{
20252a73423d7Smrg	    s//\1/
20253a73423d7Smrg	    q
20254a73423d7Smrg	  }
20255a73423d7Smrg	  s/.*/./; q'`
20256a73423d7Smrg      test -d "$as_dir" && break
20257a73423d7Smrg    done
20258a73423d7Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
20259a73423d7Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20260a73423d7Smrg
20261a73423d7Smrg
20262a73423d7Smrg} # as_fn_mkdir_p
20263b3e38ee4Smrgif mkdir -p . 2>/dev/null; then
20264a73423d7Smrg  as_mkdir_p='mkdir -p "$as_dir"'
20265b3e38ee4Smrgelse
20266b3e38ee4Smrg  test -d ./-p && rmdir ./-p
20267b3e38ee4Smrg  as_mkdir_p=false
20268b3e38ee4Smrgfi
2026950806d53Smrg
202704a8d91dcSmrg
202714a8d91dcSmrg# as_fn_executable_p FILE
202724a8d91dcSmrg# -----------------------
202734a8d91dcSmrg# Test if FILE is an executable regular file.
202744a8d91dcSmrgas_fn_executable_p ()
202754a8d91dcSmrg{
202764a8d91dcSmrg  test -f "$1" && test -x "$1"
202774a8d91dcSmrg} # as_fn_executable_p
202784a8d91dcSmrgas_test_x='test -x'
202794a8d91dcSmrgas_executable_p=as_fn_executable_p
2028050806d53Smrg
20281b3e38ee4Smrg# Sed expression to map a string onto a valid CPP name.
20282b3e38ee4Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2028350806d53Smrg
20284b3e38ee4Smrg# Sed expression to map a string onto a valid variable name.
20285b3e38ee4Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2028650806d53Smrg
2028750806d53Smrg
20288b3e38ee4Smrgexec 6>&1
20289a73423d7Smrg## ----------------------------------- ##
20290a73423d7Smrg## Main body of $CONFIG_STATUS script. ##
20291a73423d7Smrg## ----------------------------------- ##
20292a73423d7Smrg_ASEOF
20293a73423d7Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
2029450806d53Smrg
20295a73423d7Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20296a73423d7Smrg# Save the log message, to keep $0 and so on meaningful, and to
20297b3e38ee4Smrg# report actual input values of CONFIG_FILES etc. instead of their
20298b3e38ee4Smrg# values after options handling.
20299b3e38ee4Smrgac_log="
20300e9f7eabcSmrgThis file was extended by xf86-video-i128 $as_me 1.4.1, which was
20301e9f7eabcSmrggenerated by GNU Autoconf 2.71.  Invocation command line was
2030250806d53Smrg
20303b3e38ee4Smrg  CONFIG_FILES    = $CONFIG_FILES
20304b3e38ee4Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
20305b3e38ee4Smrg  CONFIG_LINKS    = $CONFIG_LINKS
20306b3e38ee4Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
20307b3e38ee4Smrg  $ $0 $@
2030850806d53Smrg
20309b3e38ee4Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
20310b3e38ee4Smrg"
2031150806d53Smrg
20312a18ebfb2Smrg_ACEOF
2031350806d53Smrg
20314b3e38ee4Smrgcase $ac_config_files in *"
20315b3e38ee4Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
20316b3e38ee4Smrgesac
2031750806d53Smrg
20318b3e38ee4Smrgcase $ac_config_headers in *"
20319b3e38ee4Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20320a18ebfb2Smrgesac
2032150806d53Smrg
2032250806d53Smrg
20323b3e38ee4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20324b3e38ee4Smrg# Files that config.status was made for.
20325b3e38ee4Smrgconfig_files="$ac_config_files"
20326b3e38ee4Smrgconfig_headers="$ac_config_headers"
20327b3e38ee4Smrgconfig_commands="$ac_config_commands"
2032850806d53Smrg
20329b3e38ee4Smrg_ACEOF
2033050806d53Smrg
20331b3e38ee4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20332b3e38ee4Smrgac_cs_usage="\
20333a73423d7Smrg\`$as_me' instantiates files and other configuration actions
20334a73423d7Smrgfrom templates according to the current configuration.  Unless the files
20335a73423d7Smrgand actions are specified as TAGs, all are instantiated by default.
2033650806d53Smrg
20337a73423d7SmrgUsage: $0 [OPTION]... [TAG]...
2033850806d53Smrg
20339b3e38ee4Smrg  -h, --help       print this help, then exit
20340b3e38ee4Smrg  -V, --version    print version number and configuration settings, then exit
20341a73423d7Smrg      --config     print configuration, then exit
20342b3e38ee4Smrg  -q, --quiet, --silent
20343b3e38ee4Smrg                   do not print progress messages
20344b3e38ee4Smrg  -d, --debug      don't remove temporary files
20345b3e38ee4Smrg      --recheck    update $as_me by reconfiguring in the same conditions
20346b3e38ee4Smrg      --file=FILE[:TEMPLATE]
20347b3e38ee4Smrg                   instantiate the configuration file FILE
20348b3e38ee4Smrg      --header=FILE[:TEMPLATE]
20349b3e38ee4Smrg                   instantiate the configuration header FILE
2035050806d53Smrg
20351b3e38ee4SmrgConfiguration files:
20352b3e38ee4Smrg$config_files
2035350806d53Smrg
20354b3e38ee4SmrgConfiguration headers:
20355b3e38ee4Smrg$config_headers
20356b3e38ee4Smrg
20357b3e38ee4SmrgConfiguration commands:
20358b3e38ee4Smrg$config_commands
20359b3e38ee4Smrg
20360e9f7eabcSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-i128/-/issues>."
20361b3e38ee4Smrg
20362b3e38ee4Smrg_ACEOF
20363e9f7eabcSmrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20364e9f7eabcSmrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20365b3e38ee4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20366e9f7eabcSmrgac_cs_config='$ac_cs_config_escaped'
20367b3e38ee4Smrgac_cs_version="\\
20368e9f7eabcSmrgxf86-video-i128 config.status 1.4.1
20369e9f7eabcSmrgconfigured by $0, generated by GNU Autoconf 2.71,
20370a73423d7Smrg  with options \\"\$ac_cs_config\\"
20371b3e38ee4Smrg
20372e9f7eabcSmrgCopyright (C) 2021 Free Software Foundation, Inc.
20373b3e38ee4SmrgThis config.status script is free software; the Free Software Foundation
20374b3e38ee4Smrggives unlimited permission to copy, distribute and modify it."
20375b3e38ee4Smrg
20376b3e38ee4Smrgac_pwd='$ac_pwd'
20377b3e38ee4Smrgsrcdir='$srcdir'
20378b3e38ee4SmrgINSTALL='$INSTALL'
20379b3e38ee4SmrgMKDIR_P='$MKDIR_P'
20380b3e38ee4SmrgAWK='$AWK'
20381b3e38ee4Smrgtest -n "\$AWK" || AWK=awk
20382b3e38ee4Smrg_ACEOF
20383b3e38ee4Smrg
20384b3e38ee4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20385b3e38ee4Smrg# The default lists apply if the user does not specify any file.
20386b3e38ee4Smrgac_need_defaults=:
20387b3e38ee4Smrgwhile test $# != 0
20388b3e38ee4Smrgdo
20389b3e38ee4Smrg  case $1 in
20390a73423d7Smrg  --*=?*)
20391b3e38ee4Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20392b3e38ee4Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20393b3e38ee4Smrg    ac_shift=:
20394b3e38ee4Smrg    ;;
20395a73423d7Smrg  --*=)
20396a73423d7Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20397a73423d7Smrg    ac_optarg=
20398a73423d7Smrg    ac_shift=:
20399a73423d7Smrg    ;;
20400b3e38ee4Smrg  *)
20401b3e38ee4Smrg    ac_option=$1
20402b3e38ee4Smrg    ac_optarg=$2
20403b3e38ee4Smrg    ac_shift=shift
20404b3e38ee4Smrg    ;;
20405b3e38ee4Smrg  esac
20406b3e38ee4Smrg
20407b3e38ee4Smrg  case $ac_option in
20408b3e38ee4Smrg  # Handling of the options.
20409b3e38ee4Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20410b3e38ee4Smrg    ac_cs_recheck=: ;;
20411b3e38ee4Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20412e9f7eabcSmrg    printf "%s\n" "$ac_cs_version"; exit ;;
20413a73423d7Smrg  --config | --confi | --conf | --con | --co | --c )
20414e9f7eabcSmrg    printf "%s\n" "$ac_cs_config"; exit ;;
20415b3e38ee4Smrg  --debug | --debu | --deb | --de | --d | -d )
20416b3e38ee4Smrg    debug=: ;;
20417b3e38ee4Smrg  --file | --fil | --fi | --f )
20418b3e38ee4Smrg    $ac_shift
20419b3e38ee4Smrg    case $ac_optarg in
20420e9f7eabcSmrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20421a73423d7Smrg    '') as_fn_error $? "missing file argument" ;;
20422b3e38ee4Smrg    esac
20423a73423d7Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
20424b3e38ee4Smrg    ac_need_defaults=false;;
20425b3e38ee4Smrg  --header | --heade | --head | --hea )
20426b3e38ee4Smrg    $ac_shift
20427b3e38ee4Smrg    case $ac_optarg in
20428e9f7eabcSmrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20429b3e38ee4Smrg    esac
20430a73423d7Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20431b3e38ee4Smrg    ac_need_defaults=false;;
20432b3e38ee4Smrg  --he | --h)
20433b3e38ee4Smrg    # Conflict between --help and --header
20434a73423d7Smrg    as_fn_error $? "ambiguous option: \`$1'
20435a73423d7SmrgTry \`$0 --help' for more information.";;
20436b3e38ee4Smrg  --help | --hel | -h )
20437e9f7eabcSmrg    printf "%s\n" "$ac_cs_usage"; exit ;;
20438b3e38ee4Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20439b3e38ee4Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20440b3e38ee4Smrg    ac_cs_silent=: ;;
20441b3e38ee4Smrg
20442b3e38ee4Smrg  # This is an error.
20443a73423d7Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
20444a73423d7SmrgTry \`$0 --help' for more information." ;;
20445b3e38ee4Smrg
20446a73423d7Smrg  *) as_fn_append ac_config_targets " $1"
20447b3e38ee4Smrg     ac_need_defaults=false ;;
20448b3e38ee4Smrg
20449b3e38ee4Smrg  esac
20450b3e38ee4Smrg  shift
20451b3e38ee4Smrgdone
2045250806d53Smrg
20453b3e38ee4Smrgac_configure_extra_args=
2045450806d53Smrg
20455b3e38ee4Smrgif $ac_cs_silent; then
20456b3e38ee4Smrg  exec 6>/dev/null
20457b3e38ee4Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
20458a18ebfb2Smrgfi
2045950806d53Smrg
20460b3e38ee4Smrg_ACEOF
20461b3e38ee4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20462b3e38ee4Smrgif \$ac_cs_recheck; then
204634a8d91dcSmrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20464b3e38ee4Smrg  shift
20465e9f7eabcSmrg  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20466b3e38ee4Smrg  CONFIG_SHELL='$SHELL'
20467b3e38ee4Smrg  export CONFIG_SHELL
20468b3e38ee4Smrg  exec "\$@"
20469b3e38ee4Smrgfi
2047050806d53Smrg
20471b3e38ee4Smrg_ACEOF
20472b3e38ee4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20473b3e38ee4Smrgexec 5>>config.log
20474b3e38ee4Smrg{
20475b3e38ee4Smrg  echo
20476b3e38ee4Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20477b3e38ee4Smrg## Running $as_me. ##
20478b3e38ee4Smrg_ASBOX
20479e9f7eabcSmrg  printf "%s\n" "$ac_log"
20480b3e38ee4Smrg} >&5
2048150806d53Smrg
20482b3e38ee4Smrg_ACEOF
20483b3e38ee4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20484b3e38ee4Smrg#
20485b3e38ee4Smrg# INIT-COMMANDS
20486b3e38ee4Smrg#
20487e9f7eabcSmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
2048850806d53Smrg
2048950806d53Smrg
20490b3e38ee4Smrg# The HP-UX ksh and POSIX shell print the target directory to stdout
20491b3e38ee4Smrg# if CDPATH is set.
20492b3e38ee4Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2049350806d53Smrg
20494b3e38ee4Smrgsed_quote_subst='$sed_quote_subst'
20495b3e38ee4Smrgdouble_quote_subst='$double_quote_subst'
20496b3e38ee4Smrgdelay_variable_subst='$delay_variable_subst'
20497a73423d7Smrgenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20498a73423d7Smrgmacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20499a73423d7Smrgmacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20500a73423d7Smrgenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20501a73423d7Smrgpic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20502a73423d7Smrgenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
205034a8d91dcSmrgshared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20504a73423d7SmrgSHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20505a73423d7SmrgECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20506a73423d7SmrgPATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20507a73423d7Smrghost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20508a73423d7Smrghost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20509a73423d7Smrghost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20510a73423d7Smrgbuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20511a73423d7Smrgbuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20512a73423d7Smrgbuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20513a73423d7SmrgSED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20514a73423d7SmrgXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20515a73423d7SmrgGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20516a73423d7SmrgEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20517a73423d7SmrgFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20518a73423d7SmrgLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20519a73423d7SmrgNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20520a73423d7SmrgLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20521a73423d7Smrgmax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20522a73423d7Smrgac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20523a73423d7Smrgexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20524a73423d7Smrglt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20525a73423d7Smrglt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20526a73423d7Smrglt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20527a73423d7Smrglt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20528a73423d7Smrglt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20529a73423d7Smrgreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20530a73423d7Smrgreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20531e9f7eabcSmrgFILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20532a73423d7SmrgOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20533a73423d7Smrgdeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20534a73423d7Smrgfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20535a73423d7Smrgfile_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20536a73423d7Smrgwant_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20537a73423d7SmrgDLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20538a73423d7Smrgsharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20539a73423d7SmrgAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20540e9f7eabcSmrglt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20541a73423d7SmrgAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20542a73423d7Smrgarchiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20543a73423d7SmrgSTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20544a73423d7SmrgRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20545a73423d7Smrgold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20546a73423d7Smrgold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20547a73423d7Smrgold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20548a73423d7Smrglock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20549a73423d7SmrgCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20550a73423d7SmrgCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20551a73423d7Smrgcompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20552a73423d7SmrgGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20553a73423d7Smrglt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20554a73423d7Smrglt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
205554a8d91dcSmrglt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20556a73423d7Smrglt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20557a73423d7Smrglt_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"`'
205584a8d91dcSmrglt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20559a73423d7Smrgnm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20560a73423d7Smrglt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
205614a8d91dcSmrglt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20562a73423d7Smrgobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20563a73423d7SmrgMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20564a73423d7Smrglt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20565a73423d7Smrglt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20566a73423d7Smrglt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20567a73423d7Smrglt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20568a73423d7Smrglt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20569a73423d7Smrgneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20570a73423d7SmrgMANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20571a73423d7SmrgDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20572a73423d7SmrgNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20573a73423d7SmrgLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20574a73423d7SmrgOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20575a73423d7SmrgOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20576a73423d7Smrglibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20577a73423d7Smrgshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20578a73423d7Smrgextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20579a73423d7Smrgarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20580a73423d7Smrgenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20581a73423d7Smrgexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20582a73423d7Smrgwhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20583a73423d7Smrgcompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20584a73423d7Smrgold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20585a73423d7Smrgold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20586a73423d7Smrgarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20587a73423d7Smrgarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20588a73423d7Smrgmodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20589a73423d7Smrgmodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20590a73423d7Smrgwith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20591a73423d7Smrgallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20592a73423d7Smrgno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20593a73423d7Smrghardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20594a73423d7Smrghardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20595a73423d7Smrghardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20596a73423d7Smrghardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20597a73423d7Smrghardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20598a73423d7Smrghardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20599a73423d7Smrghardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20600a73423d7Smrginherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20601a73423d7Smrglink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20602a73423d7Smrgalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20603a73423d7Smrgexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20604a73423d7Smrgexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20605a73423d7Smrginclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20606a73423d7Smrgprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20607a73423d7Smrgpostlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20608a73423d7Smrgfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20609a73423d7Smrgvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20610a73423d7Smrgneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20611a73423d7Smrgneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20612a73423d7Smrgversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20613a73423d7Smrgrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20614a73423d7Smrgshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20615a73423d7Smrgshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20616a73423d7Smrglibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20617a73423d7Smrglibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20618a73423d7Smrgsoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20619a73423d7Smrginstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20620a73423d7Smrgpostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20621a73423d7Smrgpostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20622a73423d7Smrgfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20623a73423d7Smrgfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20624a73423d7Smrghardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20625a73423d7Smrgsys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
206264a8d91dcSmrgconfigure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
206274a8d91dcSmrgconfigure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20628a73423d7Smrghardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20629a73423d7Smrgenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20630a73423d7Smrgenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20631a73423d7Smrgenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20632a73423d7Smrgold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20633a73423d7Smrgstriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20634b3e38ee4Smrg
20635b3e38ee4SmrgLTCC='$LTCC'
20636b3e38ee4SmrgLTCFLAGS='$LTCFLAGS'
20637b3e38ee4Smrgcompiler='$compiler_DEFAULT'
20638b3e38ee4Smrg
20639a73423d7Smrg# A function that is used when there is no print builtin or printf.
20640a73423d7Smrgfunc_fallback_echo ()
20641a73423d7Smrg{
20642a73423d7Smrg  eval 'cat <<_LTECHO_EOF
20643a73423d7Smrg\$1
20644a73423d7Smrg_LTECHO_EOF'
20645a73423d7Smrg}
20646a73423d7Smrg
20647b3e38ee4Smrg# Quote evaled strings.
20648a73423d7Smrgfor var in SHELL \
20649a73423d7SmrgECHO \
20650a73423d7SmrgPATH_SEPARATOR \
20651a73423d7SmrgSED \
20652b3e38ee4SmrgGREP \
20653b3e38ee4SmrgEGREP \
20654b3e38ee4SmrgFGREP \
20655b3e38ee4SmrgLD \
20656b3e38ee4SmrgNM \
20657b3e38ee4SmrgLN_S \
20658b3e38ee4Smrglt_SP2NL \
20659b3e38ee4Smrglt_NL2SP \
20660b3e38ee4Smrgreload_flag \
20661e9f7eabcSmrgFILECMD \
20662b3e38ee4SmrgOBJDUMP \
20663b3e38ee4Smrgdeplibs_check_method \
20664b3e38ee4Smrgfile_magic_cmd \
20665a73423d7Smrgfile_magic_glob \
20666a73423d7Smrgwant_nocaseglob \
20667a73423d7SmrgDLLTOOL \
20668a73423d7Smrgsharedlib_from_linklib_cmd \
20669b3e38ee4SmrgAR \
20670a73423d7Smrgarchiver_list_spec \
20671b3e38ee4SmrgSTRIP \
20672b3e38ee4SmrgRANLIB \
20673b3e38ee4SmrgCC \
20674b3e38ee4SmrgCFLAGS \
20675b3e38ee4Smrgcompiler \
20676b3e38ee4Smrglt_cv_sys_global_symbol_pipe \
20677b3e38ee4Smrglt_cv_sys_global_symbol_to_cdecl \
206784a8d91dcSmrglt_cv_sys_global_symbol_to_import \
20679b3e38ee4Smrglt_cv_sys_global_symbol_to_c_name_address \
20680b3e38ee4Smrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
206814a8d91dcSmrglt_cv_nm_interface \
20682a73423d7Smrgnm_file_list_spec \
206834a8d91dcSmrglt_cv_truncate_bin \
20684b3e38ee4Smrglt_prog_compiler_no_builtin_flag \
20685b3e38ee4Smrglt_prog_compiler_pic \
20686a73423d7Smrglt_prog_compiler_wl \
20687b3e38ee4Smrglt_prog_compiler_static \
20688b3e38ee4Smrglt_cv_prog_compiler_c_o \
20689b3e38ee4Smrgneed_locks \
20690a73423d7SmrgMANIFEST_TOOL \
20691b3e38ee4SmrgDSYMUTIL \
20692b3e38ee4SmrgNMEDIT \
20693b3e38ee4SmrgLIPO \
20694b3e38ee4SmrgOTOOL \
20695b3e38ee4SmrgOTOOL64 \
20696b3e38ee4Smrgshrext_cmds \
20697b3e38ee4Smrgexport_dynamic_flag_spec \
20698b3e38ee4Smrgwhole_archive_flag_spec \
20699b3e38ee4Smrgcompiler_needs_object \
20700b3e38ee4Smrgwith_gnu_ld \
20701b3e38ee4Smrgallow_undefined_flag \
20702b3e38ee4Smrgno_undefined_flag \
20703b3e38ee4Smrghardcode_libdir_flag_spec \
20704b3e38ee4Smrghardcode_libdir_separator \
20705b3e38ee4Smrgexclude_expsyms \
20706b3e38ee4Smrginclude_expsyms \
20707b3e38ee4Smrgfile_list_spec \
20708b3e38ee4Smrgvariables_saved_for_relink \
20709b3e38ee4Smrglibname_spec \
20710b3e38ee4Smrglibrary_names_spec \
20711b3e38ee4Smrgsoname_spec \
20712a73423d7Smrginstall_override_mode \
20713b3e38ee4Smrgfinish_eval \
20714b3e38ee4Smrgold_striplib \
20715b3e38ee4Smrgstriplib; do
20716a73423d7Smrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20717b3e38ee4Smrg    *[\\\\\\\`\\"\\\$]*)
207184a8d91dcSmrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20719a18ebfb2Smrg      ;;
20720b3e38ee4Smrg    *)
20721b3e38ee4Smrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20722a18ebfb2Smrg      ;;
20723b3e38ee4Smrg    esac
20724b3e38ee4Smrgdone
2072550806d53Smrg
20726b3e38ee4Smrg# Double-quote double-evaled strings.
20727b3e38ee4Smrgfor var in reload_cmds \
20728b3e38ee4Smrgold_postinstall_cmds \
20729b3e38ee4Smrgold_postuninstall_cmds \
20730b3e38ee4Smrgold_archive_cmds \
20731b3e38ee4Smrgextract_expsyms_cmds \
20732b3e38ee4Smrgold_archive_from_new_cmds \
20733b3e38ee4Smrgold_archive_from_expsyms_cmds \
20734b3e38ee4Smrgarchive_cmds \
20735b3e38ee4Smrgarchive_expsym_cmds \
20736b3e38ee4Smrgmodule_cmds \
20737b3e38ee4Smrgmodule_expsym_cmds \
20738b3e38ee4Smrgexport_symbols_cmds \
20739b3e38ee4Smrgprelink_cmds \
20740a73423d7Smrgpostlink_cmds \
20741b3e38ee4Smrgpostinstall_cmds \
20742b3e38ee4Smrgpostuninstall_cmds \
20743b3e38ee4Smrgfinish_cmds \
20744b3e38ee4Smrgsys_lib_search_path_spec \
207454a8d91dcSmrgconfigure_time_dlsearch_path \
207464a8d91dcSmrgconfigure_time_lt_sys_library_path; do
20747a73423d7Smrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20748b3e38ee4Smrg    *[\\\\\\\`\\"\\\$]*)
207494a8d91dcSmrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20750a18ebfb2Smrg      ;;
20751b3e38ee4Smrg    *)
20752b3e38ee4Smrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20753a18ebfb2Smrg      ;;
20754b3e38ee4Smrg    esac
20755b3e38ee4Smrgdone
2075650806d53Smrg
20757b3e38ee4Smrgac_aux_dir='$ac_aux_dir'
2075850806d53Smrg
207594a8d91dcSmrg# See if we are running on zsh, and set the options that allow our
20760b3e38ee4Smrg# commands through without removal of \ escapes INIT.
207614a8d91dcSmrgif test -n "\${ZSH_VERSION+set}"; then
20762b3e38ee4Smrg   setopt NO_GLOB_SUBST
20763b3e38ee4Smrgfi
2076450806d53Smrg
2076550806d53Smrg
20766b3e38ee4Smrg    PACKAGE='$PACKAGE'
20767b3e38ee4Smrg    VERSION='$VERSION'
20768b3e38ee4Smrg    RM='$RM'
20769b3e38ee4Smrg    ofile='$ofile'
2077050806d53Smrg
2077150806d53Smrg
2077250806d53Smrg
2077350806d53Smrg
20774b3e38ee4Smrg_ACEOF
2077550806d53Smrg
20776b3e38ee4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2077750806d53Smrg
20778b3e38ee4Smrg# Handling of arguments.
20779b3e38ee4Smrgfor ac_config_target in $ac_config_targets
20780b3e38ee4Smrgdo
20781b3e38ee4Smrg  case $ac_config_target in
20782b3e38ee4Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20783b3e38ee4Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20784b3e38ee4Smrg    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20785b3e38ee4Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20786b3e38ee4Smrg    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20787b3e38ee4Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
2078850806d53Smrg
20789a73423d7Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20790b3e38ee4Smrg  esac
20791b3e38ee4Smrgdone
2079250806d53Smrg
2079350806d53Smrg
20794b3e38ee4Smrg# If the user did not use the arguments to specify the items to instantiate,
20795b3e38ee4Smrg# then the envvar interface is used.  Set only those that are not.
20796b3e38ee4Smrg# We use the long form for the default assignment because of an extremely
20797b3e38ee4Smrg# bizarre bug on SunOS 4.1.3.
20798b3e38ee4Smrgif $ac_need_defaults; then
20799e9f7eabcSmrg  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20800e9f7eabcSmrg  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20801e9f7eabcSmrg  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20802b3e38ee4Smrgfi
2080350806d53Smrg
20804b3e38ee4Smrg# Have a temporary directory for convenience.  Make it in the build tree
20805b3e38ee4Smrg# simply because there is no reason against having it here, and in addition,
20806b3e38ee4Smrg# creating and moving files from /tmp can sometimes cause problems.
20807b3e38ee4Smrg# Hook for its removal unless debugging.
20808b3e38ee4Smrg# Note that there is a small window in which the directory will not be cleaned:
20809b3e38ee4Smrg# after its creation but before its name has been assigned to `$tmp'.
20810b3e38ee4Smrg$debug ||
20811b3e38ee4Smrg{
20812a73423d7Smrg  tmp= ac_tmp=
20813b3e38ee4Smrg  trap 'exit_status=$?
20814a73423d7Smrg  : "${ac_tmp:=$tmp}"
20815a73423d7Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20816b3e38ee4Smrg' 0
20817a73423d7Smrg  trap 'as_fn_exit 1' 1 2 13 15
20818b3e38ee4Smrg}
20819b3e38ee4Smrg# Create a (secure) tmp directory for tmp files.
2082050806d53Smrg
20821b3e38ee4Smrg{
20822b3e38ee4Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20823a73423d7Smrg  test -d "$tmp"
20824b3e38ee4Smrg}  ||
20825b3e38ee4Smrg{
20826b3e38ee4Smrg  tmp=./conf$$-$RANDOM
20827b3e38ee4Smrg  (umask 077 && mkdir "$tmp")
20828a73423d7Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20829a73423d7Smrgac_tmp=$tmp
2083050806d53Smrg
20831b3e38ee4Smrg# Set up the scripts for CONFIG_FILES section.
20832b3e38ee4Smrg# No need to generate them if there are no CONFIG_FILES.
20833b3e38ee4Smrg# This happens for instance with `./config.status config.h'.
20834b3e38ee4Smrgif test -n "$CONFIG_FILES"; then
2083550806d53Smrg
2083650806d53Smrg
20837a73423d7Smrgac_cr=`echo X | tr X '\015'`
20838a73423d7Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
20839a73423d7Smrg# But we know of no other shell where ac_cr would be empty at this
20840a73423d7Smrg# point, so we can use a bashism as a fallback.
20841a73423d7Smrgif test "x$ac_cr" = x; then
20842a73423d7Smrg  eval ac_cr=\$\'\\r\'
20843a73423d7Smrgfi
20844b3e38ee4Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20845b3e38ee4Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20846b3e38ee4Smrg  ac_cs_awk_cr='\\r'
20847b3e38ee4Smrgelse
20848b3e38ee4Smrg  ac_cs_awk_cr=$ac_cr
20849b3e38ee4Smrgfi
2085050806d53Smrg
20851a73423d7Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20852b3e38ee4Smrg_ACEOF
2085350806d53Smrg
2085450806d53Smrg
20855b3e38ee4Smrg{
20856b3e38ee4Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
20857b3e38ee4Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20858b3e38ee4Smrg  echo "_ACEOF"
20859b3e38ee4Smrg} >conf$$subs.sh ||
20860a73423d7Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20861a73423d7Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20862b3e38ee4Smrgac_delim='%!_!# '
20863b3e38ee4Smrgfor ac_last_try in false false false false false :; do
20864b3e38ee4Smrg  . ./conf$$subs.sh ||
20865a73423d7Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
2086650806d53Smrg
20867b3e38ee4Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20868b3e38ee4Smrg  if test $ac_delim_n = $ac_delim_num; then
20869b3e38ee4Smrg    break
20870b3e38ee4Smrg  elif $ac_last_try; then
20871a73423d7Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20872b3e38ee4Smrg  else
20873b3e38ee4Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20874b3e38ee4Smrg  fi
20875b3e38ee4Smrgdone
20876b3e38ee4Smrgrm -f conf$$subs.sh
2087750806d53Smrg
20878b3e38ee4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20879a73423d7Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20880b3e38ee4Smrg_ACEOF
20881b3e38ee4Smrgsed -n '
20882b3e38ee4Smrgh
20883b3e38ee4Smrgs/^/S["/; s/!.*/"]=/
20884b3e38ee4Smrgp
20885b3e38ee4Smrgg
20886b3e38ee4Smrgs/^[^!]*!//
20887b3e38ee4Smrg:repl
20888b3e38ee4Smrgt repl
20889b3e38ee4Smrgs/'"$ac_delim"'$//
20890b3e38ee4Smrgt delim
20891b3e38ee4Smrg:nl
20892b3e38ee4Smrgh
20893a73423d7Smrgs/\(.\{148\}\)..*/\1/
20894b3e38ee4Smrgt more1
20895b3e38ee4Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20896b3e38ee4Smrgp
20897b3e38ee4Smrgn
20898b3e38ee4Smrgb repl
20899b3e38ee4Smrg:more1
20900b3e38ee4Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
20901b3e38ee4Smrgp
20902b3e38ee4Smrgg
20903b3e38ee4Smrgs/.\{148\}//
20904b3e38ee4Smrgt nl
20905b3e38ee4Smrg:delim
20906b3e38ee4Smrgh
20907a73423d7Smrgs/\(.\{148\}\)..*/\1/
20908b3e38ee4Smrgt more2
20909b3e38ee4Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
20910b3e38ee4Smrgp
20911b3e38ee4Smrgb
20912b3e38ee4Smrg:more2
20913b3e38ee4Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
20914b3e38ee4Smrgp
20915b3e38ee4Smrgg
20916b3e38ee4Smrgs/.\{148\}//
20917b3e38ee4Smrgt delim
20918b3e38ee4Smrg' <conf$$subs.awk | sed '
20919b3e38ee4Smrg/^[^""]/{
20920b3e38ee4Smrg  N
20921b3e38ee4Smrg  s/\n//
20922b3e38ee4Smrg}
20923b3e38ee4Smrg' >>$CONFIG_STATUS || ac_write_fail=1
20924b3e38ee4Smrgrm -f conf$$subs.awk
20925b3e38ee4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20926b3e38ee4Smrg_ACAWK
20927a73423d7Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20928b3e38ee4Smrg  for (key in S) S_is_set[key] = 1
20929b3e38ee4Smrg  FS = ""
209307965d9acSmrg
20931b3e38ee4Smrg}
20932b3e38ee4Smrg{
20933b3e38ee4Smrg  line = $ 0
20934b3e38ee4Smrg  nfields = split(line, field, "@")
20935b3e38ee4Smrg  substed = 0
20936b3e38ee4Smrg  len = length(field[1])
20937b3e38ee4Smrg  for (i = 2; i < nfields; i++) {
20938b3e38ee4Smrg    key = field[i]
20939b3e38ee4Smrg    keylen = length(key)
20940b3e38ee4Smrg    if (S_is_set[key]) {
20941b3e38ee4Smrg      value = S[key]
20942b3e38ee4Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20943b3e38ee4Smrg      len += length(value) + length(field[++i])
20944b3e38ee4Smrg      substed = 1
20945b3e38ee4Smrg    } else
20946b3e38ee4Smrg      len += 1 + keylen
20947b3e38ee4Smrg  }
2094850806d53Smrg
20949b3e38ee4Smrg  print line
20950b3e38ee4Smrg}
2095150806d53Smrg
20952b3e38ee4Smrg_ACAWK
20953b3e38ee4Smrg_ACEOF
20954b3e38ee4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20955b3e38ee4Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20956b3e38ee4Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20957b3e38ee4Smrgelse
20958b3e38ee4Smrg  cat
20959a73423d7Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20960a73423d7Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20961b3e38ee4Smrg_ACEOF
2096250806d53Smrg
20963a73423d7Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20964a73423d7Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20965b3e38ee4Smrg# trailing colons and then remove the whole line if VPATH becomes empty
20966b3e38ee4Smrg# (actually we leave an empty line to preserve line numbers).
20967b3e38ee4Smrgif test "x$srcdir" = x.; then
20968a73423d7Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20969a73423d7Smrgh
20970a73423d7Smrgs///
20971a73423d7Smrgs/^/:/
20972a73423d7Smrgs/[	 ]*$/:/
20973a73423d7Smrgs/:\$(srcdir):/:/g
20974a73423d7Smrgs/:\${srcdir}:/:/g
20975a73423d7Smrgs/:@srcdir@:/:/g
20976a73423d7Smrgs/^:*//
20977b3e38ee4Smrgs/:*$//
20978a73423d7Smrgx
20979a73423d7Smrgs/\(=[	 ]*\).*/\1/
20980a73423d7SmrgG
20981a73423d7Smrgs/\n//
20982b3e38ee4Smrgs/^[^=]*=[	 ]*$//
20983b3e38ee4Smrg}'
20984b3e38ee4Smrgfi
2098550806d53Smrg
20986b3e38ee4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20987b3e38ee4Smrgfi # test -n "$CONFIG_FILES"
2098850806d53Smrg
20989b3e38ee4Smrg# Set up the scripts for CONFIG_HEADERS section.
20990b3e38ee4Smrg# No need to generate them if there are no CONFIG_HEADERS.
20991b3e38ee4Smrg# This happens for instance with `./config.status Makefile'.
20992b3e38ee4Smrgif test -n "$CONFIG_HEADERS"; then
20993a73423d7Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20994b3e38ee4SmrgBEGIN {
20995b3e38ee4Smrg_ACEOF
2099650806d53Smrg
20997b3e38ee4Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
20998b3e38ee4Smrg# here-document in config.status, that substitutes the proper values into
20999b3e38ee4Smrg# config.h.in to produce config.h.
2100050806d53Smrg
21001b3e38ee4Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
21002b3e38ee4Smrg# handling of long lines.
21003b3e38ee4Smrgac_delim='%!_!# '
21004b3e38ee4Smrgfor ac_last_try in false false :; do
21005a73423d7Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21006a73423d7Smrg  if test -z "$ac_tt"; then
21007b3e38ee4Smrg    break
21008b3e38ee4Smrg  elif $ac_last_try; then
21009a73423d7Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21010b3e38ee4Smrg  else
21011b3e38ee4Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21012a18ebfb2Smrg  fi
21013b3e38ee4Smrgdone
2101450806d53Smrg
21015b3e38ee4Smrg# For the awk script, D is an array of macro values keyed by name,
21016b3e38ee4Smrg# likewise P contains macro parameters if any.  Preserve backslash
21017b3e38ee4Smrg# newline sequences.
2101850806d53Smrg
21019b3e38ee4Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21020b3e38ee4Smrgsed -n '
21021b3e38ee4Smrgs/.\{148\}/&'"$ac_delim"'/g
21022b3e38ee4Smrgt rset
21023b3e38ee4Smrg:rset
21024b3e38ee4Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21025b3e38ee4Smrgt def
21026b3e38ee4Smrgd
21027b3e38ee4Smrg:def
21028b3e38ee4Smrgs/\\$//
21029b3e38ee4Smrgt bsnl
21030b3e38ee4Smrgs/["\\]/\\&/g
21031b3e38ee4Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21032b3e38ee4SmrgD["\1"]=" \3"/p
21033b3e38ee4Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21034b3e38ee4Smrgd
21035b3e38ee4Smrg:bsnl
21036b3e38ee4Smrgs/["\\]/\\&/g
21037b3e38ee4Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21038b3e38ee4SmrgD["\1"]=" \3\\\\\\n"\\/p
21039b3e38ee4Smrgt cont
21040b3e38ee4Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21041b3e38ee4Smrgt cont
21042b3e38ee4Smrgd
21043b3e38ee4Smrg:cont
21044b3e38ee4Smrgn
21045b3e38ee4Smrgs/.\{148\}/&'"$ac_delim"'/g
21046b3e38ee4Smrgt clear
21047b3e38ee4Smrg:clear
21048b3e38ee4Smrgs/\\$//
21049b3e38ee4Smrgt bsnlc
21050b3e38ee4Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
21051b3e38ee4Smrgd
21052b3e38ee4Smrg:bsnlc
21053b3e38ee4Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21054b3e38ee4Smrgb cont
21055b3e38ee4Smrg' <confdefs.h | sed '
21056b3e38ee4Smrgs/'"$ac_delim"'/"\\\
21057b3e38ee4Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
2105850806d53Smrg
21059b3e38ee4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21060b3e38ee4Smrg  for (key in D) D_is_set[key] = 1
21061b3e38ee4Smrg  FS = ""
21062b3e38ee4Smrg}
21063b3e38ee4Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21064b3e38ee4Smrg  line = \$ 0
21065b3e38ee4Smrg  split(line, arg, " ")
21066b3e38ee4Smrg  if (arg[1] == "#") {
21067b3e38ee4Smrg    defundef = arg[2]
21068b3e38ee4Smrg    mac1 = arg[3]
21069b3e38ee4Smrg  } else {
21070b3e38ee4Smrg    defundef = substr(arg[1], 2)
21071b3e38ee4Smrg    mac1 = arg[2]
21072b3e38ee4Smrg  }
21073b3e38ee4Smrg  split(mac1, mac2, "(") #)
21074b3e38ee4Smrg  macro = mac2[1]
21075b3e38ee4Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
21076b3e38ee4Smrg  if (D_is_set[macro]) {
21077b3e38ee4Smrg    # Preserve the white space surrounding the "#".
21078b3e38ee4Smrg    print prefix "define", macro P[macro] D[macro]
21079b3e38ee4Smrg    next
21080b3e38ee4Smrg  } else {
21081b3e38ee4Smrg    # Replace #undef with comments.  This is necessary, for example,
21082b3e38ee4Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
21083b3e38ee4Smrg    # on some systems where configure will not decide to define it.
21084b3e38ee4Smrg    if (defundef == "undef") {
21085b3e38ee4Smrg      print "/*", prefix defundef, macro, "*/"
21086b3e38ee4Smrg      next
21087b3e38ee4Smrg    }
21088b3e38ee4Smrg  }
21089b3e38ee4Smrg}
21090b3e38ee4Smrg{ print }
21091b3e38ee4Smrg_ACAWK
21092b3e38ee4Smrg_ACEOF
21093b3e38ee4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21094a73423d7Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21095b3e38ee4Smrgfi # test -n "$CONFIG_HEADERS"
2109650806d53Smrg
2109750806d53Smrg
21098b3e38ee4Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21099b3e38ee4Smrgshift
21100b3e38ee4Smrgfor ac_tag
21101b3e38ee4Smrgdo
21102b3e38ee4Smrg  case $ac_tag in
21103b3e38ee4Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
21104b3e38ee4Smrg  esac
21105b3e38ee4Smrg  case $ac_mode$ac_tag in
21106b3e38ee4Smrg  :[FHL]*:*);;
21107a73423d7Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21108b3e38ee4Smrg  :[FH]-) ac_tag=-:-;;
21109b3e38ee4Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21110b3e38ee4Smrg  esac
21111b3e38ee4Smrg  ac_save_IFS=$IFS
21112b3e38ee4Smrg  IFS=:
21113b3e38ee4Smrg  set x $ac_tag
21114b3e38ee4Smrg  IFS=$ac_save_IFS
21115b3e38ee4Smrg  shift
21116b3e38ee4Smrg  ac_file=$1
21117b3e38ee4Smrg  shift
2111850806d53Smrg
21119b3e38ee4Smrg  case $ac_mode in
21120b3e38ee4Smrg  :L) ac_source=$1;;
21121b3e38ee4Smrg  :[FH])
21122b3e38ee4Smrg    ac_file_inputs=
21123b3e38ee4Smrg    for ac_f
21124b3e38ee4Smrg    do
21125b3e38ee4Smrg      case $ac_f in
21126a73423d7Smrg      -) ac_f="$ac_tmp/stdin";;
21127b3e38ee4Smrg      *) # Look for the file first in the build tree, then in the source tree
21128b3e38ee4Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21129b3e38ee4Smrg	 # because $ac_f cannot contain `:'.
21130b3e38ee4Smrg	 test -f "$ac_f" ||
21131b3e38ee4Smrg	   case $ac_f in
21132b3e38ee4Smrg	   [\\/$]*) false;;
21133b3e38ee4Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21134b3e38ee4Smrg	   esac ||
21135a73423d7Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21136b3e38ee4Smrg      esac
21137e9f7eabcSmrg      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21138a73423d7Smrg      as_fn_append ac_file_inputs " '$ac_f'"
21139b3e38ee4Smrg    done
21140b3e38ee4Smrg
21141b3e38ee4Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
21142b3e38ee4Smrg    # use $as_me), people would be surprised to read:
21143b3e38ee4Smrg    #    /* config.h.  Generated by config.status.  */
21144b3e38ee4Smrg    configure_input='Generated from '`
21145e9f7eabcSmrg	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21146b3e38ee4Smrg	`' by configure.'
21147b3e38ee4Smrg    if test x"$ac_file" != x-; then
21148b3e38ee4Smrg      configure_input="$ac_file.  $configure_input"
21149e9f7eabcSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21150e9f7eabcSmrgprintf "%s\n" "$as_me: creating $ac_file" >&6;}
21151a18ebfb2Smrg    fi
21152b3e38ee4Smrg    # Neutralize special characters interpreted by sed in replacement strings.
21153b3e38ee4Smrg    case $configure_input in #(
21154b3e38ee4Smrg    *\&* | *\|* | *\\* )
21155e9f7eabcSmrg       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21156b3e38ee4Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21157b3e38ee4Smrg    *) ac_sed_conf_input=$configure_input;;
21158b3e38ee4Smrg    esac
2115950806d53Smrg
21160b3e38ee4Smrg    case $ac_tag in
21161a73423d7Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21162a73423d7Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21163b3e38ee4Smrg    esac
21164b3e38ee4Smrg    ;;
21165b3e38ee4Smrg  esac
2116650806d53Smrg
21167b3e38ee4Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
21168b3e38ee4Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21169b3e38ee4Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
21170b3e38ee4Smrg	 X"$ac_file" : 'X\(//\)$' \| \
21171b3e38ee4Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21172e9f7eabcSmrgprintf "%s\n" X"$ac_file" |
21173b3e38ee4Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21174b3e38ee4Smrg	    s//\1/
21175b3e38ee4Smrg	    q
21176b3e38ee4Smrg	  }
21177b3e38ee4Smrg	  /^X\(\/\/\)[^/].*/{
21178b3e38ee4Smrg	    s//\1/
21179b3e38ee4Smrg	    q
21180b3e38ee4Smrg	  }
21181b3e38ee4Smrg	  /^X\(\/\/\)$/{
21182b3e38ee4Smrg	    s//\1/
21183b3e38ee4Smrg	    q
21184b3e38ee4Smrg	  }
21185b3e38ee4Smrg	  /^X\(\/\).*/{
21186b3e38ee4Smrg	    s//\1/
21187b3e38ee4Smrg	    q
21188b3e38ee4Smrg	  }
21189b3e38ee4Smrg	  s/.*/./; q'`
21190a73423d7Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
21191b3e38ee4Smrg  ac_builddir=.
21192af1a9c97Smrg
21193b3e38ee4Smrgcase "$ac_dir" in
21194b3e38ee4Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21195b3e38ee4Smrg*)
21196e9f7eabcSmrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21197b3e38ee4Smrg  # A ".." for each directory in $ac_dir_suffix.
21198e9f7eabcSmrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21199b3e38ee4Smrg  case $ac_top_builddir_sub in
21200b3e38ee4Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21201b3e38ee4Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21202b3e38ee4Smrg  esac ;;
21203b3e38ee4Smrgesac
21204b3e38ee4Smrgac_abs_top_builddir=$ac_pwd
21205b3e38ee4Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
21206b3e38ee4Smrg# for backward compatibility:
21207b3e38ee4Smrgac_top_builddir=$ac_top_build_prefix
21208af1a9c97Smrg
21209b3e38ee4Smrgcase $srcdir in
21210b3e38ee4Smrg  .)  # We are building in place.
21211b3e38ee4Smrg    ac_srcdir=.
21212b3e38ee4Smrg    ac_top_srcdir=$ac_top_builddir_sub
21213b3e38ee4Smrg    ac_abs_top_srcdir=$ac_pwd ;;
21214b3e38ee4Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
21215b3e38ee4Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
21216b3e38ee4Smrg    ac_top_srcdir=$srcdir
21217b3e38ee4Smrg    ac_abs_top_srcdir=$srcdir ;;
21218b3e38ee4Smrg  *) # Relative name.
21219b3e38ee4Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21220b3e38ee4Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
21221b3e38ee4Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21222b3e38ee4Smrgesac
21223b3e38ee4Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21224a18ebfb2Smrg
21225af1a9c97Smrg
21226b3e38ee4Smrg  case $ac_mode in
21227b3e38ee4Smrg  :F)
21228b3e38ee4Smrg  #
21229b3e38ee4Smrg  # CONFIG_FILE
21230b3e38ee4Smrg  #
21231af1a9c97Smrg
21232b3e38ee4Smrg  case $INSTALL in
21233b3e38ee4Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21234b3e38ee4Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21235a18ebfb2Smrg  esac
21236b3e38ee4Smrg  ac_MKDIR_P=$MKDIR_P
21237b3e38ee4Smrg  case $MKDIR_P in
21238b3e38ee4Smrg  [\\/$]* | ?:[\\/]* ) ;;
21239b3e38ee4Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21240b3e38ee4Smrg  esac
21241b3e38ee4Smrg_ACEOF
21242af1a9c97Smrg
21243b3e38ee4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21244b3e38ee4Smrg# If the template does not know about datarootdir, expand it.
21245b3e38ee4Smrg# FIXME: This hack should be removed a few years after 2.60.
21246b3e38ee4Smrgac_datarootdir_hack=; ac_datarootdir_seen=
21247b3e38ee4Smrgac_sed_dataroot='
21248b3e38ee4Smrg/datarootdir/ {
21249b3e38ee4Smrg  p
21250b3e38ee4Smrg  q
21251b3e38ee4Smrg}
21252b3e38ee4Smrg/@datadir@/p
21253b3e38ee4Smrg/@docdir@/p
21254b3e38ee4Smrg/@infodir@/p
21255b3e38ee4Smrg/@localedir@/p
21256a73423d7Smrg/@mandir@/p'
21257b3e38ee4Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21258b3e38ee4Smrg*datarootdir*) ac_datarootdir_seen=yes;;
21259b3e38ee4Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21260e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21261e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21262b3e38ee4Smrg_ACEOF
21263b3e38ee4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21264b3e38ee4Smrg  ac_datarootdir_hack='
21265b3e38ee4Smrg  s&@datadir@&$datadir&g
21266b3e38ee4Smrg  s&@docdir@&$docdir&g
21267b3e38ee4Smrg  s&@infodir@&$infodir&g
21268b3e38ee4Smrg  s&@localedir@&$localedir&g
21269b3e38ee4Smrg  s&@mandir@&$mandir&g
21270a73423d7Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
21271b3e38ee4Smrgesac
21272b3e38ee4Smrg_ACEOF
21273af1a9c97Smrg
21274b3e38ee4Smrg# Neutralize VPATH when `$srcdir' = `.'.
21275b3e38ee4Smrg# Shell code in configure.ac might set extrasub.
21276b3e38ee4Smrg# FIXME: do we really want to maintain this feature?
21277b3e38ee4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21278b3e38ee4Smrgac_sed_extra="$ac_vpsub
21279b3e38ee4Smrg$extrasub
21280b3e38ee4Smrg_ACEOF
21281b3e38ee4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21282b3e38ee4Smrg:t
21283b3e38ee4Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21284b3e38ee4Smrgs|@configure_input@|$ac_sed_conf_input|;t t
21285b3e38ee4Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
21286b3e38ee4Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
21287b3e38ee4Smrgs&@srcdir@&$ac_srcdir&;t t
21288b3e38ee4Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
21289b3e38ee4Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
21290b3e38ee4Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21291b3e38ee4Smrgs&@builddir@&$ac_builddir&;t t
21292b3e38ee4Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
21293b3e38ee4Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21294b3e38ee4Smrgs&@INSTALL@&$ac_INSTALL&;t t
21295b3e38ee4Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
21296b3e38ee4Smrg$ac_datarootdir_hack
21297b3e38ee4Smrg"
21298a73423d7Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21299a73423d7Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21300af1a9c97Smrg
21301b3e38ee4Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21302a73423d7Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21303a73423d7Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21304a73423d7Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21305e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21306a73423d7Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
21307e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21308a73423d7Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
21309af1a9c97Smrg
21310a73423d7Smrg  rm -f "$ac_tmp/stdin"
21311b3e38ee4Smrg  case $ac_file in
21312a73423d7Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21313a73423d7Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21314b3e38ee4Smrg  esac \
21315a73423d7Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21316b3e38ee4Smrg ;;
21317b3e38ee4Smrg  :H)
21318b3e38ee4Smrg  #
21319b3e38ee4Smrg  # CONFIG_HEADER
21320b3e38ee4Smrg  #
21321b3e38ee4Smrg  if test x"$ac_file" != x-; then
21322b3e38ee4Smrg    {
21323e9f7eabcSmrg      printf "%s\n" "/* $configure_input  */" >&1 \
21324a73423d7Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21325a73423d7Smrg    } >"$ac_tmp/config.h" \
21326a73423d7Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21327a73423d7Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21328e9f7eabcSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21329e9f7eabcSmrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21330b3e38ee4Smrg    else
21331b3e38ee4Smrg      rm -f "$ac_file"
21332a73423d7Smrg      mv "$ac_tmp/config.h" "$ac_file" \
21333a73423d7Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21334b3e38ee4Smrg    fi
21335a18ebfb2Smrg  else
21336e9f7eabcSmrg    printf "%s\n" "/* $configure_input  */" >&1 \
21337a73423d7Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21338a73423d7Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
21339a18ebfb2Smrg  fi
21340b3e38ee4Smrg# Compute "$ac_file"'s index in $config_headers.
21341b3e38ee4Smrg_am_arg="$ac_file"
21342b3e38ee4Smrg_am_stamp_count=1
21343b3e38ee4Smrgfor _am_header in $config_headers :; do
21344b3e38ee4Smrg  case $_am_header in
21345b3e38ee4Smrg    $_am_arg | $_am_arg:* )
21346b3e38ee4Smrg      break ;;
21347b3e38ee4Smrg    * )
21348b3e38ee4Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21349a18ebfb2Smrg  esac
21350b3e38ee4Smrgdone
21351b3e38ee4Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21352b3e38ee4Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21353b3e38ee4Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21354b3e38ee4Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
21355b3e38ee4Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21356e9f7eabcSmrgprintf "%s\n" X"$_am_arg" |
21357b3e38ee4Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21358b3e38ee4Smrg	    s//\1/
21359b3e38ee4Smrg	    q
21360b3e38ee4Smrg	  }
21361b3e38ee4Smrg	  /^X\(\/\/\)[^/].*/{
21362b3e38ee4Smrg	    s//\1/
21363b3e38ee4Smrg	    q
21364b3e38ee4Smrg	  }
21365b3e38ee4Smrg	  /^X\(\/\/\)$/{
21366b3e38ee4Smrg	    s//\1/
21367b3e38ee4Smrg	    q
21368b3e38ee4Smrg	  }
21369b3e38ee4Smrg	  /^X\(\/\).*/{
21370b3e38ee4Smrg	    s//\1/
21371b3e38ee4Smrg	    q
21372b3e38ee4Smrg	  }
21373b3e38ee4Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
21374b3e38ee4Smrg ;;
21375af1a9c97Smrg
21376e9f7eabcSmrg  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21377e9f7eabcSmrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21378b3e38ee4Smrg ;;
21379a18ebfb2Smrg  esac
21380af1a9c97Smrg
21381af1a9c97Smrg
21382b3e38ee4Smrg  case $ac_file$ac_mode in
21383b3e38ee4Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
213844a8d91dcSmrg  # Older Autoconf quotes --file arguments for eval, but not when files
21385b3e38ee4Smrg  # are listed without --file.  Let's play safe and only enable the eval
21386b3e38ee4Smrg  # if we detect the quoting.
21387e9f7eabcSmrg  # TODO: see whether this extra hack can be removed once we start
21388e9f7eabcSmrg  # requiring Autoconf 2.70 or later.
21389e9f7eabcSmrg  case $CONFIG_FILES in #(
21390e9f7eabcSmrg  *\'*) :
21391e9f7eabcSmrg    eval set x "$CONFIG_FILES" ;; #(
21392e9f7eabcSmrg  *) :
21393e9f7eabcSmrg    set x $CONFIG_FILES ;; #(
21394e9f7eabcSmrg  *) :
21395e9f7eabcSmrg     ;;
21396e9f7eabcSmrgesac
21397b3e38ee4Smrg  shift
21398e9f7eabcSmrg  # Used to flag and report bootstrapping failures.
21399e9f7eabcSmrg  am_rc=0
21400e9f7eabcSmrg  for am_mf
21401b3e38ee4Smrg  do
21402b3e38ee4Smrg    # Strip MF so we end up with the name of the file.
21403e9f7eabcSmrg    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21404e9f7eabcSmrg    # Check whether this is an Automake generated Makefile which includes
21405e9f7eabcSmrg    # dependency-tracking related rules and includes.
21406e9f7eabcSmrg    # Grep'ing the whole file directly is not great: AIX grep has a line
21407b3e38ee4Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
21408e9f7eabcSmrg    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21409e9f7eabcSmrg      || continue
21410e9f7eabcSmrg    am_dirpart=`$as_dirname -- "$am_mf" ||
21411e9f7eabcSmrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21412e9f7eabcSmrg	 X"$am_mf" : 'X\(//\)[^/]' \| \
21413e9f7eabcSmrg	 X"$am_mf" : 'X\(//\)$' \| \
21414e9f7eabcSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21415e9f7eabcSmrgprintf "%s\n" X"$am_mf" |
21416b3e38ee4Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21417b3e38ee4Smrg	    s//\1/
21418b3e38ee4Smrg	    q
21419b3e38ee4Smrg	  }
21420b3e38ee4Smrg	  /^X\(\/\/\)[^/].*/{
21421b3e38ee4Smrg	    s//\1/
21422b3e38ee4Smrg	    q
21423b3e38ee4Smrg	  }
21424b3e38ee4Smrg	  /^X\(\/\/\)$/{
21425b3e38ee4Smrg	    s//\1/
21426b3e38ee4Smrg	    q
21427b3e38ee4Smrg	  }
21428b3e38ee4Smrg	  /^X\(\/\).*/{
21429b3e38ee4Smrg	    s//\1/
21430b3e38ee4Smrg	    q
21431b3e38ee4Smrg	  }
21432b3e38ee4Smrg	  s/.*/./; q'`
21433e9f7eabcSmrg    am_filepart=`$as_basename -- "$am_mf" ||
21434e9f7eabcSmrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21435e9f7eabcSmrg	 X"$am_mf" : 'X\(//\)$' \| \
21436e9f7eabcSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21437e9f7eabcSmrgprintf "%s\n" X/"$am_mf" |
21438e9f7eabcSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
21439b3e38ee4Smrg	    s//\1/
21440b3e38ee4Smrg	    q
21441b3e38ee4Smrg	  }
21442e9f7eabcSmrg	  /^X\/\(\/\/\)$/{
21443b3e38ee4Smrg	    s//\1/
21444b3e38ee4Smrg	    q
21445b3e38ee4Smrg	  }
21446e9f7eabcSmrg	  /^X\/\(\/\).*/{
21447b3e38ee4Smrg	    s//\1/
21448b3e38ee4Smrg	    q
21449b3e38ee4Smrg	  }
21450b3e38ee4Smrg	  s/.*/./; q'`
21451e9f7eabcSmrg    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21452e9f7eabcSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
21453e9f7eabcSmrg        | $MAKE -f - am--depfiles" >&5
21454e9f7eabcSmrg   (cd "$am_dirpart" \
21455e9f7eabcSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
21456e9f7eabcSmrg        | $MAKE -f - am--depfiles) >&5 2>&5
21457e9f7eabcSmrg   ac_status=$?
21458e9f7eabcSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459e9f7eabcSmrg   (exit $ac_status); } || am_rc=$?
21460b3e38ee4Smrg  done
21461e9f7eabcSmrg  if test $am_rc -ne 0; then
21462e9f7eabcSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21463e9f7eabcSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21464e9f7eabcSmrgas_fn_error $? "Something went wrong bootstrapping makefile fragments
21465e9f7eabcSmrg    for automatic dependency tracking.  If GNU make was not used, consider
21466e9f7eabcSmrg    re-running the configure script with MAKE=\"gmake\" (or whatever is
21467e9f7eabcSmrg    necessary).  You can also try re-running configure with the
21468e9f7eabcSmrg    '--disable-dependency-tracking' option to at least be able to build
21469e9f7eabcSmrg    the package (albeit without support for automatic dependency tracking).
21470e9f7eabcSmrgSee \`config.log' for more details" "$LINENO" 5; }
21471e9f7eabcSmrg  fi
21472e9f7eabcSmrg  { am_dirpart=; unset am_dirpart;}
21473e9f7eabcSmrg  { am_filepart=; unset am_filepart;}
21474e9f7eabcSmrg  { am_mf=; unset am_mf;}
21475e9f7eabcSmrg  { am_rc=; unset am_rc;}
21476e9f7eabcSmrg  rm -f conftest-deps.mk
21477b3e38ee4Smrg}
21478b3e38ee4Smrg ;;
21479b3e38ee4Smrg    "libtool":C)
21480af1a9c97Smrg
214814a8d91dcSmrg    # See if we are running on zsh, and set the options that allow our
21482b3e38ee4Smrg    # commands through without removal of \ escapes.
214834a8d91dcSmrg    if test -n "${ZSH_VERSION+set}"; then
21484b3e38ee4Smrg      setopt NO_GLOB_SUBST
21485b3e38ee4Smrg    fi
21486af1a9c97Smrg
214874a8d91dcSmrg    cfgfile=${ofile}T
21488b3e38ee4Smrg    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21489b3e38ee4Smrg    $RM "$cfgfile"
21490af1a9c97Smrg
21491b3e38ee4Smrg    cat <<_LT_EOF >> "$cfgfile"
21492b3e38ee4Smrg#! $SHELL
214934a8d91dcSmrg# Generated automatically by $as_me ($PACKAGE) $VERSION
21494b3e38ee4Smrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21495b3e38ee4Smrg# NOTE: Changes made to this file will be lost: look at ltmain.sh.
214964a8d91dcSmrg
214974a8d91dcSmrg# Provide generalized library-building support services.
214984a8d91dcSmrg# Written by Gordon Matzigkeit, 1996
214994a8d91dcSmrg
215004a8d91dcSmrg# Copyright (C) 2014 Free Software Foundation, Inc.
215014a8d91dcSmrg# This is free software; see the source for copying conditions.  There is NO
215024a8d91dcSmrg# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
215034a8d91dcSmrg
215044a8d91dcSmrg# GNU Libtool is free software; you can redistribute it and/or modify
215054a8d91dcSmrg# it under the terms of the GNU General Public License as published by
215064a8d91dcSmrg# the Free Software Foundation; either version 2 of of the License, or
215074a8d91dcSmrg# (at your option) any later version.
21508b3e38ee4Smrg#
215094a8d91dcSmrg# As a special exception to the GNU General Public License, if you
215104a8d91dcSmrg# distribute this file as part of a program or library that is built
215114a8d91dcSmrg# using GNU Libtool, you may include this file under the  same
215124a8d91dcSmrg# distribution terms that you use for the rest of that program.
21513b3e38ee4Smrg#
215144a8d91dcSmrg# GNU Libtool is distributed in the hope that it will be useful, but
215154a8d91dcSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of
21516b3e38ee4Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21517b3e38ee4Smrg# GNU General Public License for more details.
21518b3e38ee4Smrg#
21519b3e38ee4Smrg# You should have received a copy of the GNU General Public License
215204a8d91dcSmrg# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21521af1a9c97Smrg
21522af1a9c97Smrg
21523b3e38ee4Smrg# The names of the tagged configurations supported by this script.
215244a8d91dcSmrgavailable_tags=''
215254a8d91dcSmrg
215264a8d91dcSmrg# Configured defaults for sys_lib_dlsearch_path munging.
215274a8d91dcSmrg: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21528af1a9c97Smrg
21529b3e38ee4Smrg# ### BEGIN LIBTOOL CONFIG
21530af1a9c97Smrg
21531b3e38ee4Smrg# Whether or not to build static libraries.
21532b3e38ee4Smrgbuild_old_libs=$enable_static
21533af1a9c97Smrg
21534b3e38ee4Smrg# Which release of libtool.m4 was used?
21535b3e38ee4Smrgmacro_version=$macro_version
21536b3e38ee4Smrgmacro_revision=$macro_revision
21537af1a9c97Smrg
21538b3e38ee4Smrg# Whether or not to build shared libraries.
21539b3e38ee4Smrgbuild_libtool_libs=$enable_shared
21540af1a9c97Smrg
21541b3e38ee4Smrg# What type of objects to build.
21542b3e38ee4Smrgpic_mode=$pic_mode
21543af1a9c97Smrg
21544b3e38ee4Smrg# Whether or not to optimize for fast installation.
21545b3e38ee4Smrgfast_install=$enable_fast_install
21546af1a9c97Smrg
215474a8d91dcSmrg# Shared archive member basename,for filename based shared library versioning on AIX.
215484a8d91dcSmrgshared_archive_member_spec=$shared_archive_member_spec
215494a8d91dcSmrg
21550a73423d7Smrg# Shell to use when invoking shell scripts.
21551a73423d7SmrgSHELL=$lt_SHELL
21552a73423d7Smrg
21553a73423d7Smrg# An echo program that protects backslashes.
21554a73423d7SmrgECHO=$lt_ECHO
21555a73423d7Smrg
21556a73423d7Smrg# The PATH separator for the build system.
21557a73423d7SmrgPATH_SEPARATOR=$lt_PATH_SEPARATOR
21558a73423d7Smrg
21559b3e38ee4Smrg# The host system.
21560b3e38ee4Smrghost_alias=$host_alias
21561b3e38ee4Smrghost=$host
21562b3e38ee4Smrghost_os=$host_os
21563af1a9c97Smrg
21564b3e38ee4Smrg# The build system.
21565b3e38ee4Smrgbuild_alias=$build_alias
21566b3e38ee4Smrgbuild=$build
21567b3e38ee4Smrgbuild_os=$build_os
21568af1a9c97Smrg
21569b3e38ee4Smrg# A sed program that does not truncate output.
21570b3e38ee4SmrgSED=$lt_SED
21571af1a9c97Smrg
21572b3e38ee4Smrg# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21573b3e38ee4SmrgXsed="\$SED -e 1s/^X//"
21574af1a9c97Smrg
21575b3e38ee4Smrg# A grep program that handles long lines.
21576b3e38ee4SmrgGREP=$lt_GREP
21577af1a9c97Smrg
21578b3e38ee4Smrg# An ERE matcher.
21579b3e38ee4SmrgEGREP=$lt_EGREP
21580a18ebfb2Smrg
21581b3e38ee4Smrg# A literal string matcher.
21582b3e38ee4SmrgFGREP=$lt_FGREP
21583a18ebfb2Smrg
21584b3e38ee4Smrg# A BSD- or MS-compatible name lister.
21585b3e38ee4SmrgNM=$lt_NM
21586a18ebfb2Smrg
21587b3e38ee4Smrg# Whether we need soft or hard links.
21588b3e38ee4SmrgLN_S=$lt_LN_S
21589a18ebfb2Smrg
21590b3e38ee4Smrg# What is the maximum length of a command?
21591b3e38ee4Smrgmax_cmd_len=$max_cmd_len
21592a18ebfb2Smrg
21593b3e38ee4Smrg# Object file suffix (normally "o").
21594b3e38ee4Smrgobjext=$ac_objext
21595a18ebfb2Smrg
21596b3e38ee4Smrg# Executable file suffix (normally "").
21597b3e38ee4Smrgexeext=$exeext
21598a18ebfb2Smrg
21599b3e38ee4Smrg# whether the shell understands "unset".
21600b3e38ee4Smrglt_unset=$lt_unset
21601a18ebfb2Smrg
21602b3e38ee4Smrg# turn spaces into newlines.
21603b3e38ee4SmrgSP2NL=$lt_lt_SP2NL
21604a18ebfb2Smrg
21605b3e38ee4Smrg# turn newlines into spaces.
21606b3e38ee4SmrgNL2SP=$lt_lt_NL2SP
21607a18ebfb2Smrg
21608a73423d7Smrg# convert \$build file names to \$host format.
21609a73423d7Smrgto_host_file_cmd=$lt_cv_to_host_file_cmd
21610a73423d7Smrg
21611a73423d7Smrg# convert \$build files to toolchain format.
21612a73423d7Smrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd
21613a18ebfb2Smrg
21614e9f7eabcSmrg# A file(cmd) program that detects file types.
21615e9f7eabcSmrgFILECMD=$lt_FILECMD
21616e9f7eabcSmrg
21617b3e38ee4Smrg# An object symbol dumper.
21618b3e38ee4SmrgOBJDUMP=$lt_OBJDUMP
21619a18ebfb2Smrg
21620b3e38ee4Smrg# Method to check whether dependent libraries are shared objects.
21621b3e38ee4Smrgdeplibs_check_method=$lt_deplibs_check_method
21622a18ebfb2Smrg
21623a73423d7Smrg# Command to use when deplibs_check_method = "file_magic".
21624b3e38ee4Smrgfile_magic_cmd=$lt_file_magic_cmd
21625a18ebfb2Smrg
21626a73423d7Smrg# How to find potential files when deplibs_check_method = "file_magic".
21627a73423d7Smrgfile_magic_glob=$lt_file_magic_glob
21628a73423d7Smrg
21629a73423d7Smrg# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21630a73423d7Smrgwant_nocaseglob=$lt_want_nocaseglob
21631a73423d7Smrg
21632a73423d7Smrg# DLL creation program.
21633a73423d7SmrgDLLTOOL=$lt_DLLTOOL
21634a73423d7Smrg
21635a73423d7Smrg# Command to associate shared and link libraries.
21636a73423d7Smrgsharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21637a73423d7Smrg
21638a18ebfb2Smrg# The archiver.
21639a18ebfb2SmrgAR=$lt_AR
21640a73423d7Smrg
21641e9f7eabcSmrg# Flags to create an archive (by configure).
21642e9f7eabcSmrglt_ar_flags=$lt_ar_flags
21643e9f7eabcSmrg
21644a73423d7Smrg# Flags to create an archive.
21645e9f7eabcSmrgAR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21646a18ebfb2Smrg
21647a73423d7Smrg# How to feed a file listing to the archiver.
21648a73423d7Smrgarchiver_list_spec=$lt_archiver_list_spec
21649a73423d7Smrg
21650b3e38ee4Smrg# A symbol stripping program.
21651b3e38ee4SmrgSTRIP=$lt_STRIP
21652b3e38ee4Smrg
21653b3e38ee4Smrg# Commands used to install an old-style archive.
21654b3e38ee4SmrgRANLIB=$lt_RANLIB
21655b3e38ee4Smrgold_postinstall_cmds=$lt_old_postinstall_cmds
21656b3e38ee4Smrgold_postuninstall_cmds=$lt_old_postuninstall_cmds
21657b3e38ee4Smrg
21658a73423d7Smrg# Whether to use a lock for old archive extraction.
21659a73423d7Smrglock_old_archive_extraction=$lock_old_archive_extraction
21660a73423d7Smrg
21661a18ebfb2Smrg# A C compiler.
21662b3e38ee4SmrgLTCC=$lt_CC
21663a18ebfb2Smrg
21664a18ebfb2Smrg# LTCC compiler flags.
21665b3e38ee4SmrgLTCFLAGS=$lt_CFLAGS
21666a18ebfb2Smrg
21667b3e38ee4Smrg# Take the output of nm and produce a listing of raw symbols and C names.
21668b3e38ee4Smrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21669a18ebfb2Smrg
21670b3e38ee4Smrg# Transform the output of nm in a proper C declaration.
21671b3e38ee4Smrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21672a18ebfb2Smrg
216734a8d91dcSmrg# Transform the output of nm into a list of symbols to manually relocate.
216744a8d91dcSmrgglobal_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
216754a8d91dcSmrg
21676b3e38ee4Smrg# Transform the output of nm in a C name address pair.
21677b3e38ee4Smrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21678a18ebfb2Smrg
21679b3e38ee4Smrg# Transform the output of nm in a C name address pair when lib prefix is needed.
21680b3e38ee4Smrgglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21681a18ebfb2Smrg
216824a8d91dcSmrg# The name lister interface.
216834a8d91dcSmrgnm_interface=$lt_lt_cv_nm_interface
216844a8d91dcSmrg
21685a73423d7Smrg# Specify filename containing input files for \$NM.
21686a73423d7Smrgnm_file_list_spec=$lt_nm_file_list_spec
21687a18ebfb2Smrg
216884a8d91dcSmrg# The root where to search for dependent libraries,and where our libraries should be installed.
21689a73423d7Smrglt_sysroot=$lt_sysroot
21690a18ebfb2Smrg
216914a8d91dcSmrg# Command to truncate a binary pipe.
216924a8d91dcSmrglt_truncate_bin=$lt_lt_cv_truncate_bin
216934a8d91dcSmrg
21694a73423d7Smrg# The name of the directory that contains temporary libtool files.
21695a73423d7Smrgobjdir=$objdir
21696a18ebfb2Smrg
21697b3e38ee4Smrg# Used to examine libraries when file_magic_cmd begins with "file".
21698a18ebfb2SmrgMAGIC_CMD=$MAGIC_CMD
21699a18ebfb2Smrg
21700b3e38ee4Smrg# Must we lock files when doing compilation?
21701b3e38ee4Smrgneed_locks=$lt_need_locks
21702a18ebfb2Smrg
21703a73423d7Smrg# Manifest tool.
21704a73423d7SmrgMANIFEST_TOOL=$lt_MANIFEST_TOOL
21705a73423d7Smrg
21706b3e38ee4Smrg# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21707b3e38ee4SmrgDSYMUTIL=$lt_DSYMUTIL
21708a18ebfb2Smrg
21709b3e38ee4Smrg# Tool to change global to local symbols on Mac OS X.
21710b3e38ee4SmrgNMEDIT=$lt_NMEDIT
21711a18ebfb2Smrg
21712b3e38ee4Smrg# Tool to manipulate fat objects and archives on Mac OS X.
21713b3e38ee4SmrgLIPO=$lt_LIPO
21714a18ebfb2Smrg
21715b3e38ee4Smrg# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21716b3e38ee4SmrgOTOOL=$lt_OTOOL
21717a18ebfb2Smrg
21718b3e38ee4Smrg# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21719b3e38ee4SmrgOTOOL64=$lt_OTOOL64
21720a18ebfb2Smrg
21721a18ebfb2Smrg# Old archive suffix (normally "a").
21722b3e38ee4Smrglibext=$libext
21723a18ebfb2Smrg
21724a18ebfb2Smrg# Shared library suffix (normally ".so").
21725b3e38ee4Smrgshrext_cmds=$lt_shrext_cmds
21726a18ebfb2Smrg
21727b3e38ee4Smrg# The commands to extract the exported symbol list from a shared archive.
21728b3e38ee4Smrgextract_expsyms_cmds=$lt_extract_expsyms_cmds
21729a18ebfb2Smrg
21730b3e38ee4Smrg# Variables whose values should be saved in libtool wrapper scripts and
21731b3e38ee4Smrg# restored at link time.
21732b3e38ee4Smrgvariables_saved_for_relink=$lt_variables_saved_for_relink
21733a18ebfb2Smrg
21734b3e38ee4Smrg# Do we need the "lib" prefix for modules?
21735b3e38ee4Smrgneed_lib_prefix=$need_lib_prefix
21736a18ebfb2Smrg
21737b3e38ee4Smrg# Do we need a version for libraries?
21738b3e38ee4Smrgneed_version=$need_version
21739a18ebfb2Smrg
21740b3e38ee4Smrg# Library versioning type.
21741b3e38ee4Smrgversion_type=$version_type
21742af1a9c97Smrg
21743b3e38ee4Smrg# Shared library runtime path variable.
21744b3e38ee4Smrgrunpath_var=$runpath_var
21745af1a9c97Smrg
21746b3e38ee4Smrg# Shared library path variable.
21747b3e38ee4Smrgshlibpath_var=$shlibpath_var
21748af1a9c97Smrg
21749b3e38ee4Smrg# Is shlibpath searched before the hard-coded library search path?
21750b3e38ee4Smrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath
2175150806d53Smrg
21752a18ebfb2Smrg# Format of library name prefix.
21753a18ebfb2Smrglibname_spec=$lt_libname_spec
2175450806d53Smrg
21755a18ebfb2Smrg# List of archive names.  First name is the real one, the rest are links.
21756b3e38ee4Smrg# The last name is the one that the linker finds with -lNAME
21757a18ebfb2Smrglibrary_names_spec=$lt_library_names_spec
2175850806d53Smrg
21759a18ebfb2Smrg# The coded name of the library, if different from the real name.
21760a18ebfb2Smrgsoname_spec=$lt_soname_spec
2176150806d53Smrg
21762a73423d7Smrg# Permission mode override for installation of shared libraries.
21763a73423d7Smrginstall_override_mode=$lt_install_override_mode
21764a73423d7Smrg
21765b3e38ee4Smrg# Command to use after installation of a shared archive.
21766b3e38ee4Smrgpostinstall_cmds=$lt_postinstall_cmds
2176750806d53Smrg
21768b3e38ee4Smrg# Command to use after uninstallation of a shared archive.
21769b3e38ee4Smrgpostuninstall_cmds=$lt_postuninstall_cmds
2177050806d53Smrg
21771b3e38ee4Smrg# Commands used to finish a libtool library installation in a directory.
21772b3e38ee4Smrgfinish_cmds=$lt_finish_cmds
2177350806d53Smrg
21774b3e38ee4Smrg# As "finish_cmds", except a single script fragment to be evaled but
21775b3e38ee4Smrg# not shown.
21776b3e38ee4Smrgfinish_eval=$lt_finish_eval
21777b3e38ee4Smrg
21778b3e38ee4Smrg# Whether we should hardcode library paths into libraries.
21779b3e38ee4Smrghardcode_into_libs=$hardcode_into_libs
21780b3e38ee4Smrg
21781b3e38ee4Smrg# Compile-time system search path for libraries.
21782b3e38ee4Smrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21783b3e38ee4Smrg
217844a8d91dcSmrg# Detected run-time system search path for libraries.
217854a8d91dcSmrgsys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
217864a8d91dcSmrg
217874a8d91dcSmrg# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
217884a8d91dcSmrgconfigure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21789b3e38ee4Smrg
21790b3e38ee4Smrg# Whether dlopen is supported.
21791b3e38ee4Smrgdlopen_support=$enable_dlopen
2179250806d53Smrg
21793b3e38ee4Smrg# Whether dlopen of programs is supported.
21794b3e38ee4Smrgdlopen_self=$enable_dlopen_self
21795b3e38ee4Smrg
21796b3e38ee4Smrg# Whether dlopen of statically linked programs is supported.
21797b3e38ee4Smrgdlopen_self_static=$enable_dlopen_self_static
2179850806d53Smrg
21799a18ebfb2Smrg# Commands to strip libraries.
21800a18ebfb2Smrgold_striplib=$lt_old_striplib
21801a18ebfb2Smrgstriplib=$lt_striplib
2180250806d53Smrg
2180350806d53Smrg
21804b3e38ee4Smrg# The linker used to build libraries.
21805b3e38ee4SmrgLD=$lt_LD
21806b3e38ee4Smrg
21807a73423d7Smrg# How to create reloadable object files.
21808a73423d7Smrgreload_flag=$lt_reload_flag
21809a73423d7Smrgreload_cmds=$lt_reload_cmds
21810a73423d7Smrg
21811b3e38ee4Smrg# Commands used to build an old-style archive.
21812b3e38ee4Smrgold_archive_cmds=$lt_old_archive_cmds
21813b3e38ee4Smrg
21814b3e38ee4Smrg# A language specific compiler.
21815b3e38ee4SmrgCC=$lt_compiler
2181650806d53Smrg
21817b3e38ee4Smrg# Is the compiler the GNU compiler?
21818b3e38ee4Smrgwith_gcc=$GCC
2181950806d53Smrg
21820b3e38ee4Smrg# Compiler flag to turn off builtin functions.
21821b3e38ee4Smrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
2182250806d53Smrg
21823b3e38ee4Smrg# Additional compiler flags for building library objects.
21824b3e38ee4Smrgpic_flag=$lt_lt_prog_compiler_pic
2182550806d53Smrg
21826a73423d7Smrg# How to pass a linker flag through the compiler.
21827a73423d7Smrgwl=$lt_lt_prog_compiler_wl
21828a73423d7Smrg
21829b3e38ee4Smrg# Compiler flag to prevent dynamic linking.
21830b3e38ee4Smrglink_static_flag=$lt_lt_prog_compiler_static
2183150806d53Smrg
21832b3e38ee4Smrg# Does compiler simultaneously support -c and -o options?
21833b3e38ee4Smrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o
2183450806d53Smrg
21835b3e38ee4Smrg# Whether or not to add -lc for building shared libraries.
21836b3e38ee4Smrgbuild_libtool_need_lc=$archive_cmds_need_lc
2183750806d53Smrg
21838b3e38ee4Smrg# Whether or not to disallow shared libs when runtime libs are static.
21839b3e38ee4Smrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
2184050806d53Smrg
21841b3e38ee4Smrg# Compiler flag to allow reflexive dlopens.
21842b3e38ee4Smrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
2184350806d53Smrg
21844b3e38ee4Smrg# Compiler flag to generate shared objects directly from archives.
21845b3e38ee4Smrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec
2184650806d53Smrg
21847b3e38ee4Smrg# Whether the compiler copes with passing no objects directly.
21848b3e38ee4Smrgcompiler_needs_object=$lt_compiler_needs_object
2184950806d53Smrg
21850b3e38ee4Smrg# Create an old-style archive from a shared archive.
21851b3e38ee4Smrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
2185250806d53Smrg
21853b3e38ee4Smrg# Create a temporary old-style archive to link instead of a shared archive.
21854b3e38ee4Smrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
2185550806d53Smrg
21856b3e38ee4Smrg# Commands used to build a shared archive.
21857b3e38ee4Smrgarchive_cmds=$lt_archive_cmds
21858b3e38ee4Smrgarchive_expsym_cmds=$lt_archive_expsym_cmds
2185950806d53Smrg
21860b3e38ee4Smrg# Commands used to build a loadable module if different from building
21861b3e38ee4Smrg# a shared archive.
21862b3e38ee4Smrgmodule_cmds=$lt_module_cmds
21863b3e38ee4Smrgmodule_expsym_cmds=$lt_module_expsym_cmds
2186450806d53Smrg
21865b3e38ee4Smrg# Whether we are building with GNU ld or not.
21866b3e38ee4Smrgwith_gnu_ld=$lt_with_gnu_ld
2186750806d53Smrg
21868b3e38ee4Smrg# Flag that allows shared libraries with undefined symbols to be built.
21869b3e38ee4Smrgallow_undefined_flag=$lt_allow_undefined_flag
2187050806d53Smrg
21871b3e38ee4Smrg# Flag that enforces no undefined symbols.
21872b3e38ee4Smrgno_undefined_flag=$lt_no_undefined_flag
2187350806d53Smrg
21874a18ebfb2Smrg# Flag to hardcode \$libdir into a binary during linking.
21875b3e38ee4Smrg# This must work even if \$libdir does not exist
21876b3e38ee4Smrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
2187750806d53Smrg
21878b3e38ee4Smrg# Whether we need a single "-rpath" flag with a separated argument.
21879b3e38ee4Smrghardcode_libdir_separator=$lt_hardcode_libdir_separator
2188050806d53Smrg
218814a8d91dcSmrg# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21882b3e38ee4Smrg# DIR into the resulting binary.
21883b3e38ee4Smrghardcode_direct=$hardcode_direct
2188450806d53Smrg
218854a8d91dcSmrg# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21886b3e38ee4Smrg# DIR into the resulting binary and the resulting library dependency is
218874a8d91dcSmrg# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21888b3e38ee4Smrg# library is relocated.
21889b3e38ee4Smrghardcode_direct_absolute=$hardcode_direct_absolute
2189050806d53Smrg
21891b3e38ee4Smrg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21892b3e38ee4Smrg# into the resulting binary.
21893b3e38ee4Smrghardcode_minus_L=$hardcode_minus_L
2189450806d53Smrg
21895b3e38ee4Smrg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21896b3e38ee4Smrg# into the resulting binary.
21897b3e38ee4Smrghardcode_shlibpath_var=$hardcode_shlibpath_var
2189850806d53Smrg
21899b3e38ee4Smrg# Set to "yes" if building a shared library automatically hardcodes DIR
21900b3e38ee4Smrg# into the library and all subsequent libraries and executables linked
21901b3e38ee4Smrg# against it.
21902b3e38ee4Smrghardcode_automatic=$hardcode_automatic
2190350806d53Smrg
21904b3e38ee4Smrg# Set to yes if linker adds runtime paths of dependent libraries
21905b3e38ee4Smrg# to runtime path list.
21906b3e38ee4Smrginherit_rpath=$inherit_rpath
2190750806d53Smrg
21908b3e38ee4Smrg# Whether libtool must link a program against all its dependency libraries.
21909b3e38ee4Smrglink_all_deplibs=$link_all_deplibs
2191050806d53Smrg
21911b3e38ee4Smrg# Set to "yes" if exported symbols are required.
21912b3e38ee4Smrgalways_export_symbols=$always_export_symbols
2191350806d53Smrg
21914a18ebfb2Smrg# The commands to list exported symbols.
21915b3e38ee4Smrgexport_symbols_cmds=$lt_export_symbols_cmds
2191650806d53Smrg
21917a18ebfb2Smrg# Symbols that should not be listed in the preloaded symbols.
21918b3e38ee4Smrgexclude_expsyms=$lt_exclude_expsyms
2191950806d53Smrg
21920a18ebfb2Smrg# Symbols that must always be exported.
21921b3e38ee4Smrginclude_expsyms=$lt_include_expsyms
21922a18ebfb2Smrg
21923b3e38ee4Smrg# Commands necessary for linking programs (against libraries) with templates.
21924b3e38ee4Smrgprelink_cmds=$lt_prelink_cmds
21925a18ebfb2Smrg
21926a73423d7Smrg# Commands necessary for finishing linking programs.
21927a73423d7Smrgpostlink_cmds=$lt_postlink_cmds
21928a73423d7Smrg
21929b3e38ee4Smrg# Specify filename containing input files.
21930b3e38ee4Smrgfile_list_spec=$lt_file_list_spec
2193150806d53Smrg
21932b3e38ee4Smrg# How to hardcode a shared library path into an executable.
21933b3e38ee4Smrghardcode_action=$hardcode_action
2193450806d53Smrg
21935b3e38ee4Smrg# ### END LIBTOOL CONFIG
21936b3e38ee4Smrg
219374a8d91dcSmrg_LT_EOF
219384a8d91dcSmrg
219394a8d91dcSmrg    cat <<'_LT_EOF' >> "$cfgfile"
219404a8d91dcSmrg
219414a8d91dcSmrg# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
219424a8d91dcSmrg
219434a8d91dcSmrg# func_munge_path_list VARIABLE PATH
219444a8d91dcSmrg# -----------------------------------
219454a8d91dcSmrg# VARIABLE is name of variable containing _space_ separated list of
219464a8d91dcSmrg# directories to be munged by the contents of PATH, which is string
219474a8d91dcSmrg# having a format:
219484a8d91dcSmrg# "DIR[:DIR]:"
219494a8d91dcSmrg#       string "DIR[ DIR]" will be prepended to VARIABLE
219504a8d91dcSmrg# ":DIR[:DIR]"
219514a8d91dcSmrg#       string "DIR[ DIR]" will be appended to VARIABLE
219524a8d91dcSmrg# "DIRP[:DIRP]::[DIRA:]DIRA"
219534a8d91dcSmrg#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
219544a8d91dcSmrg#       "DIRA[ DIRA]" will be appended to VARIABLE
219554a8d91dcSmrg# "DIR[:DIR]"
219564a8d91dcSmrg#       VARIABLE will be replaced by "DIR[ DIR]"
219574a8d91dcSmrgfunc_munge_path_list ()
219584a8d91dcSmrg{
219594a8d91dcSmrg    case x$2 in
219604a8d91dcSmrg    x)
219614a8d91dcSmrg        ;;
219624a8d91dcSmrg    *:)
219634a8d91dcSmrg        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
219644a8d91dcSmrg        ;;
219654a8d91dcSmrg    x:*)
219664a8d91dcSmrg        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
219674a8d91dcSmrg        ;;
219684a8d91dcSmrg    *::*)
219694a8d91dcSmrg        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
219704a8d91dcSmrg        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
219714a8d91dcSmrg        ;;
219724a8d91dcSmrg    *)
219734a8d91dcSmrg        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
219744a8d91dcSmrg        ;;
219754a8d91dcSmrg    esac
219764a8d91dcSmrg}
219774a8d91dcSmrg
219784a8d91dcSmrg
219794a8d91dcSmrg# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
219804a8d91dcSmrgfunc_cc_basename ()
219814a8d91dcSmrg{
219824a8d91dcSmrg    for cc_temp in $*""; do
219834a8d91dcSmrg      case $cc_temp in
219844a8d91dcSmrg        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
219854a8d91dcSmrg        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
219864a8d91dcSmrg        \-*) ;;
219874a8d91dcSmrg        *) break;;
219884a8d91dcSmrg      esac
219894a8d91dcSmrg    done
219904a8d91dcSmrg    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
219914a8d91dcSmrg}
219924a8d91dcSmrg
219934a8d91dcSmrg
219944a8d91dcSmrg# ### END FUNCTIONS SHARED WITH CONFIGURE
219954a8d91dcSmrg
21996b3e38ee4Smrg_LT_EOF
21997b3e38ee4Smrg
21998b3e38ee4Smrg  case $host_os in
21999b3e38ee4Smrg  aix3*)
22000b3e38ee4Smrg    cat <<\_LT_EOF >> "$cfgfile"
22001b3e38ee4Smrg# AIX sometimes has problems with the GCC collect2 program.  For some
22002b3e38ee4Smrg# reason, if we set the COLLECT_NAMES environment variable, the problems
22003b3e38ee4Smrg# vanish in a puff of smoke.
220044a8d91dcSmrgif test set != "${COLLECT_NAMES+set}"; then
22005b3e38ee4Smrg  COLLECT_NAMES=
22006b3e38ee4Smrg  export COLLECT_NAMES
22007af1a9c97Smrgfi
22008b3e38ee4Smrg_LT_EOF
22009b3e38ee4Smrg    ;;
22010b3e38ee4Smrg  esac
2201150806d53Smrg
2201250806d53Smrg
22013e9f7eabcSmrg
220144a8d91dcSmrgltmain=$ac_aux_dir/ltmain.sh
2201550806d53Smrg
2201650806d53Smrg
22017b3e38ee4Smrg  # We use sed instead of cat because bash on DJGPP gets confused if
22018b3e38ee4Smrg  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22019b3e38ee4Smrg  # text mode, it properly converts lines to CR/LF.  This bash problem
22020b3e38ee4Smrg  # is reportedly fixed, but why not run on old versions too?
22021e9f7eabcSmrg  $SED '$q' "$ltmain" >> "$cfgfile" \
22022a73423d7Smrg     || (rm -f "$cfgfile"; exit 1)
22023a73423d7Smrg
22024a73423d7Smrg   mv -f "$cfgfile" "$ofile" ||
22025b3e38ee4Smrg    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22026b3e38ee4Smrg  chmod +x "$ofile"
2202750806d53Smrg
2202850806d53Smrg ;;
220297965d9acSmrg
2203050806d53Smrg  esac
220317965d9acSmrgdone # for ac_tag
2203250806d53Smrg
2203350806d53Smrg
22034a73423d7Smrgas_fn_exit 0
2203550806d53Smrg_ACEOF
2203650806d53Smrgac_clean_files=$ac_clean_files_save
2203750806d53Smrg
22038af1a9c97Smrgtest $ac_write_fail = 0 ||
22039a73423d7Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22040af1a9c97Smrg
2204150806d53Smrg
2204250806d53Smrg# configure is writing to config.log, and then calls config.status.
2204350806d53Smrg# config.status does its own redirection, appending to config.log.
2204450806d53Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
2204550806d53Smrg# by configure, so config.status won't be able to write to it; its
2204650806d53Smrg# output is simply discarded.  So we exec the FD to /dev/null,
2204750806d53Smrg# effectively closing config.log, so it can be properly (re)opened and
2204850806d53Smrg# appended to by config.status.  When coming back to configure, we
2204950806d53Smrg# need to make the FD available again.
2205050806d53Smrgif test "$no_create" != yes; then
2205150806d53Smrg  ac_cs_success=:
2205250806d53Smrg  ac_config_status_args=
2205350806d53Smrg  test "$silent" = yes &&
2205450806d53Smrg    ac_config_status_args="$ac_config_status_args --quiet"
2205550806d53Smrg  exec 5>/dev/null
2205650806d53Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
2205750806d53Smrg  exec 5>>config.log
2205850806d53Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2205950806d53Smrg  # would make configure fail if this is the last instruction.
22060a73423d7Smrg  $ac_cs_success || as_fn_exit 1
2206150806d53Smrgfi
22062af1a9c97Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22063e9f7eabcSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22064e9f7eabcSmrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22065af1a9c97Smrgfi
2206650806d53Smrg
22067e9f7eabcSmrg
22068