configure revision 8292847c
11fb077a1Smrg#! /bin/sh
21fb077a1Smrg# Guess values for system-dependent variables and create Makefiles.
31fb077a1Smrg# Generated by GNU Autoconf 2.69 for libXft 2.3.3.
41d05b0c9Smrg#
51fb077a1Smrg# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>.
61fb077a1Smrg#
71fb077a1Smrg#
81fb077a1Smrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
91fb077a1Smrg#
101fb077a1Smrg#
111fb077a1Smrg# This configure script is free software; the Free Software Foundation
121fb077a1Smrg# gives unlimited permission to copy, distribute and modify it.
131fb077a1Smrg## -------------------- ##
141fb077a1Smrg## M4sh Initialization. ##
151fb077a1Smrg## -------------------- ##
161fb077a1Smrg
171fb077a1Smrg# Be more Bourne compatible
181fb077a1SmrgDUALCASE=1; export DUALCASE # for MKS sh
191fb077a1Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
201fb077a1Smrg  emulate sh
211fb077a1Smrg  NULLCMD=:
221fb077a1Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
231fb077a1Smrg  # is contrary to our usage.  Disable this feature.
241fb077a1Smrg  alias -g '${1+"$@"}'='"$@"'
251fb077a1Smrg  setopt NO_GLOB_SUBST
261fb077a1Smrgelse
271fb077a1Smrg  case `(set -o) 2>/dev/null` in #(
281fb077a1Smrg  *posix*) :
291fb077a1Smrg    set -o posix ;; #(
301fb077a1Smrg  *) :
311fb077a1Smrg     ;;
321fb077a1Smrgesac
331fb077a1Smrgfi
341fb077a1Smrg
351fb077a1Smrg
361fb077a1Smrgas_nl='
371fb077a1Smrg'
381fb077a1Smrgexport as_nl
391fb077a1Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
401fb077a1Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
411fb077a1Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
421fb077a1Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
431fb077a1Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
441fb077a1Smrg# but without wasting forks for bash or zsh.
451fb077a1Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
461fb077a1Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
471fb077a1Smrg  as_echo='print -r --'
481fb077a1Smrg  as_echo_n='print -rn --'
491fb077a1Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
501fb077a1Smrg  as_echo='printf %s\n'
51a5a92c01Smrg  as_echo_n='printf %s'
521fb077a1Smrgelse
531fb077a1Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
541fb077a1Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
551fb077a1Smrg    as_echo_n='/usr/ucb/echo -n'
561fb077a1Smrg  else
571fb077a1Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
581fb077a1Smrg    as_echo_n_body='eval
591fb077a1Smrg      arg=$1;
601fb077a1Smrg      case $arg in #(
61a5a92c01Smrg      *"$as_nl"*)
62a5a92c01Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
63a5a92c01Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64a5a92c01Smrg      esac;
65a5a92c01Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66a5a92c01Smrg    '
67a5a92c01Smrg    export as_echo_n_body
68a5a92c01Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
69a5a92c01Smrg  fi
70a5a92c01Smrg  export as_echo_body
71a5a92c01Smrg  as_echo='sh -c $as_echo_body as_echo'
72a5a92c01Smrgfi
73a5a92c01Smrg
74a5a92c01Smrg# The user is always right.
75a5a92c01Smrgif test "${PATH_SEPARATOR+set}" != set; then
76a5a92c01Smrg  PATH_SEPARATOR=:
77a5a92c01Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78a5a92c01Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79a5a92c01Smrg      PATH_SEPARATOR=';'
80a5a92c01Smrg  }
811fb077a1Smrgfi
821fb077a1Smrg
831fb077a1Smrg
841fb077a1Smrg# IFS
851fb077a1Smrg# We need space, tab and new line, in precisely that order.  Quoting is
861fb077a1Smrg# there to prevent editors from complaining about space-tab.
87a5a92c01Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
881fb077a1Smrg# splitting by setting IFS to empty value.)
891fb077a1SmrgIFS=" ""	$as_nl"
90a5a92c01Smrg
911fb077a1Smrg# Find who we are.  Look in the path if we contain no directory separator.
92a5a92c01Smrgas_myself=
93a5a92c01Smrgcase $0 in #((
941fb077a1Smrg  *[\\/]* ) as_myself=$0 ;;
951fb077a1Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
961fb077a1Smrgfor as_dir in $PATH
97a5a92c01Smrgdo
98a5a92c01Smrg  IFS=$as_save_IFS
99a5a92c01Smrg  test -z "$as_dir" && as_dir=.
1001fb077a1Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1011fb077a1Smrg  done
102a5a92c01SmrgIFS=$as_save_IFS
103a5a92c01Smrg
1041fb077a1Smrg     ;;
1051fb077a1Smrgesac
1061fb077a1Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1071fb077a1Smrg# in which case we are not to be found in the path.
1081fb077a1Smrgif test "x$as_myself" = x; then
1091fb077a1Smrg  as_myself=$0
1101fb077a1Smrgfi
1111fb077a1Smrgif test ! -f "$as_myself"; then
1121fb077a1Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113a5a92c01Smrg  exit 1
114a5a92c01Smrgfi
115a5a92c01Smrg
116a5a92c01Smrg# Unset variables that we do not need and which cause bugs (e.g. in
117a5a92c01Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118a5a92c01Smrg# suppresses any "Segmentation fault" message there.  '((' could
119a5a92c01Smrg# trigger a bug in pdksh 5.2.14.
120a5a92c01Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
121a5a92c01Smrgdo eval test x\${$as_var+set} = xset \
122a5a92c01Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123a5a92c01Smrgdone
124a5a92c01SmrgPS1='$ '
1251fb077a1SmrgPS2='> '
1261fb077a1SmrgPS4='+ '
127a5a92c01Smrg
128a5a92c01Smrg# NLS nuisances.
1291fb077a1SmrgLC_ALL=C
1301fb077a1Smrgexport LC_ALL
1311fb077a1SmrgLANGUAGE=C
1321fb077a1Smrgexport LANGUAGE
133a5a92c01Smrg
134a5a92c01Smrg# CDPATH.
135a5a92c01Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1361fb077a1Smrg
137a5a92c01Smrg# Use a proper internal environment variable to ensure we don't fall
1381fb077a1Smrg  # into an infinite loop, continuously re-executing ourselves.
1391fb077a1Smrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140a5a92c01Smrg    _as_can_reexec=no; export _as_can_reexec;
1411fb077a1Smrg    # We cannot yet assume a decent shell, so we have to provide a
1421fb077a1Smrg# neutralization value for shells without unset; and this also
1431fb077a1Smrg# works around shells that cannot unset nonexistent variables.
1441fb077a1Smrg# Preserve -v and -x to the replacement shell.
1451fb077a1SmrgBASH_ENV=/dev/null
1461fb077a1SmrgENV=/dev/null
1471fb077a1Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
1481fb077a1Smrgcase $- in # ((((
1491fb077a1Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
1501fb077a1Smrg  *v* ) as_opts=-v ;;
151a5a92c01Smrg  *x* ) as_opts=-x ;;
1521fb077a1Smrg  * ) as_opts= ;;
1531fb077a1Smrgesac
154a5a92c01Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
1551fb077a1Smrg# Admittedly, this is quite paranoid, since all the known shells bail
156a5a92c01Smrg# out after a failed `exec'.
1571fb077a1Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158a5a92c01Smrgas_fn_exit 255
1591d05b0c9Smrg  fi
1601d05b0c9Smrg  # We don't want this to propagate to other subprocesses.
1611d05b0c9Smrg          { _as_can_reexec=; unset _as_can_reexec;}
1621d05b0c9Smrgif test "x$CONFIG_SHELL" = x; then
163a5a92c01Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1641fb077a1Smrg  emulate sh
165a5a92c01Smrg  NULLCMD=:
1661fb077a1Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1671fb077a1Smrg  # is contrary to our usage.  Disable this feature.
1681fb077a1Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1691fb077a1Smrg  setopt NO_GLOB_SUBST
1701fb077a1Smrgelse
1711fb077a1Smrg  case \`(set -o) 2>/dev/null\` in #(
1721fb077a1Smrg  *posix*) :
1731fb077a1Smrg    set -o posix ;; #(
1741fb077a1Smrg  *) :
1751fb077a1Smrg     ;;
1761fb077a1Smrgesac
177a5a92c01Smrgfi
1781fb077a1Smrg"
1791fb077a1Smrg  as_required="as_fn_return () { (exit \$1); }
180a5a92c01Smrgas_fn_success () { as_fn_return 0; }
1811fb077a1Smrgas_fn_failure () { as_fn_return 1; }
1821fb077a1Smrgas_fn_ret_success () { return 0; }
1831fb077a1Smrgas_fn_ret_failure () { return 1; }
1841fb077a1Smrg
1851fb077a1Smrgexitcode=0
186a5a92c01Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1871fb077a1Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188a5a92c01Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1891fb077a1Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1901fb077a1Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1911fb077a1Smrg
192a5a92c01Smrgelse
1931d05b0c9Smrg  exitcode=1; echo positional parameters were not saved.
1941d05b0c9Smrgfi
1951d05b0c9Smrgtest x\$exitcode = x0 || exit 1
1961d05b0c9Smrgtest -x / || exit 1"
1971fb077a1Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1981fb077a1Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1991fb077a1Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
2001fb077a1Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
2011fb077a1Smrg
2021fb077a1Smrg  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
2031fb077a1Smrg    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2041fb077a1Smrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
2051fb077a1Smrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
2061fb077a1Smrg    PATH=/empty FPATH=/empty; export PATH FPATH
2071fb077a1Smrg    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
2081fb077a1Smrg      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
2091fb077a1Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
2101fb077a1Smrg  if (eval "$as_required") 2>/dev/null; then :
2111d05b0c9Smrg  as_have_required=yes
2121d05b0c9Smrgelse
2131d05b0c9Smrg  as_have_required=no
2141d05b0c9Smrgfi
2151d05b0c9Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
2161fb077a1Smrg
2171fb077a1Smrgelse
2181fb077a1Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191fb077a1Smrgas_found=false
2201fb077a1Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2211fb077a1Smrgdo
2221fb077a1Smrg  IFS=$as_save_IFS
2231fb077a1Smrg  test -z "$as_dir" && as_dir=.
2241fb077a1Smrg  as_found=:
2251fb077a1Smrg  case $as_dir in #(
2261fb077a1Smrg	 /*)
2271fb077a1Smrg	   for as_base in sh bash ksh sh5; do
2281fb077a1Smrg	     # Try only shells that exist, to save several forks.
2291fb077a1Smrg	     as_shell=$as_dir/$as_base
2301fb077a1Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2311fb077a1Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2321fb077a1Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
2331fb077a1Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2341fb077a1Smrg  break 2
2351fb077a1Smrgfi
2361fb077a1Smrgfi
2371fb077a1Smrg	   done;;
2381fb077a1Smrg       esac
2391fb077a1Smrg  as_found=false
2401fb077a1Smrgdone
2411fb077a1Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2421fb077a1Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2431d05b0c9Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
2441fb077a1Smrgfi; }
2451d05b0c9SmrgIFS=$as_save_IFS
2461fb077a1Smrg
2471fb077a1Smrg
2481fb077a1Smrg      if test "x$CONFIG_SHELL" != x; then :
2491fb077a1Smrg  export CONFIG_SHELL
2501fb077a1Smrg             # We cannot yet assume a decent shell, so we have to provide a
2511fb077a1Smrg# neutralization value for shells without unset; and this also
2521fb077a1Smrg# works around shells that cannot unset nonexistent variables.
2531fb077a1Smrg# Preserve -v and -x to the replacement shell.
2541fb077a1SmrgBASH_ENV=/dev/null
2551fb077a1SmrgENV=/dev/null
2561fb077a1Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2571fb077a1Smrgcase $- in # ((((
2581fb077a1Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
2591fb077a1Smrg  *v* ) as_opts=-v ;;
2601fb077a1Smrg  *x* ) as_opts=-x ;;
2611fb077a1Smrg  * ) as_opts= ;;
2621fb077a1Smrgesac
263a5a92c01Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
2641fb077a1Smrg# Admittedly, this is quite paranoid, since all the known shells bail
2651fb077a1Smrg# out after a failed `exec'.
2661fb077a1Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267a5a92c01Smrgexit 255
2681fb077a1Smrgfi
2691fb077a1Smrg
2701fb077a1Smrg    if test x$as_have_required = xno; then :
2711fb077a1Smrg  $as_echo "$0: This script requires a shell more modern than all"
2721fb077a1Smrg  $as_echo "$0: the shells that I found on your system."
273a5a92c01Smrg  if test x${ZSH_VERSION+set} = xset ; then
2741fb077a1Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2751fb077a1Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2761fb077a1Smrg  else
2771fb077a1Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2781fb077a1Smrg$0: https://gitlab.freedesktop.org/xorg/lib/libXft/issues
2791fb077a1Smrg$0: about your system, including any error possibly output
2801fb077a1Smrg$0: before this message. Then install a modern shell, or
2811fb077a1Smrg$0: manually run the script under such a shell if you do
2821fb077a1Smrg$0: have one."
2831fb077a1Smrg  fi
2841fb077a1Smrg  exit 1
2851fb077a1Smrgfi
2861fb077a1Smrgfi
2871fb077a1Smrgfi
2881fb077a1SmrgSHELL=${CONFIG_SHELL-/bin/sh}
2891fb077a1Smrgexport SHELL
2901fb077a1Smrg# Unset more variables known to interfere with behavior of common tools.
2911fb077a1SmrgCLICOLOR_FORCE= GREP_OPTIONS=
2921fb077a1Smrgunset CLICOLOR_FORCE GREP_OPTIONS
2931fb077a1Smrg
2941fb077a1Smrg## --------------------- ##
2951fb077a1Smrg## M4sh Shell Functions. ##
2961fb077a1Smrg## --------------------- ##
2971fb077a1Smrg# as_fn_unset VAR
2981fb077a1Smrg# ---------------
2991fb077a1Smrg# Portably unset VAR.
3001fb077a1Smrgas_fn_unset ()
3011fb077a1Smrg{
3021fb077a1Smrg  { eval $1=; unset $1;}
3031fb077a1Smrg}
3041fb077a1Smrgas_unset=as_fn_unset
3051fb077a1Smrg
3061fb077a1Smrg# as_fn_set_status STATUS
3071fb077a1Smrg# -----------------------
3081fb077a1Smrg# Set $? to STATUS, without forking.
3091fb077a1Smrgas_fn_set_status ()
3101fb077a1Smrg{
3111fb077a1Smrg  return $1
3121fb077a1Smrg} # as_fn_set_status
3131fb077a1Smrg
3141fb077a1Smrg# as_fn_exit STATUS
3151fb077a1Smrg# -----------------
3161fb077a1Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3171fb077a1Smrgas_fn_exit ()
3181fb077a1Smrg{
3191fb077a1Smrg  set +e
3201fb077a1Smrg  as_fn_set_status $1
3211fb077a1Smrg  exit $1
3221fb077a1Smrg} # as_fn_exit
3231fb077a1Smrg
3241fb077a1Smrg# as_fn_mkdir_p
3251fb077a1Smrg# -------------
3261fb077a1Smrg# Create "$as_dir" as a directory, including parents if necessary.
3271fb077a1Smrgas_fn_mkdir_p ()
3281fb077a1Smrg{
3291fb077a1Smrg
3301fb077a1Smrg  case $as_dir in #(
3311fb077a1Smrg  -*) as_dir=./$as_dir;;
3321fb077a1Smrg  esac
3331fb077a1Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
3341fb077a1Smrg    as_dirs=
3351fb077a1Smrg    while :; do
3361fb077a1Smrg      case $as_dir in #(
3371fb077a1Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3381fb077a1Smrg      *) as_qdir=$as_dir;;
3391fb077a1Smrg      esac
3401fb077a1Smrg      as_dirs="'$as_qdir' $as_dirs"
3411fb077a1Smrg      as_dir=`$as_dirname -- "$as_dir" ||
3421fb077a1Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3431fb077a1Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3441fb077a1Smrg	 X"$as_dir" : 'X\(//\)$' \| \
3451fb077a1Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3461fb077a1Smrg$as_echo X"$as_dir" |
3471fb077a1Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3481fb077a1Smrg	    s//\1/
3491fb077a1Smrg	    q
3501fb077a1Smrg	  }
3511fb077a1Smrg	  /^X\(\/\/\)[^/].*/{
3521fb077a1Smrg	    s//\1/
3531fb077a1Smrg	    q
3541fb077a1Smrg	  }
3551fb077a1Smrg	  /^X\(\/\/\)$/{
3561fb077a1Smrg	    s//\1/
3571fb077a1Smrg	    q
3581fb077a1Smrg	  }
3591fb077a1Smrg	  /^X\(\/\).*/{
3601fb077a1Smrg	    s//\1/
3611fb077a1Smrg	    q
3621fb077a1Smrg	  }
3631fb077a1Smrg	  s/.*/./; q'`
3641fb077a1Smrg      test -d "$as_dir" && break
3651fb077a1Smrg    done
3661fb077a1Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3671fb077a1Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3681fb077a1Smrg
3691fb077a1Smrg
3701fb077a1Smrg} # as_fn_mkdir_p
3711fb077a1Smrg
3721fb077a1Smrg# as_fn_executable_p FILE
3731fb077a1Smrg# -----------------------
3741fb077a1Smrg# Test if FILE is an executable regular file.
3751fb077a1Smrgas_fn_executable_p ()
3761fb077a1Smrg{
3771fb077a1Smrg  test -f "$1" && test -x "$1"
3781fb077a1Smrg} # as_fn_executable_p
3791fb077a1Smrg# as_fn_append VAR VALUE
3801fb077a1Smrg# ----------------------
3811fb077a1Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3821fb077a1Smrg# advantage of any shell optimizations that allow amortized linear growth over
3831fb077a1Smrg# repeated appends, instead of the typical quadratic growth present in naive
3841fb077a1Smrg# implementations.
3851fb077a1Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3861fb077a1Smrg  eval 'as_fn_append ()
3871fb077a1Smrg  {
3881fb077a1Smrg    eval $1+=\$2
3891fb077a1Smrg  }'
3901fb077a1Smrgelse
3911fb077a1Smrg  as_fn_append ()
3921fb077a1Smrg  {
3931fb077a1Smrg    eval $1=\$$1\$2
394a5a92c01Smrg  }
3951d05b0c9Smrgfi # as_fn_append
396a5a92c01Smrg
3971fb077a1Smrg# as_fn_arith ARG...
3981fb077a1Smrg# ------------------
399a5a92c01Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
4001fb077a1Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
4011fb077a1Smrg# must be portable across $(()) and expr.
4021fb077a1Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403a5a92c01Smrg  eval 'as_fn_arith ()
4041fb077a1Smrg  {
4051fb077a1Smrg    as_val=$(( $* ))
406a5a92c01Smrg  }'
4071fb077a1Smrgelse
4081fb077a1Smrg  as_fn_arith ()
4091fb077a1Smrg  {
4101fb077a1Smrg    as_val=`expr "$@" || test $? -eq 1`
4111fb077a1Smrg  }
4121fb077a1Smrgfi # as_fn_arith
4131d05b0c9Smrg
4141fb077a1Smrg
4151fb077a1Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
4161fb077a1Smrg# ----------------------------------------
4171fb077a1Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4181fb077a1Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4191fb077a1Smrg# script with STATUS, using 1 if that was 0.
4201fb077a1Smrgas_fn_error ()
4211fb077a1Smrg{
4221fb077a1Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
4231fb077a1Smrg  if test "$4"; then
4241fb077a1Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4251fb077a1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4261fb077a1Smrg  fi
4271fb077a1Smrg  $as_echo "$as_me: error: $2" >&2
4281fb077a1Smrg  as_fn_exit $as_status
4291fb077a1Smrg} # as_fn_error
4301fb077a1Smrg
4311fb077a1Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
4321fb077a1Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4331fb077a1Smrg  as_expr=expr
4341fb077a1Smrgelse
4351fb077a1Smrg  as_expr=false
4361fb077a1Smrgfi
4371fb077a1Smrg
4381fb077a1Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4391fb077a1Smrg  as_basename=basename
4401fb077a1Smrgelse
4411fb077a1Smrg  as_basename=false
4421fb077a1Smrgfi
4431fb077a1Smrg
4441fb077a1Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4451fb077a1Smrg  as_dirname=dirname
4461fb077a1Smrgelse
4471fb077a1Smrg  as_dirname=false
4481fb077a1Smrgfi
4491fb077a1Smrg
4501fb077a1Smrgas_me=`$as_basename -- "$0" ||
4511fb077a1Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4521fb077a1Smrg	 X"$0" : 'X\(//\)$' \| \
4531fb077a1Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4541fb077a1Smrg$as_echo X/"$0" |
4551fb077a1Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
4561fb077a1Smrg	    s//\1/
4571fb077a1Smrg	    q
4581fb077a1Smrg	  }
4591fb077a1Smrg	  /^X\/\(\/\/\)$/{
4601fb077a1Smrg	    s//\1/
4611fb077a1Smrg	    q
4621fb077a1Smrg	  }
4631fb077a1Smrg	  /^X\/\(\/\).*/{
4641fb077a1Smrg	    s//\1/
4651fb077a1Smrg	    q
4661fb077a1Smrg	  }
4671fb077a1Smrg	  s/.*/./; q'`
468a5a92c01Smrg
469a5a92c01Smrg# Avoid depending upon Character Ranges.
470a5a92c01Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
471a5a92c01Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472a5a92c01Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
473a5a92c01Smrgas_cr_digits='0123456789'
474a5a92c01Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
475a5a92c01Smrg
476a5a92c01Smrg
477a5a92c01Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478a5a92c01Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479a5a92c01Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480a5a92c01Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481a5a92c01Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482a5a92c01Smrg  sed -n '
483a5a92c01Smrg    p
484a5a92c01Smrg    /[$]LINENO/=
485a5a92c01Smrg  ' <$as_myself |
486a5a92c01Smrg    sed '
487a5a92c01Smrg      s/[$]LINENO.*/&-/
488a5a92c01Smrg      t lineno
489a5a92c01Smrg      b
490a5a92c01Smrg      :lineno
491a5a92c01Smrg      N
492a5a92c01Smrg      :loop
493a5a92c01Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494a5a92c01Smrg      t loop
495a5a92c01Smrg      s/-\n.*//
496a5a92c01Smrg    ' >$as_me.lineno &&
497a5a92c01Smrg  chmod +x "$as_me.lineno" ||
498a5a92c01Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499a5a92c01Smrg
500a5a92c01Smrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501a5a92c01Smrg  # already done that, so ensure we don't try to do so again and fall
502a5a92c01Smrg  # in an infinite loop.  This has already happened in practice.
503a5a92c01Smrg  _as_can_reexec=no; export _as_can_reexec
504a5a92c01Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
505a5a92c01Smrg  # (the dirname of $[0] is not the place where we might find the
506a5a92c01Smrg  # original and so on.  Autoconf is especially sensitive to this).
507a5a92c01Smrg  . "./$as_me.lineno"
508a5a92c01Smrg  # Exit status is that of the last command.
509a5a92c01Smrg  exit
510a5a92c01Smrg}
511a5a92c01Smrg
512a5a92c01SmrgECHO_C= ECHO_N= ECHO_T=
513a5a92c01Smrgcase `echo -n x` in #(((((
514a5a92c01Smrg-n*)
515a5a92c01Smrg  case `echo 'xy\c'` in
5161fb077a1Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5171fb077a1Smrg  xy)  ECHO_C='\c';;
5181fb077a1Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5191fb077a1Smrg       ECHO_T='	';;
5201fb077a1Smrg  esac;;
5211fb077a1Smrg*)
5221fb077a1Smrg  ECHO_N='-n';;
5231fb077a1Smrgesac
5241fb077a1Smrg
525a5a92c01Smrgrm -f conf$$ conf$$.exe conf$$.file
526a5a92c01Smrgif test -d conf$$.dir; then
5271fb077a1Smrg  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='libXft'
593PACKAGE_TARNAME='libXft'
594PACKAGE_VERSION='2.3.3'
595PACKAGE_STRING='libXft 2.3.3'
596PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXft/issues'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640FONTCONFIG_LIBS
641FONTCONFIG_CFLAGS
642FREETYPE_LIBS
643FREETYPE_CFLAGS
644XRENDER_LIBS
645XRENDER_CFLAGS
646XFT_LT_VERSION
647MAN_SUBSTS
648XORG_MAN_PAGE
649ADMIN_MAN_DIR
650DRIVER_MAN_DIR
651MISC_MAN_DIR
652FILE_MAN_DIR
653LIB_MAN_DIR
654APP_MAN_DIR
655ADMIN_MAN_SUFFIX
656DRIVER_MAN_SUFFIX
657MISC_MAN_SUFFIX
658FILE_MAN_SUFFIX
659LIB_MAN_SUFFIX
660APP_MAN_SUFFIX
661INSTALL_CMD
662PKG_CONFIG_LIBDIR
663PKG_CONFIG_PATH
664PKG_CONFIG
665CHANGELOG_CMD
666STRICT_CFLAGS
667CWARNFLAGS
668BASE_CFLAGS
669CPP
670LT_SYS_LIBRARY_PATH
671OTOOL64
672OTOOL
673LIPO
674NMEDIT
675DSYMUTIL
676MANIFEST_TOOL
677RANLIB
678ac_ct_AR
679AR
680DLLTOOL
681OBJDUMP
682LN_S
683NM
684ac_ct_DUMPBIN
685DUMPBIN
686LD
687FGREP
688EGREP
689GREP
690SED
691am__fastdepCC_FALSE
692am__fastdepCC_TRUE
693CCDEPMODE
694am__nodep
695AMDEPBACKSLASH
696AMDEP_FALSE
697AMDEP_TRUE
698am__quote
699am__include
700DEPDIR
701OBJEXT
702EXEEXT
703ac_ct_CC
704CPPFLAGS
705LDFLAGS
706CFLAGS
707CC
708host_os
709host_vendor
710host_cpu
711host
712build_os
713build_vendor
714build_cpu
715build
716LIBTOOL
717AM_BACKSLASH
718AM_DEFAULT_VERBOSITY
719AM_DEFAULT_V
720AM_V
721am__untar
722am__tar
723AMTAR
724am__leading_dot
725SET_MAKE
726AWK
727mkdir_p
728MKDIR_P
729INSTALL_STRIP_PROGRAM
730STRIP
731install_sh
732MAKEINFO
733AUTOHEADER
734AUTOMAKE
735AUTOCONF
736ACLOCAL
737VERSION
738PACKAGE
739CYGPATH_W
740am__isrc
741INSTALL_DATA
742INSTALL_SCRIPT
743INSTALL_PROGRAM
744target_alias
745host_alias
746build_alias
747LIBS
748ECHO_T
749ECHO_N
750ECHO_C
751DEFS
752mandir
753localedir
754libdir
755psdir
756pdfdir
757dvidir
758htmldir
759infodir
760docdir
761oldincludedir
762includedir
763localstatedir
764sharedstatedir
765sysconfdir
766datadir
767datarootdir
768libexecdir
769sbindir
770bindir
771program_transform_name
772prefix
773exec_prefix
774PACKAGE_URL
775PACKAGE_BUGREPORT
776PACKAGE_STRING
777PACKAGE_VERSION
778PACKAGE_TARNAME
779PACKAGE_NAME
780PATH_SEPARATOR
781SHELL'
782ac_subst_files=''
783ac_user_opts='
784enable_option_checking
785enable_silent_rules
786enable_shared
787enable_static
788with_pic
789enable_fast_install
790with_aix_soname
791enable_dependency_tracking
792with_gnu_ld
793with_sysroot
794enable_libtool_lock
795enable_selective_werror
796enable_strict_compilation
797'
798      ac_precious_vars='build_alias
799host_alias
800target_alias
801CC
802CFLAGS
803LDFLAGS
804LIBS
805CPPFLAGS
806LT_SYS_LIBRARY_PATH
807CPP
808PKG_CONFIG
809PKG_CONFIG_PATH
810PKG_CONFIG_LIBDIR
811XRENDER_CFLAGS
812XRENDER_LIBS
813FREETYPE_CFLAGS
814FREETYPE_LIBS
815FONTCONFIG_CFLAGS
816FONTCONFIG_LIBS'
817
818
819# Initialize some variables set by options.
820ac_init_help=
821ac_init_version=false
822ac_unrecognized_opts=
823ac_unrecognized_sep=
824# The variables have the same names as the options, with
825# dashes changed to underlines.
826cache_file=/dev/null
827exec_prefix=NONE
828no_create=
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
837verbose=
838x_includes=NONE
839x_libraries=NONE
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
846# (The list follows the same order as the GNU Coding Standards.)
847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
855includedir='${prefix}/include'
856oldincludedir='/usr/include'
857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
866
867ac_prev=
868ac_dashdash=
869for ac_option
870do
871  # If the previous option needs an argument, assign it.
872  if test -n "$ac_prev"; then
873    eval $ac_prev=\$ac_option
874    ac_prev=
875    continue
876  fi
877
878  case $ac_option in
879  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880  *=)   ac_optarg= ;;
881  *)    ac_optarg=yes ;;
882  esac
883
884  # Accept the important Cygnus configure options, so we can diagnose typos.
885
886  case $ac_dashdash$ac_option in
887  --)
888    ac_dashdash=yes ;;
889
890  -bindir | --bindir | --bindi | --bind | --bin | --bi)
891    ac_prev=bindir ;;
892  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893    bindir=$ac_optarg ;;
894
895  -build | --build | --buil | --bui | --bu)
896    ac_prev=build_alias ;;
897  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898    build_alias=$ac_optarg ;;
899
900  -cache-file | --cache-file | --cache-fil | --cache-fi \
901  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902    ac_prev=cache_file ;;
903  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905    cache_file=$ac_optarg ;;
906
907  --config-cache | -C)
908    cache_file=config.cache ;;
909
910  -datadir | --datadir | --datadi | --datad)
911    ac_prev=datadir ;;
912  -datadir=* | --datadir=* | --datadi=* | --datad=*)
913    datadir=$ac_optarg ;;
914
915  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916  | --dataroo | --dataro | --datar)
917    ac_prev=datarootdir ;;
918  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920    datarootdir=$ac_optarg ;;
921
922  -disable-* | --disable-*)
923    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924    # Reject names that are not valid shell variable names.
925    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926      as_fn_error $? "invalid feature name: $ac_useropt"
927    ac_useropt_orig=$ac_useropt
928    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929    case $ac_user_opts in
930      *"
931"enable_$ac_useropt"
932"*) ;;
933      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934	 ac_unrecognized_sep=', ';;
935    esac
936    eval enable_$ac_useropt=no ;;
937
938  -docdir | --docdir | --docdi | --doc | --do)
939    ac_prev=docdir ;;
940  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941    docdir=$ac_optarg ;;
942
943  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944    ac_prev=dvidir ;;
945  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946    dvidir=$ac_optarg ;;
947
948  -enable-* | --enable-*)
949    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950    # Reject names that are not valid shell variable names.
951    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952      as_fn_error $? "invalid feature name: $ac_useropt"
953    ac_useropt_orig=$ac_useropt
954    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955    case $ac_user_opts in
956      *"
957"enable_$ac_useropt"
958"*) ;;
959      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960	 ac_unrecognized_sep=', ';;
961    esac
962    eval enable_$ac_useropt=\$ac_optarg ;;
963
964  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966  | --exec | --exe | --ex)
967    ac_prev=exec_prefix ;;
968  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970  | --exec=* | --exe=* | --ex=*)
971    exec_prefix=$ac_optarg ;;
972
973  -gas | --gas | --ga | --g)
974    # Obsolete; use --with-gas.
975    with_gas=yes ;;
976
977  -help | --help | --hel | --he | -h)
978    ac_init_help=long ;;
979  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980    ac_init_help=recursive ;;
981  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982    ac_init_help=short ;;
983
984  -host | --host | --hos | --ho)
985    ac_prev=host_alias ;;
986  -host=* | --host=* | --hos=* | --ho=*)
987    host_alias=$ac_optarg ;;
988
989  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990    ac_prev=htmldir ;;
991  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992  | --ht=*)
993    htmldir=$ac_optarg ;;
994
995  -includedir | --includedir | --includedi | --included | --include \
996  | --includ | --inclu | --incl | --inc)
997    ac_prev=includedir ;;
998  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999  | --includ=* | --inclu=* | --incl=* | --inc=*)
1000    includedir=$ac_optarg ;;
1001
1002  -infodir | --infodir | --infodi | --infod | --info | --inf)
1003    ac_prev=infodir ;;
1004  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005    infodir=$ac_optarg ;;
1006
1007  -libdir | --libdir | --libdi | --libd)
1008    ac_prev=libdir ;;
1009  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010    libdir=$ac_optarg ;;
1011
1012  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013  | --libexe | --libex | --libe)
1014    ac_prev=libexecdir ;;
1015  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016  | --libexe=* | --libex=* | --libe=*)
1017    libexecdir=$ac_optarg ;;
1018
1019  -localedir | --localedir | --localedi | --localed | --locale)
1020    ac_prev=localedir ;;
1021  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022    localedir=$ac_optarg ;;
1023
1024  -localstatedir | --localstatedir | --localstatedi | --localstated \
1025  | --localstate | --localstat | --localsta | --localst | --locals)
1026    ac_prev=localstatedir ;;
1027  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029    localstatedir=$ac_optarg ;;
1030
1031  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032    ac_prev=mandir ;;
1033  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034    mandir=$ac_optarg ;;
1035
1036  -nfp | --nfp | --nf)
1037    # Obsolete; use --without-fp.
1038    with_fp=no ;;
1039
1040  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041  | --no-cr | --no-c | -n)
1042    no_create=yes ;;
1043
1044  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046    no_recursion=yes ;;
1047
1048  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050  | --oldin | --oldi | --old | --ol | --o)
1051    ac_prev=oldincludedir ;;
1052  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055    oldincludedir=$ac_optarg ;;
1056
1057  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058    ac_prev=prefix ;;
1059  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060    prefix=$ac_optarg ;;
1061
1062  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063  | --program-pre | --program-pr | --program-p)
1064    ac_prev=program_prefix ;;
1065  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067    program_prefix=$ac_optarg ;;
1068
1069  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070  | --program-suf | --program-su | --program-s)
1071    ac_prev=program_suffix ;;
1072  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074    program_suffix=$ac_optarg ;;
1075
1076  -program-transform-name | --program-transform-name \
1077  | --program-transform-nam | --program-transform-na \
1078  | --program-transform-n | --program-transform- \
1079  | --program-transform | --program-transfor \
1080  | --program-transfo | --program-transf \
1081  | --program-trans | --program-tran \
1082  | --progr-tra | --program-tr | --program-t)
1083    ac_prev=program_transform_name ;;
1084  -program-transform-name=* | --program-transform-name=* \
1085  | --program-transform-nam=* | --program-transform-na=* \
1086  | --program-transform-n=* | --program-transform-=* \
1087  | --program-transform=* | --program-transfor=* \
1088  | --program-transfo=* | --program-transf=* \
1089  | --program-trans=* | --program-tran=* \
1090  | --progr-tra=* | --program-tr=* | --program-t=*)
1091    program_transform_name=$ac_optarg ;;
1092
1093  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094    ac_prev=pdfdir ;;
1095  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096    pdfdir=$ac_optarg ;;
1097
1098  -psdir | --psdir | --psdi | --psd | --ps)
1099    ac_prev=psdir ;;
1100  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101    psdir=$ac_optarg ;;
1102
1103  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104  | -silent | --silent | --silen | --sile | --sil)
1105    silent=yes ;;
1106
1107  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108    ac_prev=sbindir ;;
1109  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110  | --sbi=* | --sb=*)
1111    sbindir=$ac_optarg ;;
1112
1113  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115  | --sharedst | --shareds | --shared | --share | --shar \
1116  | --sha | --sh)
1117    ac_prev=sharedstatedir ;;
1118  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121  | --sha=* | --sh=*)
1122    sharedstatedir=$ac_optarg ;;
1123
1124  -site | --site | --sit)
1125    ac_prev=site ;;
1126  -site=* | --site=* | --sit=*)
1127    site=$ac_optarg ;;
1128
1129  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130    ac_prev=srcdir ;;
1131  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132    srcdir=$ac_optarg ;;
1133
1134  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135  | --syscon | --sysco | --sysc | --sys | --sy)
1136    ac_prev=sysconfdir ;;
1137  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139    sysconfdir=$ac_optarg ;;
1140
1141  -target | --target | --targe | --targ | --tar | --ta | --t)
1142    ac_prev=target_alias ;;
1143  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144    target_alias=$ac_optarg ;;
1145
1146  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147    verbose=yes ;;
1148
1149  -version | --version | --versio | --versi | --vers | -V)
1150    ac_init_version=: ;;
1151
1152  -with-* | --with-*)
1153    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154    # Reject names that are not valid shell variable names.
1155    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156      as_fn_error $? "invalid package name: $ac_useropt"
1157    ac_useropt_orig=$ac_useropt
1158    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159    case $ac_user_opts in
1160      *"
1161"with_$ac_useropt"
1162"*) ;;
1163      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164	 ac_unrecognized_sep=', ';;
1165    esac
1166    eval with_$ac_useropt=\$ac_optarg ;;
1167
1168  -without-* | --without-*)
1169    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170    # Reject names that are not valid shell variable names.
1171    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172      as_fn_error $? "invalid package name: $ac_useropt"
1173    ac_useropt_orig=$ac_useropt
1174    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175    case $ac_user_opts in
1176      *"
1177"with_$ac_useropt"
1178"*) ;;
1179      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180	 ac_unrecognized_sep=', ';;
1181    esac
1182    eval with_$ac_useropt=no ;;
1183
1184  --x)
1185    # Obsolete; use --with-x.
1186    with_x=yes ;;
1187
1188  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189  | --x-incl | --x-inc | --x-in | --x-i)
1190    ac_prev=x_includes ;;
1191  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193    x_includes=$ac_optarg ;;
1194
1195  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197    ac_prev=x_libraries ;;
1198  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200    x_libraries=$ac_optarg ;;
1201
1202  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203Try \`$0 --help' for more information"
1204    ;;
1205
1206  *=*)
1207    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208    # Reject names that are not valid shell variable names.
1209    case $ac_envvar in #(
1210      '' | [0-9]* | *[!_$as_cr_alnum]* )
1211      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212    esac
1213    eval $ac_envvar=\$ac_optarg
1214    export $ac_envvar ;;
1215
1216  *)
1217    # FIXME: should be removed in autoconf 3.0.
1218    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222    ;;
1223
1224  esac
1225done
1226
1227if test -n "$ac_prev"; then
1228  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229  as_fn_error $? "missing argument to $ac_option"
1230fi
1231
1232if test -n "$ac_unrecognized_opts"; then
1233  case $enable_option_checking in
1234    no) ;;
1235    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237  esac
1238fi
1239
1240# Check all directory arguments for consistency.
1241for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242		datadir sysconfdir sharedstatedir localstatedir includedir \
1243		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244		libdir localedir mandir
1245do
1246  eval ac_val=\$$ac_var
1247  # Remove trailing slashes.
1248  case $ac_val in
1249    */ )
1250      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251      eval $ac_var=\$ac_val;;
1252  esac
1253  # Be sure to have absolute directory names.
1254  case $ac_val in
1255    [\\/$]* | ?:[\\/]* )  continue;;
1256    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257  esac
1258  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259done
1260
1261# There might be people who depend on the old broken behavior: `$host'
1262# used to hold the argument of --host etc.
1263# FIXME: To remove some day.
1264build=$build_alias
1265host=$host_alias
1266target=$target_alias
1267
1268# FIXME: To remove some day.
1269if test "x$host_alias" != x; then
1270  if test "x$build_alias" = x; then
1271    cross_compiling=maybe
1272  elif test "x$build_alias" != "x$host_alias"; then
1273    cross_compiling=yes
1274  fi
1275fi
1276
1277ac_tool_prefix=
1278test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280test "$silent" = yes && exec 6>/dev/null
1281
1282
1283ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284ac_ls_di=`ls -di .` &&
1285ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286  as_fn_error $? "working directory cannot be determined"
1287test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288  as_fn_error $? "pwd does not report name of working directory"
1289
1290
1291# Find the source files, if location was not specified.
1292if test -z "$srcdir"; then
1293  ac_srcdir_defaulted=yes
1294  # Try the directory containing this script, then the parent directory.
1295  ac_confdir=`$as_dirname -- "$as_myself" ||
1296$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297	 X"$as_myself" : 'X\(//\)[^/]' \| \
1298	 X"$as_myself" : 'X\(//\)$' \| \
1299	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300$as_echo X"$as_myself" |
1301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\/\)[^/].*/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\/\)$/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\).*/{
1314	    s//\1/
1315	    q
1316	  }
1317	  s/.*/./; q'`
1318  srcdir=$ac_confdir
1319  if test ! -r "$srcdir/$ac_unique_file"; then
1320    srcdir=..
1321  fi
1322else
1323  ac_srcdir_defaulted=no
1324fi
1325if test ! -r "$srcdir/$ac_unique_file"; then
1326  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328fi
1329ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330ac_abs_confdir=`(
1331	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332	pwd)`
1333# When building in place, set srcdir=.
1334if test "$ac_abs_confdir" = "$ac_pwd"; then
1335  srcdir=.
1336fi
1337# Remove unnecessary trailing slashes from srcdir.
1338# Double slashes in file names in object file debugging info
1339# mess up M-x gdb in Emacs.
1340case $srcdir in
1341*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342esac
1343for ac_var in $ac_precious_vars; do
1344  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345  eval ac_env_${ac_var}_value=\$${ac_var}
1346  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348done
1349
1350#
1351# Report the --help message.
1352#
1353if test "$ac_init_help" = "long"; then
1354  # Omit some internal or obsolete options to make the list less imposing.
1355  # This message is too long to be a string in the A/UX 3.1 sh.
1356  cat <<_ACEOF
1357\`configure' configures libXft 2.3.3 to adapt to many kinds of systems.
1358
1359Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362VAR=VALUE.  See below for descriptions of some of the useful variables.
1363
1364Defaults for the options are specified in brackets.
1365
1366Configuration:
1367  -h, --help              display this help and exit
1368      --help=short        display options specific to this package
1369      --help=recursive    display the short help of all the included packages
1370  -V, --version           display version information and exit
1371  -q, --quiet, --silent   do not print \`checking ...' messages
1372      --cache-file=FILE   cache test results in FILE [disabled]
1373  -C, --config-cache      alias for \`--cache-file=config.cache'
1374  -n, --no-create         do not create output files
1375      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1376
1377Installation directories:
1378  --prefix=PREFIX         install architecture-independent files in PREFIX
1379                          [$ac_default_prefix]
1380  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1381                          [PREFIX]
1382
1383By default, \`make install' will install all the files in
1384\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1385an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386for instance \`--prefix=\$HOME'.
1387
1388For better control, use the options below.
1389
1390Fine tuning of the installation directories:
1391  --bindir=DIR            user executables [EPREFIX/bin]
1392  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1393  --libexecdir=DIR        program executables [EPREFIX/libexec]
1394  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1395  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1396  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1397  --libdir=DIR            object code libraries [EPREFIX/lib]
1398  --includedir=DIR        C header files [PREFIX/include]
1399  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1400  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1401  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1402  --infodir=DIR           info documentation [DATAROOTDIR/info]
1403  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1404  --mandir=DIR            man documentation [DATAROOTDIR/man]
1405  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXft]
1406  --htmldir=DIR           html documentation [DOCDIR]
1407  --dvidir=DIR            dvi documentation [DOCDIR]
1408  --pdfdir=DIR            pdf documentation [DOCDIR]
1409  --psdir=DIR             ps documentation [DOCDIR]
1410_ACEOF
1411
1412  cat <<\_ACEOF
1413
1414Program names:
1415  --program-prefix=PREFIX            prepend PREFIX to installed program names
1416  --program-suffix=SUFFIX            append SUFFIX to installed program names
1417  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1418
1419System types:
1420  --build=BUILD     configure for building on BUILD [guessed]
1421  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1422_ACEOF
1423fi
1424
1425if test -n "$ac_init_help"; then
1426  case $ac_init_help in
1427     short | recursive ) echo "Configuration of libXft 2.3.3:";;
1428   esac
1429  cat <<\_ACEOF
1430
1431Optional Features:
1432  --disable-option-checking  ignore unrecognized --enable/--with options
1433  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1434  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1435  --enable-silent-rules   less verbose build output (undo: "make V=1")
1436  --disable-silent-rules  verbose build output (undo: "make V=0")
1437  --enable-shared[=PKGS]  build shared libraries [default=yes]
1438  --enable-static[=PKGS]  build static libraries [default=yes]
1439  --enable-fast-install[=PKGS]
1440                          optimize for fast installation [default=yes]
1441  --enable-dependency-tracking
1442                          do not reject slow dependency extractors
1443  --disable-dependency-tracking
1444                          speeds up one-time build
1445  --disable-libtool-lock  avoid locking (might break parallel builds)
1446  --disable-selective-werror
1447                          Turn off selective compiler errors. (default:
1448                          enabled)
1449  --enable-strict-compilation
1450                          Enable all warnings from compiler and make them
1451                          errors (default: disabled)
1452
1453Optional Packages:
1454  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1455  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1456  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1457                          both]
1458  --with-aix-soname=aix|svr4|both
1459                          shared library versioning (aka "SONAME") variant to
1460                          provide on AIX, [default=aix].
1461  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1462  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1463                          compiler's sysroot if not specified).
1464
1465Some influential environment variables:
1466  CC          C compiler command
1467  CFLAGS      C compiler flags
1468  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1469              nonstandard directory <lib dir>
1470  LIBS        libraries to pass to the linker, e.g. -l<library>
1471  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472              you have headers in a nonstandard directory <include dir>
1473  LT_SYS_LIBRARY_PATH
1474              User-defined run-time library search path.
1475  CPP         C preprocessor
1476  PKG_CONFIG  path to pkg-config utility
1477  PKG_CONFIG_PATH
1478              directories to add to pkg-config's search path
1479  PKG_CONFIG_LIBDIR
1480              path overriding pkg-config's built-in search path
1481  XRENDER_CFLAGS
1482              C compiler flags for XRENDER, overriding pkg-config
1483  XRENDER_LIBS
1484              linker flags for XRENDER, overriding pkg-config
1485  FREETYPE_CFLAGS
1486              C compiler flags for FREETYPE, overriding pkg-config
1487  FREETYPE_LIBS
1488              linker flags for FREETYPE, overriding pkg-config
1489  FONTCONFIG_CFLAGS
1490              C compiler flags for FONTCONFIG, overriding pkg-config
1491  FONTCONFIG_LIBS
1492              linker flags for FONTCONFIG, overriding pkg-config
1493
1494Use these variables to override the choices made by `configure' or to help
1495it to find libraries and programs with nonstandard names/locations.
1496
1497Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>.
1498_ACEOF
1499ac_status=$?
1500fi
1501
1502if test "$ac_init_help" = "recursive"; then
1503  # If there are subdirs, report their specific --help.
1504  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505    test -d "$ac_dir" ||
1506      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507      continue
1508    ac_builddir=.
1509
1510case "$ac_dir" in
1511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512*)
1513  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514  # A ".." for each directory in $ac_dir_suffix.
1515  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516  case $ac_top_builddir_sub in
1517  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519  esac ;;
1520esac
1521ac_abs_top_builddir=$ac_pwd
1522ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523# for backward compatibility:
1524ac_top_builddir=$ac_top_build_prefix
1525
1526case $srcdir in
1527  .)  # We are building in place.
1528    ac_srcdir=.
1529    ac_top_srcdir=$ac_top_builddir_sub
1530    ac_abs_top_srcdir=$ac_pwd ;;
1531  [\\/]* | ?:[\\/]* )  # Absolute name.
1532    ac_srcdir=$srcdir$ac_dir_suffix;
1533    ac_top_srcdir=$srcdir
1534    ac_abs_top_srcdir=$srcdir ;;
1535  *) # Relative name.
1536    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537    ac_top_srcdir=$ac_top_build_prefix$srcdir
1538    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539esac
1540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542    cd "$ac_dir" || { ac_status=$?; continue; }
1543    # Check for guested configure.
1544    if test -f "$ac_srcdir/configure.gnu"; then
1545      echo &&
1546      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547    elif test -f "$ac_srcdir/configure"; then
1548      echo &&
1549      $SHELL "$ac_srcdir/configure" --help=recursive
1550    else
1551      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552    fi || ac_status=$?
1553    cd "$ac_pwd" || { ac_status=$?; break; }
1554  done
1555fi
1556
1557test -n "$ac_init_help" && exit $ac_status
1558if $ac_init_version; then
1559  cat <<\_ACEOF
1560libXft configure 2.3.3
1561generated by GNU Autoconf 2.69
1562
1563Copyright (C) 2012 Free Software Foundation, Inc.
1564This configure script is free software; the Free Software Foundation
1565gives unlimited permission to copy, distribute and modify it.
1566_ACEOF
1567  exit
1568fi
1569
1570## ------------------------ ##
1571## Autoconf initialization. ##
1572## ------------------------ ##
1573
1574# ac_fn_c_try_compile LINENO
1575# --------------------------
1576# Try to compile conftest.$ac_ext, and return whether this succeeded.
1577ac_fn_c_try_compile ()
1578{
1579  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580  rm -f conftest.$ac_objext
1581  if { { ac_try="$ac_compile"
1582case "(($ac_try" in
1583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584  *) ac_try_echo=$ac_try;;
1585esac
1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587$as_echo "$ac_try_echo"; } >&5
1588  (eval "$ac_compile") 2>conftest.err
1589  ac_status=$?
1590  if test -s conftest.err; then
1591    grep -v '^ *+' conftest.err >conftest.er1
1592    cat conftest.er1 >&5
1593    mv -f conftest.er1 conftest.err
1594  fi
1595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596  test $ac_status = 0; } && {
1597	 test -z "$ac_c_werror_flag" ||
1598	 test ! -s conftest.err
1599       } && test -s conftest.$ac_objext; then :
1600  ac_retval=0
1601else
1602  $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605	ac_retval=1
1606fi
1607  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608  as_fn_set_status $ac_retval
1609
1610} # ac_fn_c_try_compile
1611
1612# ac_fn_c_try_link LINENO
1613# -----------------------
1614# Try to link conftest.$ac_ext, and return whether this succeeded.
1615ac_fn_c_try_link ()
1616{
1617  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618  rm -f conftest.$ac_objext conftest$ac_exeext
1619  if { { ac_try="$ac_link"
1620case "(($ac_try" in
1621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622  *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625$as_echo "$ac_try_echo"; } >&5
1626  (eval "$ac_link") 2>conftest.err
1627  ac_status=$?
1628  if test -s conftest.err; then
1629    grep -v '^ *+' conftest.err >conftest.er1
1630    cat conftest.er1 >&5
1631    mv -f conftest.er1 conftest.err
1632  fi
1633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634  test $ac_status = 0; } && {
1635	 test -z "$ac_c_werror_flag" ||
1636	 test ! -s conftest.err
1637       } && test -s conftest$ac_exeext && {
1638	 test "$cross_compiling" = yes ||
1639	 test -x conftest$ac_exeext
1640       }; then :
1641  ac_retval=0
1642else
1643  $as_echo "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
1646	ac_retval=1
1647fi
1648  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1649  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1650  # interfere with the next link command; also delete a directory that is
1651  # left behind by Apple's compiler.  We do this before executing the actions.
1652  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654  as_fn_set_status $ac_retval
1655
1656} # ac_fn_c_try_link
1657
1658# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659# -------------------------------------------------------
1660# Tests whether HEADER exists and can be compiled using the include files in
1661# INCLUDES, setting the cache variable VAR accordingly.
1662ac_fn_c_check_header_compile ()
1663{
1664  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666$as_echo_n "checking for $2... " >&6; }
1667if eval \${$3+:} false; then :
1668  $as_echo_n "(cached) " >&6
1669else
1670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671/* end confdefs.h.  */
1672$4
1673#include <$2>
1674_ACEOF
1675if ac_fn_c_try_compile "$LINENO"; then :
1676  eval "$3=yes"
1677else
1678  eval "$3=no"
1679fi
1680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681fi
1682eval ac_res=\$$3
1683	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684$as_echo "$ac_res" >&6; }
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687} # ac_fn_c_check_header_compile
1688
1689# ac_fn_c_try_cpp LINENO
1690# ----------------------
1691# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692ac_fn_c_try_cpp ()
1693{
1694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695  if { { ac_try="$ac_cpp conftest.$ac_ext"
1696case "(($ac_try" in
1697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698  *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703  ac_status=$?
1704  if test -s conftest.err; then
1705    grep -v '^ *+' conftest.err >conftest.er1
1706    cat conftest.er1 >&5
1707    mv -f conftest.er1 conftest.err
1708  fi
1709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710  test $ac_status = 0; } > conftest.i && {
1711	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1712	 test ! -s conftest.err
1713       }; then :
1714  ac_retval=0
1715else
1716  $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719    ac_retval=1
1720fi
1721  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722  as_fn_set_status $ac_retval
1723
1724} # ac_fn_c_try_cpp
1725
1726# ac_fn_c_try_run LINENO
1727# ----------------------
1728# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729# that executables *can* be run.
1730ac_fn_c_try_run ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  if { { ac_try="$ac_link"
1734case "(($ac_try" in
1735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736  *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740  (eval "$ac_link") 2>&5
1741  ac_status=$?
1742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744  { { case "(($ac_try" in
1745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746  *) ac_try_echo=$ac_try;;
1747esac
1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749$as_echo "$ac_try_echo"; } >&5
1750  (eval "$ac_try") 2>&5
1751  ac_status=$?
1752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753  test $ac_status = 0; }; }; then :
1754  ac_retval=0
1755else
1756  $as_echo "$as_me: program exited with status $ac_status" >&5
1757       $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760       ac_retval=$ac_status
1761fi
1762  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764  as_fn_set_status $ac_retval
1765
1766} # ac_fn_c_try_run
1767
1768# ac_fn_c_check_func LINENO FUNC VAR
1769# ----------------------------------
1770# Tests whether FUNC exists, setting the cache variable VAR accordingly
1771ac_fn_c_check_func ()
1772{
1773  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775$as_echo_n "checking for $2... " >&6; }
1776if eval \${$3+:} false; then :
1777  $as_echo_n "(cached) " >&6
1778else
1779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780/* end confdefs.h.  */
1781/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1782   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1783#define $2 innocuous_$2
1784
1785/* System header to define __stub macros and hopefully few prototypes,
1786    which can conflict with char $2 (); below.
1787    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1788    <limits.h> exists even on freestanding compilers.  */
1789
1790#ifdef __STDC__
1791# include <limits.h>
1792#else
1793# include <assert.h>
1794#endif
1795
1796#undef $2
1797
1798/* Override any GCC internal prototype to avoid an error.
1799   Use char because int might match the return type of a GCC
1800   builtin and then its argument prototype would still apply.  */
1801#ifdef __cplusplus
1802extern "C"
1803#endif
1804char $2 ();
1805/* The GNU C library defines this for functions which it implements
1806    to always fail with ENOSYS.  Some functions are actually named
1807    something starting with __ and the normal name is an alias.  */
1808#if defined __stub_$2 || defined __stub___$2
1809choke me
1810#endif
1811
1812int
1813main ()
1814{
1815return $2 ();
1816  ;
1817  return 0;
1818}
1819_ACEOF
1820if ac_fn_c_try_link "$LINENO"; then :
1821  eval "$3=yes"
1822else
1823  eval "$3=no"
1824fi
1825rm -f core conftest.err conftest.$ac_objext \
1826    conftest$ac_exeext conftest.$ac_ext
1827fi
1828eval ac_res=\$$3
1829	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830$as_echo "$ac_res" >&6; }
1831  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
1833} # ac_fn_c_check_func
1834
1835# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1836# ---------------------------------------------
1837# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1838# accordingly.
1839ac_fn_c_check_decl ()
1840{
1841  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842  as_decl_name=`echo $2|sed 's/ *(.*//'`
1843  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1845$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1846if eval \${$3+:} false; then :
1847  $as_echo_n "(cached) " >&6
1848else
1849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850/* end confdefs.h.  */
1851$4
1852int
1853main ()
1854{
1855#ifndef $as_decl_name
1856#ifdef __cplusplus
1857  (void) $as_decl_use;
1858#else
1859  (void) $as_decl_name;
1860#endif
1861#endif
1862
1863  ;
1864  return 0;
1865}
1866_ACEOF
1867if ac_fn_c_try_compile "$LINENO"; then :
1868  eval "$3=yes"
1869else
1870  eval "$3=no"
1871fi
1872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873fi
1874eval ac_res=\$$3
1875	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876$as_echo "$ac_res" >&6; }
1877  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879} # ac_fn_c_check_decl
1880cat >config.log <<_ACEOF
1881This file contains any messages produced by compilers while
1882running configure, to aid debugging if configure makes a mistake.
1883
1884It was created by libXft $as_me 2.3.3, which was
1885generated by GNU Autoconf 2.69.  Invocation command line was
1886
1887  $ $0 $@
1888
1889_ACEOF
1890exec 5>>config.log
1891{
1892cat <<_ASUNAME
1893## --------- ##
1894## Platform. ##
1895## --------- ##
1896
1897hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1898uname -m = `(uname -m) 2>/dev/null || echo unknown`
1899uname -r = `(uname -r) 2>/dev/null || echo unknown`
1900uname -s = `(uname -s) 2>/dev/null || echo unknown`
1901uname -v = `(uname -v) 2>/dev/null || echo unknown`
1902
1903/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1904/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1905
1906/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1907/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1908/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1909/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1910/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1911/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1912/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1913
1914_ASUNAME
1915
1916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917for as_dir in $PATH
1918do
1919  IFS=$as_save_IFS
1920  test -z "$as_dir" && as_dir=.
1921    $as_echo "PATH: $as_dir"
1922  done
1923IFS=$as_save_IFS
1924
1925} >&5
1926
1927cat >&5 <<_ACEOF
1928
1929
1930## ----------- ##
1931## Core tests. ##
1932## ----------- ##
1933
1934_ACEOF
1935
1936
1937# Keep a trace of the command line.
1938# Strip out --no-create and --no-recursion so they do not pile up.
1939# Strip out --silent because we don't want to record it for future runs.
1940# Also quote any args containing shell meta-characters.
1941# Make two passes to allow for proper duplicate-argument suppression.
1942ac_configure_args=
1943ac_configure_args0=
1944ac_configure_args1=
1945ac_must_keep_next=false
1946for ac_pass in 1 2
1947do
1948  for ac_arg
1949  do
1950    case $ac_arg in
1951    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1952    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1953    | -silent | --silent | --silen | --sile | --sil)
1954      continue ;;
1955    *\'*)
1956      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1957    esac
1958    case $ac_pass in
1959    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1960    2)
1961      as_fn_append ac_configure_args1 " '$ac_arg'"
1962      if test $ac_must_keep_next = true; then
1963	ac_must_keep_next=false # Got value, back to normal.
1964      else
1965	case $ac_arg in
1966	  *=* | --config-cache | -C | -disable-* | --disable-* \
1967	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1968	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1969	  | -with-* | --with-* | -without-* | --without-* | --x)
1970	    case "$ac_configure_args0 " in
1971	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1972	    esac
1973	    ;;
1974	  -* ) ac_must_keep_next=true ;;
1975	esac
1976      fi
1977      as_fn_append ac_configure_args " '$ac_arg'"
1978      ;;
1979    esac
1980  done
1981done
1982{ ac_configure_args0=; unset ac_configure_args0;}
1983{ ac_configure_args1=; unset ac_configure_args1;}
1984
1985# When interrupted or exit'd, cleanup temporary files, and complete
1986# config.log.  We remove comments because anyway the quotes in there
1987# would cause problems or look ugly.
1988# WARNING: Use '\'' to represent an apostrophe within the trap.
1989# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1990trap 'exit_status=$?
1991  # Save into config.log some information that might help in debugging.
1992  {
1993    echo
1994
1995    $as_echo "## ---------------- ##
1996## Cache variables. ##
1997## ---------------- ##"
1998    echo
1999    # The following way of writing the cache mishandles newlines in values,
2000(
2001  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2002    eval ac_val=\$$ac_var
2003    case $ac_val in #(
2004    *${as_nl}*)
2005      case $ac_var in #(
2006      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2007$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2008      esac
2009      case $ac_var in #(
2010      _ | IFS | as_nl) ;; #(
2011      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2012      *) { eval $ac_var=; unset $ac_var;} ;;
2013      esac ;;
2014    esac
2015  done
2016  (set) 2>&1 |
2017    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2018    *${as_nl}ac_space=\ *)
2019      sed -n \
2020	"s/'\''/'\''\\\\'\'''\''/g;
2021	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2022      ;; #(
2023    *)
2024      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2025      ;;
2026    esac |
2027    sort
2028)
2029    echo
2030
2031    $as_echo "## ----------------- ##
2032## Output variables. ##
2033## ----------------- ##"
2034    echo
2035    for ac_var in $ac_subst_vars
2036    do
2037      eval ac_val=\$$ac_var
2038      case $ac_val in
2039      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040      esac
2041      $as_echo "$ac_var='\''$ac_val'\''"
2042    done | sort
2043    echo
2044
2045    if test -n "$ac_subst_files"; then
2046      $as_echo "## ------------------- ##
2047## File substitutions. ##
2048## ------------------- ##"
2049      echo
2050      for ac_var in $ac_subst_files
2051      do
2052	eval ac_val=\$$ac_var
2053	case $ac_val in
2054	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055	esac
2056	$as_echo "$ac_var='\''$ac_val'\''"
2057      done | sort
2058      echo
2059    fi
2060
2061    if test -s confdefs.h; then
2062      $as_echo "## ----------- ##
2063## confdefs.h. ##
2064## ----------- ##"
2065      echo
2066      cat confdefs.h
2067      echo
2068    fi
2069    test "$ac_signal" != 0 &&
2070      $as_echo "$as_me: caught signal $ac_signal"
2071    $as_echo "$as_me: exit $exit_status"
2072  } >&5
2073  rm -f core *.core core.conftest.* &&
2074    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2075    exit $exit_status
2076' 0
2077for ac_signal in 1 2 13 15; do
2078  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2079done
2080ac_signal=0
2081
2082# confdefs.h avoids OS command line length limits that DEFS can exceed.
2083rm -f -r conftest* confdefs.h
2084
2085$as_echo "/* confdefs.h */" > confdefs.h
2086
2087# Predefined preprocessor variables.
2088
2089cat >>confdefs.h <<_ACEOF
2090#define PACKAGE_NAME "$PACKAGE_NAME"
2091_ACEOF
2092
2093cat >>confdefs.h <<_ACEOF
2094#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2095_ACEOF
2096
2097cat >>confdefs.h <<_ACEOF
2098#define PACKAGE_VERSION "$PACKAGE_VERSION"
2099_ACEOF
2100
2101cat >>confdefs.h <<_ACEOF
2102#define PACKAGE_STRING "$PACKAGE_STRING"
2103_ACEOF
2104
2105cat >>confdefs.h <<_ACEOF
2106#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2107_ACEOF
2108
2109cat >>confdefs.h <<_ACEOF
2110#define PACKAGE_URL "$PACKAGE_URL"
2111_ACEOF
2112
2113
2114# Let the site file select an alternate cache file if it wants to.
2115# Prefer an explicitly selected file to automatically selected ones.
2116ac_site_file1=NONE
2117ac_site_file2=NONE
2118if test -n "$CONFIG_SITE"; then
2119  # We do not want a PATH search for config.site.
2120  case $CONFIG_SITE in #((
2121    -*)  ac_site_file1=./$CONFIG_SITE;;
2122    */*) ac_site_file1=$CONFIG_SITE;;
2123    *)   ac_site_file1=./$CONFIG_SITE;;
2124  esac
2125elif test "x$prefix" != xNONE; then
2126  ac_site_file1=$prefix/share/config.site
2127  ac_site_file2=$prefix/etc/config.site
2128else
2129  ac_site_file1=$ac_default_prefix/share/config.site
2130  ac_site_file2=$ac_default_prefix/etc/config.site
2131fi
2132for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2133do
2134  test "x$ac_site_file" = xNONE && continue
2135  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2136    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2137$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2138    sed 's/^/| /' "$ac_site_file" >&5
2139    . "$ac_site_file" \
2140      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142as_fn_error $? "failed to load site script $ac_site_file
2143See \`config.log' for more details" "$LINENO" 5; }
2144  fi
2145done
2146
2147if test -r "$cache_file"; then
2148  # Some versions of bash will fail to source /dev/null (special files
2149  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2150  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2151    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152$as_echo "$as_me: loading cache $cache_file" >&6;}
2153    case $cache_file in
2154      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155      *)                      . "./$cache_file";;
2156    esac
2157  fi
2158else
2159  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160$as_echo "$as_me: creating cache $cache_file" >&6;}
2161  >$cache_file
2162fi
2163
2164# Check that the precious variables saved in the cache have kept the same
2165# value.
2166ac_cache_corrupted=false
2167for ac_var in $ac_precious_vars; do
2168  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2169  eval ac_new_set=\$ac_env_${ac_var}_set
2170  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2171  eval ac_new_val=\$ac_env_${ac_var}_value
2172  case $ac_old_set,$ac_new_set in
2173    set,)
2174      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2175$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2176      ac_cache_corrupted=: ;;
2177    ,set)
2178      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2179$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2180      ac_cache_corrupted=: ;;
2181    ,);;
2182    *)
2183      if test "x$ac_old_val" != "x$ac_new_val"; then
2184	# differences in whitespace do not lead to failure.
2185	ac_old_val_w=`echo x $ac_old_val`
2186	ac_new_val_w=`echo x $ac_new_val`
2187	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2188	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2189$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2190	  ac_cache_corrupted=:
2191	else
2192	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2193$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2194	  eval $ac_var=\$ac_old_val
2195	fi
2196	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2197$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2198	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2199$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2200      fi;;
2201  esac
2202  # Pass precious variables to config.status.
2203  if test "$ac_new_set" = set; then
2204    case $ac_new_val in
2205    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2206    *) ac_arg=$ac_var=$ac_new_val ;;
2207    esac
2208    case " $ac_configure_args " in
2209      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2210      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2211    esac
2212  fi
2213done
2214if $ac_cache_corrupted; then
2215  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2218$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2219  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2220fi
2221## -------------------- ##
2222## Main body of script. ##
2223## -------------------- ##
2224
2225ac_ext=c
2226ac_cpp='$CPP $CPPFLAGS'
2227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230
2231
2232
2233ac_config_headers="$ac_config_headers config.h"
2234
2235
2236# Initialize Automake
2237am__api_version='1.15'
2238
2239ac_aux_dir=
2240for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2241  if test -f "$ac_dir/install-sh"; then
2242    ac_aux_dir=$ac_dir
2243    ac_install_sh="$ac_aux_dir/install-sh -c"
2244    break
2245  elif test -f "$ac_dir/install.sh"; then
2246    ac_aux_dir=$ac_dir
2247    ac_install_sh="$ac_aux_dir/install.sh -c"
2248    break
2249  elif test -f "$ac_dir/shtool"; then
2250    ac_aux_dir=$ac_dir
2251    ac_install_sh="$ac_aux_dir/shtool install -c"
2252    break
2253  fi
2254done
2255if test -z "$ac_aux_dir"; then
2256  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2257fi
2258
2259# These three variables are undocumented and unsupported,
2260# and are intended to be withdrawn in a future Autoconf release.
2261# They can cause serious problems if a builder's source tree is in a directory
2262# whose full name contains unusual characters.
2263ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2264ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2265ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2266
2267
2268# Find a good install program.  We prefer a C program (faster),
2269# so one script is as good as another.  But avoid the broken or
2270# incompatible versions:
2271# SysV /etc/install, /usr/sbin/install
2272# SunOS /usr/etc/install
2273# IRIX /sbin/install
2274# AIX /bin/install
2275# AmigaOS /C/install, which installs bootblocks on floppy discs
2276# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2277# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2278# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2279# OS/2's system install, which has a completely different semantic
2280# ./install, which can be erroneously created by make from ./install.sh.
2281# Reject install programs that cannot install multiple files.
2282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2283$as_echo_n "checking for a BSD-compatible install... " >&6; }
2284if test -z "$INSTALL"; then
2285if ${ac_cv_path_install+:} false; then :
2286  $as_echo_n "(cached) " >&6
2287else
2288  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289for as_dir in $PATH
2290do
2291  IFS=$as_save_IFS
2292  test -z "$as_dir" && as_dir=.
2293    # Account for people who put trailing slashes in PATH elements.
2294case $as_dir/ in #((
2295  ./ | .// | /[cC]/* | \
2296  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2297  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2298  /usr/ucb/* ) ;;
2299  *)
2300    # OSF1 and SCO ODT 3.0 have their own names for install.
2301    # Don't use installbsd from OSF since it installs stuff as root
2302    # by default.
2303    for ac_prog in ginstall scoinst install; do
2304      for ac_exec_ext in '' $ac_executable_extensions; do
2305	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2306	  if test $ac_prog = install &&
2307	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2308	    # AIX install.  It has an incompatible calling convention.
2309	    :
2310	  elif test $ac_prog = install &&
2311	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2312	    # program-specific install script used by HP pwplus--don't use.
2313	    :
2314	  else
2315	    rm -rf conftest.one conftest.two conftest.dir
2316	    echo one > conftest.one
2317	    echo two > conftest.two
2318	    mkdir conftest.dir
2319	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2320	      test -s conftest.one && test -s conftest.two &&
2321	      test -s conftest.dir/conftest.one &&
2322	      test -s conftest.dir/conftest.two
2323	    then
2324	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2325	      break 3
2326	    fi
2327	  fi
2328	fi
2329      done
2330    done
2331    ;;
2332esac
2333
2334  done
2335IFS=$as_save_IFS
2336
2337rm -rf conftest.one conftest.two conftest.dir
2338
2339fi
2340  if test "${ac_cv_path_install+set}" = set; then
2341    INSTALL=$ac_cv_path_install
2342  else
2343    # As a last resort, use the slow shell script.  Don't cache a
2344    # value for INSTALL within a source directory, because that will
2345    # break other packages using the cache if that directory is
2346    # removed, or if the value is a relative name.
2347    INSTALL=$ac_install_sh
2348  fi
2349fi
2350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2351$as_echo "$INSTALL" >&6; }
2352
2353# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2354# It thinks the first close brace ends the variable substitution.
2355test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2356
2357test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2358
2359test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2360
2361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2362$as_echo_n "checking whether build environment is sane... " >&6; }
2363# Reject unsafe characters in $srcdir or the absolute working directory
2364# name.  Accept space and tab only in the latter.
2365am_lf='
2366'
2367case `pwd` in
2368  *[\\\"\#\$\&\'\`$am_lf]*)
2369    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2370esac
2371case $srcdir in
2372  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2373    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2374esac
2375
2376# Do 'set' in a subshell so we don't clobber the current shell's
2377# arguments.  Must try -L first in case configure is actually a
2378# symlink; some systems play weird games with the mod time of symlinks
2379# (eg FreeBSD returns the mod time of the symlink's containing
2380# directory).
2381if (
2382   am_has_slept=no
2383   for am_try in 1 2; do
2384     echo "timestamp, slept: $am_has_slept" > conftest.file
2385     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2386     if test "$*" = "X"; then
2387	# -L didn't work.
2388	set X `ls -t "$srcdir/configure" conftest.file`
2389     fi
2390     if test "$*" != "X $srcdir/configure conftest.file" \
2391	&& test "$*" != "X conftest.file $srcdir/configure"; then
2392
2393	# If neither matched, then we have a broken ls.  This can happen
2394	# if, for instance, CONFIG_SHELL is bash and it inherits a
2395	# broken ls alias from the environment.  This has actually
2396	# happened.  Such a system could not be considered "sane".
2397	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2398  alias in your environment" "$LINENO" 5
2399     fi
2400     if test "$2" = conftest.file || test $am_try -eq 2; then
2401       break
2402     fi
2403     # Just in case.
2404     sleep 1
2405     am_has_slept=yes
2406   done
2407   test "$2" = conftest.file
2408   )
2409then
2410   # Ok.
2411   :
2412else
2413   as_fn_error $? "newly created file is older than distributed files!
2414Check your system clock" "$LINENO" 5
2415fi
2416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2417$as_echo "yes" >&6; }
2418# If we didn't sleep, we still need to ensure time stamps of config.status and
2419# generated files are strictly newer.
2420am_sleep_pid=
2421if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2422  ( sleep 1 ) &
2423  am_sleep_pid=$!
2424fi
2425
2426rm -f conftest.file
2427
2428test "$program_prefix" != NONE &&
2429  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2430# Use a double $ so make ignores it.
2431test "$program_suffix" != NONE &&
2432  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2433# Double any \ or $.
2434# By default was `s,x,x', remove it if useless.
2435ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2436program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2437
2438# Expand $ac_aux_dir to an absolute path.
2439am_aux_dir=`cd "$ac_aux_dir" && pwd`
2440
2441if test x"${MISSING+set}" != xset; then
2442  case $am_aux_dir in
2443  *\ * | *\	*)
2444    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2445  *)
2446    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2447  esac
2448fi
2449# Use eval to expand $SHELL
2450if eval "$MISSING --is-lightweight"; then
2451  am_missing_run="$MISSING "
2452else
2453  am_missing_run=
2454  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2455$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2456fi
2457
2458if test x"${install_sh+set}" != xset; then
2459  case $am_aux_dir in
2460  *\ * | *\	*)
2461    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2462  *)
2463    install_sh="\${SHELL} $am_aux_dir/install-sh"
2464  esac
2465fi
2466
2467# Installed binaries are usually stripped using 'strip' when the user
2468# run "make install-strip".  However 'strip' might not be the right
2469# tool to use in cross-compilation environments, therefore Automake
2470# will honor the 'STRIP' environment variable to overrule this program.
2471if test "$cross_compiling" != no; then
2472  if test -n "$ac_tool_prefix"; then
2473  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2474set dummy ${ac_tool_prefix}strip; ac_word=$2
2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2476$as_echo_n "checking for $ac_word... " >&6; }
2477if ${ac_cv_prog_STRIP+:} false; then :
2478  $as_echo_n "(cached) " >&6
2479else
2480  if test -n "$STRIP"; then
2481  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2482else
2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484for as_dir in $PATH
2485do
2486  IFS=$as_save_IFS
2487  test -z "$as_dir" && as_dir=.
2488    for ac_exec_ext in '' $ac_executable_extensions; do
2489  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2490    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492    break 2
2493  fi
2494done
2495  done
2496IFS=$as_save_IFS
2497
2498fi
2499fi
2500STRIP=$ac_cv_prog_STRIP
2501if test -n "$STRIP"; then
2502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2503$as_echo "$STRIP" >&6; }
2504else
2505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2506$as_echo "no" >&6; }
2507fi
2508
2509
2510fi
2511if test -z "$ac_cv_prog_STRIP"; then
2512  ac_ct_STRIP=$STRIP
2513  # Extract the first word of "strip", so it can be a program name with args.
2514set dummy strip; ac_word=$2
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516$as_echo_n "checking for $ac_word... " >&6; }
2517if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2518  $as_echo_n "(cached) " >&6
2519else
2520  if test -n "$ac_ct_STRIP"; then
2521  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2522else
2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526  IFS=$as_save_IFS
2527  test -z "$as_dir" && as_dir=.
2528    for ac_exec_ext in '' $ac_executable_extensions; do
2529  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530    ac_cv_prog_ac_ct_STRIP="strip"
2531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532    break 2
2533  fi
2534done
2535  done
2536IFS=$as_save_IFS
2537
2538fi
2539fi
2540ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2541if test -n "$ac_ct_STRIP"; then
2542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2543$as_echo "$ac_ct_STRIP" >&6; }
2544else
2545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546$as_echo "no" >&6; }
2547fi
2548
2549  if test "x$ac_ct_STRIP" = x; then
2550    STRIP=":"
2551  else
2552    case $cross_compiling:$ac_tool_warned in
2553yes:)
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2556ac_tool_warned=yes ;;
2557esac
2558    STRIP=$ac_ct_STRIP
2559  fi
2560else
2561  STRIP="$ac_cv_prog_STRIP"
2562fi
2563
2564fi
2565INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2566
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2568$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2569if test -z "$MKDIR_P"; then
2570  if ${ac_cv_path_mkdir+:} false; then :
2571  $as_echo_n "(cached) " >&6
2572else
2573  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2575do
2576  IFS=$as_save_IFS
2577  test -z "$as_dir" && as_dir=.
2578    for ac_prog in mkdir gmkdir; do
2579	 for ac_exec_ext in '' $ac_executable_extensions; do
2580	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2581	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2582	     'mkdir (GNU coreutils) '* | \
2583	     'mkdir (coreutils) '* | \
2584	     'mkdir (fileutils) '4.1*)
2585	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2586	       break 3;;
2587	   esac
2588	 done
2589       done
2590  done
2591IFS=$as_save_IFS
2592
2593fi
2594
2595  test -d ./--version && rmdir ./--version
2596  if test "${ac_cv_path_mkdir+set}" = set; then
2597    MKDIR_P="$ac_cv_path_mkdir -p"
2598  else
2599    # As a last resort, use the slow shell script.  Don't cache a
2600    # value for MKDIR_P within a source directory, because that will
2601    # break other packages using the cache if that directory is
2602    # removed, or if the value is a relative name.
2603    MKDIR_P="$ac_install_sh -d"
2604  fi
2605fi
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2607$as_echo "$MKDIR_P" >&6; }
2608
2609for ac_prog in gawk mawk nawk awk
2610do
2611  # Extract the first word of "$ac_prog", so it can be a program name with args.
2612set dummy $ac_prog; ac_word=$2
2613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614$as_echo_n "checking for $ac_word... " >&6; }
2615if ${ac_cv_prog_AWK+:} false; then :
2616  $as_echo_n "(cached) " >&6
2617else
2618  if test -n "$AWK"; then
2619  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2620else
2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622for as_dir in $PATH
2623do
2624  IFS=$as_save_IFS
2625  test -z "$as_dir" && as_dir=.
2626    for ac_exec_ext in '' $ac_executable_extensions; do
2627  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628    ac_cv_prog_AWK="$ac_prog"
2629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630    break 2
2631  fi
2632done
2633  done
2634IFS=$as_save_IFS
2635
2636fi
2637fi
2638AWK=$ac_cv_prog_AWK
2639if test -n "$AWK"; then
2640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2641$as_echo "$AWK" >&6; }
2642else
2643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644$as_echo "no" >&6; }
2645fi
2646
2647
2648  test -n "$AWK" && break
2649done
2650
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2652$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2653set x ${MAKE-make}
2654ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2655if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2656  $as_echo_n "(cached) " >&6
2657else
2658  cat >conftest.make <<\_ACEOF
2659SHELL = /bin/sh
2660all:
2661	@echo '@@@%%%=$(MAKE)=@@@%%%'
2662_ACEOF
2663# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2664case `${MAKE-make} -f conftest.make 2>/dev/null` in
2665  *@@@%%%=?*=@@@%%%*)
2666    eval ac_cv_prog_make_${ac_make}_set=yes;;
2667  *)
2668    eval ac_cv_prog_make_${ac_make}_set=no;;
2669esac
2670rm -f conftest.make
2671fi
2672if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2674$as_echo "yes" >&6; }
2675  SET_MAKE=
2676else
2677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678$as_echo "no" >&6; }
2679  SET_MAKE="MAKE=${MAKE-make}"
2680fi
2681
2682rm -rf .tst 2>/dev/null
2683mkdir .tst 2>/dev/null
2684if test -d .tst; then
2685  am__leading_dot=.
2686else
2687  am__leading_dot=_
2688fi
2689rmdir .tst 2>/dev/null
2690
2691# Check whether --enable-silent-rules was given.
2692if test "${enable_silent_rules+set}" = set; then :
2693  enableval=$enable_silent_rules;
2694fi
2695
2696case $enable_silent_rules in # (((
2697  yes) AM_DEFAULT_VERBOSITY=0;;
2698   no) AM_DEFAULT_VERBOSITY=1;;
2699    *) AM_DEFAULT_VERBOSITY=1;;
2700esac
2701am_make=${MAKE-make}
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2703$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2704if ${am_cv_make_support_nested_variables+:} false; then :
2705  $as_echo_n "(cached) " >&6
2706else
2707  if $as_echo 'TRUE=$(BAR$(V))
2708BAR0=false
2709BAR1=true
2710V=1
2711am__doit:
2712	@$(TRUE)
2713.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2714  am_cv_make_support_nested_variables=yes
2715else
2716  am_cv_make_support_nested_variables=no
2717fi
2718fi
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2720$as_echo "$am_cv_make_support_nested_variables" >&6; }
2721if test $am_cv_make_support_nested_variables = yes; then
2722    AM_V='$(V)'
2723  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2724else
2725  AM_V=$AM_DEFAULT_VERBOSITY
2726  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2727fi
2728AM_BACKSLASH='\'
2729
2730if test "`cd $srcdir && pwd`" != "`pwd`"; then
2731  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2732  # is not polluted with repeated "-I."
2733  am__isrc=' -I$(srcdir)'
2734  # test to see if srcdir already configured
2735  if test -f $srcdir/config.status; then
2736    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2737  fi
2738fi
2739
2740# test whether we have cygpath
2741if test -z "$CYGPATH_W"; then
2742  if (cygpath --version) >/dev/null 2>/dev/null; then
2743    CYGPATH_W='cygpath -w'
2744  else
2745    CYGPATH_W=echo
2746  fi
2747fi
2748
2749
2750# Define the identity of the package.
2751 PACKAGE='libXft'
2752 VERSION='2.3.3'
2753
2754
2755cat >>confdefs.h <<_ACEOF
2756#define PACKAGE "$PACKAGE"
2757_ACEOF
2758
2759
2760cat >>confdefs.h <<_ACEOF
2761#define VERSION "$VERSION"
2762_ACEOF
2763
2764# Some tools Automake needs.
2765
2766ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2767
2768
2769AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2770
2771
2772AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2773
2774
2775AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2776
2777
2778MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2779
2780# For better backward compatibility.  To be removed once Automake 1.9.x
2781# dies out for good.  For more background, see:
2782# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2783# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2784mkdir_p='$(MKDIR_P)'
2785
2786# We need awk for the "check" target (and possibly the TAP driver).  The
2787# system "awk" is bad on some platforms.
2788# Always define AMTAR for backward compatibility.  Yes, it's still used
2789# in the wild :-(  We should find a proper way to deprecate it ...
2790AMTAR='$${TAR-tar}'
2791
2792
2793# We'll loop over all known methods to create a tar archive until one works.
2794_am_tools='gnutar  pax cpio none'
2795
2796am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2797
2798
2799
2800
2801
2802
2803# POSIX will say in a future version that running "rm -f" with no argument
2804# is OK; and we want to be able to make that assumption in our Makefile
2805# recipes.  So use an aggressive probe to check that the usage we want is
2806# actually supported "in the wild" to an acceptable degree.
2807# See automake bug#10828.
2808# To make any issue more visible, cause the running configure to be aborted
2809# by default if the 'rm' program in use doesn't match our expectations; the
2810# user can still override this though.
2811if rm -f && rm -fr && rm -rf; then : OK; else
2812  cat >&2 <<'END'
2813Oops!
2814
2815Your 'rm' program seems unable to run without file operands specified
2816on the command line, even when the '-f' option is present.  This is contrary
2817to the behaviour of most rm programs out there, and not conforming with
2818the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2819
2820Please tell bug-automake@gnu.org about your system, including the value
2821of your $PATH and any error possibly output before this message.  This
2822can help us improve future automake versions.
2823
2824END
2825  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2826    echo 'Configuration will proceed anyway, since you have set the' >&2
2827    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2828    echo >&2
2829  else
2830    cat >&2 <<'END'
2831Aborting the configuration process, to ensure you take notice of the issue.
2832
2833You can download and install GNU coreutils to get an 'rm' implementation
2834that behaves properly: <http://www.gnu.org/software/coreutils/>.
2835
2836If you want to complete the configuration process using your problematic
2837'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2838to "yes", and re-run configure.
2839
2840END
2841    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2842  fi
2843fi
2844
2845
2846# Initialize libtool
2847case `pwd` in
2848  *\ * | *\	*)
2849    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2850$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2851esac
2852
2853
2854
2855macro_version='2.4.6'
2856macro_revision='2.4.6'
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870ltmain=$ac_aux_dir/ltmain.sh
2871
2872# Make sure we can run config.sub.
2873$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2874  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2875
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2877$as_echo_n "checking build system type... " >&6; }
2878if ${ac_cv_build+:} false; then :
2879  $as_echo_n "(cached) " >&6
2880else
2881  ac_build_alias=$build_alias
2882test "x$ac_build_alias" = x &&
2883  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2884test "x$ac_build_alias" = x &&
2885  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2886ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2887  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2888
2889fi
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2891$as_echo "$ac_cv_build" >&6; }
2892case $ac_cv_build in
2893*-*-*) ;;
2894*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2895esac
2896build=$ac_cv_build
2897ac_save_IFS=$IFS; IFS='-'
2898set x $ac_cv_build
2899shift
2900build_cpu=$1
2901build_vendor=$2
2902shift; shift
2903# Remember, the first character of IFS is used to create $*,
2904# except with old shells:
2905build_os=$*
2906IFS=$ac_save_IFS
2907case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2908
2909
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2911$as_echo_n "checking host system type... " >&6; }
2912if ${ac_cv_host+:} false; then :
2913  $as_echo_n "(cached) " >&6
2914else
2915  if test "x$host_alias" = x; then
2916  ac_cv_host=$ac_cv_build
2917else
2918  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2919    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2920fi
2921
2922fi
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2924$as_echo "$ac_cv_host" >&6; }
2925case $ac_cv_host in
2926*-*-*) ;;
2927*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2928esac
2929host=$ac_cv_host
2930ac_save_IFS=$IFS; IFS='-'
2931set x $ac_cv_host
2932shift
2933host_cpu=$1
2934host_vendor=$2
2935shift; shift
2936# Remember, the first character of IFS is used to create $*,
2937# except with old shells:
2938host_os=$*
2939IFS=$ac_save_IFS
2940case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2941
2942
2943# Backslashify metacharacters that are still active within
2944# double-quoted strings.
2945sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2946
2947# Same as above, but do not quote variable references.
2948double_quote_subst='s/\(["`\\]\)/\\\1/g'
2949
2950# Sed substitution to delay expansion of an escaped shell variable in a
2951# double_quote_subst'ed string.
2952delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2953
2954# Sed substitution to delay expansion of an escaped single quote.
2955delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2956
2957# Sed substitution to avoid accidental globbing in evaled expressions
2958no_glob_subst='s/\*/\\\*/g'
2959
2960ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2961ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2962ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2963
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2965$as_echo_n "checking how to print strings... " >&6; }
2966# Test print first, because it will be a builtin if present.
2967if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2968   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2969  ECHO='print -r --'
2970elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2971  ECHO='printf %s\n'
2972else
2973  # Use this function as a fallback that always works.
2974  func_fallback_echo ()
2975  {
2976    eval 'cat <<_LTECHO_EOF
2977$1
2978_LTECHO_EOF'
2979  }
2980  ECHO='func_fallback_echo'
2981fi
2982
2983# func_echo_all arg...
2984# Invoke $ECHO with all args, space-separated.
2985func_echo_all ()
2986{
2987    $ECHO ""
2988}
2989
2990case $ECHO in
2991  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2992$as_echo "printf" >&6; } ;;
2993  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2994$as_echo "print -r" >&6; } ;;
2995  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2996$as_echo "cat" >&6; } ;;
2997esac
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012DEPDIR="${am__leading_dot}deps"
3013
3014ac_config_commands="$ac_config_commands depfiles"
3015
3016
3017am_make=${MAKE-make}
3018cat > confinc << 'END'
3019am__doit:
3020	@echo this is the am__doit target
3021.PHONY: am__doit
3022END
3023# If we don't find an include directive, just comment out the code.
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3025$as_echo_n "checking for style of include used by $am_make... " >&6; }
3026am__include="#"
3027am__quote=
3028_am_result=none
3029# First try GNU make style include.
3030echo "include confinc" > confmf
3031# Ignore all kinds of additional output from 'make'.
3032case `$am_make -s -f confmf 2> /dev/null` in #(
3033*the\ am__doit\ target*)
3034  am__include=include
3035  am__quote=
3036  _am_result=GNU
3037  ;;
3038esac
3039# Now try BSD make style include.
3040if test "$am__include" = "#"; then
3041   echo '.include "confinc"' > confmf
3042   case `$am_make -s -f confmf 2> /dev/null` in #(
3043   *the\ am__doit\ target*)
3044     am__include=.include
3045     am__quote="\""
3046     _am_result=BSD
3047     ;;
3048   esac
3049fi
3050
3051
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3053$as_echo "$_am_result" >&6; }
3054rm -f confinc confmf
3055
3056# Check whether --enable-dependency-tracking was given.
3057if test "${enable_dependency_tracking+set}" = set; then :
3058  enableval=$enable_dependency_tracking;
3059fi
3060
3061if test "x$enable_dependency_tracking" != xno; then
3062  am_depcomp="$ac_aux_dir/depcomp"
3063  AMDEPBACKSLASH='\'
3064  am__nodep='_no'
3065fi
3066 if test "x$enable_dependency_tracking" != xno; then
3067  AMDEP_TRUE=
3068  AMDEP_FALSE='#'
3069else
3070  AMDEP_TRUE='#'
3071  AMDEP_FALSE=
3072fi
3073
3074
3075ac_ext=c
3076ac_cpp='$CPP $CPPFLAGS'
3077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080if test -n "$ac_tool_prefix"; then
3081  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3082set dummy ${ac_tool_prefix}gcc; ac_word=$2
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084$as_echo_n "checking for $ac_word... " >&6; }
3085if ${ac_cv_prog_CC+:} false; then :
3086  $as_echo_n "(cached) " >&6
3087else
3088  if test -n "$CC"; then
3089  ac_cv_prog_CC="$CC" # Let the user override the test.
3090else
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094  IFS=$as_save_IFS
3095  test -z "$as_dir" && as_dir=.
3096    for ac_exec_ext in '' $ac_executable_extensions; do
3097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100    break 2
3101  fi
3102done
3103  done
3104IFS=$as_save_IFS
3105
3106fi
3107fi
3108CC=$ac_cv_prog_CC
3109if test -n "$CC"; then
3110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111$as_echo "$CC" >&6; }
3112else
3113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114$as_echo "no" >&6; }
3115fi
3116
3117
3118fi
3119if test -z "$ac_cv_prog_CC"; then
3120  ac_ct_CC=$CC
3121  # Extract the first word of "gcc", so it can be a program name with args.
3122set dummy gcc; ac_word=$2
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124$as_echo_n "checking for $ac_word... " >&6; }
3125if ${ac_cv_prog_ac_ct_CC+:} false; then :
3126  $as_echo_n "(cached) " >&6
3127else
3128  if test -n "$ac_ct_CC"; then
3129  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134  IFS=$as_save_IFS
3135  test -z "$as_dir" && as_dir=.
3136    for ac_exec_ext in '' $ac_executable_extensions; do
3137  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138    ac_cv_prog_ac_ct_CC="gcc"
3139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140    break 2
3141  fi
3142done
3143  done
3144IFS=$as_save_IFS
3145
3146fi
3147fi
3148ac_ct_CC=$ac_cv_prog_ac_ct_CC
3149if test -n "$ac_ct_CC"; then
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3151$as_echo "$ac_ct_CC" >&6; }
3152else
3153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154$as_echo "no" >&6; }
3155fi
3156
3157  if test "x$ac_ct_CC" = x; then
3158    CC=""
3159  else
3160    case $cross_compiling:$ac_tool_warned in
3161yes:)
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3164ac_tool_warned=yes ;;
3165esac
3166    CC=$ac_ct_CC
3167  fi
3168else
3169  CC="$ac_cv_prog_CC"
3170fi
3171
3172if test -z "$CC"; then
3173          if test -n "$ac_tool_prefix"; then
3174    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3175set dummy ${ac_tool_prefix}cc; ac_word=$2
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177$as_echo_n "checking for $ac_word... " >&6; }
3178if ${ac_cv_prog_CC+:} false; then :
3179  $as_echo_n "(cached) " >&6
3180else
3181  if test -n "$CC"; then
3182  ac_cv_prog_CC="$CC" # Let the user override the test.
3183else
3184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185for as_dir in $PATH
3186do
3187  IFS=$as_save_IFS
3188  test -z "$as_dir" && as_dir=.
3189    for ac_exec_ext in '' $ac_executable_extensions; do
3190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191    ac_cv_prog_CC="${ac_tool_prefix}cc"
3192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193    break 2
3194  fi
3195done
3196  done
3197IFS=$as_save_IFS
3198
3199fi
3200fi
3201CC=$ac_cv_prog_CC
3202if test -n "$CC"; then
3203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204$as_echo "$CC" >&6; }
3205else
3206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207$as_echo "no" >&6; }
3208fi
3209
3210
3211  fi
3212fi
3213if test -z "$CC"; then
3214  # Extract the first word of "cc", so it can be a program name with args.
3215set dummy cc; ac_word=$2
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217$as_echo_n "checking for $ac_word... " >&6; }
3218if ${ac_cv_prog_CC+:} false; then :
3219  $as_echo_n "(cached) " >&6
3220else
3221  if test -n "$CC"; then
3222  ac_cv_prog_CC="$CC" # Let the user override the test.
3223else
3224  ac_prog_rejected=no
3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228  IFS=$as_save_IFS
3229  test -z "$as_dir" && as_dir=.
3230    for ac_exec_ext in '' $ac_executable_extensions; do
3231  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3233       ac_prog_rejected=yes
3234       continue
3235     fi
3236    ac_cv_prog_CC="cc"
3237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238    break 2
3239  fi
3240done
3241  done
3242IFS=$as_save_IFS
3243
3244if test $ac_prog_rejected = yes; then
3245  # We found a bogon in the path, so make sure we never use it.
3246  set dummy $ac_cv_prog_CC
3247  shift
3248  if test $# != 0; then
3249    # We chose a different compiler from the bogus one.
3250    # However, it has the same basename, so the bogon will be chosen
3251    # first if we set CC to just the basename; use the full file name.
3252    shift
3253    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3254  fi
3255fi
3256fi
3257fi
3258CC=$ac_cv_prog_CC
3259if test -n "$CC"; then
3260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261$as_echo "$CC" >&6; }
3262else
3263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264$as_echo "no" >&6; }
3265fi
3266
3267
3268fi
3269if test -z "$CC"; then
3270  if test -n "$ac_tool_prefix"; then
3271  for ac_prog in cl.exe
3272  do
3273    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3274set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276$as_echo_n "checking for $ac_word... " >&6; }
3277if ${ac_cv_prog_CC+:} false; then :
3278  $as_echo_n "(cached) " >&6
3279else
3280  if test -n "$CC"; then
3281  ac_cv_prog_CC="$CC" # Let the user override the test.
3282else
3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286  IFS=$as_save_IFS
3287  test -z "$as_dir" && as_dir=.
3288    for ac_exec_ext in '' $ac_executable_extensions; do
3289  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292    break 2
3293  fi
3294done
3295  done
3296IFS=$as_save_IFS
3297
3298fi
3299fi
3300CC=$ac_cv_prog_CC
3301if test -n "$CC"; then
3302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303$as_echo "$CC" >&6; }
3304else
3305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306$as_echo "no" >&6; }
3307fi
3308
3309
3310    test -n "$CC" && break
3311  done
3312fi
3313if test -z "$CC"; then
3314  ac_ct_CC=$CC
3315  for ac_prog in cl.exe
3316do
3317  # Extract the first word of "$ac_prog", so it can be a program name with args.
3318set dummy $ac_prog; ac_word=$2
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320$as_echo_n "checking for $ac_word... " >&6; }
3321if ${ac_cv_prog_ac_ct_CC+:} false; then :
3322  $as_echo_n "(cached) " >&6
3323else
3324  if test -n "$ac_ct_CC"; then
3325  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3326else
3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328for as_dir in $PATH
3329do
3330  IFS=$as_save_IFS
3331  test -z "$as_dir" && as_dir=.
3332    for ac_exec_ext in '' $ac_executable_extensions; do
3333  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334    ac_cv_prog_ac_ct_CC="$ac_prog"
3335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336    break 2
3337  fi
3338done
3339  done
3340IFS=$as_save_IFS
3341
3342fi
3343fi
3344ac_ct_CC=$ac_cv_prog_ac_ct_CC
3345if test -n "$ac_ct_CC"; then
3346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3347$as_echo "$ac_ct_CC" >&6; }
3348else
3349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350$as_echo "no" >&6; }
3351fi
3352
3353
3354  test -n "$ac_ct_CC" && break
3355done
3356
3357  if test "x$ac_ct_CC" = x; then
3358    CC=""
3359  else
3360    case $cross_compiling:$ac_tool_warned in
3361yes:)
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3364ac_tool_warned=yes ;;
3365esac
3366    CC=$ac_ct_CC
3367  fi
3368fi
3369
3370fi
3371
3372
3373test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375as_fn_error $? "no acceptable C compiler found in \$PATH
3376See \`config.log' for more details" "$LINENO" 5; }
3377
3378# Provide some information about the compiler.
3379$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3380set X $ac_compile
3381ac_compiler=$2
3382for ac_option in --version -v -V -qversion; do
3383  { { ac_try="$ac_compiler $ac_option >&5"
3384case "(($ac_try" in
3385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386  *) ac_try_echo=$ac_try;;
3387esac
3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389$as_echo "$ac_try_echo"; } >&5
3390  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3391  ac_status=$?
3392  if test -s conftest.err; then
3393    sed '10a\
3394... rest of stderr output deleted ...
3395         10q' conftest.err >conftest.er1
3396    cat conftest.er1 >&5
3397  fi
3398  rm -f conftest.er1 conftest.err
3399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400  test $ac_status = 0; }
3401done
3402
3403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404/* end confdefs.h.  */
3405
3406int
3407main ()
3408{
3409
3410  ;
3411  return 0;
3412}
3413_ACEOF
3414ac_clean_files_save=$ac_clean_files
3415ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3416# Try to create an executable without -o first, disregard a.out.
3417# It will help us diagnose broken compilers, and finding out an intuition
3418# of exeext.
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3420$as_echo_n "checking whether the C compiler works... " >&6; }
3421ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3422
3423# The possible output files:
3424ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3425
3426ac_rmfiles=
3427for ac_file in $ac_files
3428do
3429  case $ac_file in
3430    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3431    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3432  esac
3433done
3434rm -f $ac_rmfiles
3435
3436if { { ac_try="$ac_link_default"
3437case "(($ac_try" in
3438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439  *) ac_try_echo=$ac_try;;
3440esac
3441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442$as_echo "$ac_try_echo"; } >&5
3443  (eval "$ac_link_default") 2>&5
3444  ac_status=$?
3445  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446  test $ac_status = 0; }; then :
3447  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3448# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3449# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3450# so that the user can short-circuit this test for compilers unknown to
3451# Autoconf.
3452for ac_file in $ac_files ''
3453do
3454  test -f "$ac_file" || continue
3455  case $ac_file in
3456    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3457	;;
3458    [ab].out )
3459	# We found the default executable, but exeext='' is most
3460	# certainly right.
3461	break;;
3462    *.* )
3463	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3464	then :; else
3465	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3466	fi
3467	# We set ac_cv_exeext here because the later test for it is not
3468	# safe: cross compilers may not add the suffix if given an `-o'
3469	# argument, so we may need to know it at that point already.
3470	# Even if this section looks crufty: it has the advantage of
3471	# actually working.
3472	break;;
3473    * )
3474	break;;
3475  esac
3476done
3477test "$ac_cv_exeext" = no && ac_cv_exeext=
3478
3479else
3480  ac_file=''
3481fi
3482if test -z "$ac_file"; then :
3483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484$as_echo "no" >&6; }
3485$as_echo "$as_me: failed program was:" >&5
3486sed 's/^/| /' conftest.$ac_ext >&5
3487
3488{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490as_fn_error 77 "C compiler cannot create executables
3491See \`config.log' for more details" "$LINENO" 5; }
3492else
3493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3494$as_echo "yes" >&6; }
3495fi
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3497$as_echo_n "checking for C compiler default output file name... " >&6; }
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3499$as_echo "$ac_file" >&6; }
3500ac_exeext=$ac_cv_exeext
3501
3502rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3503ac_clean_files=$ac_clean_files_save
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3505$as_echo_n "checking for suffix of executables... " >&6; }
3506if { { ac_try="$ac_link"
3507case "(($ac_try" in
3508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509  *) ac_try_echo=$ac_try;;
3510esac
3511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512$as_echo "$ac_try_echo"; } >&5
3513  (eval "$ac_link") 2>&5
3514  ac_status=$?
3515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516  test $ac_status = 0; }; then :
3517  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3518# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3519# work properly (i.e., refer to `conftest.exe'), while it won't with
3520# `rm'.
3521for ac_file in conftest.exe conftest conftest.*; do
3522  test -f "$ac_file" || continue
3523  case $ac_file in
3524    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3525    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3526	  break;;
3527    * ) break;;
3528  esac
3529done
3530else
3531  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3534See \`config.log' for more details" "$LINENO" 5; }
3535fi
3536rm -f conftest conftest$ac_cv_exeext
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3538$as_echo "$ac_cv_exeext" >&6; }
3539
3540rm -f conftest.$ac_ext
3541EXEEXT=$ac_cv_exeext
3542ac_exeext=$EXEEXT
3543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544/* end confdefs.h.  */
3545#include <stdio.h>
3546int
3547main ()
3548{
3549FILE *f = fopen ("conftest.out", "w");
3550 return ferror (f) || fclose (f) != 0;
3551
3552  ;
3553  return 0;
3554}
3555_ACEOF
3556ac_clean_files="$ac_clean_files conftest.out"
3557# Check that the compiler produces executables we can run.  If not, either
3558# the compiler is broken, or we cross compile.
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3560$as_echo_n "checking whether we are cross compiling... " >&6; }
3561if test "$cross_compiling" != yes; then
3562  { { ac_try="$ac_link"
3563case "(($ac_try" in
3564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565  *) ac_try_echo=$ac_try;;
3566esac
3567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568$as_echo "$ac_try_echo"; } >&5
3569  (eval "$ac_link") 2>&5
3570  ac_status=$?
3571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572  test $ac_status = 0; }
3573  if { ac_try='./conftest$ac_cv_exeext'
3574  { { case "(($ac_try" in
3575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576  *) ac_try_echo=$ac_try;;
3577esac
3578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579$as_echo "$ac_try_echo"; } >&5
3580  (eval "$ac_try") 2>&5
3581  ac_status=$?
3582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583  test $ac_status = 0; }; }; then
3584    cross_compiling=no
3585  else
3586    if test "$cross_compiling" = maybe; then
3587	cross_compiling=yes
3588    else
3589	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591as_fn_error $? "cannot run C compiled programs.
3592If you meant to cross compile, use \`--host'.
3593See \`config.log' for more details" "$LINENO" 5; }
3594    fi
3595  fi
3596fi
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3598$as_echo "$cross_compiling" >&6; }
3599
3600rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3601ac_clean_files=$ac_clean_files_save
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3603$as_echo_n "checking for suffix of object files... " >&6; }
3604if ${ac_cv_objext+:} false; then :
3605  $as_echo_n "(cached) " >&6
3606else
3607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608/* end confdefs.h.  */
3609
3610int
3611main ()
3612{
3613
3614  ;
3615  return 0;
3616}
3617_ACEOF
3618rm -f conftest.o conftest.obj
3619if { { ac_try="$ac_compile"
3620case "(($ac_try" in
3621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622  *) ac_try_echo=$ac_try;;
3623esac
3624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625$as_echo "$ac_try_echo"; } >&5
3626  (eval "$ac_compile") 2>&5
3627  ac_status=$?
3628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629  test $ac_status = 0; }; then :
3630  for ac_file in conftest.o conftest.obj conftest.*; do
3631  test -f "$ac_file" || continue;
3632  case $ac_file in
3633    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3634    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3635       break;;
3636  esac
3637done
3638else
3639  $as_echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644as_fn_error $? "cannot compute suffix of object files: cannot compile
3645See \`config.log' for more details" "$LINENO" 5; }
3646fi
3647rm -f conftest.$ac_cv_objext conftest.$ac_ext
3648fi
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3650$as_echo "$ac_cv_objext" >&6; }
3651OBJEXT=$ac_cv_objext
3652ac_objext=$OBJEXT
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3654$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3655if ${ac_cv_c_compiler_gnu+:} false; then :
3656  $as_echo_n "(cached) " >&6
3657else
3658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659/* end confdefs.h.  */
3660
3661int
3662main ()
3663{
3664#ifndef __GNUC__
3665       choke me
3666#endif
3667
3668  ;
3669  return 0;
3670}
3671_ACEOF
3672if ac_fn_c_try_compile "$LINENO"; then :
3673  ac_compiler_gnu=yes
3674else
3675  ac_compiler_gnu=no
3676fi
3677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678ac_cv_c_compiler_gnu=$ac_compiler_gnu
3679
3680fi
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3682$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3683if test $ac_compiler_gnu = yes; then
3684  GCC=yes
3685else
3686  GCC=
3687fi
3688ac_test_CFLAGS=${CFLAGS+set}
3689ac_save_CFLAGS=$CFLAGS
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3691$as_echo_n "checking whether $CC accepts -g... " >&6; }
3692if ${ac_cv_prog_cc_g+:} false; then :
3693  $as_echo_n "(cached) " >&6
3694else
3695  ac_save_c_werror_flag=$ac_c_werror_flag
3696   ac_c_werror_flag=yes
3697   ac_cv_prog_cc_g=no
3698   CFLAGS="-g"
3699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700/* end confdefs.h.  */
3701
3702int
3703main ()
3704{
3705
3706  ;
3707  return 0;
3708}
3709_ACEOF
3710if ac_fn_c_try_compile "$LINENO"; then :
3711  ac_cv_prog_cc_g=yes
3712else
3713  CFLAGS=""
3714      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715/* end confdefs.h.  */
3716
3717int
3718main ()
3719{
3720
3721  ;
3722  return 0;
3723}
3724_ACEOF
3725if ac_fn_c_try_compile "$LINENO"; then :
3726
3727else
3728  ac_c_werror_flag=$ac_save_c_werror_flag
3729	 CFLAGS="-g"
3730	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731/* end confdefs.h.  */
3732
3733int
3734main ()
3735{
3736
3737  ;
3738  return 0;
3739}
3740_ACEOF
3741if ac_fn_c_try_compile "$LINENO"; then :
3742  ac_cv_prog_cc_g=yes
3743fi
3744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745fi
3746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747fi
3748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749   ac_c_werror_flag=$ac_save_c_werror_flag
3750fi
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3752$as_echo "$ac_cv_prog_cc_g" >&6; }
3753if test "$ac_test_CFLAGS" = set; then
3754  CFLAGS=$ac_save_CFLAGS
3755elif test $ac_cv_prog_cc_g = yes; then
3756  if test "$GCC" = yes; then
3757    CFLAGS="-g -O2"
3758  else
3759    CFLAGS="-g"
3760  fi
3761else
3762  if test "$GCC" = yes; then
3763    CFLAGS="-O2"
3764  else
3765    CFLAGS=
3766  fi
3767fi
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3769$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3770if ${ac_cv_prog_cc_c89+:} false; then :
3771  $as_echo_n "(cached) " >&6
3772else
3773  ac_cv_prog_cc_c89=no
3774ac_save_CC=$CC
3775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776/* end confdefs.h.  */
3777#include <stdarg.h>
3778#include <stdio.h>
3779struct stat;
3780/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3781struct buf { int x; };
3782FILE * (*rcsopen) (struct buf *, struct stat *, int);
3783static char *e (p, i)
3784     char **p;
3785     int i;
3786{
3787  return p[i];
3788}
3789static char *f (char * (*g) (char **, int), char **p, ...)
3790{
3791  char *s;
3792  va_list v;
3793  va_start (v,p);
3794  s = g (p, va_arg (v,int));
3795  va_end (v);
3796  return s;
3797}
3798
3799/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3800   function prototypes and stuff, but not '\xHH' hex character constants.
3801   These don't provoke an error unfortunately, instead are silently treated
3802   as 'x'.  The following induces an error, until -std is added to get
3803   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3804   array size at least.  It's necessary to write '\x00'==0 to get something
3805   that's true only with -std.  */
3806int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3807
3808/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3809   inside strings and character constants.  */
3810#define FOO(x) 'x'
3811int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3812
3813int test (int i, double x);
3814struct s1 {int (*f) (int a);};
3815struct s2 {int (*f) (double a);};
3816int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3817int argc;
3818char **argv;
3819int
3820main ()
3821{
3822return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3823  ;
3824  return 0;
3825}
3826_ACEOF
3827for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3828	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3829do
3830  CC="$ac_save_CC $ac_arg"
3831  if ac_fn_c_try_compile "$LINENO"; then :
3832  ac_cv_prog_cc_c89=$ac_arg
3833fi
3834rm -f core conftest.err conftest.$ac_objext
3835  test "x$ac_cv_prog_cc_c89" != "xno" && break
3836done
3837rm -f conftest.$ac_ext
3838CC=$ac_save_CC
3839
3840fi
3841# AC_CACHE_VAL
3842case "x$ac_cv_prog_cc_c89" in
3843  x)
3844    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3845$as_echo "none needed" >&6; } ;;
3846  xno)
3847    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3848$as_echo "unsupported" >&6; } ;;
3849  *)
3850    CC="$CC $ac_cv_prog_cc_c89"
3851    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3852$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3853esac
3854if test "x$ac_cv_prog_cc_c89" != xno; then :
3855
3856fi
3857
3858ac_ext=c
3859ac_cpp='$CPP $CPPFLAGS'
3860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863
3864ac_ext=c
3865ac_cpp='$CPP $CPPFLAGS'
3866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3870$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3871if ${am_cv_prog_cc_c_o+:} false; then :
3872  $as_echo_n "(cached) " >&6
3873else
3874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875/* end confdefs.h.  */
3876
3877int
3878main ()
3879{
3880
3881  ;
3882  return 0;
3883}
3884_ACEOF
3885  # Make sure it works both with $CC and with simple cc.
3886  # Following AC_PROG_CC_C_O, we do the test twice because some
3887  # compilers refuse to overwrite an existing .o file with -o,
3888  # though they will create one.
3889  am_cv_prog_cc_c_o=yes
3890  for am_i in 1 2; do
3891    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3892   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3893   ac_status=$?
3894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895   (exit $ac_status); } \
3896         && test -f conftest2.$ac_objext; then
3897      : OK
3898    else
3899      am_cv_prog_cc_c_o=no
3900      break
3901    fi
3902  done
3903  rm -f core conftest*
3904  unset am_i
3905fi
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3907$as_echo "$am_cv_prog_cc_c_o" >&6; }
3908if test "$am_cv_prog_cc_c_o" != yes; then
3909   # Losing compiler, so override with the script.
3910   # FIXME: It is wrong to rewrite CC.
3911   # But if we don't then we get into trouble of one sort or another.
3912   # A longer-term fix would be to have automake use am__CC in this case,
3913   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3914   CC="$am_aux_dir/compile $CC"
3915fi
3916ac_ext=c
3917ac_cpp='$CPP $CPPFLAGS'
3918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921
3922
3923depcc="$CC"   am_compiler_list=
3924
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3926$as_echo_n "checking dependency style of $depcc... " >&6; }
3927if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3928  $as_echo_n "(cached) " >&6
3929else
3930  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3931  # We make a subdir and do the tests there.  Otherwise we can end up
3932  # making bogus files that we don't know about and never remove.  For
3933  # instance it was reported that on HP-UX the gcc test will end up
3934  # making a dummy file named 'D' -- because '-MD' means "put the output
3935  # in D".
3936  rm -rf conftest.dir
3937  mkdir conftest.dir
3938  # Copy depcomp to subdir because otherwise we won't find it if we're
3939  # using a relative directory.
3940  cp "$am_depcomp" conftest.dir
3941  cd conftest.dir
3942  # We will build objects and dependencies in a subdirectory because
3943  # it helps to detect inapplicable dependency modes.  For instance
3944  # both Tru64's cc and ICC support -MD to output dependencies as a
3945  # side effect of compilation, but ICC will put the dependencies in
3946  # the current directory while Tru64 will put them in the object
3947  # directory.
3948  mkdir sub
3949
3950  am_cv_CC_dependencies_compiler_type=none
3951  if test "$am_compiler_list" = ""; then
3952     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3953  fi
3954  am__universal=false
3955  case " $depcc " in #(
3956     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3957     esac
3958
3959  for depmode in $am_compiler_list; do
3960    # Setup a source with many dependencies, because some compilers
3961    # like to wrap large dependency lists on column 80 (with \), and
3962    # we should not choose a depcomp mode which is confused by this.
3963    #
3964    # We need to recreate these files for each test, as the compiler may
3965    # overwrite some of them when testing with obscure command lines.
3966    # This happens at least with the AIX C compiler.
3967    : > sub/conftest.c
3968    for i in 1 2 3 4 5 6; do
3969      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3970      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3971      # Solaris 10 /bin/sh.
3972      echo '/* dummy */' > sub/conftst$i.h
3973    done
3974    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3975
3976    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3977    # mode.  It turns out that the SunPro C++ compiler does not properly
3978    # handle '-M -o', and we need to detect this.  Also, some Intel
3979    # versions had trouble with output in subdirs.
3980    am__obj=sub/conftest.${OBJEXT-o}
3981    am__minus_obj="-o $am__obj"
3982    case $depmode in
3983    gcc)
3984      # This depmode causes a compiler race in universal mode.
3985      test "$am__universal" = false || continue
3986      ;;
3987    nosideeffect)
3988      # After this tag, mechanisms are not by side-effect, so they'll
3989      # only be used when explicitly requested.
3990      if test "x$enable_dependency_tracking" = xyes; then
3991	continue
3992      else
3993	break
3994      fi
3995      ;;
3996    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3997      # This compiler won't grok '-c -o', but also, the minuso test has
3998      # not run yet.  These depmodes are late enough in the game, and
3999      # so weak that their functioning should not be impacted.
4000      am__obj=conftest.${OBJEXT-o}
4001      am__minus_obj=
4002      ;;
4003    none) break ;;
4004    esac
4005    if depmode=$depmode \
4006       source=sub/conftest.c object=$am__obj \
4007       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4008       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4009         >/dev/null 2>conftest.err &&
4010       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4011       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4012       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4013       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4014      # icc doesn't choke on unknown options, it will just issue warnings
4015      # or remarks (even with -Werror).  So we grep stderr for any message
4016      # that says an option was ignored or not supported.
4017      # When given -MP, icc 7.0 and 7.1 complain thusly:
4018      #   icc: Command line warning: ignoring option '-M'; no argument required
4019      # The diagnosis changed in icc 8.0:
4020      #   icc: Command line remark: option '-MP' not supported
4021      if (grep 'ignoring option' conftest.err ||
4022          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4023        am_cv_CC_dependencies_compiler_type=$depmode
4024        break
4025      fi
4026    fi
4027  done
4028
4029  cd ..
4030  rm -rf conftest.dir
4031else
4032  am_cv_CC_dependencies_compiler_type=none
4033fi
4034
4035fi
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4037$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4038CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4039
4040 if
4041  test "x$enable_dependency_tracking" != xno \
4042  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4043  am__fastdepCC_TRUE=
4044  am__fastdepCC_FALSE='#'
4045else
4046  am__fastdepCC_TRUE='#'
4047  am__fastdepCC_FALSE=
4048fi
4049
4050
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4052$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4053if ${ac_cv_path_SED+:} false; then :
4054  $as_echo_n "(cached) " >&6
4055else
4056            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4057     for ac_i in 1 2 3 4 5 6 7; do
4058       ac_script="$ac_script$as_nl$ac_script"
4059     done
4060     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4061     { ac_script=; unset ac_script;}
4062     if test -z "$SED"; then
4063  ac_path_SED_found=false
4064  # Loop through the user's path and test for each of PROGNAME-LIST
4065  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066for as_dir in $PATH
4067do
4068  IFS=$as_save_IFS
4069  test -z "$as_dir" && as_dir=.
4070    for ac_prog in sed gsed; do
4071    for ac_exec_ext in '' $ac_executable_extensions; do
4072      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4073      as_fn_executable_p "$ac_path_SED" || continue
4074# Check for GNU ac_path_SED and select it if it is found.
4075  # Check for GNU $ac_path_SED
4076case `"$ac_path_SED" --version 2>&1` in
4077*GNU*)
4078  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4079*)
4080  ac_count=0
4081  $as_echo_n 0123456789 >"conftest.in"
4082  while :
4083  do
4084    cat "conftest.in" "conftest.in" >"conftest.tmp"
4085    mv "conftest.tmp" "conftest.in"
4086    cp "conftest.in" "conftest.nl"
4087    $as_echo '' >> "conftest.nl"
4088    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4089    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4090    as_fn_arith $ac_count + 1 && ac_count=$as_val
4091    if test $ac_count -gt ${ac_path_SED_max-0}; then
4092      # Best one so far, save it but keep looking for a better one
4093      ac_cv_path_SED="$ac_path_SED"
4094      ac_path_SED_max=$ac_count
4095    fi
4096    # 10*(2^10) chars as input seems more than enough
4097    test $ac_count -gt 10 && break
4098  done
4099  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4100esac
4101
4102      $ac_path_SED_found && break 3
4103    done
4104  done
4105  done
4106IFS=$as_save_IFS
4107  if test -z "$ac_cv_path_SED"; then
4108    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4109  fi
4110else
4111  ac_cv_path_SED=$SED
4112fi
4113
4114fi
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4116$as_echo "$ac_cv_path_SED" >&6; }
4117 SED="$ac_cv_path_SED"
4118  rm -f conftest.sed
4119
4120test -z "$SED" && SED=sed
4121Xsed="$SED -e 1s/^X//"
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4134$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4135if ${ac_cv_path_GREP+:} false; then :
4136  $as_echo_n "(cached) " >&6
4137else
4138  if test -z "$GREP"; then
4139  ac_path_GREP_found=false
4140  # Loop through the user's path and test for each of PROGNAME-LIST
4141  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4143do
4144  IFS=$as_save_IFS
4145  test -z "$as_dir" && as_dir=.
4146    for ac_prog in grep ggrep; do
4147    for ac_exec_ext in '' $ac_executable_extensions; do
4148      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4149      as_fn_executable_p "$ac_path_GREP" || continue
4150# Check for GNU ac_path_GREP and select it if it is found.
4151  # Check for GNU $ac_path_GREP
4152case `"$ac_path_GREP" --version 2>&1` in
4153*GNU*)
4154  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4155*)
4156  ac_count=0
4157  $as_echo_n 0123456789 >"conftest.in"
4158  while :
4159  do
4160    cat "conftest.in" "conftest.in" >"conftest.tmp"
4161    mv "conftest.tmp" "conftest.in"
4162    cp "conftest.in" "conftest.nl"
4163    $as_echo 'GREP' >> "conftest.nl"
4164    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4165    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4166    as_fn_arith $ac_count + 1 && ac_count=$as_val
4167    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4168      # Best one so far, save it but keep looking for a better one
4169      ac_cv_path_GREP="$ac_path_GREP"
4170      ac_path_GREP_max=$ac_count
4171    fi
4172    # 10*(2^10) chars as input seems more than enough
4173    test $ac_count -gt 10 && break
4174  done
4175  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4176esac
4177
4178      $ac_path_GREP_found && break 3
4179    done
4180  done
4181  done
4182IFS=$as_save_IFS
4183  if test -z "$ac_cv_path_GREP"; then
4184    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4185  fi
4186else
4187  ac_cv_path_GREP=$GREP
4188fi
4189
4190fi
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4192$as_echo "$ac_cv_path_GREP" >&6; }
4193 GREP="$ac_cv_path_GREP"
4194
4195
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4197$as_echo_n "checking for egrep... " >&6; }
4198if ${ac_cv_path_EGREP+:} false; then :
4199  $as_echo_n "(cached) " >&6
4200else
4201  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4202   then ac_cv_path_EGREP="$GREP -E"
4203   else
4204     if test -z "$EGREP"; then
4205  ac_path_EGREP_found=false
4206  # Loop through the user's path and test for each of PROGNAME-LIST
4207  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4209do
4210  IFS=$as_save_IFS
4211  test -z "$as_dir" && as_dir=.
4212    for ac_prog in egrep; do
4213    for ac_exec_ext in '' $ac_executable_extensions; do
4214      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4215      as_fn_executable_p "$ac_path_EGREP" || continue
4216# Check for GNU ac_path_EGREP and select it if it is found.
4217  # Check for GNU $ac_path_EGREP
4218case `"$ac_path_EGREP" --version 2>&1` in
4219*GNU*)
4220  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4221*)
4222  ac_count=0
4223  $as_echo_n 0123456789 >"conftest.in"
4224  while :
4225  do
4226    cat "conftest.in" "conftest.in" >"conftest.tmp"
4227    mv "conftest.tmp" "conftest.in"
4228    cp "conftest.in" "conftest.nl"
4229    $as_echo 'EGREP' >> "conftest.nl"
4230    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4231    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4232    as_fn_arith $ac_count + 1 && ac_count=$as_val
4233    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4234      # Best one so far, save it but keep looking for a better one
4235      ac_cv_path_EGREP="$ac_path_EGREP"
4236      ac_path_EGREP_max=$ac_count
4237    fi
4238    # 10*(2^10) chars as input seems more than enough
4239    test $ac_count -gt 10 && break
4240  done
4241  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4242esac
4243
4244      $ac_path_EGREP_found && break 3
4245    done
4246  done
4247  done
4248IFS=$as_save_IFS
4249  if test -z "$ac_cv_path_EGREP"; then
4250    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4251  fi
4252else
4253  ac_cv_path_EGREP=$EGREP
4254fi
4255
4256   fi
4257fi
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4259$as_echo "$ac_cv_path_EGREP" >&6; }
4260 EGREP="$ac_cv_path_EGREP"
4261
4262
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4264$as_echo_n "checking for fgrep... " >&6; }
4265if ${ac_cv_path_FGREP+:} false; then :
4266  $as_echo_n "(cached) " >&6
4267else
4268  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4269   then ac_cv_path_FGREP="$GREP -F"
4270   else
4271     if test -z "$FGREP"; then
4272  ac_path_FGREP_found=false
4273  # Loop through the user's path and test for each of PROGNAME-LIST
4274  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4276do
4277  IFS=$as_save_IFS
4278  test -z "$as_dir" && as_dir=.
4279    for ac_prog in fgrep; do
4280    for ac_exec_ext in '' $ac_executable_extensions; do
4281      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4282      as_fn_executable_p "$ac_path_FGREP" || continue
4283# Check for GNU ac_path_FGREP and select it if it is found.
4284  # Check for GNU $ac_path_FGREP
4285case `"$ac_path_FGREP" --version 2>&1` in
4286*GNU*)
4287  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4288*)
4289  ac_count=0
4290  $as_echo_n 0123456789 >"conftest.in"
4291  while :
4292  do
4293    cat "conftest.in" "conftest.in" >"conftest.tmp"
4294    mv "conftest.tmp" "conftest.in"
4295    cp "conftest.in" "conftest.nl"
4296    $as_echo 'FGREP' >> "conftest.nl"
4297    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4298    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4299    as_fn_arith $ac_count + 1 && ac_count=$as_val
4300    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4301      # Best one so far, save it but keep looking for a better one
4302      ac_cv_path_FGREP="$ac_path_FGREP"
4303      ac_path_FGREP_max=$ac_count
4304    fi
4305    # 10*(2^10) chars as input seems more than enough
4306    test $ac_count -gt 10 && break
4307  done
4308  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4309esac
4310
4311      $ac_path_FGREP_found && break 3
4312    done
4313  done
4314  done
4315IFS=$as_save_IFS
4316  if test -z "$ac_cv_path_FGREP"; then
4317    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4318  fi
4319else
4320  ac_cv_path_FGREP=$FGREP
4321fi
4322
4323   fi
4324fi
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4326$as_echo "$ac_cv_path_FGREP" >&6; }
4327 FGREP="$ac_cv_path_FGREP"
4328
4329
4330test -z "$GREP" && GREP=grep
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350# Check whether --with-gnu-ld was given.
4351if test "${with_gnu_ld+set}" = set; then :
4352  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4353else
4354  with_gnu_ld=no
4355fi
4356
4357ac_prog=ld
4358if test yes = "$GCC"; then
4359  # Check if gcc -print-prog-name=ld gives a path.
4360  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4361$as_echo_n "checking for ld used by $CC... " >&6; }
4362  case $host in
4363  *-*-mingw*)
4364    # gcc leaves a trailing carriage return, which upsets mingw
4365    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4366  *)
4367    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4368  esac
4369  case $ac_prog in
4370    # Accept absolute paths.
4371    [\\/]* | ?:[\\/]*)
4372      re_direlt='/[^/][^/]*/\.\./'
4373      # Canonicalize the pathname of ld
4374      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4375      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4376	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4377      done
4378      test -z "$LD" && LD=$ac_prog
4379      ;;
4380  "")
4381    # If it fails, then pretend we aren't using GCC.
4382    ac_prog=ld
4383    ;;
4384  *)
4385    # If it is relative, then search for the first ld in PATH.
4386    with_gnu_ld=unknown
4387    ;;
4388  esac
4389elif test yes = "$with_gnu_ld"; then
4390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4391$as_echo_n "checking for GNU ld... " >&6; }
4392else
4393  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4394$as_echo_n "checking for non-GNU ld... " >&6; }
4395fi
4396if ${lt_cv_path_LD+:} false; then :
4397  $as_echo_n "(cached) " >&6
4398else
4399  if test -z "$LD"; then
4400  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4401  for ac_dir in $PATH; do
4402    IFS=$lt_save_ifs
4403    test -z "$ac_dir" && ac_dir=.
4404    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4405      lt_cv_path_LD=$ac_dir/$ac_prog
4406      # Check to see if the program is GNU ld.  I'd rather use --version,
4407      # but apparently some variants of GNU ld only accept -v.
4408      # Break only if it was the GNU/non-GNU ld that we prefer.
4409      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4410      *GNU* | *'with BFD'*)
4411	test no != "$with_gnu_ld" && break
4412	;;
4413      *)
4414	test yes != "$with_gnu_ld" && break
4415	;;
4416      esac
4417    fi
4418  done
4419  IFS=$lt_save_ifs
4420else
4421  lt_cv_path_LD=$LD # Let the user override the test with a path.
4422fi
4423fi
4424
4425LD=$lt_cv_path_LD
4426if test -n "$LD"; then
4427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4428$as_echo "$LD" >&6; }
4429else
4430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431$as_echo "no" >&6; }
4432fi
4433test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4435$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4436if ${lt_cv_prog_gnu_ld+:} false; then :
4437  $as_echo_n "(cached) " >&6
4438else
4439  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4440case `$LD -v 2>&1 </dev/null` in
4441*GNU* | *'with BFD'*)
4442  lt_cv_prog_gnu_ld=yes
4443  ;;
4444*)
4445  lt_cv_prog_gnu_ld=no
4446  ;;
4447esac
4448fi
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4450$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4451with_gnu_ld=$lt_cv_prog_gnu_ld
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4462$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4463if ${lt_cv_path_NM+:} false; then :
4464  $as_echo_n "(cached) " >&6
4465else
4466  if test -n "$NM"; then
4467  # Let the user override the test.
4468  lt_cv_path_NM=$NM
4469else
4470  lt_nm_to_check=${ac_tool_prefix}nm
4471  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4472    lt_nm_to_check="$lt_nm_to_check nm"
4473  fi
4474  for lt_tmp_nm in $lt_nm_to_check; do
4475    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4476    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4477      IFS=$lt_save_ifs
4478      test -z "$ac_dir" && ac_dir=.
4479      tmp_nm=$ac_dir/$lt_tmp_nm
4480      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4481	# Check to see if the nm accepts a BSD-compat flag.
4482	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4483	#   nm: unknown option "B" ignored
4484	# Tru64's nm complains that /dev/null is an invalid object file
4485	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4486	case $build_os in
4487	mingw*) lt_bad_file=conftest.nm/nofile ;;
4488	*) lt_bad_file=/dev/null ;;
4489	esac
4490	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4491	*$lt_bad_file* | *'Invalid file or object type'*)
4492	  lt_cv_path_NM="$tmp_nm -B"
4493	  break 2
4494	  ;;
4495	*)
4496	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4497	  */dev/null*)
4498	    lt_cv_path_NM="$tmp_nm -p"
4499	    break 2
4500	    ;;
4501	  *)
4502	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4503	    continue # so that we can try to find one that supports BSD flags
4504	    ;;
4505	  esac
4506	  ;;
4507	esac
4508      fi
4509    done
4510    IFS=$lt_save_ifs
4511  done
4512  : ${lt_cv_path_NM=no}
4513fi
4514fi
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4516$as_echo "$lt_cv_path_NM" >&6; }
4517if test no != "$lt_cv_path_NM"; then
4518  NM=$lt_cv_path_NM
4519else
4520  # Didn't find any BSD compatible name lister, look for dumpbin.
4521  if test -n "$DUMPBIN"; then :
4522    # Let the user override the test.
4523  else
4524    if test -n "$ac_tool_prefix"; then
4525  for ac_prog in dumpbin "link -dump"
4526  do
4527    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4528set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530$as_echo_n "checking for $ac_word... " >&6; }
4531if ${ac_cv_prog_DUMPBIN+:} false; then :
4532  $as_echo_n "(cached) " >&6
4533else
4534  if test -n "$DUMPBIN"; then
4535  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4536else
4537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538for as_dir in $PATH
4539do
4540  IFS=$as_save_IFS
4541  test -z "$as_dir" && as_dir=.
4542    for ac_exec_ext in '' $ac_executable_extensions; do
4543  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4545    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546    break 2
4547  fi
4548done
4549  done
4550IFS=$as_save_IFS
4551
4552fi
4553fi
4554DUMPBIN=$ac_cv_prog_DUMPBIN
4555if test -n "$DUMPBIN"; then
4556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4557$as_echo "$DUMPBIN" >&6; }
4558else
4559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560$as_echo "no" >&6; }
4561fi
4562
4563
4564    test -n "$DUMPBIN" && break
4565  done
4566fi
4567if test -z "$DUMPBIN"; then
4568  ac_ct_DUMPBIN=$DUMPBIN
4569  for ac_prog in dumpbin "link -dump"
4570do
4571  # Extract the first word of "$ac_prog", so it can be a program name with args.
4572set dummy $ac_prog; ac_word=$2
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574$as_echo_n "checking for $ac_word... " >&6; }
4575if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4576  $as_echo_n "(cached) " >&6
4577else
4578  if test -n "$ac_ct_DUMPBIN"; then
4579  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4580else
4581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582for as_dir in $PATH
4583do
4584  IFS=$as_save_IFS
4585  test -z "$as_dir" && as_dir=.
4586    for ac_exec_ext in '' $ac_executable_extensions; do
4587  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4588    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4590    break 2
4591  fi
4592done
4593  done
4594IFS=$as_save_IFS
4595
4596fi
4597fi
4598ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4599if test -n "$ac_ct_DUMPBIN"; then
4600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4601$as_echo "$ac_ct_DUMPBIN" >&6; }
4602else
4603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604$as_echo "no" >&6; }
4605fi
4606
4607
4608  test -n "$ac_ct_DUMPBIN" && break
4609done
4610
4611  if test "x$ac_ct_DUMPBIN" = x; then
4612    DUMPBIN=":"
4613  else
4614    case $cross_compiling:$ac_tool_warned in
4615yes:)
4616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4618ac_tool_warned=yes ;;
4619esac
4620    DUMPBIN=$ac_ct_DUMPBIN
4621  fi
4622fi
4623
4624    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4625    *COFF*)
4626      DUMPBIN="$DUMPBIN -symbols -headers"
4627      ;;
4628    *)
4629      DUMPBIN=:
4630      ;;
4631    esac
4632  fi
4633
4634  if test : != "$DUMPBIN"; then
4635    NM=$DUMPBIN
4636  fi
4637fi
4638test -z "$NM" && NM=nm
4639
4640
4641
4642
4643
4644
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4646$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4647if ${lt_cv_nm_interface+:} false; then :
4648  $as_echo_n "(cached) " >&6
4649else
4650  lt_cv_nm_interface="BSD nm"
4651  echo "int some_variable = 0;" > conftest.$ac_ext
4652  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4653  (eval "$ac_compile" 2>conftest.err)
4654  cat conftest.err >&5
4655  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4656  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4657  cat conftest.err >&5
4658  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4659  cat conftest.out >&5
4660  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4661    lt_cv_nm_interface="MS dumpbin"
4662  fi
4663  rm -f conftest*
4664fi
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4666$as_echo "$lt_cv_nm_interface" >&6; }
4667
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4669$as_echo_n "checking whether ln -s works... " >&6; }
4670LN_S=$as_ln_s
4671if test "$LN_S" = "ln -s"; then
4672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4673$as_echo "yes" >&6; }
4674else
4675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4676$as_echo "no, using $LN_S" >&6; }
4677fi
4678
4679# find the maximum length of command line arguments
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4681$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4682if ${lt_cv_sys_max_cmd_len+:} false; then :
4683  $as_echo_n "(cached) " >&6
4684else
4685    i=0
4686  teststring=ABCD
4687
4688  case $build_os in
4689  msdosdjgpp*)
4690    # On DJGPP, this test can blow up pretty badly due to problems in libc
4691    # (any single argument exceeding 2000 bytes causes a buffer overrun
4692    # during glob expansion).  Even if it were fixed, the result of this
4693    # check would be larger than it should be.
4694    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4695    ;;
4696
4697  gnu*)
4698    # Under GNU Hurd, this test is not required because there is
4699    # no limit to the length of command line arguments.
4700    # Libtool will interpret -1 as no limit whatsoever
4701    lt_cv_sys_max_cmd_len=-1;
4702    ;;
4703
4704  cygwin* | mingw* | cegcc*)
4705    # On Win9x/ME, this test blows up -- it succeeds, but takes
4706    # about 5 minutes as the teststring grows exponentially.
4707    # Worse, since 9x/ME are not pre-emptively multitasking,
4708    # you end up with a "frozen" computer, even though with patience
4709    # the test eventually succeeds (with a max line length of 256k).
4710    # Instead, let's just punt: use the minimum linelength reported by
4711    # all of the supported platforms: 8192 (on NT/2K/XP).
4712    lt_cv_sys_max_cmd_len=8192;
4713    ;;
4714
4715  mint*)
4716    # On MiNT this can take a long time and run out of memory.
4717    lt_cv_sys_max_cmd_len=8192;
4718    ;;
4719
4720  amigaos*)
4721    # On AmigaOS with pdksh, this test takes hours, literally.
4722    # So we just punt and use a minimum line length of 8192.
4723    lt_cv_sys_max_cmd_len=8192;
4724    ;;
4725
4726  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4727    # This has been around since 386BSD, at least.  Likely further.
4728    if test -x /sbin/sysctl; then
4729      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4730    elif test -x /usr/sbin/sysctl; then
4731      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4732    else
4733      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4734    fi
4735    # And add a safety zone
4736    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4737    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4738    ;;
4739
4740  interix*)
4741    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4742    lt_cv_sys_max_cmd_len=196608
4743    ;;
4744
4745  os2*)
4746    # The test takes a long time on OS/2.
4747    lt_cv_sys_max_cmd_len=8192
4748    ;;
4749
4750  osf*)
4751    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4752    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4753    # nice to cause kernel panics so lets avoid the loop below.
4754    # First set a reasonable default.
4755    lt_cv_sys_max_cmd_len=16384
4756    #
4757    if test -x /sbin/sysconfig; then
4758      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4759        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4760      esac
4761    fi
4762    ;;
4763  sco3.2v5*)
4764    lt_cv_sys_max_cmd_len=102400
4765    ;;
4766  sysv5* | sco5v6* | sysv4.2uw2*)
4767    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4768    if test -n "$kargmax"; then
4769      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4770    else
4771      lt_cv_sys_max_cmd_len=32768
4772    fi
4773    ;;
4774  *)
4775    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4776    if test -n "$lt_cv_sys_max_cmd_len" && \
4777       test undefined != "$lt_cv_sys_max_cmd_len"; then
4778      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4779      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4780    else
4781      # Make teststring a little bigger before we do anything with it.
4782      # a 1K string should be a reasonable start.
4783      for i in 1 2 3 4 5 6 7 8; do
4784        teststring=$teststring$teststring
4785      done
4786      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4787      # If test is not a shell built-in, we'll probably end up computing a
4788      # maximum length that is only half of the actual maximum length, but
4789      # we can't tell.
4790      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4791	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4792	      test 17 != "$i" # 1/2 MB should be enough
4793      do
4794        i=`expr $i + 1`
4795        teststring=$teststring$teststring
4796      done
4797      # Only check the string length outside the loop.
4798      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4799      teststring=
4800      # Add a significant safety factor because C++ compilers can tack on
4801      # massive amounts of additional arguments before passing them to the
4802      # linker.  It appears as though 1/2 is a usable value.
4803      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4804    fi
4805    ;;
4806  esac
4807
4808fi
4809
4810if test -n "$lt_cv_sys_max_cmd_len"; then
4811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4812$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4813else
4814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4815$as_echo "none" >&6; }
4816fi
4817max_cmd_len=$lt_cv_sys_max_cmd_len
4818
4819
4820
4821
4822
4823
4824: ${CP="cp -f"}
4825: ${MV="mv -f"}
4826: ${RM="rm -f"}
4827
4828if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4829  lt_unset=unset
4830else
4831  lt_unset=false
4832fi
4833
4834
4835
4836
4837
4838# test EBCDIC or ASCII
4839case `echo X|tr X '\101'` in
4840 A) # ASCII based system
4841    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4842  lt_SP2NL='tr \040 \012'
4843  lt_NL2SP='tr \015\012 \040\040'
4844  ;;
4845 *) # EBCDIC based system
4846  lt_SP2NL='tr \100 \n'
4847  lt_NL2SP='tr \r\n \100\100'
4848  ;;
4849esac
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4860$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4861if ${lt_cv_to_host_file_cmd+:} false; then :
4862  $as_echo_n "(cached) " >&6
4863else
4864  case $host in
4865  *-*-mingw* )
4866    case $build in
4867      *-*-mingw* ) # actually msys
4868        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4869        ;;
4870      *-*-cygwin* )
4871        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4872        ;;
4873      * ) # otherwise, assume *nix
4874        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4875        ;;
4876    esac
4877    ;;
4878  *-*-cygwin* )
4879    case $build in
4880      *-*-mingw* ) # actually msys
4881        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4882        ;;
4883      *-*-cygwin* )
4884        lt_cv_to_host_file_cmd=func_convert_file_noop
4885        ;;
4886      * ) # otherwise, assume *nix
4887        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4888        ;;
4889    esac
4890    ;;
4891  * ) # unhandled hosts (and "normal" native builds)
4892    lt_cv_to_host_file_cmd=func_convert_file_noop
4893    ;;
4894esac
4895
4896fi
4897
4898to_host_file_cmd=$lt_cv_to_host_file_cmd
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4900$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4901
4902
4903
4904
4905
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4907$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4908if ${lt_cv_to_tool_file_cmd+:} false; then :
4909  $as_echo_n "(cached) " >&6
4910else
4911  #assume ordinary cross tools, or native build.
4912lt_cv_to_tool_file_cmd=func_convert_file_noop
4913case $host in
4914  *-*-mingw* )
4915    case $build in
4916      *-*-mingw* ) # actually msys
4917        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4918        ;;
4919    esac
4920    ;;
4921esac
4922
4923fi
4924
4925to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4927$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4928
4929
4930
4931
4932
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4934$as_echo_n "checking for $LD option to reload object files... " >&6; }
4935if ${lt_cv_ld_reload_flag+:} false; then :
4936  $as_echo_n "(cached) " >&6
4937else
4938  lt_cv_ld_reload_flag='-r'
4939fi
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4941$as_echo "$lt_cv_ld_reload_flag" >&6; }
4942reload_flag=$lt_cv_ld_reload_flag
4943case $reload_flag in
4944"" | " "*) ;;
4945*) reload_flag=" $reload_flag" ;;
4946esac
4947reload_cmds='$LD$reload_flag -o $output$reload_objs'
4948case $host_os in
4949  cygwin* | mingw* | pw32* | cegcc*)
4950    if test yes != "$GCC"; then
4951      reload_cmds=false
4952    fi
4953    ;;
4954  darwin*)
4955    if test yes = "$GCC"; then
4956      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4957    else
4958      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4959    fi
4960    ;;
4961esac
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971if test -n "$ac_tool_prefix"; then
4972  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4973set dummy ${ac_tool_prefix}objdump; ac_word=$2
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975$as_echo_n "checking for $ac_word... " >&6; }
4976if ${ac_cv_prog_OBJDUMP+:} false; then :
4977  $as_echo_n "(cached) " >&6
4978else
4979  if test -n "$OBJDUMP"; then
4980  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4981else
4982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983for as_dir in $PATH
4984do
4985  IFS=$as_save_IFS
4986  test -z "$as_dir" && as_dir=.
4987    for ac_exec_ext in '' $ac_executable_extensions; do
4988  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4989    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991    break 2
4992  fi
4993done
4994  done
4995IFS=$as_save_IFS
4996
4997fi
4998fi
4999OBJDUMP=$ac_cv_prog_OBJDUMP
5000if test -n "$OBJDUMP"; then
5001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5002$as_echo "$OBJDUMP" >&6; }
5003else
5004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005$as_echo "no" >&6; }
5006fi
5007
5008
5009fi
5010if test -z "$ac_cv_prog_OBJDUMP"; then
5011  ac_ct_OBJDUMP=$OBJDUMP
5012  # Extract the first word of "objdump", so it can be a program name with args.
5013set dummy objdump; ac_word=$2
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015$as_echo_n "checking for $ac_word... " >&6; }
5016if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5017  $as_echo_n "(cached) " >&6
5018else
5019  if test -n "$ac_ct_OBJDUMP"; then
5020  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5021else
5022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023for as_dir in $PATH
5024do
5025  IFS=$as_save_IFS
5026  test -z "$as_dir" && as_dir=.
5027    for ac_exec_ext in '' $ac_executable_extensions; do
5028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5029    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031    break 2
5032  fi
5033done
5034  done
5035IFS=$as_save_IFS
5036
5037fi
5038fi
5039ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5040if test -n "$ac_ct_OBJDUMP"; then
5041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5042$as_echo "$ac_ct_OBJDUMP" >&6; }
5043else
5044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045$as_echo "no" >&6; }
5046fi
5047
5048  if test "x$ac_ct_OBJDUMP" = x; then
5049    OBJDUMP="false"
5050  else
5051    case $cross_compiling:$ac_tool_warned in
5052yes:)
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5055ac_tool_warned=yes ;;
5056esac
5057    OBJDUMP=$ac_ct_OBJDUMP
5058  fi
5059else
5060  OBJDUMP="$ac_cv_prog_OBJDUMP"
5061fi
5062
5063test -z "$OBJDUMP" && OBJDUMP=objdump
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5074$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5075if ${lt_cv_deplibs_check_method+:} false; then :
5076  $as_echo_n "(cached) " >&6
5077else
5078  lt_cv_file_magic_cmd='$MAGIC_CMD'
5079lt_cv_file_magic_test_file=
5080lt_cv_deplibs_check_method='unknown'
5081# Need to set the preceding variable on all platforms that support
5082# interlibrary dependencies.
5083# 'none' -- dependencies not supported.
5084# 'unknown' -- same as none, but documents that we really don't know.
5085# 'pass_all' -- all dependencies passed with no checks.
5086# 'test_compile' -- check by making test program.
5087# 'file_magic [[regex]]' -- check by looking for files in library path
5088# that responds to the $file_magic_cmd with a given extended regex.
5089# If you have 'file' or equivalent on your system and you're not sure
5090# whether 'pass_all' will *always* work, you probably want this one.
5091
5092case $host_os in
5093aix[4-9]*)
5094  lt_cv_deplibs_check_method=pass_all
5095  ;;
5096
5097beos*)
5098  lt_cv_deplibs_check_method=pass_all
5099  ;;
5100
5101bsdi[45]*)
5102  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5103  lt_cv_file_magic_cmd='/usr/bin/file -L'
5104  lt_cv_file_magic_test_file=/shlib/libc.so
5105  ;;
5106
5107cygwin*)
5108  # func_win32_libid is a shell function defined in ltmain.sh
5109  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5110  lt_cv_file_magic_cmd='func_win32_libid'
5111  ;;
5112
5113mingw* | pw32*)
5114  # Base MSYS/MinGW do not provide the 'file' command needed by
5115  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5116  # unless we find 'file', for example because we are cross-compiling.
5117  if ( file / ) >/dev/null 2>&1; then
5118    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5119    lt_cv_file_magic_cmd='func_win32_libid'
5120  else
5121    # Keep this pattern in sync with the one in func_win32_libid.
5122    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5123    lt_cv_file_magic_cmd='$OBJDUMP -f'
5124  fi
5125  ;;
5126
5127cegcc*)
5128  # use the weaker test based on 'objdump'. See mingw*.
5129  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5130  lt_cv_file_magic_cmd='$OBJDUMP -f'
5131  ;;
5132
5133darwin* | rhapsody*)
5134  lt_cv_deplibs_check_method=pass_all
5135  ;;
5136
5137freebsd* | dragonfly*)
5138  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5139    case $host_cpu in
5140    i*86 )
5141      # Not sure whether the presence of OpenBSD here was a mistake.
5142      # Let's accept both of them until this is cleared up.
5143      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5144      lt_cv_file_magic_cmd=/usr/bin/file
5145      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5146      ;;
5147    esac
5148  else
5149    lt_cv_deplibs_check_method=pass_all
5150  fi
5151  ;;
5152
5153haiku*)
5154  lt_cv_deplibs_check_method=pass_all
5155  ;;
5156
5157hpux10.20* | hpux11*)
5158  lt_cv_file_magic_cmd=/usr/bin/file
5159  case $host_cpu in
5160  ia64*)
5161    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5162    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5163    ;;
5164  hppa*64*)
5165    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]'
5166    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5167    ;;
5168  *)
5169    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5170    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5171    ;;
5172  esac
5173  ;;
5174
5175interix[3-9]*)
5176  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5177  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5178  ;;
5179
5180irix5* | irix6* | nonstopux*)
5181  case $LD in
5182  *-32|*"-32 ") libmagic=32-bit;;
5183  *-n32|*"-n32 ") libmagic=N32;;
5184  *-64|*"-64 ") libmagic=64-bit;;
5185  *) libmagic=never-match;;
5186  esac
5187  lt_cv_deplibs_check_method=pass_all
5188  ;;
5189
5190# This must be glibc/ELF.
5191linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5192  lt_cv_deplibs_check_method=pass_all
5193  ;;
5194
5195netbsd*)
5196  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5197    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5198  else
5199    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5200  fi
5201  ;;
5202
5203newos6*)
5204  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5205  lt_cv_file_magic_cmd=/usr/bin/file
5206  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5207  ;;
5208
5209*nto* | *qnx*)
5210  lt_cv_deplibs_check_method=pass_all
5211  ;;
5212
5213openbsd* | bitrig*)
5214  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5215    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5216  else
5217    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5218  fi
5219  ;;
5220
5221osf3* | osf4* | osf5*)
5222  lt_cv_deplibs_check_method=pass_all
5223  ;;
5224
5225rdos*)
5226  lt_cv_deplibs_check_method=pass_all
5227  ;;
5228
5229solaris*)
5230  lt_cv_deplibs_check_method=pass_all
5231  ;;
5232
5233sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5234  lt_cv_deplibs_check_method=pass_all
5235  ;;
5236
5237sysv4 | sysv4.3*)
5238  case $host_vendor in
5239  motorola)
5240    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]'
5241    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5242    ;;
5243  ncr)
5244    lt_cv_deplibs_check_method=pass_all
5245    ;;
5246  sequent)
5247    lt_cv_file_magic_cmd='/bin/file'
5248    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5249    ;;
5250  sni)
5251    lt_cv_file_magic_cmd='/bin/file'
5252    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5253    lt_cv_file_magic_test_file=/lib/libc.so
5254    ;;
5255  siemens)
5256    lt_cv_deplibs_check_method=pass_all
5257    ;;
5258  pc)
5259    lt_cv_deplibs_check_method=pass_all
5260    ;;
5261  esac
5262  ;;
5263
5264tpf*)
5265  lt_cv_deplibs_check_method=pass_all
5266  ;;
5267os2*)
5268  lt_cv_deplibs_check_method=pass_all
5269  ;;
5270esac
5271
5272fi
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5274$as_echo "$lt_cv_deplibs_check_method" >&6; }
5275
5276file_magic_glob=
5277want_nocaseglob=no
5278if test "$build" = "$host"; then
5279  case $host_os in
5280  mingw* | pw32*)
5281    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5282      want_nocaseglob=yes
5283    else
5284      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5285    fi
5286    ;;
5287  esac
5288fi
5289
5290file_magic_cmd=$lt_cv_file_magic_cmd
5291deplibs_check_method=$lt_cv_deplibs_check_method
5292test -z "$deplibs_check_method" && deplibs_check_method=unknown
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315if test -n "$ac_tool_prefix"; then
5316  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5317set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319$as_echo_n "checking for $ac_word... " >&6; }
5320if ${ac_cv_prog_DLLTOOL+:} false; then :
5321  $as_echo_n "(cached) " >&6
5322else
5323  if test -n "$DLLTOOL"; then
5324  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5325else
5326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327for as_dir in $PATH
5328do
5329  IFS=$as_save_IFS
5330  test -z "$as_dir" && as_dir=.
5331    for ac_exec_ext in '' $ac_executable_extensions; do
5332  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335    break 2
5336  fi
5337done
5338  done
5339IFS=$as_save_IFS
5340
5341fi
5342fi
5343DLLTOOL=$ac_cv_prog_DLLTOOL
5344if test -n "$DLLTOOL"; then
5345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5346$as_echo "$DLLTOOL" >&6; }
5347else
5348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349$as_echo "no" >&6; }
5350fi
5351
5352
5353fi
5354if test -z "$ac_cv_prog_DLLTOOL"; then
5355  ac_ct_DLLTOOL=$DLLTOOL
5356  # Extract the first word of "dlltool", so it can be a program name with args.
5357set dummy dlltool; ac_word=$2
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359$as_echo_n "checking for $ac_word... " >&6; }
5360if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5361  $as_echo_n "(cached) " >&6
5362else
5363  if test -n "$ac_ct_DLLTOOL"; then
5364  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5365else
5366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH
5368do
5369  IFS=$as_save_IFS
5370  test -z "$as_dir" && as_dir=.
5371    for ac_exec_ext in '' $ac_executable_extensions; do
5372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375    break 2
5376  fi
5377done
5378  done
5379IFS=$as_save_IFS
5380
5381fi
5382fi
5383ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5384if test -n "$ac_ct_DLLTOOL"; then
5385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5386$as_echo "$ac_ct_DLLTOOL" >&6; }
5387else
5388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389$as_echo "no" >&6; }
5390fi
5391
5392  if test "x$ac_ct_DLLTOOL" = x; then
5393    DLLTOOL="false"
5394  else
5395    case $cross_compiling:$ac_tool_warned in
5396yes:)
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5399ac_tool_warned=yes ;;
5400esac
5401    DLLTOOL=$ac_ct_DLLTOOL
5402  fi
5403else
5404  DLLTOOL="$ac_cv_prog_DLLTOOL"
5405fi
5406
5407test -z "$DLLTOOL" && DLLTOOL=dlltool
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5419$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5420if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5421  $as_echo_n "(cached) " >&6
5422else
5423  lt_cv_sharedlib_from_linklib_cmd='unknown'
5424
5425case $host_os in
5426cygwin* | mingw* | pw32* | cegcc*)
5427  # two different shell functions defined in ltmain.sh;
5428  # decide which one to use based on capabilities of $DLLTOOL
5429  case `$DLLTOOL --help 2>&1` in
5430  *--identify-strict*)
5431    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5432    ;;
5433  *)
5434    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5435    ;;
5436  esac
5437  ;;
5438*)
5439  # fallback: assume linklib IS sharedlib
5440  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5441  ;;
5442esac
5443
5444fi
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5446$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5447sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5448test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5449
5450
5451
5452
5453
5454
5455
5456
5457if test -n "$ac_tool_prefix"; then
5458  for ac_prog in ar
5459  do
5460    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5461set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463$as_echo_n "checking for $ac_word... " >&6; }
5464if ${ac_cv_prog_AR+:} false; then :
5465  $as_echo_n "(cached) " >&6
5466else
5467  if test -n "$AR"; then
5468  ac_cv_prog_AR="$AR" # Let the user override the test.
5469else
5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473  IFS=$as_save_IFS
5474  test -z "$as_dir" && as_dir=.
5475    for ac_exec_ext in '' $ac_executable_extensions; do
5476  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479    break 2
5480  fi
5481done
5482  done
5483IFS=$as_save_IFS
5484
5485fi
5486fi
5487AR=$ac_cv_prog_AR
5488if test -n "$AR"; then
5489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5490$as_echo "$AR" >&6; }
5491else
5492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493$as_echo "no" >&6; }
5494fi
5495
5496
5497    test -n "$AR" && break
5498  done
5499fi
5500if test -z "$AR"; then
5501  ac_ct_AR=$AR
5502  for ac_prog in ar
5503do
5504  # Extract the first word of "$ac_prog", so it can be a program name with args.
5505set dummy $ac_prog; ac_word=$2
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507$as_echo_n "checking for $ac_word... " >&6; }
5508if ${ac_cv_prog_ac_ct_AR+:} false; then :
5509  $as_echo_n "(cached) " >&6
5510else
5511  if test -n "$ac_ct_AR"; then
5512  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5513else
5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515for as_dir in $PATH
5516do
5517  IFS=$as_save_IFS
5518  test -z "$as_dir" && as_dir=.
5519    for ac_exec_ext in '' $ac_executable_extensions; do
5520  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521    ac_cv_prog_ac_ct_AR="$ac_prog"
5522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523    break 2
5524  fi
5525done
5526  done
5527IFS=$as_save_IFS
5528
5529fi
5530fi
5531ac_ct_AR=$ac_cv_prog_ac_ct_AR
5532if test -n "$ac_ct_AR"; then
5533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5534$as_echo "$ac_ct_AR" >&6; }
5535else
5536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537$as_echo "no" >&6; }
5538fi
5539
5540
5541  test -n "$ac_ct_AR" && break
5542done
5543
5544  if test "x$ac_ct_AR" = x; then
5545    AR="false"
5546  else
5547    case $cross_compiling:$ac_tool_warned in
5548yes:)
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5551ac_tool_warned=yes ;;
5552esac
5553    AR=$ac_ct_AR
5554  fi
5555fi
5556
5557: ${AR=ar}
5558: ${AR_FLAGS=cru}
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5571$as_echo_n "checking for archiver @FILE support... " >&6; }
5572if ${lt_cv_ar_at_file+:} false; then :
5573  $as_echo_n "(cached) " >&6
5574else
5575  lt_cv_ar_at_file=no
5576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577/* end confdefs.h.  */
5578
5579int
5580main ()
5581{
5582
5583  ;
5584  return 0;
5585}
5586_ACEOF
5587if ac_fn_c_try_compile "$LINENO"; then :
5588  echo conftest.$ac_objext > conftest.lst
5589      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5590      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5591  (eval $lt_ar_try) 2>&5
5592  ac_status=$?
5593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5594  test $ac_status = 0; }
5595      if test 0 -eq "$ac_status"; then
5596	# Ensure the archiver fails upon bogus file names.
5597	rm -f conftest.$ac_objext libconftest.a
5598	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5599  (eval $lt_ar_try) 2>&5
5600  ac_status=$?
5601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5602  test $ac_status = 0; }
5603	if test 0 -ne "$ac_status"; then
5604          lt_cv_ar_at_file=@
5605        fi
5606      fi
5607      rm -f conftest.* libconftest.a
5608
5609fi
5610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611
5612fi
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5614$as_echo "$lt_cv_ar_at_file" >&6; }
5615
5616if test no = "$lt_cv_ar_at_file"; then
5617  archiver_list_spec=
5618else
5619  archiver_list_spec=$lt_cv_ar_at_file
5620fi
5621
5622
5623
5624
5625
5626
5627
5628if test -n "$ac_tool_prefix"; then
5629  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5630set dummy ${ac_tool_prefix}strip; ac_word=$2
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632$as_echo_n "checking for $ac_word... " >&6; }
5633if ${ac_cv_prog_STRIP+:} false; then :
5634  $as_echo_n "(cached) " >&6
5635else
5636  if test -n "$STRIP"; then
5637  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5638else
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642  IFS=$as_save_IFS
5643  test -z "$as_dir" && as_dir=.
5644    for ac_exec_ext in '' $ac_executable_extensions; do
5645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648    break 2
5649  fi
5650done
5651  done
5652IFS=$as_save_IFS
5653
5654fi
5655fi
5656STRIP=$ac_cv_prog_STRIP
5657if test -n "$STRIP"; then
5658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5659$as_echo "$STRIP" >&6; }
5660else
5661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662$as_echo "no" >&6; }
5663fi
5664
5665
5666fi
5667if test -z "$ac_cv_prog_STRIP"; then
5668  ac_ct_STRIP=$STRIP
5669  # Extract the first word of "strip", so it can be a program name with args.
5670set dummy strip; ac_word=$2
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672$as_echo_n "checking for $ac_word... " >&6; }
5673if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5674  $as_echo_n "(cached) " >&6
5675else
5676  if test -n "$ac_ct_STRIP"; then
5677  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5678else
5679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH
5681do
5682  IFS=$as_save_IFS
5683  test -z "$as_dir" && as_dir=.
5684    for ac_exec_ext in '' $ac_executable_extensions; do
5685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686    ac_cv_prog_ac_ct_STRIP="strip"
5687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688    break 2
5689  fi
5690done
5691  done
5692IFS=$as_save_IFS
5693
5694fi
5695fi
5696ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5697if test -n "$ac_ct_STRIP"; then
5698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5699$as_echo "$ac_ct_STRIP" >&6; }
5700else
5701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702$as_echo "no" >&6; }
5703fi
5704
5705  if test "x$ac_ct_STRIP" = x; then
5706    STRIP=":"
5707  else
5708    case $cross_compiling:$ac_tool_warned in
5709yes:)
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5712ac_tool_warned=yes ;;
5713esac
5714    STRIP=$ac_ct_STRIP
5715  fi
5716else
5717  STRIP="$ac_cv_prog_STRIP"
5718fi
5719
5720test -z "$STRIP" && STRIP=:
5721
5722
5723
5724
5725
5726
5727if test -n "$ac_tool_prefix"; then
5728  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5729set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731$as_echo_n "checking for $ac_word... " >&6; }
5732if ${ac_cv_prog_RANLIB+:} false; then :
5733  $as_echo_n "(cached) " >&6
5734else
5735  if test -n "$RANLIB"; then
5736  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5737else
5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739for as_dir in $PATH
5740do
5741  IFS=$as_save_IFS
5742  test -z "$as_dir" && as_dir=.
5743    for ac_exec_ext in '' $ac_executable_extensions; do
5744  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747    break 2
5748  fi
5749done
5750  done
5751IFS=$as_save_IFS
5752
5753fi
5754fi
5755RANLIB=$ac_cv_prog_RANLIB
5756if test -n "$RANLIB"; then
5757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5758$as_echo "$RANLIB" >&6; }
5759else
5760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761$as_echo "no" >&6; }
5762fi
5763
5764
5765fi
5766if test -z "$ac_cv_prog_RANLIB"; then
5767  ac_ct_RANLIB=$RANLIB
5768  # Extract the first word of "ranlib", so it can be a program name with args.
5769set dummy ranlib; ac_word=$2
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771$as_echo_n "checking for $ac_word... " >&6; }
5772if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5773  $as_echo_n "(cached) " >&6
5774else
5775  if test -n "$ac_ct_RANLIB"; then
5776  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5777else
5778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779for as_dir in $PATH
5780do
5781  IFS=$as_save_IFS
5782  test -z "$as_dir" && as_dir=.
5783    for ac_exec_ext in '' $ac_executable_extensions; do
5784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5785    ac_cv_prog_ac_ct_RANLIB="ranlib"
5786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787    break 2
5788  fi
5789done
5790  done
5791IFS=$as_save_IFS
5792
5793fi
5794fi
5795ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5796if test -n "$ac_ct_RANLIB"; then
5797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5798$as_echo "$ac_ct_RANLIB" >&6; }
5799else
5800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801$as_echo "no" >&6; }
5802fi
5803
5804  if test "x$ac_ct_RANLIB" = x; then
5805    RANLIB=":"
5806  else
5807    case $cross_compiling:$ac_tool_warned in
5808yes:)
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5811ac_tool_warned=yes ;;
5812esac
5813    RANLIB=$ac_ct_RANLIB
5814  fi
5815else
5816  RANLIB="$ac_cv_prog_RANLIB"
5817fi
5818
5819test -z "$RANLIB" && RANLIB=:
5820
5821
5822
5823
5824
5825
5826# Determine commands to create old-style static archives.
5827old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5828old_postinstall_cmds='chmod 644 $oldlib'
5829old_postuninstall_cmds=
5830
5831if test -n "$RANLIB"; then
5832  case $host_os in
5833  bitrig* | openbsd*)
5834    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5835    ;;
5836  *)
5837    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5838    ;;
5839  esac
5840  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5841fi
5842
5843case $host_os in
5844  darwin*)
5845    lock_old_archive_extraction=yes ;;
5846  *)
5847    lock_old_archive_extraction=no ;;
5848esac
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888# If no C compiler was specified, use CC.
5889LTCC=${LTCC-"$CC"}
5890
5891# If no C compiler flags were specified, use CFLAGS.
5892LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5893
5894# Allow CC to be a program name with arguments.
5895compiler=$CC
5896
5897
5898# Check for command to grab the raw symbol name followed by C symbol from nm.
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5900$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5901if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5902  $as_echo_n "(cached) " >&6
5903else
5904
5905# These are sane defaults that work on at least a few old systems.
5906# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5907
5908# Character class describing NM global symbol codes.
5909symcode='[BCDEGRST]'
5910
5911# Regexp to match symbols that can be accessed directly from C.
5912sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5913
5914# Define system-specific variables.
5915case $host_os in
5916aix*)
5917  symcode='[BCDT]'
5918  ;;
5919cygwin* | mingw* | pw32* | cegcc*)
5920  symcode='[ABCDGISTW]'
5921  ;;
5922hpux*)
5923  if test ia64 = "$host_cpu"; then
5924    symcode='[ABCDEGRST]'
5925  fi
5926  ;;
5927irix* | nonstopux*)
5928  symcode='[BCDEGRST]'
5929  ;;
5930osf*)
5931  symcode='[BCDEGQRST]'
5932  ;;
5933solaris*)
5934  symcode='[BDRT]'
5935  ;;
5936sco3.2v5*)
5937  symcode='[DT]'
5938  ;;
5939sysv4.2uw2*)
5940  symcode='[DT]'
5941  ;;
5942sysv5* | sco5v6* | unixware* | OpenUNIX*)
5943  symcode='[ABDT]'
5944  ;;
5945sysv4)
5946  symcode='[DFNSTU]'
5947  ;;
5948esac
5949
5950# If we're using GNU nm, then use its standard symbol codes.
5951case `$NM -V 2>&1` in
5952*GNU* | *'with BFD'*)
5953  symcode='[ABCDGIRSTW]' ;;
5954esac
5955
5956if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5957  # Gets list of data symbols to import.
5958  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5959  # Adjust the below global symbol transforms to fixup imported variables.
5960  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5961  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
5962  lt_c_name_lib_hook="\
5963  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
5964  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
5965else
5966  # Disable hooks by default.
5967  lt_cv_sys_global_symbol_to_import=
5968  lt_cdecl_hook=
5969  lt_c_name_hook=
5970  lt_c_name_lib_hook=
5971fi
5972
5973# Transform an extracted symbol line into a proper C declaration.
5974# Some systems (esp. on ia64) link data and code symbols differently,
5975# so use this general approach.
5976lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5977$lt_cdecl_hook\
5978" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5979" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5980
5981# Transform an extracted symbol line into symbol name and symbol address
5982lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5983$lt_c_name_hook\
5984" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5985" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
5986
5987# Transform an extracted symbol line into symbol name with lib prefix and
5988# symbol address.
5989lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5990$lt_c_name_lib_hook\
5991" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5992" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
5993" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
5994
5995# Handle CRLF in mingw tool chain
5996opt_cr=
5997case $build_os in
5998mingw*)
5999  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6000  ;;
6001esac
6002
6003# Try without a prefix underscore, then with it.
6004for ac_symprfx in "" "_"; do
6005
6006  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6007  symxfrm="\\1 $ac_symprfx\\2 \\2"
6008
6009  # Write the raw and C identifiers.
6010  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6011    # Fake it for dumpbin and say T for any non-static function,
6012    # D for any global variable and I for any imported variable.
6013    # Also find C++ and __fastcall symbols from MSVC++,
6014    # which start with @ or ?.
6015    lt_cv_sys_global_symbol_pipe="$AWK '"\
6016"     {last_section=section; section=\$ 3};"\
6017"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6018"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6019"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6020"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6021"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6022"     \$ 0!~/External *\|/{next};"\
6023"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6024"     {if(hide[section]) next};"\
6025"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6026"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6027"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6028"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6029"     ' prfx=^$ac_symprfx"
6030  else
6031    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6032  fi
6033  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6034
6035  # Check to see that the pipe works correctly.
6036  pipe_works=no
6037
6038  rm -f conftest*
6039  cat > conftest.$ac_ext <<_LT_EOF
6040#ifdef __cplusplus
6041extern "C" {
6042#endif
6043char nm_test_var;
6044void nm_test_func(void);
6045void nm_test_func(void){}
6046#ifdef __cplusplus
6047}
6048#endif
6049int main(){nm_test_var='a';nm_test_func();return(0);}
6050_LT_EOF
6051
6052  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6053  (eval $ac_compile) 2>&5
6054  ac_status=$?
6055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6056  test $ac_status = 0; }; then
6057    # Now try to grab the symbols.
6058    nlist=conftest.nm
6059    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6060  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6061  ac_status=$?
6062  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6063  test $ac_status = 0; } && test -s "$nlist"; then
6064      # Try sorting and uniquifying the output.
6065      if sort "$nlist" | uniq > "$nlist"T; then
6066	mv -f "$nlist"T "$nlist"
6067      else
6068	rm -f "$nlist"T
6069      fi
6070
6071      # Make sure that we snagged all the symbols we need.
6072      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6073	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6074	  cat <<_LT_EOF > conftest.$ac_ext
6075/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6076#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6077/* DATA imports from DLLs on WIN32 can't be const, because runtime
6078   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6079# define LT_DLSYM_CONST
6080#elif defined __osf__
6081/* This system does not cope well with relocations in const data.  */
6082# define LT_DLSYM_CONST
6083#else
6084# define LT_DLSYM_CONST const
6085#endif
6086
6087#ifdef __cplusplus
6088extern "C" {
6089#endif
6090
6091_LT_EOF
6092	  # Now generate the symbol file.
6093	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6094
6095	  cat <<_LT_EOF >> conftest.$ac_ext
6096
6097/* The mapping between symbol names and symbols.  */
6098LT_DLSYM_CONST struct {
6099  const char *name;
6100  void       *address;
6101}
6102lt__PROGRAM__LTX_preloaded_symbols[] =
6103{
6104  { "@PROGRAM@", (void *) 0 },
6105_LT_EOF
6106	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6107	  cat <<\_LT_EOF >> conftest.$ac_ext
6108  {0, (void *) 0}
6109};
6110
6111/* This works around a problem in FreeBSD linker */
6112#ifdef FREEBSD_WORKAROUND
6113static const void *lt_preloaded_setup() {
6114  return lt__PROGRAM__LTX_preloaded_symbols;
6115}
6116#endif
6117
6118#ifdef __cplusplus
6119}
6120#endif
6121_LT_EOF
6122	  # Now try linking the two files.
6123	  mv conftest.$ac_objext conftstm.$ac_objext
6124	  lt_globsym_save_LIBS=$LIBS
6125	  lt_globsym_save_CFLAGS=$CFLAGS
6126	  LIBS=conftstm.$ac_objext
6127	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6128	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6129  (eval $ac_link) 2>&5
6130  ac_status=$?
6131  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6132  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6133	    pipe_works=yes
6134	  fi
6135	  LIBS=$lt_globsym_save_LIBS
6136	  CFLAGS=$lt_globsym_save_CFLAGS
6137	else
6138	  echo "cannot find nm_test_func in $nlist" >&5
6139	fi
6140      else
6141	echo "cannot find nm_test_var in $nlist" >&5
6142      fi
6143    else
6144      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6145    fi
6146  else
6147    echo "$progname: failed program was:" >&5
6148    cat conftest.$ac_ext >&5
6149  fi
6150  rm -rf conftest* conftst*
6151
6152  # Do not use the global_symbol_pipe unless it works.
6153  if test yes = "$pipe_works"; then
6154    break
6155  else
6156    lt_cv_sys_global_symbol_pipe=
6157  fi
6158done
6159
6160fi
6161
6162if test -z "$lt_cv_sys_global_symbol_pipe"; then
6163  lt_cv_sys_global_symbol_to_cdecl=
6164fi
6165if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6167$as_echo "failed" >&6; }
6168else
6169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6170$as_echo "ok" >&6; }
6171fi
6172
6173# Response file support.
6174if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6175  nm_file_list_spec='@'
6176elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6177  nm_file_list_spec='@'
6178fi
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6217$as_echo_n "checking for sysroot... " >&6; }
6218
6219# Check whether --with-sysroot was given.
6220if test "${with_sysroot+set}" = set; then :
6221  withval=$with_sysroot;
6222else
6223  with_sysroot=no
6224fi
6225
6226
6227lt_sysroot=
6228case $with_sysroot in #(
6229 yes)
6230   if test yes = "$GCC"; then
6231     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6232   fi
6233   ;; #(
6234 /*)
6235   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6236   ;; #(
6237 no|'')
6238   ;; #(
6239 *)
6240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6241$as_echo "$with_sysroot" >&6; }
6242   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6243   ;;
6244esac
6245
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6247$as_echo "${lt_sysroot:-no}" >&6; }
6248
6249
6250
6251
6252
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6254$as_echo_n "checking for a working dd... " >&6; }
6255if ${ac_cv_path_lt_DD+:} false; then :
6256  $as_echo_n "(cached) " >&6
6257else
6258  printf 0123456789abcdef0123456789abcdef >conftest.i
6259cat conftest.i conftest.i >conftest2.i
6260: ${lt_DD:=$DD}
6261if test -z "$lt_DD"; then
6262  ac_path_lt_DD_found=false
6263  # Loop through the user's path and test for each of PROGNAME-LIST
6264  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265for as_dir in $PATH
6266do
6267  IFS=$as_save_IFS
6268  test -z "$as_dir" && as_dir=.
6269    for ac_prog in dd; do
6270    for ac_exec_ext in '' $ac_executable_extensions; do
6271      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6272      as_fn_executable_p "$ac_path_lt_DD" || continue
6273if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6274  cmp -s conftest.i conftest.out \
6275  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6276fi
6277      $ac_path_lt_DD_found && break 3
6278    done
6279  done
6280  done
6281IFS=$as_save_IFS
6282  if test -z "$ac_cv_path_lt_DD"; then
6283    :
6284  fi
6285else
6286  ac_cv_path_lt_DD=$lt_DD
6287fi
6288
6289rm -f conftest.i conftest2.i conftest.out
6290fi
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6292$as_echo "$ac_cv_path_lt_DD" >&6; }
6293
6294
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6296$as_echo_n "checking how to truncate binary pipes... " >&6; }
6297if ${lt_cv_truncate_bin+:} false; then :
6298  $as_echo_n "(cached) " >&6
6299else
6300  printf 0123456789abcdef0123456789abcdef >conftest.i
6301cat conftest.i conftest.i >conftest2.i
6302lt_cv_truncate_bin=
6303if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6304  cmp -s conftest.i conftest.out \
6305  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6306fi
6307rm -f conftest.i conftest2.i conftest.out
6308test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6309fi
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6311$as_echo "$lt_cv_truncate_bin" >&6; }
6312
6313
6314
6315
6316
6317
6318
6319# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6320func_cc_basename ()
6321{
6322    for cc_temp in $*""; do
6323      case $cc_temp in
6324        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6325        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6326        \-*) ;;
6327        *) break;;
6328      esac
6329    done
6330    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6331}
6332
6333# Check whether --enable-libtool-lock was given.
6334if test "${enable_libtool_lock+set}" = set; then :
6335  enableval=$enable_libtool_lock;
6336fi
6337
6338test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6339
6340# Some flags need to be propagated to the compiler or linker for good
6341# libtool support.
6342case $host in
6343ia64-*-hpux*)
6344  # Find out what ABI is being produced by ac_compile, and set mode
6345  # options accordingly.
6346  echo 'int i;' > conftest.$ac_ext
6347  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6348  (eval $ac_compile) 2>&5
6349  ac_status=$?
6350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6351  test $ac_status = 0; }; then
6352    case `/usr/bin/file conftest.$ac_objext` in
6353      *ELF-32*)
6354	HPUX_IA64_MODE=32
6355	;;
6356      *ELF-64*)
6357	HPUX_IA64_MODE=64
6358	;;
6359    esac
6360  fi
6361  rm -rf conftest*
6362  ;;
6363*-*-irix6*)
6364  # Find out what ABI is being produced by ac_compile, and set linker
6365  # options accordingly.
6366  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6367  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6368  (eval $ac_compile) 2>&5
6369  ac_status=$?
6370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6371  test $ac_status = 0; }; then
6372    if test yes = "$lt_cv_prog_gnu_ld"; then
6373      case `/usr/bin/file conftest.$ac_objext` in
6374	*32-bit*)
6375	  LD="${LD-ld} -melf32bsmip"
6376	  ;;
6377	*N32*)
6378	  LD="${LD-ld} -melf32bmipn32"
6379	  ;;
6380	*64-bit*)
6381	  LD="${LD-ld} -melf64bmip"
6382	;;
6383      esac
6384    else
6385      case `/usr/bin/file conftest.$ac_objext` in
6386	*32-bit*)
6387	  LD="${LD-ld} -32"
6388	  ;;
6389	*N32*)
6390	  LD="${LD-ld} -n32"
6391	  ;;
6392	*64-bit*)
6393	  LD="${LD-ld} -64"
6394	  ;;
6395      esac
6396    fi
6397  fi
6398  rm -rf conftest*
6399  ;;
6400
6401mips64*-*linux*)
6402  # Find out what ABI is being produced by ac_compile, and set linker
6403  # options accordingly.
6404  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6405  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6406  (eval $ac_compile) 2>&5
6407  ac_status=$?
6408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409  test $ac_status = 0; }; then
6410    emul=elf
6411    case `/usr/bin/file conftest.$ac_objext` in
6412      *32-bit*)
6413	emul="${emul}32"
6414	;;
6415      *64-bit*)
6416	emul="${emul}64"
6417	;;
6418    esac
6419    case `/usr/bin/file conftest.$ac_objext` in
6420      *MSB*)
6421	emul="${emul}btsmip"
6422	;;
6423      *LSB*)
6424	emul="${emul}ltsmip"
6425	;;
6426    esac
6427    case `/usr/bin/file conftest.$ac_objext` in
6428      *N32*)
6429	emul="${emul}n32"
6430	;;
6431    esac
6432    LD="${LD-ld} -m $emul"
6433  fi
6434  rm -rf conftest*
6435  ;;
6436
6437x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6438s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6439  # Find out what ABI is being produced by ac_compile, and set linker
6440  # options accordingly.  Note that the listed cases only cover the
6441  # situations where additional linker options are needed (such as when
6442  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6443  # vice versa); the common cases where no linker options are needed do
6444  # not appear in the list.
6445  echo 'int i;' > conftest.$ac_ext
6446  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6447  (eval $ac_compile) 2>&5
6448  ac_status=$?
6449  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6450  test $ac_status = 0; }; then
6451    case `/usr/bin/file conftest.o` in
6452      *32-bit*)
6453	case $host in
6454	  x86_64-*kfreebsd*-gnu)
6455	    LD="${LD-ld} -m elf_i386_fbsd"
6456	    ;;
6457	  x86_64-*linux*)
6458	    case `/usr/bin/file conftest.o` in
6459	      *x86-64*)
6460		LD="${LD-ld} -m elf32_x86_64"
6461		;;
6462	      *)
6463		LD="${LD-ld} -m elf_i386"
6464		;;
6465	    esac
6466	    ;;
6467	  powerpc64le-*linux*)
6468	    LD="${LD-ld} -m elf32lppclinux"
6469	    ;;
6470	  powerpc64-*linux*)
6471	    LD="${LD-ld} -m elf32ppclinux"
6472	    ;;
6473	  s390x-*linux*)
6474	    LD="${LD-ld} -m elf_s390"
6475	    ;;
6476	  sparc64-*linux*)
6477	    LD="${LD-ld} -m elf32_sparc"
6478	    ;;
6479	esac
6480	;;
6481      *64-bit*)
6482	case $host in
6483	  x86_64-*kfreebsd*-gnu)
6484	    LD="${LD-ld} -m elf_x86_64_fbsd"
6485	    ;;
6486	  x86_64-*linux*)
6487	    LD="${LD-ld} -m elf_x86_64"
6488	    ;;
6489	  powerpcle-*linux*)
6490	    LD="${LD-ld} -m elf64lppc"
6491	    ;;
6492	  powerpc-*linux*)
6493	    LD="${LD-ld} -m elf64ppc"
6494	    ;;
6495	  s390*-*linux*|s390*-*tpf*)
6496	    LD="${LD-ld} -m elf64_s390"
6497	    ;;
6498	  sparc*-*linux*)
6499	    LD="${LD-ld} -m elf64_sparc"
6500	    ;;
6501	esac
6502	;;
6503    esac
6504  fi
6505  rm -rf conftest*
6506  ;;
6507
6508*-*-sco3.2v5*)
6509  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6510  SAVE_CFLAGS=$CFLAGS
6511  CFLAGS="$CFLAGS -belf"
6512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6513$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6514if ${lt_cv_cc_needs_belf+:} false; then :
6515  $as_echo_n "(cached) " >&6
6516else
6517  ac_ext=c
6518ac_cpp='$CPP $CPPFLAGS'
6519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6521ac_compiler_gnu=$ac_cv_c_compiler_gnu
6522
6523     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524/* end confdefs.h.  */
6525
6526int
6527main ()
6528{
6529
6530  ;
6531  return 0;
6532}
6533_ACEOF
6534if ac_fn_c_try_link "$LINENO"; then :
6535  lt_cv_cc_needs_belf=yes
6536else
6537  lt_cv_cc_needs_belf=no
6538fi
6539rm -f core conftest.err conftest.$ac_objext \
6540    conftest$ac_exeext conftest.$ac_ext
6541     ac_ext=c
6542ac_cpp='$CPP $CPPFLAGS'
6543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6545ac_compiler_gnu=$ac_cv_c_compiler_gnu
6546
6547fi
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6549$as_echo "$lt_cv_cc_needs_belf" >&6; }
6550  if test yes != "$lt_cv_cc_needs_belf"; then
6551    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6552    CFLAGS=$SAVE_CFLAGS
6553  fi
6554  ;;
6555*-*solaris*)
6556  # Find out what ABI is being produced by ac_compile, and set linker
6557  # options accordingly.
6558  echo 'int i;' > conftest.$ac_ext
6559  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6560  (eval $ac_compile) 2>&5
6561  ac_status=$?
6562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6563  test $ac_status = 0; }; then
6564    case `/usr/bin/file conftest.o` in
6565    *64-bit*)
6566      case $lt_cv_prog_gnu_ld in
6567      yes*)
6568        case $host in
6569        i?86-*-solaris*|x86_64-*-solaris*)
6570          LD="${LD-ld} -m elf_x86_64"
6571          ;;
6572        sparc*-*-solaris*)
6573          LD="${LD-ld} -m elf64_sparc"
6574          ;;
6575        esac
6576        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6577        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6578          LD=${LD-ld}_sol2
6579        fi
6580        ;;
6581      *)
6582	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6583	  LD="${LD-ld} -64"
6584	fi
6585	;;
6586      esac
6587      ;;
6588    esac
6589  fi
6590  rm -rf conftest*
6591  ;;
6592esac
6593
6594need_locks=$enable_libtool_lock
6595
6596if test -n "$ac_tool_prefix"; then
6597  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6598set dummy ${ac_tool_prefix}mt; ac_word=$2
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600$as_echo_n "checking for $ac_word... " >&6; }
6601if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6602  $as_echo_n "(cached) " >&6
6603else
6604  if test -n "$MANIFEST_TOOL"; then
6605  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6606else
6607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608for as_dir in $PATH
6609do
6610  IFS=$as_save_IFS
6611  test -z "$as_dir" && as_dir=.
6612    for ac_exec_ext in '' $ac_executable_extensions; do
6613  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6614    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616    break 2
6617  fi
6618done
6619  done
6620IFS=$as_save_IFS
6621
6622fi
6623fi
6624MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6625if test -n "$MANIFEST_TOOL"; then
6626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6627$as_echo "$MANIFEST_TOOL" >&6; }
6628else
6629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630$as_echo "no" >&6; }
6631fi
6632
6633
6634fi
6635if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6636  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6637  # Extract the first word of "mt", so it can be a program name with args.
6638set dummy mt; ac_word=$2
6639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640$as_echo_n "checking for $ac_word... " >&6; }
6641if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6642  $as_echo_n "(cached) " >&6
6643else
6644  if test -n "$ac_ct_MANIFEST_TOOL"; then
6645  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6646else
6647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648for as_dir in $PATH
6649do
6650  IFS=$as_save_IFS
6651  test -z "$as_dir" && as_dir=.
6652    for ac_exec_ext in '' $ac_executable_extensions; do
6653  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6654    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6655    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656    break 2
6657  fi
6658done
6659  done
6660IFS=$as_save_IFS
6661
6662fi
6663fi
6664ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6665if test -n "$ac_ct_MANIFEST_TOOL"; then
6666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6667$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6668else
6669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670$as_echo "no" >&6; }
6671fi
6672
6673  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6674    MANIFEST_TOOL=":"
6675  else
6676    case $cross_compiling:$ac_tool_warned in
6677yes:)
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6680ac_tool_warned=yes ;;
6681esac
6682    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6683  fi
6684else
6685  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6686fi
6687
6688test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6690$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6691if ${lt_cv_path_mainfest_tool+:} false; then :
6692  $as_echo_n "(cached) " >&6
6693else
6694  lt_cv_path_mainfest_tool=no
6695  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6696  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6697  cat conftest.err >&5
6698  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6699    lt_cv_path_mainfest_tool=yes
6700  fi
6701  rm -f conftest*
6702fi
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6704$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6705if test yes != "$lt_cv_path_mainfest_tool"; then
6706  MANIFEST_TOOL=:
6707fi
6708
6709
6710
6711
6712
6713
6714  case $host_os in
6715    rhapsody* | darwin*)
6716    if test -n "$ac_tool_prefix"; then
6717  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6718set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720$as_echo_n "checking for $ac_word... " >&6; }
6721if ${ac_cv_prog_DSYMUTIL+:} false; then :
6722  $as_echo_n "(cached) " >&6
6723else
6724  if test -n "$DSYMUTIL"; then
6725  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6726else
6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728for as_dir in $PATH
6729do
6730  IFS=$as_save_IFS
6731  test -z "$as_dir" && as_dir=.
6732    for ac_exec_ext in '' $ac_executable_extensions; do
6733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6734    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736    break 2
6737  fi
6738done
6739  done
6740IFS=$as_save_IFS
6741
6742fi
6743fi
6744DSYMUTIL=$ac_cv_prog_DSYMUTIL
6745if test -n "$DSYMUTIL"; then
6746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6747$as_echo "$DSYMUTIL" >&6; }
6748else
6749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750$as_echo "no" >&6; }
6751fi
6752
6753
6754fi
6755if test -z "$ac_cv_prog_DSYMUTIL"; then
6756  ac_ct_DSYMUTIL=$DSYMUTIL
6757  # Extract the first word of "dsymutil", so it can be a program name with args.
6758set dummy dsymutil; ac_word=$2
6759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760$as_echo_n "checking for $ac_word... " >&6; }
6761if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6762  $as_echo_n "(cached) " >&6
6763else
6764  if test -n "$ac_ct_DSYMUTIL"; then
6765  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6766else
6767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768for as_dir in $PATH
6769do
6770  IFS=$as_save_IFS
6771  test -z "$as_dir" && as_dir=.
6772    for ac_exec_ext in '' $ac_executable_extensions; do
6773  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6774    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776    break 2
6777  fi
6778done
6779  done
6780IFS=$as_save_IFS
6781
6782fi
6783fi
6784ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6785if test -n "$ac_ct_DSYMUTIL"; then
6786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6787$as_echo "$ac_ct_DSYMUTIL" >&6; }
6788else
6789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790$as_echo "no" >&6; }
6791fi
6792
6793  if test "x$ac_ct_DSYMUTIL" = x; then
6794    DSYMUTIL=":"
6795  else
6796    case $cross_compiling:$ac_tool_warned in
6797yes:)
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6800ac_tool_warned=yes ;;
6801esac
6802    DSYMUTIL=$ac_ct_DSYMUTIL
6803  fi
6804else
6805  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6806fi
6807
6808    if test -n "$ac_tool_prefix"; then
6809  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6810set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812$as_echo_n "checking for $ac_word... " >&6; }
6813if ${ac_cv_prog_NMEDIT+:} false; then :
6814  $as_echo_n "(cached) " >&6
6815else
6816  if test -n "$NMEDIT"; then
6817  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6818else
6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822  IFS=$as_save_IFS
6823  test -z "$as_dir" && as_dir=.
6824    for ac_exec_ext in '' $ac_executable_extensions; do
6825  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828    break 2
6829  fi
6830done
6831  done
6832IFS=$as_save_IFS
6833
6834fi
6835fi
6836NMEDIT=$ac_cv_prog_NMEDIT
6837if test -n "$NMEDIT"; then
6838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6839$as_echo "$NMEDIT" >&6; }
6840else
6841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842$as_echo "no" >&6; }
6843fi
6844
6845
6846fi
6847if test -z "$ac_cv_prog_NMEDIT"; then
6848  ac_ct_NMEDIT=$NMEDIT
6849  # Extract the first word of "nmedit", so it can be a program name with args.
6850set dummy nmedit; ac_word=$2
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852$as_echo_n "checking for $ac_word... " >&6; }
6853if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6854  $as_echo_n "(cached) " >&6
6855else
6856  if test -n "$ac_ct_NMEDIT"; then
6857  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6858else
6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862  IFS=$as_save_IFS
6863  test -z "$as_dir" && as_dir=.
6864    for ac_exec_ext in '' $ac_executable_extensions; do
6865  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868    break 2
6869  fi
6870done
6871  done
6872IFS=$as_save_IFS
6873
6874fi
6875fi
6876ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6877if test -n "$ac_ct_NMEDIT"; then
6878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6879$as_echo "$ac_ct_NMEDIT" >&6; }
6880else
6881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882$as_echo "no" >&6; }
6883fi
6884
6885  if test "x$ac_ct_NMEDIT" = x; then
6886    NMEDIT=":"
6887  else
6888    case $cross_compiling:$ac_tool_warned in
6889yes:)
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892ac_tool_warned=yes ;;
6893esac
6894    NMEDIT=$ac_ct_NMEDIT
6895  fi
6896else
6897  NMEDIT="$ac_cv_prog_NMEDIT"
6898fi
6899
6900    if test -n "$ac_tool_prefix"; then
6901  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6902set dummy ${ac_tool_prefix}lipo; ac_word=$2
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904$as_echo_n "checking for $ac_word... " >&6; }
6905if ${ac_cv_prog_LIPO+:} false; then :
6906  $as_echo_n "(cached) " >&6
6907else
6908  if test -n "$LIPO"; then
6909  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6910else
6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914  IFS=$as_save_IFS
6915  test -z "$as_dir" && as_dir=.
6916    for ac_exec_ext in '' $ac_executable_extensions; do
6917  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920    break 2
6921  fi
6922done
6923  done
6924IFS=$as_save_IFS
6925
6926fi
6927fi
6928LIPO=$ac_cv_prog_LIPO
6929if test -n "$LIPO"; then
6930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6931$as_echo "$LIPO" >&6; }
6932else
6933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934$as_echo "no" >&6; }
6935fi
6936
6937
6938fi
6939if test -z "$ac_cv_prog_LIPO"; then
6940  ac_ct_LIPO=$LIPO
6941  # Extract the first word of "lipo", so it can be a program name with args.
6942set dummy lipo; ac_word=$2
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944$as_echo_n "checking for $ac_word... " >&6; }
6945if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6946  $as_echo_n "(cached) " >&6
6947else
6948  if test -n "$ac_ct_LIPO"; then
6949  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6950else
6951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952for as_dir in $PATH
6953do
6954  IFS=$as_save_IFS
6955  test -z "$as_dir" && as_dir=.
6956    for ac_exec_ext in '' $ac_executable_extensions; do
6957  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958    ac_cv_prog_ac_ct_LIPO="lipo"
6959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960    break 2
6961  fi
6962done
6963  done
6964IFS=$as_save_IFS
6965
6966fi
6967fi
6968ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6969if test -n "$ac_ct_LIPO"; then
6970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6971$as_echo "$ac_ct_LIPO" >&6; }
6972else
6973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974$as_echo "no" >&6; }
6975fi
6976
6977  if test "x$ac_ct_LIPO" = x; then
6978    LIPO=":"
6979  else
6980    case $cross_compiling:$ac_tool_warned in
6981yes:)
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6984ac_tool_warned=yes ;;
6985esac
6986    LIPO=$ac_ct_LIPO
6987  fi
6988else
6989  LIPO="$ac_cv_prog_LIPO"
6990fi
6991
6992    if test -n "$ac_tool_prefix"; then
6993  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6994set dummy ${ac_tool_prefix}otool; ac_word=$2
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996$as_echo_n "checking for $ac_word... " >&6; }
6997if ${ac_cv_prog_OTOOL+:} false; then :
6998  $as_echo_n "(cached) " >&6
6999else
7000  if test -n "$OTOOL"; then
7001  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7002else
7003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004for as_dir in $PATH
7005do
7006  IFS=$as_save_IFS
7007  test -z "$as_dir" && as_dir=.
7008    for ac_exec_ext in '' $ac_executable_extensions; do
7009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7010    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012    break 2
7013  fi
7014done
7015  done
7016IFS=$as_save_IFS
7017
7018fi
7019fi
7020OTOOL=$ac_cv_prog_OTOOL
7021if test -n "$OTOOL"; then
7022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7023$as_echo "$OTOOL" >&6; }
7024else
7025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026$as_echo "no" >&6; }
7027fi
7028
7029
7030fi
7031if test -z "$ac_cv_prog_OTOOL"; then
7032  ac_ct_OTOOL=$OTOOL
7033  # Extract the first word of "otool", so it can be a program name with args.
7034set dummy otool; ac_word=$2
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036$as_echo_n "checking for $ac_word... " >&6; }
7037if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7038  $as_echo_n "(cached) " >&6
7039else
7040  if test -n "$ac_ct_OTOOL"; then
7041  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7042else
7043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046  IFS=$as_save_IFS
7047  test -z "$as_dir" && as_dir=.
7048    for ac_exec_ext in '' $ac_executable_extensions; do
7049  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7050    ac_cv_prog_ac_ct_OTOOL="otool"
7051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052    break 2
7053  fi
7054done
7055  done
7056IFS=$as_save_IFS
7057
7058fi
7059fi
7060ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7061if test -n "$ac_ct_OTOOL"; then
7062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7063$as_echo "$ac_ct_OTOOL" >&6; }
7064else
7065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066$as_echo "no" >&6; }
7067fi
7068
7069  if test "x$ac_ct_OTOOL" = x; then
7070    OTOOL=":"
7071  else
7072    case $cross_compiling:$ac_tool_warned in
7073yes:)
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7076ac_tool_warned=yes ;;
7077esac
7078    OTOOL=$ac_ct_OTOOL
7079  fi
7080else
7081  OTOOL="$ac_cv_prog_OTOOL"
7082fi
7083
7084    if test -n "$ac_tool_prefix"; then
7085  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7086set dummy ${ac_tool_prefix}otool64; ac_word=$2
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088$as_echo_n "checking for $ac_word... " >&6; }
7089if ${ac_cv_prog_OTOOL64+:} false; then :
7090  $as_echo_n "(cached) " >&6
7091else
7092  if test -n "$OTOOL64"; then
7093  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7094else
7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096for as_dir in $PATH
7097do
7098  IFS=$as_save_IFS
7099  test -z "$as_dir" && as_dir=.
7100    for ac_exec_ext in '' $ac_executable_extensions; do
7101  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104    break 2
7105  fi
7106done
7107  done
7108IFS=$as_save_IFS
7109
7110fi
7111fi
7112OTOOL64=$ac_cv_prog_OTOOL64
7113if test -n "$OTOOL64"; then
7114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7115$as_echo "$OTOOL64" >&6; }
7116else
7117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118$as_echo "no" >&6; }
7119fi
7120
7121
7122fi
7123if test -z "$ac_cv_prog_OTOOL64"; then
7124  ac_ct_OTOOL64=$OTOOL64
7125  # Extract the first word of "otool64", so it can be a program name with args.
7126set dummy otool64; ac_word=$2
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128$as_echo_n "checking for $ac_word... " >&6; }
7129if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7130  $as_echo_n "(cached) " >&6
7131else
7132  if test -n "$ac_ct_OTOOL64"; then
7133  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7134else
7135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136for as_dir in $PATH
7137do
7138  IFS=$as_save_IFS
7139  test -z "$as_dir" && as_dir=.
7140    for ac_exec_ext in '' $ac_executable_extensions; do
7141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142    ac_cv_prog_ac_ct_OTOOL64="otool64"
7143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144    break 2
7145  fi
7146done
7147  done
7148IFS=$as_save_IFS
7149
7150fi
7151fi
7152ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7153if test -n "$ac_ct_OTOOL64"; then
7154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7155$as_echo "$ac_ct_OTOOL64" >&6; }
7156else
7157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158$as_echo "no" >&6; }
7159fi
7160
7161  if test "x$ac_ct_OTOOL64" = x; then
7162    OTOOL64=":"
7163  else
7164    case $cross_compiling:$ac_tool_warned in
7165yes:)
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7168ac_tool_warned=yes ;;
7169esac
7170    OTOOL64=$ac_ct_OTOOL64
7171  fi
7172else
7173  OTOOL64="$ac_cv_prog_OTOOL64"
7174fi
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7203$as_echo_n "checking for -single_module linker flag... " >&6; }
7204if ${lt_cv_apple_cc_single_mod+:} false; then :
7205  $as_echo_n "(cached) " >&6
7206else
7207  lt_cv_apple_cc_single_mod=no
7208      if test -z "$LT_MULTI_MODULE"; then
7209	# By default we will add the -single_module flag. You can override
7210	# by either setting the environment variable LT_MULTI_MODULE
7211	# non-empty at configure time, or by adding -multi_module to the
7212	# link flags.
7213	rm -rf libconftest.dylib*
7214	echo "int foo(void){return 1;}" > conftest.c
7215	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7216-dynamiclib -Wl,-single_module conftest.c" >&5
7217	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7218	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7219        _lt_result=$?
7220	# If there is a non-empty error log, and "single_module"
7221	# appears in it, assume the flag caused a linker warning
7222        if test -s conftest.err && $GREP single_module conftest.err; then
7223	  cat conftest.err >&5
7224	# Otherwise, if the output was created with a 0 exit code from
7225	# the compiler, it worked.
7226	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7227	  lt_cv_apple_cc_single_mod=yes
7228	else
7229	  cat conftest.err >&5
7230	fi
7231	rm -rf libconftest.dylib*
7232	rm -f conftest.*
7233      fi
7234fi
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7236$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7237
7238    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7239$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7240if ${lt_cv_ld_exported_symbols_list+:} false; then :
7241  $as_echo_n "(cached) " >&6
7242else
7243  lt_cv_ld_exported_symbols_list=no
7244      save_LDFLAGS=$LDFLAGS
7245      echo "_main" > conftest.sym
7246      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7247      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248/* end confdefs.h.  */
7249
7250int
7251main ()
7252{
7253
7254  ;
7255  return 0;
7256}
7257_ACEOF
7258if ac_fn_c_try_link "$LINENO"; then :
7259  lt_cv_ld_exported_symbols_list=yes
7260else
7261  lt_cv_ld_exported_symbols_list=no
7262fi
7263rm -f core conftest.err conftest.$ac_objext \
7264    conftest$ac_exeext conftest.$ac_ext
7265	LDFLAGS=$save_LDFLAGS
7266
7267fi
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7269$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7270
7271    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7272$as_echo_n "checking for -force_load linker flag... " >&6; }
7273if ${lt_cv_ld_force_load+:} false; then :
7274  $as_echo_n "(cached) " >&6
7275else
7276  lt_cv_ld_force_load=no
7277      cat > conftest.c << _LT_EOF
7278int forced_loaded() { return 2;}
7279_LT_EOF
7280      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7281      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7282      echo "$AR cru libconftest.a conftest.o" >&5
7283      $AR cru libconftest.a conftest.o 2>&5
7284      echo "$RANLIB libconftest.a" >&5
7285      $RANLIB libconftest.a 2>&5
7286      cat > conftest.c << _LT_EOF
7287int main() { return 0;}
7288_LT_EOF
7289      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7290      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7291      _lt_result=$?
7292      if test -s conftest.err && $GREP force_load conftest.err; then
7293	cat conftest.err >&5
7294      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7295	lt_cv_ld_force_load=yes
7296      else
7297	cat conftest.err >&5
7298      fi
7299        rm -f conftest.err libconftest.a conftest conftest.c
7300        rm -rf conftest.dSYM
7301
7302fi
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7304$as_echo "$lt_cv_ld_force_load" >&6; }
7305    case $host_os in
7306    rhapsody* | darwin1.[012])
7307      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7308    darwin1.*)
7309      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7310    darwin*) # darwin 5.x on
7311      # if running on 10.5 or later, the deployment target defaults
7312      # to the OS version, if on x86, and 10.4, the deployment
7313      # target defaults to 10.4. Don't you love it?
7314      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7315	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7316	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7317	10.[012][,.]*)
7318	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7319	10.*)
7320	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7321      esac
7322    ;;
7323  esac
7324    if test yes = "$lt_cv_apple_cc_single_mod"; then
7325      _lt_dar_single_mod='$single_module'
7326    fi
7327    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7328      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7329    else
7330      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7331    fi
7332    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7333      _lt_dsymutil='~$DSYMUTIL $lib || :'
7334    else
7335      _lt_dsymutil=
7336    fi
7337    ;;
7338  esac
7339
7340# func_munge_path_list VARIABLE PATH
7341# -----------------------------------
7342# VARIABLE is name of variable containing _space_ separated list of
7343# directories to be munged by the contents of PATH, which is string
7344# having a format:
7345# "DIR[:DIR]:"
7346#       string "DIR[ DIR]" will be prepended to VARIABLE
7347# ":DIR[:DIR]"
7348#       string "DIR[ DIR]" will be appended to VARIABLE
7349# "DIRP[:DIRP]::[DIRA:]DIRA"
7350#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7351#       "DIRA[ DIRA]" will be appended to VARIABLE
7352# "DIR[:DIR]"
7353#       VARIABLE will be replaced by "DIR[ DIR]"
7354func_munge_path_list ()
7355{
7356    case x$2 in
7357    x)
7358        ;;
7359    *:)
7360        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7361        ;;
7362    x:*)
7363        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7364        ;;
7365    *::*)
7366        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7367        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7368        ;;
7369    *)
7370        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7371        ;;
7372    esac
7373}
7374
7375ac_ext=c
7376ac_cpp='$CPP $CPPFLAGS'
7377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379ac_compiler_gnu=$ac_cv_c_compiler_gnu
7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7381$as_echo_n "checking how to run the C preprocessor... " >&6; }
7382# On Suns, sometimes $CPP names a directory.
7383if test -n "$CPP" && test -d "$CPP"; then
7384  CPP=
7385fi
7386if test -z "$CPP"; then
7387  if ${ac_cv_prog_CPP+:} false; then :
7388  $as_echo_n "(cached) " >&6
7389else
7390      # Double quotes because CPP needs to be expanded
7391    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7392    do
7393      ac_preproc_ok=false
7394for ac_c_preproc_warn_flag in '' yes
7395do
7396  # Use a header file that comes with gcc, so configuring glibc
7397  # with a fresh cross-compiler works.
7398  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7399  # <limits.h> exists even on freestanding compilers.
7400  # On the NeXT, cc -E runs the code through the compiler's parser,
7401  # not just through cpp. "Syntax error" is here to catch this case.
7402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403/* end confdefs.h.  */
7404#ifdef __STDC__
7405# include <limits.h>
7406#else
7407# include <assert.h>
7408#endif
7409		     Syntax error
7410_ACEOF
7411if ac_fn_c_try_cpp "$LINENO"; then :
7412
7413else
7414  # Broken: fails on valid input.
7415continue
7416fi
7417rm -f conftest.err conftest.i conftest.$ac_ext
7418
7419  # OK, works on sane cases.  Now check whether nonexistent headers
7420  # can be detected and how.
7421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422/* end confdefs.h.  */
7423#include <ac_nonexistent.h>
7424_ACEOF
7425if ac_fn_c_try_cpp "$LINENO"; then :
7426  # Broken: success on invalid input.
7427continue
7428else
7429  # Passes both tests.
7430ac_preproc_ok=:
7431break
7432fi
7433rm -f conftest.err conftest.i conftest.$ac_ext
7434
7435done
7436# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7437rm -f conftest.i conftest.err conftest.$ac_ext
7438if $ac_preproc_ok; then :
7439  break
7440fi
7441
7442    done
7443    ac_cv_prog_CPP=$CPP
7444
7445fi
7446  CPP=$ac_cv_prog_CPP
7447else
7448  ac_cv_prog_CPP=$CPP
7449fi
7450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7451$as_echo "$CPP" >&6; }
7452ac_preproc_ok=false
7453for ac_c_preproc_warn_flag in '' yes
7454do
7455  # Use a header file that comes with gcc, so configuring glibc
7456  # with a fresh cross-compiler works.
7457  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7458  # <limits.h> exists even on freestanding compilers.
7459  # On the NeXT, cc -E runs the code through the compiler's parser,
7460  # not just through cpp. "Syntax error" is here to catch this case.
7461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462/* end confdefs.h.  */
7463#ifdef __STDC__
7464# include <limits.h>
7465#else
7466# include <assert.h>
7467#endif
7468		     Syntax error
7469_ACEOF
7470if ac_fn_c_try_cpp "$LINENO"; then :
7471
7472else
7473  # Broken: fails on valid input.
7474continue
7475fi
7476rm -f conftest.err conftest.i conftest.$ac_ext
7477
7478  # OK, works on sane cases.  Now check whether nonexistent headers
7479  # can be detected and how.
7480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481/* end confdefs.h.  */
7482#include <ac_nonexistent.h>
7483_ACEOF
7484if ac_fn_c_try_cpp "$LINENO"; then :
7485  # Broken: success on invalid input.
7486continue
7487else
7488  # Passes both tests.
7489ac_preproc_ok=:
7490break
7491fi
7492rm -f conftest.err conftest.i conftest.$ac_ext
7493
7494done
7495# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7496rm -f conftest.i conftest.err conftest.$ac_ext
7497if $ac_preproc_ok; then :
7498
7499else
7500  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7502as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7503See \`config.log' for more details" "$LINENO" 5; }
7504fi
7505
7506ac_ext=c
7507ac_cpp='$CPP $CPPFLAGS'
7508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7510ac_compiler_gnu=$ac_cv_c_compiler_gnu
7511
7512
7513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7514$as_echo_n "checking for ANSI C header files... " >&6; }
7515if ${ac_cv_header_stdc+:} false; then :
7516  $as_echo_n "(cached) " >&6
7517else
7518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519/* end confdefs.h.  */
7520#include <stdlib.h>
7521#include <stdarg.h>
7522#include <string.h>
7523#include <float.h>
7524
7525int
7526main ()
7527{
7528
7529  ;
7530  return 0;
7531}
7532_ACEOF
7533if ac_fn_c_try_compile "$LINENO"; then :
7534  ac_cv_header_stdc=yes
7535else
7536  ac_cv_header_stdc=no
7537fi
7538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539
7540if test $ac_cv_header_stdc = yes; then
7541  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543/* end confdefs.h.  */
7544#include <string.h>
7545
7546_ACEOF
7547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7548  $EGREP "memchr" >/dev/null 2>&1; then :
7549
7550else
7551  ac_cv_header_stdc=no
7552fi
7553rm -f conftest*
7554
7555fi
7556
7557if test $ac_cv_header_stdc = yes; then
7558  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560/* end confdefs.h.  */
7561#include <stdlib.h>
7562
7563_ACEOF
7564if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7565  $EGREP "free" >/dev/null 2>&1; then :
7566
7567else
7568  ac_cv_header_stdc=no
7569fi
7570rm -f conftest*
7571
7572fi
7573
7574if test $ac_cv_header_stdc = yes; then
7575  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7576  if test "$cross_compiling" = yes; then :
7577  :
7578else
7579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580/* end confdefs.h.  */
7581#include <ctype.h>
7582#include <stdlib.h>
7583#if ((' ' & 0x0FF) == 0x020)
7584# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7585# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7586#else
7587# define ISLOWER(c) \
7588		   (('a' <= (c) && (c) <= 'i') \
7589		     || ('j' <= (c) && (c) <= 'r') \
7590		     || ('s' <= (c) && (c) <= 'z'))
7591# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7592#endif
7593
7594#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7595int
7596main ()
7597{
7598  int i;
7599  for (i = 0; i < 256; i++)
7600    if (XOR (islower (i), ISLOWER (i))
7601	|| toupper (i) != TOUPPER (i))
7602      return 2;
7603  return 0;
7604}
7605_ACEOF
7606if ac_fn_c_try_run "$LINENO"; then :
7607
7608else
7609  ac_cv_header_stdc=no
7610fi
7611rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7612  conftest.$ac_objext conftest.beam conftest.$ac_ext
7613fi
7614
7615fi
7616fi
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7618$as_echo "$ac_cv_header_stdc" >&6; }
7619if test $ac_cv_header_stdc = yes; then
7620
7621$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7622
7623fi
7624
7625# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7626for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7627		  inttypes.h stdint.h unistd.h
7628do :
7629  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7630ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7631"
7632if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7633  cat >>confdefs.h <<_ACEOF
7634#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7635_ACEOF
7636
7637fi
7638
7639done
7640
7641
7642for ac_header in dlfcn.h
7643do :
7644  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7645"
7646if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7647  cat >>confdefs.h <<_ACEOF
7648#define HAVE_DLFCN_H 1
7649_ACEOF
7650
7651fi
7652
7653done
7654
7655
7656
7657
7658
7659# Set options
7660
7661
7662
7663        enable_dlopen=no
7664
7665
7666  enable_win32_dll=no
7667
7668
7669            # Check whether --enable-shared was given.
7670if test "${enable_shared+set}" = set; then :
7671  enableval=$enable_shared; p=${PACKAGE-default}
7672    case $enableval in
7673    yes) enable_shared=yes ;;
7674    no) enable_shared=no ;;
7675    *)
7676      enable_shared=no
7677      # Look at the argument we got.  We use all the common list separators.
7678      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7679      for pkg in $enableval; do
7680	IFS=$lt_save_ifs
7681	if test "X$pkg" = "X$p"; then
7682	  enable_shared=yes
7683	fi
7684      done
7685      IFS=$lt_save_ifs
7686      ;;
7687    esac
7688else
7689  enable_shared=yes
7690fi
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700  # Check whether --enable-static was given.
7701if test "${enable_static+set}" = set; then :
7702  enableval=$enable_static; p=${PACKAGE-default}
7703    case $enableval in
7704    yes) enable_static=yes ;;
7705    no) enable_static=no ;;
7706    *)
7707     enable_static=no
7708      # Look at the argument we got.  We use all the common list separators.
7709      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7710      for pkg in $enableval; do
7711	IFS=$lt_save_ifs
7712	if test "X$pkg" = "X$p"; then
7713	  enable_static=yes
7714	fi
7715      done
7716      IFS=$lt_save_ifs
7717      ;;
7718    esac
7719else
7720  enable_static=yes
7721fi
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732# Check whether --with-pic was given.
7733if test "${with_pic+set}" = set; then :
7734  withval=$with_pic; lt_p=${PACKAGE-default}
7735    case $withval in
7736    yes|no) pic_mode=$withval ;;
7737    *)
7738      pic_mode=default
7739      # Look at the argument we got.  We use all the common list separators.
7740      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7741      for lt_pkg in $withval; do
7742	IFS=$lt_save_ifs
7743	if test "X$lt_pkg" = "X$lt_p"; then
7744	  pic_mode=yes
7745	fi
7746      done
7747      IFS=$lt_save_ifs
7748      ;;
7749    esac
7750else
7751  pic_mode=default
7752fi
7753
7754
7755
7756
7757
7758
7759
7760
7761  # Check whether --enable-fast-install was given.
7762if test "${enable_fast_install+set}" = set; then :
7763  enableval=$enable_fast_install; p=${PACKAGE-default}
7764    case $enableval in
7765    yes) enable_fast_install=yes ;;
7766    no) enable_fast_install=no ;;
7767    *)
7768      enable_fast_install=no
7769      # Look at the argument we got.  We use all the common list separators.
7770      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7771      for pkg in $enableval; do
7772	IFS=$lt_save_ifs
7773	if test "X$pkg" = "X$p"; then
7774	  enable_fast_install=yes
7775	fi
7776      done
7777      IFS=$lt_save_ifs
7778      ;;
7779    esac
7780else
7781  enable_fast_install=yes
7782fi
7783
7784
7785
7786
7787
7788
7789
7790
7791  shared_archive_member_spec=
7792case $host,$enable_shared in
7793power*-*-aix[5-9]*,yes)
7794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7795$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7796
7797# Check whether --with-aix-soname was given.
7798if test "${with_aix_soname+set}" = set; then :
7799  withval=$with_aix_soname; case $withval in
7800    aix|svr4|both)
7801      ;;
7802    *)
7803      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7804      ;;
7805    esac
7806    lt_cv_with_aix_soname=$with_aix_soname
7807else
7808  if ${lt_cv_with_aix_soname+:} false; then :
7809  $as_echo_n "(cached) " >&6
7810else
7811  lt_cv_with_aix_soname=aix
7812fi
7813
7814    with_aix_soname=$lt_cv_with_aix_soname
7815fi
7816
7817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7818$as_echo "$with_aix_soname" >&6; }
7819  if test aix != "$with_aix_soname"; then
7820    # For the AIX way of multilib, we name the shared archive member
7821    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7822    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7823    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7824    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7825    if test 64 = "${OBJECT_MODE-32}"; then
7826      shared_archive_member_spec=shr_64
7827    else
7828      shared_archive_member_spec=shr
7829    fi
7830  fi
7831  ;;
7832*)
7833  with_aix_soname=aix
7834  ;;
7835esac
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846# This can be used to rebuild libtool when needed
7847LIBTOOL_DEPS=$ltmain
7848
7849# Always use our own libtool.
7850LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881test -z "$LN_S" && LN_S="ln -s"
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896if test -n "${ZSH_VERSION+set}"; then
7897   setopt NO_GLOB_SUBST
7898fi
7899
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7901$as_echo_n "checking for objdir... " >&6; }
7902if ${lt_cv_objdir+:} false; then :
7903  $as_echo_n "(cached) " >&6
7904else
7905  rm -f .libs 2>/dev/null
7906mkdir .libs 2>/dev/null
7907if test -d .libs; then
7908  lt_cv_objdir=.libs
7909else
7910  # MS-DOS does not allow filenames that begin with a dot.
7911  lt_cv_objdir=_libs
7912fi
7913rmdir .libs 2>/dev/null
7914fi
7915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7916$as_echo "$lt_cv_objdir" >&6; }
7917objdir=$lt_cv_objdir
7918
7919
7920
7921
7922
7923cat >>confdefs.h <<_ACEOF
7924#define LT_OBJDIR "$lt_cv_objdir/"
7925_ACEOF
7926
7927
7928
7929
7930case $host_os in
7931aix3*)
7932  # AIX sometimes has problems with the GCC collect2 program.  For some
7933  # reason, if we set the COLLECT_NAMES environment variable, the problems
7934  # vanish in a puff of smoke.
7935  if test set != "${COLLECT_NAMES+set}"; then
7936    COLLECT_NAMES=
7937    export COLLECT_NAMES
7938  fi
7939  ;;
7940esac
7941
7942# Global variables:
7943ofile=libtool
7944can_build_shared=yes
7945
7946# All known linkers require a '.a' archive for static linking (except MSVC,
7947# which needs '.lib').
7948libext=a
7949
7950with_gnu_ld=$lt_cv_prog_gnu_ld
7951
7952old_CC=$CC
7953old_CFLAGS=$CFLAGS
7954
7955# Set sane defaults for various variables
7956test -z "$CC" && CC=cc
7957test -z "$LTCC" && LTCC=$CC
7958test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7959test -z "$LD" && LD=ld
7960test -z "$ac_objext" && ac_objext=o
7961
7962func_cc_basename $compiler
7963cc_basename=$func_cc_basename_result
7964
7965
7966# Only perform the check for file, if the check method requires it
7967test -z "$MAGIC_CMD" && MAGIC_CMD=file
7968case $deplibs_check_method in
7969file_magic*)
7970  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7971    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7972$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7973if ${lt_cv_path_MAGIC_CMD+:} false; then :
7974  $as_echo_n "(cached) " >&6
7975else
7976  case $MAGIC_CMD in
7977[\\/*] |  ?:[\\/]*)
7978  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7979  ;;
7980*)
7981  lt_save_MAGIC_CMD=$MAGIC_CMD
7982  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7983  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7984  for ac_dir in $ac_dummy; do
7985    IFS=$lt_save_ifs
7986    test -z "$ac_dir" && ac_dir=.
7987    if test -f "$ac_dir/${ac_tool_prefix}file"; then
7988      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7989      if test -n "$file_magic_test_file"; then
7990	case $deplibs_check_method in
7991	"file_magic "*)
7992	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7993	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7994	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7995	    $EGREP "$file_magic_regex" > /dev/null; then
7996	    :
7997	  else
7998	    cat <<_LT_EOF 1>&2
7999
8000*** Warning: the command libtool uses to detect shared libraries,
8001*** $file_magic_cmd, produces output that libtool cannot recognize.
8002*** The result is that libtool may fail to recognize shared libraries
8003*** as such.  This will affect the creation of libtool libraries that
8004*** depend on shared libraries, but programs linked with such libtool
8005*** libraries will work regardless of this problem.  Nevertheless, you
8006*** may want to report the problem to your system manager and/or to
8007*** bug-libtool@gnu.org
8008
8009_LT_EOF
8010	  fi ;;
8011	esac
8012      fi
8013      break
8014    fi
8015  done
8016  IFS=$lt_save_ifs
8017  MAGIC_CMD=$lt_save_MAGIC_CMD
8018  ;;
8019esac
8020fi
8021
8022MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8023if test -n "$MAGIC_CMD"; then
8024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8025$as_echo "$MAGIC_CMD" >&6; }
8026else
8027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028$as_echo "no" >&6; }
8029fi
8030
8031
8032
8033
8034
8035if test -z "$lt_cv_path_MAGIC_CMD"; then
8036  if test -n "$ac_tool_prefix"; then
8037    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8038$as_echo_n "checking for file... " >&6; }
8039if ${lt_cv_path_MAGIC_CMD+:} false; then :
8040  $as_echo_n "(cached) " >&6
8041else
8042  case $MAGIC_CMD in
8043[\\/*] |  ?:[\\/]*)
8044  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8045  ;;
8046*)
8047  lt_save_MAGIC_CMD=$MAGIC_CMD
8048  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8049  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8050  for ac_dir in $ac_dummy; do
8051    IFS=$lt_save_ifs
8052    test -z "$ac_dir" && ac_dir=.
8053    if test -f "$ac_dir/file"; then
8054      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8055      if test -n "$file_magic_test_file"; then
8056	case $deplibs_check_method in
8057	"file_magic "*)
8058	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8059	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8060	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8061	    $EGREP "$file_magic_regex" > /dev/null; then
8062	    :
8063	  else
8064	    cat <<_LT_EOF 1>&2
8065
8066*** Warning: the command libtool uses to detect shared libraries,
8067*** $file_magic_cmd, produces output that libtool cannot recognize.
8068*** The result is that libtool may fail to recognize shared libraries
8069*** as such.  This will affect the creation of libtool libraries that
8070*** depend on shared libraries, but programs linked with such libtool
8071*** libraries will work regardless of this problem.  Nevertheless, you
8072*** may want to report the problem to your system manager and/or to
8073*** bug-libtool@gnu.org
8074
8075_LT_EOF
8076	  fi ;;
8077	esac
8078      fi
8079      break
8080    fi
8081  done
8082  IFS=$lt_save_ifs
8083  MAGIC_CMD=$lt_save_MAGIC_CMD
8084  ;;
8085esac
8086fi
8087
8088MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8089if test -n "$MAGIC_CMD"; then
8090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8091$as_echo "$MAGIC_CMD" >&6; }
8092else
8093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094$as_echo "no" >&6; }
8095fi
8096
8097
8098  else
8099    MAGIC_CMD=:
8100  fi
8101fi
8102
8103  fi
8104  ;;
8105esac
8106
8107# Use C for the default configuration in the libtool script
8108
8109lt_save_CC=$CC
8110ac_ext=c
8111ac_cpp='$CPP $CPPFLAGS'
8112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8114ac_compiler_gnu=$ac_cv_c_compiler_gnu
8115
8116
8117# Source file extension for C test sources.
8118ac_ext=c
8119
8120# Object file extension for compiled C test sources.
8121objext=o
8122objext=$objext
8123
8124# Code to be used in simple compile tests
8125lt_simple_compile_test_code="int some_variable = 0;"
8126
8127# Code to be used in simple link tests
8128lt_simple_link_test_code='int main(){return(0);}'
8129
8130
8131
8132
8133
8134
8135
8136# If no C compiler was specified, use CC.
8137LTCC=${LTCC-"$CC"}
8138
8139# If no C compiler flags were specified, use CFLAGS.
8140LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8141
8142# Allow CC to be a program name with arguments.
8143compiler=$CC
8144
8145# Save the default compiler, since it gets overwritten when the other
8146# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8147compiler_DEFAULT=$CC
8148
8149# save warnings/boilerplate of simple test code
8150ac_outfile=conftest.$ac_objext
8151echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8152eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8153_lt_compiler_boilerplate=`cat conftest.err`
8154$RM conftest*
8155
8156ac_outfile=conftest.$ac_objext
8157echo "$lt_simple_link_test_code" >conftest.$ac_ext
8158eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8159_lt_linker_boilerplate=`cat conftest.err`
8160$RM -r conftest*
8161
8162
8163if test -n "$compiler"; then
8164
8165lt_prog_compiler_no_builtin_flag=
8166
8167if test yes = "$GCC"; then
8168  case $cc_basename in
8169  nvcc*)
8170    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8171  *)
8172    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8173  esac
8174
8175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8176$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8177if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8178  $as_echo_n "(cached) " >&6
8179else
8180  lt_cv_prog_compiler_rtti_exceptions=no
8181   ac_outfile=conftest.$ac_objext
8182   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8183   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8184   # Insert the option either (1) after the last *FLAGS variable, or
8185   # (2) before a word containing "conftest.", or (3) at the end.
8186   # Note that $ac_compile itself does not contain backslashes and begins
8187   # with a dollar sign (not a hyphen), so the echo should work correctly.
8188   # The option is referenced via a variable to avoid confusing sed.
8189   lt_compile=`echo "$ac_compile" | $SED \
8190   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8191   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8192   -e 's:$: $lt_compiler_flag:'`
8193   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8194   (eval "$lt_compile" 2>conftest.err)
8195   ac_status=$?
8196   cat conftest.err >&5
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   if (exit $ac_status) && test -s "$ac_outfile"; then
8199     # The compiler can only warn and ignore the option if not recognized
8200     # So say no if there are warnings other than the usual output.
8201     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8202     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8203     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8204       lt_cv_prog_compiler_rtti_exceptions=yes
8205     fi
8206   fi
8207   $RM conftest*
8208
8209fi
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8211$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8212
8213if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8214    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8215else
8216    :
8217fi
8218
8219fi
8220
8221
8222
8223
8224
8225
8226  lt_prog_compiler_wl=
8227lt_prog_compiler_pic=
8228lt_prog_compiler_static=
8229
8230
8231  if test yes = "$GCC"; then
8232    lt_prog_compiler_wl='-Wl,'
8233    lt_prog_compiler_static='-static'
8234
8235    case $host_os in
8236      aix*)
8237      # All AIX code is PIC.
8238      if test ia64 = "$host_cpu"; then
8239	# AIX 5 now supports IA64 processor
8240	lt_prog_compiler_static='-Bstatic'
8241      fi
8242      lt_prog_compiler_pic='-fPIC'
8243      ;;
8244
8245    amigaos*)
8246      case $host_cpu in
8247      powerpc)
8248            # see comment about AmigaOS4 .so support
8249            lt_prog_compiler_pic='-fPIC'
8250        ;;
8251      m68k)
8252            # FIXME: we need at least 68020 code to build shared libraries, but
8253            # adding the '-m68020' flag to GCC prevents building anything better,
8254            # like '-m68040'.
8255            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8256        ;;
8257      esac
8258      ;;
8259
8260    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8261      # PIC is the default for these OSes.
8262      ;;
8263
8264    mingw* | cygwin* | pw32* | os2* | cegcc*)
8265      # This hack is so that the source file can tell whether it is being
8266      # built for inclusion in a dll (and should export symbols for example).
8267      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8268      # (--disable-auto-import) libraries
8269      lt_prog_compiler_pic='-DDLL_EXPORT'
8270      case $host_os in
8271      os2*)
8272	lt_prog_compiler_static='$wl-static'
8273	;;
8274      esac
8275      ;;
8276
8277    darwin* | rhapsody*)
8278      # PIC is the default on this platform
8279      # Common symbols not allowed in MH_DYLIB files
8280      lt_prog_compiler_pic='-fno-common'
8281      ;;
8282
8283    haiku*)
8284      # PIC is the default for Haiku.
8285      # The "-static" flag exists, but is broken.
8286      lt_prog_compiler_static=
8287      ;;
8288
8289    hpux*)
8290      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8291      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8292      # sets the default TLS model and affects inlining.
8293      case $host_cpu in
8294      hppa*64*)
8295	# +Z the default
8296	;;
8297      *)
8298	lt_prog_compiler_pic='-fPIC'
8299	;;
8300      esac
8301      ;;
8302
8303    interix[3-9]*)
8304      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8305      # Instead, we relocate shared libraries at runtime.
8306      ;;
8307
8308    msdosdjgpp*)
8309      # Just because we use GCC doesn't mean we suddenly get shared libraries
8310      # on systems that don't support them.
8311      lt_prog_compiler_can_build_shared=no
8312      enable_shared=no
8313      ;;
8314
8315    *nto* | *qnx*)
8316      # QNX uses GNU C++, but need to define -shared option too, otherwise
8317      # it will coredump.
8318      lt_prog_compiler_pic='-fPIC -shared'
8319      ;;
8320
8321    sysv4*MP*)
8322      if test -d /usr/nec; then
8323	lt_prog_compiler_pic=-Kconform_pic
8324      fi
8325      ;;
8326
8327    *)
8328      lt_prog_compiler_pic='-fPIC'
8329      ;;
8330    esac
8331
8332    case $cc_basename in
8333    nvcc*) # Cuda Compiler Driver 2.2
8334      lt_prog_compiler_wl='-Xlinker '
8335      if test -n "$lt_prog_compiler_pic"; then
8336        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8337      fi
8338      ;;
8339    esac
8340  else
8341    # PORTME Check for flag to pass linker flags through the system compiler.
8342    case $host_os in
8343    aix*)
8344      lt_prog_compiler_wl='-Wl,'
8345      if test ia64 = "$host_cpu"; then
8346	# AIX 5 now supports IA64 processor
8347	lt_prog_compiler_static='-Bstatic'
8348      else
8349	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8350      fi
8351      ;;
8352
8353    darwin* | rhapsody*)
8354      # PIC is the default on this platform
8355      # Common symbols not allowed in MH_DYLIB files
8356      lt_prog_compiler_pic='-fno-common'
8357      case $cc_basename in
8358      nagfor*)
8359        # NAG Fortran compiler
8360        lt_prog_compiler_wl='-Wl,-Wl,,'
8361        lt_prog_compiler_pic='-PIC'
8362        lt_prog_compiler_static='-Bstatic'
8363        ;;
8364      esac
8365      ;;
8366
8367    mingw* | cygwin* | pw32* | os2* | cegcc*)
8368      # This hack is so that the source file can tell whether it is being
8369      # built for inclusion in a dll (and should export symbols for example).
8370      lt_prog_compiler_pic='-DDLL_EXPORT'
8371      case $host_os in
8372      os2*)
8373	lt_prog_compiler_static='$wl-static'
8374	;;
8375      esac
8376      ;;
8377
8378    hpux9* | hpux10* | hpux11*)
8379      lt_prog_compiler_wl='-Wl,'
8380      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8381      # not for PA HP-UX.
8382      case $host_cpu in
8383      hppa*64*|ia64*)
8384	# +Z the default
8385	;;
8386      *)
8387	lt_prog_compiler_pic='+Z'
8388	;;
8389      esac
8390      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8391      lt_prog_compiler_static='$wl-a ${wl}archive'
8392      ;;
8393
8394    irix5* | irix6* | nonstopux*)
8395      lt_prog_compiler_wl='-Wl,'
8396      # PIC (with -KPIC) is the default.
8397      lt_prog_compiler_static='-non_shared'
8398      ;;
8399
8400    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8401      case $cc_basename in
8402      # old Intel for x86_64, which still supported -KPIC.
8403      ecc*)
8404	lt_prog_compiler_wl='-Wl,'
8405	lt_prog_compiler_pic='-KPIC'
8406	lt_prog_compiler_static='-static'
8407        ;;
8408      # icc used to be incompatible with GCC.
8409      # ICC 10 doesn't accept -KPIC any more.
8410      icc* | ifort*)
8411	lt_prog_compiler_wl='-Wl,'
8412	lt_prog_compiler_pic='-fPIC'
8413	lt_prog_compiler_static='-static'
8414        ;;
8415      # Lahey Fortran 8.1.
8416      lf95*)
8417	lt_prog_compiler_wl='-Wl,'
8418	lt_prog_compiler_pic='--shared'
8419	lt_prog_compiler_static='--static'
8420	;;
8421      nagfor*)
8422	# NAG Fortran compiler
8423	lt_prog_compiler_wl='-Wl,-Wl,,'
8424	lt_prog_compiler_pic='-PIC'
8425	lt_prog_compiler_static='-Bstatic'
8426	;;
8427      tcc*)
8428	# Fabrice Bellard et al's Tiny C Compiler
8429	lt_prog_compiler_wl='-Wl,'
8430	lt_prog_compiler_pic='-fPIC'
8431	lt_prog_compiler_static='-static'
8432	;;
8433      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8434        # Portland Group compilers (*not* the Pentium gcc compiler,
8435	# which looks to be a dead project)
8436	lt_prog_compiler_wl='-Wl,'
8437	lt_prog_compiler_pic='-fpic'
8438	lt_prog_compiler_static='-Bstatic'
8439        ;;
8440      ccc*)
8441        lt_prog_compiler_wl='-Wl,'
8442        # All Alpha code is PIC.
8443        lt_prog_compiler_static='-non_shared'
8444        ;;
8445      xl* | bgxl* | bgf* | mpixl*)
8446	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8447	lt_prog_compiler_wl='-Wl,'
8448	lt_prog_compiler_pic='-qpic'
8449	lt_prog_compiler_static='-qstaticlink'
8450	;;
8451      *)
8452	case `$CC -V 2>&1 | sed 5q` in
8453	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8454	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8455	  lt_prog_compiler_pic='-KPIC'
8456	  lt_prog_compiler_static='-Bstatic'
8457	  lt_prog_compiler_wl=''
8458	  ;;
8459	*Sun\ F* | *Sun*Fortran*)
8460	  lt_prog_compiler_pic='-KPIC'
8461	  lt_prog_compiler_static='-Bstatic'
8462	  lt_prog_compiler_wl='-Qoption ld '
8463	  ;;
8464	*Sun\ C*)
8465	  # Sun C 5.9
8466	  lt_prog_compiler_pic='-KPIC'
8467	  lt_prog_compiler_static='-Bstatic'
8468	  lt_prog_compiler_wl='-Wl,'
8469	  ;;
8470        *Intel*\ [CF]*Compiler*)
8471	  lt_prog_compiler_wl='-Wl,'
8472	  lt_prog_compiler_pic='-fPIC'
8473	  lt_prog_compiler_static='-static'
8474	  ;;
8475	*Portland\ Group*)
8476	  lt_prog_compiler_wl='-Wl,'
8477	  lt_prog_compiler_pic='-fpic'
8478	  lt_prog_compiler_static='-Bstatic'
8479	  ;;
8480	esac
8481	;;
8482      esac
8483      ;;
8484
8485    newsos6)
8486      lt_prog_compiler_pic='-KPIC'
8487      lt_prog_compiler_static='-Bstatic'
8488      ;;
8489
8490    *nto* | *qnx*)
8491      # QNX uses GNU C++, but need to define -shared option too, otherwise
8492      # it will coredump.
8493      lt_prog_compiler_pic='-fPIC -shared'
8494      ;;
8495
8496    osf3* | osf4* | osf5*)
8497      lt_prog_compiler_wl='-Wl,'
8498      # All OSF/1 code is PIC.
8499      lt_prog_compiler_static='-non_shared'
8500      ;;
8501
8502    rdos*)
8503      lt_prog_compiler_static='-non_shared'
8504      ;;
8505
8506    solaris*)
8507      lt_prog_compiler_pic='-KPIC'
8508      lt_prog_compiler_static='-Bstatic'
8509      case $cc_basename in
8510      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8511	lt_prog_compiler_wl='-Qoption ld ';;
8512      *)
8513	lt_prog_compiler_wl='-Wl,';;
8514      esac
8515      ;;
8516
8517    sunos4*)
8518      lt_prog_compiler_wl='-Qoption ld '
8519      lt_prog_compiler_pic='-PIC'
8520      lt_prog_compiler_static='-Bstatic'
8521      ;;
8522
8523    sysv4 | sysv4.2uw2* | sysv4.3*)
8524      lt_prog_compiler_wl='-Wl,'
8525      lt_prog_compiler_pic='-KPIC'
8526      lt_prog_compiler_static='-Bstatic'
8527      ;;
8528
8529    sysv4*MP*)
8530      if test -d /usr/nec; then
8531	lt_prog_compiler_pic='-Kconform_pic'
8532	lt_prog_compiler_static='-Bstatic'
8533      fi
8534      ;;
8535
8536    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8537      lt_prog_compiler_wl='-Wl,'
8538      lt_prog_compiler_pic='-KPIC'
8539      lt_prog_compiler_static='-Bstatic'
8540      ;;
8541
8542    unicos*)
8543      lt_prog_compiler_wl='-Wl,'
8544      lt_prog_compiler_can_build_shared=no
8545      ;;
8546
8547    uts4*)
8548      lt_prog_compiler_pic='-pic'
8549      lt_prog_compiler_static='-Bstatic'
8550      ;;
8551
8552    *)
8553      lt_prog_compiler_can_build_shared=no
8554      ;;
8555    esac
8556  fi
8557
8558case $host_os in
8559  # For platforms that do not support PIC, -DPIC is meaningless:
8560  *djgpp*)
8561    lt_prog_compiler_pic=
8562    ;;
8563  *)
8564    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8565    ;;
8566esac
8567
8568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8569$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8570if ${lt_cv_prog_compiler_pic+:} false; then :
8571  $as_echo_n "(cached) " >&6
8572else
8573  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8574fi
8575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8576$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8577lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8578
8579#
8580# Check to make sure the PIC flag actually works.
8581#
8582if test -n "$lt_prog_compiler_pic"; then
8583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8584$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8585if ${lt_cv_prog_compiler_pic_works+:} false; then :
8586  $as_echo_n "(cached) " >&6
8587else
8588  lt_cv_prog_compiler_pic_works=no
8589   ac_outfile=conftest.$ac_objext
8590   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8591   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8592   # Insert the option either (1) after the last *FLAGS variable, or
8593   # (2) before a word containing "conftest.", or (3) at the end.
8594   # Note that $ac_compile itself does not contain backslashes and begins
8595   # with a dollar sign (not a hyphen), so the echo should work correctly.
8596   # The option is referenced via a variable to avoid confusing sed.
8597   lt_compile=`echo "$ac_compile" | $SED \
8598   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8599   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8600   -e 's:$: $lt_compiler_flag:'`
8601   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8602   (eval "$lt_compile" 2>conftest.err)
8603   ac_status=$?
8604   cat conftest.err >&5
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   if (exit $ac_status) && test -s "$ac_outfile"; then
8607     # The compiler can only warn and ignore the option if not recognized
8608     # So say no if there are warnings other than the usual output.
8609     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8610     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8611     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8612       lt_cv_prog_compiler_pic_works=yes
8613     fi
8614   fi
8615   $RM conftest*
8616
8617fi
8618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8619$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8620
8621if test yes = "$lt_cv_prog_compiler_pic_works"; then
8622    case $lt_prog_compiler_pic in
8623     "" | " "*) ;;
8624     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8625     esac
8626else
8627    lt_prog_compiler_pic=
8628     lt_prog_compiler_can_build_shared=no
8629fi
8630
8631fi
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643#
8644# Check to make sure the static flag actually works.
8645#
8646wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8648$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8649if ${lt_cv_prog_compiler_static_works+:} false; then :
8650  $as_echo_n "(cached) " >&6
8651else
8652  lt_cv_prog_compiler_static_works=no
8653   save_LDFLAGS=$LDFLAGS
8654   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8655   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8656   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8657     # The linker can only warn and ignore the option if not recognized
8658     # So say no if there are warnings
8659     if test -s conftest.err; then
8660       # Append any errors to the config.log.
8661       cat conftest.err 1>&5
8662       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8663       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8664       if diff conftest.exp conftest.er2 >/dev/null; then
8665         lt_cv_prog_compiler_static_works=yes
8666       fi
8667     else
8668       lt_cv_prog_compiler_static_works=yes
8669     fi
8670   fi
8671   $RM -r conftest*
8672   LDFLAGS=$save_LDFLAGS
8673
8674fi
8675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8676$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8677
8678if test yes = "$lt_cv_prog_compiler_static_works"; then
8679    :
8680else
8681    lt_prog_compiler_static=
8682fi
8683
8684
8685
8686
8687
8688
8689
8690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8691$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8692if ${lt_cv_prog_compiler_c_o+:} false; then :
8693  $as_echo_n "(cached) " >&6
8694else
8695  lt_cv_prog_compiler_c_o=no
8696   $RM -r conftest 2>/dev/null
8697   mkdir conftest
8698   cd conftest
8699   mkdir out
8700   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8701
8702   lt_compiler_flag="-o out/conftest2.$ac_objext"
8703   # Insert the option either (1) after the last *FLAGS variable, or
8704   # (2) before a word containing "conftest.", or (3) at the end.
8705   # Note that $ac_compile itself does not contain backslashes and begins
8706   # with a dollar sign (not a hyphen), so the echo should work correctly.
8707   lt_compile=`echo "$ac_compile" | $SED \
8708   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8709   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8710   -e 's:$: $lt_compiler_flag:'`
8711   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8712   (eval "$lt_compile" 2>out/conftest.err)
8713   ac_status=$?
8714   cat out/conftest.err >&5
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8717   then
8718     # The compiler can only warn and ignore the option if not recognized
8719     # So say no if there are warnings
8720     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8721     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8722     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8723       lt_cv_prog_compiler_c_o=yes
8724     fi
8725   fi
8726   chmod u+w . 2>&5
8727   $RM conftest*
8728   # SGI C++ compiler will create directory out/ii_files/ for
8729   # template instantiation
8730   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8731   $RM out/* && rmdir out
8732   cd ..
8733   $RM -r conftest
8734   $RM conftest*
8735
8736fi
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8738$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8739
8740
8741
8742
8743
8744
8745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8746$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8747if ${lt_cv_prog_compiler_c_o+:} false; then :
8748  $as_echo_n "(cached) " >&6
8749else
8750  lt_cv_prog_compiler_c_o=no
8751   $RM -r conftest 2>/dev/null
8752   mkdir conftest
8753   cd conftest
8754   mkdir out
8755   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8756
8757   lt_compiler_flag="-o out/conftest2.$ac_objext"
8758   # Insert the option either (1) after the last *FLAGS variable, or
8759   # (2) before a word containing "conftest.", or (3) at the end.
8760   # Note that $ac_compile itself does not contain backslashes and begins
8761   # with a dollar sign (not a hyphen), so the echo should work correctly.
8762   lt_compile=`echo "$ac_compile" | $SED \
8763   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8764   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8765   -e 's:$: $lt_compiler_flag:'`
8766   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8767   (eval "$lt_compile" 2>out/conftest.err)
8768   ac_status=$?
8769   cat out/conftest.err >&5
8770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8772   then
8773     # The compiler can only warn and ignore the option if not recognized
8774     # So say no if there are warnings
8775     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8776     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8777     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8778       lt_cv_prog_compiler_c_o=yes
8779     fi
8780   fi
8781   chmod u+w . 2>&5
8782   $RM conftest*
8783   # SGI C++ compiler will create directory out/ii_files/ for
8784   # template instantiation
8785   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8786   $RM out/* && rmdir out
8787   cd ..
8788   $RM -r conftest
8789   $RM conftest*
8790
8791fi
8792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8793$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8794
8795
8796
8797
8798hard_links=nottested
8799if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8800  # do not overwrite the value of need_locks provided by the user
8801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8802$as_echo_n "checking if we can lock with hard links... " >&6; }
8803  hard_links=yes
8804  $RM conftest*
8805  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8806  touch conftest.a
8807  ln conftest.a conftest.b 2>&5 || hard_links=no
8808  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8810$as_echo "$hard_links" >&6; }
8811  if test no = "$hard_links"; then
8812    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8813$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8814    need_locks=warn
8815  fi
8816else
8817  need_locks=no
8818fi
8819
8820
8821
8822
8823
8824
8825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8826$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8827
8828  runpath_var=
8829  allow_undefined_flag=
8830  always_export_symbols=no
8831  archive_cmds=
8832  archive_expsym_cmds=
8833  compiler_needs_object=no
8834  enable_shared_with_static_runtimes=no
8835  export_dynamic_flag_spec=
8836  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8837  hardcode_automatic=no
8838  hardcode_direct=no
8839  hardcode_direct_absolute=no
8840  hardcode_libdir_flag_spec=
8841  hardcode_libdir_separator=
8842  hardcode_minus_L=no
8843  hardcode_shlibpath_var=unsupported
8844  inherit_rpath=no
8845  link_all_deplibs=unknown
8846  module_cmds=
8847  module_expsym_cmds=
8848  old_archive_from_new_cmds=
8849  old_archive_from_expsyms_cmds=
8850  thread_safe_flag_spec=
8851  whole_archive_flag_spec=
8852  # include_expsyms should be a list of space-separated symbols to be *always*
8853  # included in the symbol list
8854  include_expsyms=
8855  # exclude_expsyms can be an extended regexp of symbols to exclude
8856  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8857  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8858  # as well as any symbol that contains 'd'.
8859  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8860  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8861  # platforms (ab)use it in PIC code, but their linkers get confused if
8862  # the symbol is explicitly referenced.  Since portable code cannot
8863  # rely on this symbol name, it's probably fine to never include it in
8864  # preloaded symbol tables.
8865  # Exclude shared library initialization/finalization symbols.
8866  extract_expsyms_cmds=
8867
8868  case $host_os in
8869  cygwin* | mingw* | pw32* | cegcc*)
8870    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8871    # When not using gcc, we currently assume that we are using
8872    # Microsoft Visual C++.
8873    if test yes != "$GCC"; then
8874      with_gnu_ld=no
8875    fi
8876    ;;
8877  interix*)
8878    # we just hope/assume this is gcc and not c89 (= MSVC++)
8879    with_gnu_ld=yes
8880    ;;
8881  openbsd* | bitrig*)
8882    with_gnu_ld=no
8883    ;;
8884  esac
8885
8886  ld_shlibs=yes
8887
8888  # On some targets, GNU ld is compatible enough with the native linker
8889  # that we're better off using the native interface for both.
8890  lt_use_gnu_ld_interface=no
8891  if test yes = "$with_gnu_ld"; then
8892    case $host_os in
8893      aix*)
8894	# The AIX port of GNU ld has always aspired to compatibility
8895	# with the native linker.  However, as the warning in the GNU ld
8896	# block says, versions before 2.19.5* couldn't really create working
8897	# shared libraries, regardless of the interface used.
8898	case `$LD -v 2>&1` in
8899	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8900	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8901	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8902	  *)
8903	    lt_use_gnu_ld_interface=yes
8904	    ;;
8905	esac
8906	;;
8907      *)
8908	lt_use_gnu_ld_interface=yes
8909	;;
8910    esac
8911  fi
8912
8913  if test yes = "$lt_use_gnu_ld_interface"; then
8914    # If archive_cmds runs LD, not CC, wlarc should be empty
8915    wlarc='$wl'
8916
8917    # Set some defaults for GNU ld with shared library support. These
8918    # are reset later if shared libraries are not supported. Putting them
8919    # here allows them to be overridden if necessary.
8920    runpath_var=LD_RUN_PATH
8921    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8922    export_dynamic_flag_spec='$wl--export-dynamic'
8923    # ancient GNU ld didn't support --whole-archive et. al.
8924    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8925      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8926    else
8927      whole_archive_flag_spec=
8928    fi
8929    supports_anon_versioning=no
8930    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8931      *GNU\ gold*) supports_anon_versioning=yes ;;
8932      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8933      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8934      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8935      *\ 2.11.*) ;; # other 2.11 versions
8936      *) supports_anon_versioning=yes ;;
8937    esac
8938
8939    # See if GNU ld supports shared libraries.
8940    case $host_os in
8941    aix[3-9]*)
8942      # On AIX/PPC, the GNU linker is very broken
8943      if test ia64 != "$host_cpu"; then
8944	ld_shlibs=no
8945	cat <<_LT_EOF 1>&2
8946
8947*** Warning: the GNU linker, at least up to release 2.19, is reported
8948*** to be unable to reliably create shared libraries on AIX.
8949*** Therefore, libtool is disabling shared libraries support.  If you
8950*** really care for shared libraries, you may want to install binutils
8951*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8952*** You will then need to restart the configuration process.
8953
8954_LT_EOF
8955      fi
8956      ;;
8957
8958    amigaos*)
8959      case $host_cpu in
8960      powerpc)
8961            # see comment about AmigaOS4 .so support
8962            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8963            archive_expsym_cmds=''
8964        ;;
8965      m68k)
8966            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)'
8967            hardcode_libdir_flag_spec='-L$libdir'
8968            hardcode_minus_L=yes
8969        ;;
8970      esac
8971      ;;
8972
8973    beos*)
8974      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8975	allow_undefined_flag=unsupported
8976	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8977	# support --undefined.  This deserves some investigation.  FIXME
8978	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8979      else
8980	ld_shlibs=no
8981      fi
8982      ;;
8983
8984    cygwin* | mingw* | pw32* | cegcc*)
8985      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8986      # as there is no search path for DLLs.
8987      hardcode_libdir_flag_spec='-L$libdir'
8988      export_dynamic_flag_spec='$wl--export-all-symbols'
8989      allow_undefined_flag=unsupported
8990      always_export_symbols=no
8991      enable_shared_with_static_runtimes=yes
8992      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'
8993      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8994
8995      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8996        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8997	# If the export-symbols file already is a .def file, use it as
8998	# is; otherwise, prepend EXPORTS...
8999	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9000          cp $export_symbols $output_objdir/$soname.def;
9001        else
9002          echo EXPORTS > $output_objdir/$soname.def;
9003          cat $export_symbols >> $output_objdir/$soname.def;
9004        fi~
9005        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9006      else
9007	ld_shlibs=no
9008      fi
9009      ;;
9010
9011    haiku*)
9012      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9013      link_all_deplibs=yes
9014      ;;
9015
9016    os2*)
9017      hardcode_libdir_flag_spec='-L$libdir'
9018      hardcode_minus_L=yes
9019      allow_undefined_flag=unsupported
9020      shrext_cmds=.dll
9021      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9022	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9023	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9024	$ECHO EXPORTS >> $output_objdir/$libname.def~
9025	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9026	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9027	emximp -o $lib $output_objdir/$libname.def'
9028      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9029	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9030	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9031	$ECHO EXPORTS >> $output_objdir/$libname.def~
9032	prefix_cmds="$SED"~
9033	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9034	  prefix_cmds="$prefix_cmds -e 1d";
9035	fi~
9036	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9037	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9038	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9039	emximp -o $lib $output_objdir/$libname.def'
9040      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9041      enable_shared_with_static_runtimes=yes
9042      ;;
9043
9044    interix[3-9]*)
9045      hardcode_direct=no
9046      hardcode_shlibpath_var=no
9047      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9048      export_dynamic_flag_spec='$wl-E'
9049      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9050      # Instead, shared libraries are loaded at an image base (0x10000000 by
9051      # default) and relocated if they conflict, which is a slow very memory
9052      # consuming and fragmenting process.  To avoid this, we pick a random,
9053      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9054      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9055      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9056      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'
9057      ;;
9058
9059    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9060      tmp_diet=no
9061      if test linux-dietlibc = "$host_os"; then
9062	case $cc_basename in
9063	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9064	esac
9065      fi
9066      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9067	 && test no = "$tmp_diet"
9068      then
9069	tmp_addflag=' $pic_flag'
9070	tmp_sharedflag='-shared'
9071	case $cc_basename,$host_cpu in
9072        pgcc*)				# Portland Group C compiler
9073	  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'
9074	  tmp_addflag=' $pic_flag'
9075	  ;;
9076	pgf77* | pgf90* | pgf95* | pgfortran*)
9077					# Portland Group f77 and f90 compilers
9078	  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'
9079	  tmp_addflag=' $pic_flag -Mnomain' ;;
9080	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9081	  tmp_addflag=' -i_dynamic' ;;
9082	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9083	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9084	ifc* | ifort*)			# Intel Fortran compiler
9085	  tmp_addflag=' -nofor_main' ;;
9086	lf95*)				# Lahey Fortran 8.1
9087	  whole_archive_flag_spec=
9088	  tmp_sharedflag='--shared' ;;
9089        nagfor*)                        # NAGFOR 5.3
9090          tmp_sharedflag='-Wl,-shared' ;;
9091	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9092	  tmp_sharedflag='-qmkshrobj'
9093	  tmp_addflag= ;;
9094	nvcc*)	# Cuda Compiler Driver 2.2
9095	  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'
9096	  compiler_needs_object=yes
9097	  ;;
9098	esac
9099	case `$CC -V 2>&1 | sed 5q` in
9100	*Sun\ C*)			# Sun C 5.9
9101	  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'
9102	  compiler_needs_object=yes
9103	  tmp_sharedflag='-G' ;;
9104	*Sun\ F*)			# Sun Fortran 8.3
9105	  tmp_sharedflag='-G' ;;
9106	esac
9107	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9108
9109        if test yes = "$supports_anon_versioning"; then
9110          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9111            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9112            echo "local: *; };" >> $output_objdir/$libname.ver~
9113            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9114        fi
9115
9116	case $cc_basename in
9117	tcc*)
9118	  export_dynamic_flag_spec='-rdynamic'
9119	  ;;
9120	xlf* | bgf* | bgxlf* | mpixlf*)
9121	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9122	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9123	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9124	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9125	  if test yes = "$supports_anon_versioning"; then
9126	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9127              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9128              echo "local: *; };" >> $output_objdir/$libname.ver~
9129              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9130	  fi
9131	  ;;
9132	esac
9133      else
9134        ld_shlibs=no
9135      fi
9136      ;;
9137
9138    netbsd*)
9139      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9140	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9141	wlarc=
9142      else
9143	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9144	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9145      fi
9146      ;;
9147
9148    solaris*)
9149      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9150	ld_shlibs=no
9151	cat <<_LT_EOF 1>&2
9152
9153*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9154*** create shared libraries on Solaris systems.  Therefore, libtool
9155*** is disabling shared libraries support.  We urge you to upgrade GNU
9156*** binutils to release 2.9.1 or newer.  Another option is to modify
9157*** your PATH or compiler configuration so that the native linker is
9158*** used, and then restart.
9159
9160_LT_EOF
9161      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9162	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9163	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9164      else
9165	ld_shlibs=no
9166      fi
9167      ;;
9168
9169    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9170      case `$LD -v 2>&1` in
9171        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9172	ld_shlibs=no
9173	cat <<_LT_EOF 1>&2
9174
9175*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9176*** reliably create shared libraries on SCO systems.  Therefore, libtool
9177*** is disabling shared libraries support.  We urge you to upgrade GNU
9178*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9179*** your PATH or compiler configuration so that the native linker is
9180*** used, and then restart.
9181
9182_LT_EOF
9183	;;
9184	*)
9185	  # For security reasons, it is highly recommended that you always
9186	  # use absolute paths for naming shared libraries, and exclude the
9187	  # DT_RUNPATH tag from executables and libraries.  But doing so
9188	  # requires that you compile everything twice, which is a pain.
9189	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9190	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9191	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9192	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9193	  else
9194	    ld_shlibs=no
9195	  fi
9196	;;
9197      esac
9198      ;;
9199
9200    sunos4*)
9201      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9202      wlarc=
9203      hardcode_direct=yes
9204      hardcode_shlibpath_var=no
9205      ;;
9206
9207    *)
9208      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9209	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9210	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9211      else
9212	ld_shlibs=no
9213      fi
9214      ;;
9215    esac
9216
9217    if test no = "$ld_shlibs"; then
9218      runpath_var=
9219      hardcode_libdir_flag_spec=
9220      export_dynamic_flag_spec=
9221      whole_archive_flag_spec=
9222    fi
9223  else
9224    # PORTME fill in a description of your system's linker (not GNU ld)
9225    case $host_os in
9226    aix3*)
9227      allow_undefined_flag=unsupported
9228      always_export_symbols=yes
9229      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'
9230      # Note: this linker hardcodes the directories in LIBPATH if there
9231      # are no directories specified by -L.
9232      hardcode_minus_L=yes
9233      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9234	# Neither direct hardcoding nor static linking is supported with a
9235	# broken collect2.
9236	hardcode_direct=unsupported
9237      fi
9238      ;;
9239
9240    aix[4-9]*)
9241      if test ia64 = "$host_cpu"; then
9242	# On IA64, the linker does run time linking by default, so we don't
9243	# have to do anything special.
9244	aix_use_runtimelinking=no
9245	exp_sym_flag='-Bexport'
9246	no_entry_flag=
9247      else
9248	# If we're using GNU nm, then we don't want the "-C" option.
9249	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9250	# Without the "-l" option, or with the "-B" option, AIX nm treats
9251	# weak defined symbols like other global defined symbols, whereas
9252	# GNU nm marks them as "W".
9253	# While the 'weak' keyword is ignored in the Export File, we need
9254	# it in the Import File for the 'aix-soname' feature, so we have
9255	# to replace the "-B" option with "-P" for AIX nm.
9256	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9257	  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'
9258	else
9259	  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 == "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'
9260	fi
9261	aix_use_runtimelinking=no
9262
9263	# Test if we are trying to use run time linking or normal
9264	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9265	# have runtime linking enabled, and use it for executables.
9266	# For shared libraries, we enable/disable runtime linking
9267	# depending on the kind of the shared library created -
9268	# when "with_aix_soname,aix_use_runtimelinking" is:
9269	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9270	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9271	#            lib.a           static archive
9272	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9273	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9274	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9275	#            lib.a(lib.so.V) shared, rtl:no
9276	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9277	#            lib.a           static archive
9278	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9279	  for ld_flag in $LDFLAGS; do
9280	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9281	    aix_use_runtimelinking=yes
9282	    break
9283	  fi
9284	  done
9285	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9286	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9287	    # so we don't have lib.a shared libs to link our executables.
9288	    # We have to force runtime linking in this case.
9289	    aix_use_runtimelinking=yes
9290	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9291	  fi
9292	  ;;
9293	esac
9294
9295	exp_sym_flag='-bexport'
9296	no_entry_flag='-bnoentry'
9297      fi
9298
9299      # When large executables or shared objects are built, AIX ld can
9300      # have problems creating the table of contents.  If linking a library
9301      # or program results in "error TOC overflow" add -mminimal-toc to
9302      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9303      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9304
9305      archive_cmds=''
9306      hardcode_direct=yes
9307      hardcode_direct_absolute=yes
9308      hardcode_libdir_separator=':'
9309      link_all_deplibs=yes
9310      file_list_spec='$wl-f,'
9311      case $with_aix_soname,$aix_use_runtimelinking in
9312      aix,*) ;; # traditional, no import file
9313      svr4,* | *,yes) # use import file
9314	# The Import File defines what to hardcode.
9315	hardcode_direct=no
9316	hardcode_direct_absolute=no
9317	;;
9318      esac
9319
9320      if test yes = "$GCC"; then
9321	case $host_os in aix4.[012]|aix4.[012].*)
9322	# We only want to do this on AIX 4.2 and lower, the check
9323	# below for broken collect2 doesn't work under 4.3+
9324	  collect2name=`$CC -print-prog-name=collect2`
9325	  if test -f "$collect2name" &&
9326	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9327	  then
9328	  # We have reworked collect2
9329	  :
9330	  else
9331	  # We have old collect2
9332	  hardcode_direct=unsupported
9333	  # It fails to find uninstalled libraries when the uninstalled
9334	  # path is not listed in the libpath.  Setting hardcode_minus_L
9335	  # to unsupported forces relinking
9336	  hardcode_minus_L=yes
9337	  hardcode_libdir_flag_spec='-L$libdir'
9338	  hardcode_libdir_separator=
9339	  fi
9340	  ;;
9341	esac
9342	shared_flag='-shared'
9343	if test yes = "$aix_use_runtimelinking"; then
9344	  shared_flag="$shared_flag "'$wl-G'
9345	fi
9346	# Need to ensure runtime linking is disabled for the traditional
9347	# shared library, or the linker may eventually find shared libraries
9348	# /with/ Import File - we do not want to mix them.
9349	shared_flag_aix='-shared'
9350	shared_flag_svr4='-shared $wl-G'
9351      else
9352	# not using gcc
9353	if test ia64 = "$host_cpu"; then
9354	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9355	# chokes on -Wl,-G. The following line is correct:
9356	  shared_flag='-G'
9357	else
9358	  if test yes = "$aix_use_runtimelinking"; then
9359	    shared_flag='$wl-G'
9360	  else
9361	    shared_flag='$wl-bM:SRE'
9362	  fi
9363	  shared_flag_aix='$wl-bM:SRE'
9364	  shared_flag_svr4='$wl-G'
9365	fi
9366      fi
9367
9368      export_dynamic_flag_spec='$wl-bexpall'
9369      # It seems that -bexpall does not export symbols beginning with
9370      # underscore (_), so it is better to generate a list of symbols to export.
9371      always_export_symbols=yes
9372      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9373	# Warning - without using the other runtime loading flags (-brtl),
9374	# -berok will link without error, but may produce a broken library.
9375	allow_undefined_flag='-berok'
9376        # Determine the default libpath from the value encoded in an
9377        # empty executable.
9378        if test set = "${lt_cv_aix_libpath+set}"; then
9379  aix_libpath=$lt_cv_aix_libpath
9380else
9381  if ${lt_cv_aix_libpath_+:} false; then :
9382  $as_echo_n "(cached) " >&6
9383else
9384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385/* end confdefs.h.  */
9386
9387int
9388main ()
9389{
9390
9391  ;
9392  return 0;
9393}
9394_ACEOF
9395if ac_fn_c_try_link "$LINENO"; then :
9396
9397  lt_aix_libpath_sed='
9398      /Import File Strings/,/^$/ {
9399	  /^0/ {
9400	      s/^0  *\([^ ]*\) *$/\1/
9401	      p
9402	  }
9403      }'
9404  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9405  # Check for a 64-bit object if we didn't find anything.
9406  if test -z "$lt_cv_aix_libpath_"; then
9407    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9408  fi
9409fi
9410rm -f core conftest.err conftest.$ac_objext \
9411    conftest$ac_exeext conftest.$ac_ext
9412  if test -z "$lt_cv_aix_libpath_"; then
9413    lt_cv_aix_libpath_=/usr/lib:/lib
9414  fi
9415
9416fi
9417
9418  aix_libpath=$lt_cv_aix_libpath_
9419fi
9420
9421        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9422        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
9423      else
9424	if test ia64 = "$host_cpu"; then
9425	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9426	  allow_undefined_flag="-z nodefs"
9427	  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"
9428	else
9429	 # Determine the default libpath from the value encoded in an
9430	 # empty executable.
9431	 if test set = "${lt_cv_aix_libpath+set}"; then
9432  aix_libpath=$lt_cv_aix_libpath
9433else
9434  if ${lt_cv_aix_libpath_+:} false; then :
9435  $as_echo_n "(cached) " >&6
9436else
9437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438/* end confdefs.h.  */
9439
9440int
9441main ()
9442{
9443
9444  ;
9445  return 0;
9446}
9447_ACEOF
9448if ac_fn_c_try_link "$LINENO"; then :
9449
9450  lt_aix_libpath_sed='
9451      /Import File Strings/,/^$/ {
9452	  /^0/ {
9453	      s/^0  *\([^ ]*\) *$/\1/
9454	      p
9455	  }
9456      }'
9457  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9458  # Check for a 64-bit object if we didn't find anything.
9459  if test -z "$lt_cv_aix_libpath_"; then
9460    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9461  fi
9462fi
9463rm -f core conftest.err conftest.$ac_objext \
9464    conftest$ac_exeext conftest.$ac_ext
9465  if test -z "$lt_cv_aix_libpath_"; then
9466    lt_cv_aix_libpath_=/usr/lib:/lib
9467  fi
9468
9469fi
9470
9471  aix_libpath=$lt_cv_aix_libpath_
9472fi
9473
9474	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9475	  # Warning - without using the other run time loading flags,
9476	  # -berok will link without error, but may produce a broken library.
9477	  no_undefined_flag=' $wl-bernotok'
9478	  allow_undefined_flag=' $wl-berok'
9479	  if test yes = "$with_gnu_ld"; then
9480	    # We only use this code for GNU lds that support --whole-archive.
9481	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9482	  else
9483	    # Exported symbols can be pulled into shared objects from archives
9484	    whole_archive_flag_spec='$convenience'
9485	  fi
9486	  archive_cmds_need_lc=yes
9487	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9488	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9489	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9490	  if test svr4 != "$with_aix_soname"; then
9491	    # This is similar to how AIX traditionally builds its shared libraries.
9492	    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'
9493	  fi
9494	  if test aix != "$with_aix_soname"; then
9495	    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'
9496	  else
9497	    # used by -dlpreopen to get the symbols
9498	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9499	  fi
9500	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9501	fi
9502      fi
9503      ;;
9504
9505    amigaos*)
9506      case $host_cpu in
9507      powerpc)
9508            # see comment about AmigaOS4 .so support
9509            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9510            archive_expsym_cmds=''
9511        ;;
9512      m68k)
9513            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)'
9514            hardcode_libdir_flag_spec='-L$libdir'
9515            hardcode_minus_L=yes
9516        ;;
9517      esac
9518      ;;
9519
9520    bsdi[45]*)
9521      export_dynamic_flag_spec=-rdynamic
9522      ;;
9523
9524    cygwin* | mingw* | pw32* | cegcc*)
9525      # When not using gcc, we currently assume that we are using
9526      # Microsoft Visual C++.
9527      # hardcode_libdir_flag_spec is actually meaningless, as there is
9528      # no search path for DLLs.
9529      case $cc_basename in
9530      cl*)
9531	# Native MSVC
9532	hardcode_libdir_flag_spec=' '
9533	allow_undefined_flag=unsupported
9534	always_export_symbols=yes
9535	file_list_spec='@'
9536	# Tell ltmain to make .lib files, not .a files.
9537	libext=lib
9538	# Tell ltmain to make .dll files, not .so files.
9539	shrext_cmds=.dll
9540	# FIXME: Setting linknames here is a bad hack.
9541	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9542	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9543            cp "$export_symbols" "$output_objdir/$soname.def";
9544            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9545          else
9546            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9547          fi~
9548          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9549          linknames='
9550	# The linker will not automatically build a static lib if we build a DLL.
9551	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9552	enable_shared_with_static_runtimes=yes
9553	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9554	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9555	# Don't use ranlib
9556	old_postinstall_cmds='chmod 644 $oldlib'
9557	postlink_cmds='lt_outputfile="@OUTPUT@"~
9558          lt_tool_outputfile="@TOOL_OUTPUT@"~
9559          case $lt_outputfile in
9560            *.exe|*.EXE) ;;
9561            *)
9562              lt_outputfile=$lt_outputfile.exe
9563              lt_tool_outputfile=$lt_tool_outputfile.exe
9564              ;;
9565          esac~
9566          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9567            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9568            $RM "$lt_outputfile.manifest";
9569          fi'
9570	;;
9571      *)
9572	# Assume MSVC wrapper
9573	hardcode_libdir_flag_spec=' '
9574	allow_undefined_flag=unsupported
9575	# Tell ltmain to make .lib files, not .a files.
9576	libext=lib
9577	# Tell ltmain to make .dll files, not .so files.
9578	shrext_cmds=.dll
9579	# FIXME: Setting linknames here is a bad hack.
9580	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9581	# The linker will automatically build a .lib file if we build a DLL.
9582	old_archive_from_new_cmds='true'
9583	# FIXME: Should let the user specify the lib program.
9584	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9585	enable_shared_with_static_runtimes=yes
9586	;;
9587      esac
9588      ;;
9589
9590    darwin* | rhapsody*)
9591
9592
9593  archive_cmds_need_lc=no
9594  hardcode_direct=no
9595  hardcode_automatic=yes
9596  hardcode_shlibpath_var=unsupported
9597  if test yes = "$lt_cv_ld_force_load"; then
9598    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\"`'
9599
9600  else
9601    whole_archive_flag_spec=''
9602  fi
9603  link_all_deplibs=yes
9604  allow_undefined_flag=$_lt_dar_allow_undefined
9605  case $cc_basename in
9606     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9607     *) _lt_dar_can_shared=$GCC ;;
9608  esac
9609  if test yes = "$_lt_dar_can_shared"; then
9610    output_verbose_link_cmd=func_echo_all
9611    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9612    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9613    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"
9614    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"
9615
9616  else
9617  ld_shlibs=no
9618  fi
9619
9620      ;;
9621
9622    dgux*)
9623      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9624      hardcode_libdir_flag_spec='-L$libdir'
9625      hardcode_shlibpath_var=no
9626      ;;
9627
9628    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9629    # support.  Future versions do this automatically, but an explicit c++rt0.o
9630    # does not break anything, and helps significantly (at the cost of a little
9631    # extra space).
9632    freebsd2.2*)
9633      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9634      hardcode_libdir_flag_spec='-R$libdir'
9635      hardcode_direct=yes
9636      hardcode_shlibpath_var=no
9637      ;;
9638
9639    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9640    freebsd2.*)
9641      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9642      hardcode_direct=yes
9643      hardcode_minus_L=yes
9644      hardcode_shlibpath_var=no
9645      ;;
9646
9647    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9648    freebsd* | dragonfly*)
9649      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9650      hardcode_libdir_flag_spec='-R$libdir'
9651      hardcode_direct=yes
9652      hardcode_shlibpath_var=no
9653      ;;
9654
9655    hpux9*)
9656      if test yes = "$GCC"; then
9657	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'
9658      else
9659	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'
9660      fi
9661      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9662      hardcode_libdir_separator=:
9663      hardcode_direct=yes
9664
9665      # hardcode_minus_L: Not really in the search PATH,
9666      # but as the default location of the library.
9667      hardcode_minus_L=yes
9668      export_dynamic_flag_spec='$wl-E'
9669      ;;
9670
9671    hpux10*)
9672      if test yes,no = "$GCC,$with_gnu_ld"; then
9673	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9674      else
9675	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9676      fi
9677      if test no = "$with_gnu_ld"; then
9678	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9679	hardcode_libdir_separator=:
9680	hardcode_direct=yes
9681	hardcode_direct_absolute=yes
9682	export_dynamic_flag_spec='$wl-E'
9683	# hardcode_minus_L: Not really in the search PATH,
9684	# but as the default location of the library.
9685	hardcode_minus_L=yes
9686      fi
9687      ;;
9688
9689    hpux11*)
9690      if test yes,no = "$GCC,$with_gnu_ld"; then
9691	case $host_cpu in
9692	hppa*64*)
9693	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9694	  ;;
9695	ia64*)
9696	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9697	  ;;
9698	*)
9699	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9700	  ;;
9701	esac
9702      else
9703	case $host_cpu in
9704	hppa*64*)
9705	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9706	  ;;
9707	ia64*)
9708	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9709	  ;;
9710	*)
9711
9712	  # Older versions of the 11.00 compiler do not understand -b yet
9713	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9714	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9715$as_echo_n "checking if $CC understands -b... " >&6; }
9716if ${lt_cv_prog_compiler__b+:} false; then :
9717  $as_echo_n "(cached) " >&6
9718else
9719  lt_cv_prog_compiler__b=no
9720   save_LDFLAGS=$LDFLAGS
9721   LDFLAGS="$LDFLAGS -b"
9722   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9723   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9724     # The linker can only warn and ignore the option if not recognized
9725     # So say no if there are warnings
9726     if test -s conftest.err; then
9727       # Append any errors to the config.log.
9728       cat conftest.err 1>&5
9729       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9730       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9731       if diff conftest.exp conftest.er2 >/dev/null; then
9732         lt_cv_prog_compiler__b=yes
9733       fi
9734     else
9735       lt_cv_prog_compiler__b=yes
9736     fi
9737   fi
9738   $RM -r conftest*
9739   LDFLAGS=$save_LDFLAGS
9740
9741fi
9742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9743$as_echo "$lt_cv_prog_compiler__b" >&6; }
9744
9745if test yes = "$lt_cv_prog_compiler__b"; then
9746    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9747else
9748    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9749fi
9750
9751	  ;;
9752	esac
9753      fi
9754      if test no = "$with_gnu_ld"; then
9755	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9756	hardcode_libdir_separator=:
9757
9758	case $host_cpu in
9759	hppa*64*|ia64*)
9760	  hardcode_direct=no
9761	  hardcode_shlibpath_var=no
9762	  ;;
9763	*)
9764	  hardcode_direct=yes
9765	  hardcode_direct_absolute=yes
9766	  export_dynamic_flag_spec='$wl-E'
9767
9768	  # hardcode_minus_L: Not really in the search PATH,
9769	  # but as the default location of the library.
9770	  hardcode_minus_L=yes
9771	  ;;
9772	esac
9773      fi
9774      ;;
9775
9776    irix5* | irix6* | nonstopux*)
9777      if test yes = "$GCC"; then
9778	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'
9779	# Try to use the -exported_symbol ld option, if it does not
9780	# work, assume that -exports_file does not work either and
9781	# implicitly export all symbols.
9782	# This should be the same for all languages, so no per-tag cache variable.
9783	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9784$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9785if ${lt_cv_irix_exported_symbol+:} false; then :
9786  $as_echo_n "(cached) " >&6
9787else
9788  save_LDFLAGS=$LDFLAGS
9789	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9790	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791/* end confdefs.h.  */
9792int foo (void) { return 0; }
9793_ACEOF
9794if ac_fn_c_try_link "$LINENO"; then :
9795  lt_cv_irix_exported_symbol=yes
9796else
9797  lt_cv_irix_exported_symbol=no
9798fi
9799rm -f core conftest.err conftest.$ac_objext \
9800    conftest$ac_exeext conftest.$ac_ext
9801           LDFLAGS=$save_LDFLAGS
9802fi
9803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9804$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9805	if test yes = "$lt_cv_irix_exported_symbol"; then
9806          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'
9807	fi
9808      else
9809	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'
9810	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'
9811      fi
9812      archive_cmds_need_lc='no'
9813      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9814      hardcode_libdir_separator=:
9815      inherit_rpath=yes
9816      link_all_deplibs=yes
9817      ;;
9818
9819    linux*)
9820      case $cc_basename in
9821      tcc*)
9822	# Fabrice Bellard et al's Tiny C Compiler
9823	ld_shlibs=yes
9824	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9825	;;
9826      esac
9827      ;;
9828
9829    netbsd*)
9830      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9831	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9832      else
9833	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9834      fi
9835      hardcode_libdir_flag_spec='-R$libdir'
9836      hardcode_direct=yes
9837      hardcode_shlibpath_var=no
9838      ;;
9839
9840    newsos6)
9841      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9842      hardcode_direct=yes
9843      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9844      hardcode_libdir_separator=:
9845      hardcode_shlibpath_var=no
9846      ;;
9847
9848    *nto* | *qnx*)
9849      ;;
9850
9851    openbsd* | bitrig*)
9852      if test -f /usr/libexec/ld.so; then
9853	hardcode_direct=yes
9854	hardcode_shlibpath_var=no
9855	hardcode_direct_absolute=yes
9856	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9857	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9858	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9859	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9860	  export_dynamic_flag_spec='$wl-E'
9861	else
9862	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9863	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9864	fi
9865      else
9866	ld_shlibs=no
9867      fi
9868      ;;
9869
9870    os2*)
9871      hardcode_libdir_flag_spec='-L$libdir'
9872      hardcode_minus_L=yes
9873      allow_undefined_flag=unsupported
9874      shrext_cmds=.dll
9875      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9876	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9877	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9878	$ECHO EXPORTS >> $output_objdir/$libname.def~
9879	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9880	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9881	emximp -o $lib $output_objdir/$libname.def'
9882      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9883	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9884	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9885	$ECHO EXPORTS >> $output_objdir/$libname.def~
9886	prefix_cmds="$SED"~
9887	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9888	  prefix_cmds="$prefix_cmds -e 1d";
9889	fi~
9890	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9891	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9892	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9893	emximp -o $lib $output_objdir/$libname.def'
9894      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9895      enable_shared_with_static_runtimes=yes
9896      ;;
9897
9898    osf3*)
9899      if test yes = "$GCC"; then
9900	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9901	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'
9902      else
9903	allow_undefined_flag=' -expect_unresolved \*'
9904	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'
9905      fi
9906      archive_cmds_need_lc='no'
9907      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9908      hardcode_libdir_separator=:
9909      ;;
9910
9911    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9912      if test yes = "$GCC"; then
9913	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9914	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'
9915	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9916      else
9917	allow_undefined_flag=' -expect_unresolved \*'
9918	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'
9919	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~
9920          $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'
9921
9922	# Both c and cxx compiler support -rpath directly
9923	hardcode_libdir_flag_spec='-rpath $libdir'
9924      fi
9925      archive_cmds_need_lc='no'
9926      hardcode_libdir_separator=:
9927      ;;
9928
9929    solaris*)
9930      no_undefined_flag=' -z defs'
9931      if test yes = "$GCC"; then
9932	wlarc='$wl'
9933	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9934	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9935          $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'
9936      else
9937	case `$CC -V 2>&1` in
9938	*"Compilers 5.0"*)
9939	  wlarc=''
9940	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9941	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9942            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9943	  ;;
9944	*)
9945	  wlarc='$wl'
9946	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9947	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9948            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9949	  ;;
9950	esac
9951      fi
9952      hardcode_libdir_flag_spec='-R$libdir'
9953      hardcode_shlibpath_var=no
9954      case $host_os in
9955      solaris2.[0-5] | solaris2.[0-5].*) ;;
9956      *)
9957	# The compiler driver will combine and reorder linker options,
9958	# but understands '-z linker_flag'.  GCC discards it without '$wl',
9959	# but is careful enough not to reorder.
9960	# Supported since Solaris 2.6 (maybe 2.5.1?)
9961	if test yes = "$GCC"; then
9962	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9963	else
9964	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9965	fi
9966	;;
9967      esac
9968      link_all_deplibs=yes
9969      ;;
9970
9971    sunos4*)
9972      if test sequent = "$host_vendor"; then
9973	# Use $CC to link under sequent, because it throws in some extra .o
9974	# files that make .init and .fini sections work.
9975	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9976      else
9977	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9978      fi
9979      hardcode_libdir_flag_spec='-L$libdir'
9980      hardcode_direct=yes
9981      hardcode_minus_L=yes
9982      hardcode_shlibpath_var=no
9983      ;;
9984
9985    sysv4)
9986      case $host_vendor in
9987	sni)
9988	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989	  hardcode_direct=yes # is this really true???
9990	;;
9991	siemens)
9992	  ## LD is ld it makes a PLAMLIB
9993	  ## CC just makes a GrossModule.
9994	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9995	  reload_cmds='$CC -r -o $output$reload_objs'
9996	  hardcode_direct=no
9997        ;;
9998	motorola)
9999	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10001	;;
10002      esac
10003      runpath_var='LD_RUN_PATH'
10004      hardcode_shlibpath_var=no
10005      ;;
10006
10007    sysv4.3*)
10008      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10009      hardcode_shlibpath_var=no
10010      export_dynamic_flag_spec='-Bexport'
10011      ;;
10012
10013    sysv4*MP*)
10014      if test -d /usr/nec; then
10015	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10016	hardcode_shlibpath_var=no
10017	runpath_var=LD_RUN_PATH
10018	hardcode_runpath_var=yes
10019	ld_shlibs=yes
10020      fi
10021      ;;
10022
10023    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10024      no_undefined_flag='$wl-z,text'
10025      archive_cmds_need_lc=no
10026      hardcode_shlibpath_var=no
10027      runpath_var='LD_RUN_PATH'
10028
10029      if test yes = "$GCC"; then
10030	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10031	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10032      else
10033	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10034	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10035      fi
10036      ;;
10037
10038    sysv5* | sco3.2v5* | sco5v6*)
10039      # Note: We CANNOT use -z defs as we might desire, because we do not
10040      # link with -lc, and that would cause any symbols used from libc to
10041      # always be unresolved, which means just about no library would
10042      # ever link correctly.  If we're not using GNU ld we use -z text
10043      # though, which does catch some bad symbols but isn't as heavy-handed
10044      # as -z defs.
10045      no_undefined_flag='$wl-z,text'
10046      allow_undefined_flag='$wl-z,nodefs'
10047      archive_cmds_need_lc=no
10048      hardcode_shlibpath_var=no
10049      hardcode_libdir_flag_spec='$wl-R,$libdir'
10050      hardcode_libdir_separator=':'
10051      link_all_deplibs=yes
10052      export_dynamic_flag_spec='$wl-Bexport'
10053      runpath_var='LD_RUN_PATH'
10054
10055      if test yes = "$GCC"; then
10056	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10058      else
10059	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10061      fi
10062      ;;
10063
10064    uts4*)
10065      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066      hardcode_libdir_flag_spec='-L$libdir'
10067      hardcode_shlibpath_var=no
10068      ;;
10069
10070    *)
10071      ld_shlibs=no
10072      ;;
10073    esac
10074
10075    if test sni = "$host_vendor"; then
10076      case $host in
10077      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10078	export_dynamic_flag_spec='$wl-Blargedynsym'
10079	;;
10080      esac
10081    fi
10082  fi
10083
10084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10085$as_echo "$ld_shlibs" >&6; }
10086test no = "$ld_shlibs" && can_build_shared=no
10087
10088with_gnu_ld=$with_gnu_ld
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104#
10105# Do we need to explicitly link libc?
10106#
10107case "x$archive_cmds_need_lc" in
10108x|xyes)
10109  # Assume -lc should be added
10110  archive_cmds_need_lc=yes
10111
10112  if test yes,yes = "$GCC,$enable_shared"; then
10113    case $archive_cmds in
10114    *'~'*)
10115      # FIXME: we may have to deal with multi-command sequences.
10116      ;;
10117    '$CC '*)
10118      # Test whether the compiler implicitly links with -lc since on some
10119      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10120      # to ld, don't add -lc before -lgcc.
10121      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10122$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10123if ${lt_cv_archive_cmds_need_lc+:} false; then :
10124  $as_echo_n "(cached) " >&6
10125else
10126  $RM conftest*
10127	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10128
10129	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10130  (eval $ac_compile) 2>&5
10131  ac_status=$?
10132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10133  test $ac_status = 0; } 2>conftest.err; then
10134	  soname=conftest
10135	  lib=conftest
10136	  libobjs=conftest.$ac_objext
10137	  deplibs=
10138	  wl=$lt_prog_compiler_wl
10139	  pic_flag=$lt_prog_compiler_pic
10140	  compiler_flags=-v
10141	  linker_flags=-v
10142	  verstring=
10143	  output_objdir=.
10144	  libname=conftest
10145	  lt_save_allow_undefined_flag=$allow_undefined_flag
10146	  allow_undefined_flag=
10147	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10148  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10149  ac_status=$?
10150  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10151  test $ac_status = 0; }
10152	  then
10153	    lt_cv_archive_cmds_need_lc=no
10154	  else
10155	    lt_cv_archive_cmds_need_lc=yes
10156	  fi
10157	  allow_undefined_flag=$lt_save_allow_undefined_flag
10158	else
10159	  cat conftest.err 1>&5
10160	fi
10161	$RM conftest*
10162
10163fi
10164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10165$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10166      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10167      ;;
10168    esac
10169  fi
10170  ;;
10171esac
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10325$as_echo_n "checking dynamic linker characteristics... " >&6; }
10326
10327if test yes = "$GCC"; then
10328  case $host_os in
10329    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10330    *) lt_awk_arg='/^libraries:/' ;;
10331  esac
10332  case $host_os in
10333    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10334    *) lt_sed_strip_eq='s|=/|/|g' ;;
10335  esac
10336  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10337  case $lt_search_path_spec in
10338  *\;*)
10339    # if the path contains ";" then we assume it to be the separator
10340    # otherwise default to the standard path separator (i.e. ":") - it is
10341    # assumed that no part of a normal pathname contains ";" but that should
10342    # okay in the real world where ";" in dirpaths is itself problematic.
10343    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10344    ;;
10345  *)
10346    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10347    ;;
10348  esac
10349  # Ok, now we have the path, separated by spaces, we can step through it
10350  # and add multilib dir if necessary...
10351  lt_tmp_lt_search_path_spec=
10352  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10353  # ...but if some path component already ends with the multilib dir we assume
10354  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10355  case "$lt_multi_os_dir; $lt_search_path_spec " in
10356  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10357    lt_multi_os_dir=
10358    ;;
10359  esac
10360  for lt_sys_path in $lt_search_path_spec; do
10361    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10362      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10363    elif test -n "$lt_multi_os_dir"; then
10364      test -d "$lt_sys_path" && \
10365	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10366    fi
10367  done
10368  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10369BEGIN {RS = " "; FS = "/|\n";} {
10370  lt_foo = "";
10371  lt_count = 0;
10372  for (lt_i = NF; lt_i > 0; lt_i--) {
10373    if ($lt_i != "" && $lt_i != ".") {
10374      if ($lt_i == "..") {
10375        lt_count++;
10376      } else {
10377        if (lt_count == 0) {
10378          lt_foo = "/" $lt_i lt_foo;
10379        } else {
10380          lt_count--;
10381        }
10382      }
10383    }
10384  }
10385  if (lt_foo != "") { lt_freq[lt_foo]++; }
10386  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10387}'`
10388  # AWK program above erroneously prepends '/' to C:/dos/paths
10389  # for these hosts.
10390  case $host_os in
10391    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10392      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10393  esac
10394  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10395else
10396  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10397fi
10398library_names_spec=
10399libname_spec='lib$name'
10400soname_spec=
10401shrext_cmds=.so
10402postinstall_cmds=
10403postuninstall_cmds=
10404finish_cmds=
10405finish_eval=
10406shlibpath_var=
10407shlibpath_overrides_runpath=unknown
10408version_type=none
10409dynamic_linker="$host_os ld.so"
10410sys_lib_dlsearch_path_spec="/lib /usr/lib"
10411need_lib_prefix=unknown
10412hardcode_into_libs=no
10413
10414# when you set need_version to no, make sure it does not cause -set_version
10415# flags to be left without arguments
10416need_version=unknown
10417
10418
10419
10420case $host_os in
10421aix3*)
10422  version_type=linux # correct to gnu/linux during the next big refactor
10423  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10424  shlibpath_var=LIBPATH
10425
10426  # AIX 3 has no versioning support, so we append a major version to the name.
10427  soname_spec='$libname$release$shared_ext$major'
10428  ;;
10429
10430aix[4-9]*)
10431  version_type=linux # correct to gnu/linux during the next big refactor
10432  need_lib_prefix=no
10433  need_version=no
10434  hardcode_into_libs=yes
10435  if test ia64 = "$host_cpu"; then
10436    # AIX 5 supports IA64
10437    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10438    shlibpath_var=LD_LIBRARY_PATH
10439  else
10440    # With GCC up to 2.95.x, collect2 would create an import file
10441    # for dependence libraries.  The import file would start with
10442    # the line '#! .'.  This would cause the generated library to
10443    # depend on '.', always an invalid library.  This was fixed in
10444    # development snapshots of GCC prior to 3.0.
10445    case $host_os in
10446      aix4 | aix4.[01] | aix4.[01].*)
10447      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10448	   echo ' yes '
10449	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10450	:
10451      else
10452	can_build_shared=no
10453      fi
10454      ;;
10455    esac
10456    # Using Import Files as archive members, it is possible to support
10457    # filename-based versioning of shared library archives on AIX. While
10458    # this would work for both with and without runtime linking, it will
10459    # prevent static linking of such archives. So we do filename-based
10460    # shared library versioning with .so extension only, which is used
10461    # when both runtime linking and shared linking is enabled.
10462    # Unfortunately, runtime linking may impact performance, so we do
10463    # not want this to be the default eventually. Also, we use the
10464    # versioned .so libs for executables only if there is the -brtl
10465    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10466    # To allow for filename-based versioning support, we need to create
10467    # libNAME.so.V as an archive file, containing:
10468    # *) an Import File, referring to the versioned filename of the
10469    #    archive as well as the shared archive member, telling the
10470    #    bitwidth (32 or 64) of that shared object, and providing the
10471    #    list of exported symbols of that shared object, eventually
10472    #    decorated with the 'weak' keyword
10473    # *) the shared object with the F_LOADONLY flag set, to really avoid
10474    #    it being seen by the linker.
10475    # At run time we better use the real file rather than another symlink,
10476    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10477
10478    case $with_aix_soname,$aix_use_runtimelinking in
10479    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10480    # soname into executable. Probably we can add versioning support to
10481    # collect2, so additional links can be useful in future.
10482    aix,yes) # traditional libtool
10483      dynamic_linker='AIX unversionable lib.so'
10484      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10485      # instead of lib<name>.a to let people know that these are not
10486      # typical AIX shared libraries.
10487      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10488      ;;
10489    aix,no) # traditional AIX only
10490      dynamic_linker='AIX lib.a(lib.so.V)'
10491      # We preserve .a as extension for shared libraries through AIX4.2
10492      # and later when we are not doing run time linking.
10493      library_names_spec='$libname$release.a $libname.a'
10494      soname_spec='$libname$release$shared_ext$major'
10495      ;;
10496    svr4,*) # full svr4 only
10497      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10498      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10499      # We do not specify a path in Import Files, so LIBPATH fires.
10500      shlibpath_overrides_runpath=yes
10501      ;;
10502    *,yes) # both, prefer svr4
10503      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10504      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10505      # unpreferred sharedlib libNAME.a needs extra handling
10506      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"'
10507      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"'
10508      # We do not specify a path in Import Files, so LIBPATH fires.
10509      shlibpath_overrides_runpath=yes
10510      ;;
10511    *,no) # both, prefer aix
10512      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10513      library_names_spec='$libname$release.a $libname.a'
10514      soname_spec='$libname$release$shared_ext$major'
10515      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10516      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)'
10517      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"'
10518      ;;
10519    esac
10520    shlibpath_var=LIBPATH
10521  fi
10522  ;;
10523
10524amigaos*)
10525  case $host_cpu in
10526  powerpc)
10527    # Since July 2007 AmigaOS4 officially supports .so libraries.
10528    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10529    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10530    ;;
10531  m68k)
10532    library_names_spec='$libname.ixlibrary $libname.a'
10533    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10534    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'
10535    ;;
10536  esac
10537  ;;
10538
10539beos*)
10540  library_names_spec='$libname$shared_ext'
10541  dynamic_linker="$host_os ld.so"
10542  shlibpath_var=LIBRARY_PATH
10543  ;;
10544
10545bsdi[45]*)
10546  version_type=linux # correct to gnu/linux during the next big refactor
10547  need_version=no
10548  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10549  soname_spec='$libname$release$shared_ext$major'
10550  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10551  shlibpath_var=LD_LIBRARY_PATH
10552  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10553  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10554  # the default ld.so.conf also contains /usr/contrib/lib and
10555  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10556  # libtool to hard-code these into programs
10557  ;;
10558
10559cygwin* | mingw* | pw32* | cegcc*)
10560  version_type=windows
10561  shrext_cmds=.dll
10562  need_version=no
10563  need_lib_prefix=no
10564
10565  case $GCC,$cc_basename in
10566  yes,*)
10567    # gcc
10568    library_names_spec='$libname.dll.a'
10569    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10570    postinstall_cmds='base_file=`basename \$file`~
10571      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10572      dldir=$destdir/`dirname \$dlpath`~
10573      test -d \$dldir || mkdir -p \$dldir~
10574      $install_prog $dir/$dlname \$dldir/$dlname~
10575      chmod a+x \$dldir/$dlname~
10576      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10577        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10578      fi'
10579    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10580      dlpath=$dir/\$dldll~
10581       $RM \$dlpath'
10582    shlibpath_overrides_runpath=yes
10583
10584    case $host_os in
10585    cygwin*)
10586      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10587      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10588
10589      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10590      ;;
10591    mingw* | cegcc*)
10592      # MinGW DLLs use traditional 'lib' prefix
10593      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10594      ;;
10595    pw32*)
10596      # pw32 DLLs use 'pw' prefix rather than 'lib'
10597      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10598      ;;
10599    esac
10600    dynamic_linker='Win32 ld.exe'
10601    ;;
10602
10603  *,cl*)
10604    # Native MSVC
10605    libname_spec='$name'
10606    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10607    library_names_spec='$libname.dll.lib'
10608
10609    case $build_os in
10610    mingw*)
10611      sys_lib_search_path_spec=
10612      lt_save_ifs=$IFS
10613      IFS=';'
10614      for lt_path in $LIB
10615      do
10616        IFS=$lt_save_ifs
10617        # Let DOS variable expansion print the short 8.3 style file name.
10618        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10619        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10620      done
10621      IFS=$lt_save_ifs
10622      # Convert to MSYS style.
10623      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10624      ;;
10625    cygwin*)
10626      # Convert to unix form, then to dos form, then back to unix form
10627      # but this time dos style (no spaces!) so that the unix form looks
10628      # like /cygdrive/c/PROGRA~1:/cygdr...
10629      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10630      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10631      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10632      ;;
10633    *)
10634      sys_lib_search_path_spec=$LIB
10635      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10636        # It is most probably a Windows format PATH.
10637        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10638      else
10639        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10640      fi
10641      # FIXME: find the short name or the path components, as spaces are
10642      # common. (e.g. "Program Files" -> "PROGRA~1")
10643      ;;
10644    esac
10645
10646    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10647    postinstall_cmds='base_file=`basename \$file`~
10648      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10649      dldir=$destdir/`dirname \$dlpath`~
10650      test -d \$dldir || mkdir -p \$dldir~
10651      $install_prog $dir/$dlname \$dldir/$dlname'
10652    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10653      dlpath=$dir/\$dldll~
10654       $RM \$dlpath'
10655    shlibpath_overrides_runpath=yes
10656    dynamic_linker='Win32 link.exe'
10657    ;;
10658
10659  *)
10660    # Assume MSVC wrapper
10661    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10662    dynamic_linker='Win32 ld.exe'
10663    ;;
10664  esac
10665  # FIXME: first we should search . and the directory the executable is in
10666  shlibpath_var=PATH
10667  ;;
10668
10669darwin* | rhapsody*)
10670  dynamic_linker="$host_os dyld"
10671  version_type=darwin
10672  need_lib_prefix=no
10673  need_version=no
10674  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10675  soname_spec='$libname$release$major$shared_ext'
10676  shlibpath_overrides_runpath=yes
10677  shlibpath_var=DYLD_LIBRARY_PATH
10678  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10679
10680  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10681  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10682  ;;
10683
10684dgux*)
10685  version_type=linux # correct to gnu/linux during the next big refactor
10686  need_lib_prefix=no
10687  need_version=no
10688  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10689  soname_spec='$libname$release$shared_ext$major'
10690  shlibpath_var=LD_LIBRARY_PATH
10691  ;;
10692
10693freebsd* | dragonfly*)
10694  # DragonFly does not have aout.  When/if they implement a new
10695  # versioning mechanism, adjust this.
10696  if test -x /usr/bin/objformat; then
10697    objformat=`/usr/bin/objformat`
10698  else
10699    case $host_os in
10700    freebsd[23].*) objformat=aout ;;
10701    *) objformat=elf ;;
10702    esac
10703  fi
10704  version_type=freebsd-$objformat
10705  case $version_type in
10706    freebsd-elf*)
10707      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10708      soname_spec='$libname$release$shared_ext$major'
10709      need_version=no
10710      need_lib_prefix=no
10711      ;;
10712    freebsd-*)
10713      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10714      need_version=yes
10715      ;;
10716  esac
10717  shlibpath_var=LD_LIBRARY_PATH
10718  case $host_os in
10719  freebsd2.*)
10720    shlibpath_overrides_runpath=yes
10721    ;;
10722  freebsd3.[01]* | freebsdelf3.[01]*)
10723    shlibpath_overrides_runpath=yes
10724    hardcode_into_libs=yes
10725    ;;
10726  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10727  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10728    shlibpath_overrides_runpath=no
10729    hardcode_into_libs=yes
10730    ;;
10731  *) # from 4.6 on, and DragonFly
10732    shlibpath_overrides_runpath=yes
10733    hardcode_into_libs=yes
10734    ;;
10735  esac
10736  ;;
10737
10738haiku*)
10739  version_type=linux # correct to gnu/linux during the next big refactor
10740  need_lib_prefix=no
10741  need_version=no
10742  dynamic_linker="$host_os runtime_loader"
10743  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10744  soname_spec='$libname$release$shared_ext$major'
10745  shlibpath_var=LIBRARY_PATH
10746  shlibpath_overrides_runpath=no
10747  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10748  hardcode_into_libs=yes
10749  ;;
10750
10751hpux9* | hpux10* | hpux11*)
10752  # Give a soname corresponding to the major version so that dld.sl refuses to
10753  # link against other versions.
10754  version_type=sunos
10755  need_lib_prefix=no
10756  need_version=no
10757  case $host_cpu in
10758  ia64*)
10759    shrext_cmds='.so'
10760    hardcode_into_libs=yes
10761    dynamic_linker="$host_os dld.so"
10762    shlibpath_var=LD_LIBRARY_PATH
10763    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10764    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10765    soname_spec='$libname$release$shared_ext$major'
10766    if test 32 = "$HPUX_IA64_MODE"; then
10767      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10768      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10769    else
10770      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10771      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10772    fi
10773    ;;
10774  hppa*64*)
10775    shrext_cmds='.sl'
10776    hardcode_into_libs=yes
10777    dynamic_linker="$host_os dld.sl"
10778    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10779    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10780    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10781    soname_spec='$libname$release$shared_ext$major'
10782    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10783    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10784    ;;
10785  *)
10786    shrext_cmds='.sl'
10787    dynamic_linker="$host_os dld.sl"
10788    shlibpath_var=SHLIB_PATH
10789    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10790    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10791    soname_spec='$libname$release$shared_ext$major'
10792    ;;
10793  esac
10794  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10795  postinstall_cmds='chmod 555 $lib'
10796  # or fails outright, so override atomically:
10797  install_override_mode=555
10798  ;;
10799
10800interix[3-9]*)
10801  version_type=linux # correct to gnu/linux during the next big refactor
10802  need_lib_prefix=no
10803  need_version=no
10804  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10805  soname_spec='$libname$release$shared_ext$major'
10806  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10807  shlibpath_var=LD_LIBRARY_PATH
10808  shlibpath_overrides_runpath=no
10809  hardcode_into_libs=yes
10810  ;;
10811
10812irix5* | irix6* | nonstopux*)
10813  case $host_os in
10814    nonstopux*) version_type=nonstopux ;;
10815    *)
10816	if test yes = "$lt_cv_prog_gnu_ld"; then
10817		version_type=linux # correct to gnu/linux during the next big refactor
10818	else
10819		version_type=irix
10820	fi ;;
10821  esac
10822  need_lib_prefix=no
10823  need_version=no
10824  soname_spec='$libname$release$shared_ext$major'
10825  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10826  case $host_os in
10827  irix5* | nonstopux*)
10828    libsuff= shlibsuff=
10829    ;;
10830  *)
10831    case $LD in # libtool.m4 will add one of these switches to LD
10832    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10833      libsuff= shlibsuff= libmagic=32-bit;;
10834    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10835      libsuff=32 shlibsuff=N32 libmagic=N32;;
10836    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10837      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10838    *) libsuff= shlibsuff= libmagic=never-match;;
10839    esac
10840    ;;
10841  esac
10842  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10843  shlibpath_overrides_runpath=no
10844  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10845  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10846  hardcode_into_libs=yes
10847  ;;
10848
10849# No shared lib support for Linux oldld, aout, or coff.
10850linux*oldld* | linux*aout* | linux*coff*)
10851  dynamic_linker=no
10852  ;;
10853
10854linux*android*)
10855  version_type=none # Android doesn't support versioned libraries.
10856  need_lib_prefix=no
10857  need_version=no
10858  library_names_spec='$libname$release$shared_ext'
10859  soname_spec='$libname$release$shared_ext'
10860  finish_cmds=
10861  shlibpath_var=LD_LIBRARY_PATH
10862  shlibpath_overrides_runpath=yes
10863
10864  # This implies no fast_install, which is unacceptable.
10865  # Some rework will be needed to allow for fast_install
10866  # before this can be enabled.
10867  hardcode_into_libs=yes
10868
10869  dynamic_linker='Android linker'
10870  # Don't embed -rpath directories since the linker doesn't support them.
10871  hardcode_libdir_flag_spec='-L$libdir'
10872  ;;
10873
10874# This must be glibc/ELF.
10875linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10876  version_type=linux # correct to gnu/linux during the next big refactor
10877  need_lib_prefix=no
10878  need_version=no
10879  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10880  soname_spec='$libname$release$shared_ext$major'
10881  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10882  shlibpath_var=LD_LIBRARY_PATH
10883  shlibpath_overrides_runpath=no
10884
10885  # Some binutils ld are patched to set DT_RUNPATH
10886  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10887  $as_echo_n "(cached) " >&6
10888else
10889  lt_cv_shlibpath_overrides_runpath=no
10890    save_LDFLAGS=$LDFLAGS
10891    save_libdir=$libdir
10892    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10893	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10894    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895/* end confdefs.h.  */
10896
10897int
10898main ()
10899{
10900
10901  ;
10902  return 0;
10903}
10904_ACEOF
10905if ac_fn_c_try_link "$LINENO"; then :
10906  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10907  lt_cv_shlibpath_overrides_runpath=yes
10908fi
10909fi
10910rm -f core conftest.err conftest.$ac_objext \
10911    conftest$ac_exeext conftest.$ac_ext
10912    LDFLAGS=$save_LDFLAGS
10913    libdir=$save_libdir
10914
10915fi
10916
10917  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10918
10919  # This implies no fast_install, which is unacceptable.
10920  # Some rework will be needed to allow for fast_install
10921  # before this can be enabled.
10922  hardcode_into_libs=yes
10923
10924  # Ideally, we could use ldconfig to report *all* directores which are
10925  # searched for libraries, however this is still not possible.  Aside from not
10926  # being certain /sbin/ldconfig is available, command
10927  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10928  # even though it is searched at run-time.  Try to do the best guess by
10929  # appending ld.so.conf contents (and includes) to the search path.
10930  if test -f /etc/ld.so.conf; then
10931    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' ' '`
10932    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10933  fi
10934
10935  # We used to test for /lib/ld.so.1 and disable shared libraries on
10936  # powerpc, because MkLinux only supported shared libraries with the
10937  # GNU dynamic linker.  Since this was broken with cross compilers,
10938  # most powerpc-linux boxes support dynamic linking these days and
10939  # people can always --disable-shared, the test was removed, and we
10940  # assume the GNU/Linux dynamic linker is in use.
10941  dynamic_linker='GNU/Linux ld.so'
10942  ;;
10943
10944netbsd*)
10945  version_type=sunos
10946  need_lib_prefix=no
10947  need_version=no
10948  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10949    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10950    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10951    dynamic_linker='NetBSD (a.out) ld.so'
10952  else
10953    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10954    soname_spec='$libname$release$shared_ext$major'
10955    dynamic_linker='NetBSD ld.elf_so'
10956  fi
10957  shlibpath_var=LD_LIBRARY_PATH
10958  shlibpath_overrides_runpath=yes
10959  hardcode_into_libs=yes
10960  ;;
10961
10962newsos6)
10963  version_type=linux # correct to gnu/linux during the next big refactor
10964  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10965  shlibpath_var=LD_LIBRARY_PATH
10966  shlibpath_overrides_runpath=yes
10967  ;;
10968
10969*nto* | *qnx*)
10970  version_type=qnx
10971  need_lib_prefix=no
10972  need_version=no
10973  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10974  soname_spec='$libname$release$shared_ext$major'
10975  shlibpath_var=LD_LIBRARY_PATH
10976  shlibpath_overrides_runpath=no
10977  hardcode_into_libs=yes
10978  dynamic_linker='ldqnx.so'
10979  ;;
10980
10981openbsd* | bitrig*)
10982  version_type=sunos
10983  sys_lib_dlsearch_path_spec=/usr/lib
10984  need_lib_prefix=no
10985  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10986    need_version=no
10987  else
10988    need_version=yes
10989  fi
10990  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10991  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10992  shlibpath_var=LD_LIBRARY_PATH
10993  shlibpath_overrides_runpath=yes
10994  ;;
10995
10996os2*)
10997  libname_spec='$name'
10998  version_type=windows
10999  shrext_cmds=.dll
11000  need_version=no
11001  need_lib_prefix=no
11002  # OS/2 can only load a DLL with a base name of 8 characters or less.
11003  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11004    v=$($ECHO $release$versuffix | tr -d .-);
11005    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11006    $ECHO $n$v`$shared_ext'
11007  library_names_spec='${libname}_dll.$libext'
11008  dynamic_linker='OS/2 ld.exe'
11009  shlibpath_var=BEGINLIBPATH
11010  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11011  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11012  postinstall_cmds='base_file=`basename \$file`~
11013    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11014    dldir=$destdir/`dirname \$dlpath`~
11015    test -d \$dldir || mkdir -p \$dldir~
11016    $install_prog $dir/$dlname \$dldir/$dlname~
11017    chmod a+x \$dldir/$dlname~
11018    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11019      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11020    fi'
11021  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11022    dlpath=$dir/\$dldll~
11023    $RM \$dlpath'
11024  ;;
11025
11026osf3* | osf4* | osf5*)
11027  version_type=osf
11028  need_lib_prefix=no
11029  need_version=no
11030  soname_spec='$libname$release$shared_ext$major'
11031  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11032  shlibpath_var=LD_LIBRARY_PATH
11033  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11034  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11035  ;;
11036
11037rdos*)
11038  dynamic_linker=no
11039  ;;
11040
11041solaris*)
11042  version_type=linux # correct to gnu/linux during the next big refactor
11043  need_lib_prefix=no
11044  need_version=no
11045  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11046  soname_spec='$libname$release$shared_ext$major'
11047  shlibpath_var=LD_LIBRARY_PATH
11048  shlibpath_overrides_runpath=yes
11049  hardcode_into_libs=yes
11050  # ldd complains unless libraries are executable
11051  postinstall_cmds='chmod +x $lib'
11052  ;;
11053
11054sunos4*)
11055  version_type=sunos
11056  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11057  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11058  shlibpath_var=LD_LIBRARY_PATH
11059  shlibpath_overrides_runpath=yes
11060  if test yes = "$with_gnu_ld"; then
11061    need_lib_prefix=no
11062  fi
11063  need_version=yes
11064  ;;
11065
11066sysv4 | sysv4.3*)
11067  version_type=linux # correct to gnu/linux during the next big refactor
11068  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11069  soname_spec='$libname$release$shared_ext$major'
11070  shlibpath_var=LD_LIBRARY_PATH
11071  case $host_vendor in
11072    sni)
11073      shlibpath_overrides_runpath=no
11074      need_lib_prefix=no
11075      runpath_var=LD_RUN_PATH
11076      ;;
11077    siemens)
11078      need_lib_prefix=no
11079      ;;
11080    motorola)
11081      need_lib_prefix=no
11082      need_version=no
11083      shlibpath_overrides_runpath=no
11084      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11085      ;;
11086  esac
11087  ;;
11088
11089sysv4*MP*)
11090  if test -d /usr/nec; then
11091    version_type=linux # correct to gnu/linux during the next big refactor
11092    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11093    soname_spec='$libname$shared_ext.$major'
11094    shlibpath_var=LD_LIBRARY_PATH
11095  fi
11096  ;;
11097
11098sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11099  version_type=sco
11100  need_lib_prefix=no
11101  need_version=no
11102  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11103  soname_spec='$libname$release$shared_ext$major'
11104  shlibpath_var=LD_LIBRARY_PATH
11105  shlibpath_overrides_runpath=yes
11106  hardcode_into_libs=yes
11107  if test yes = "$with_gnu_ld"; then
11108    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11109  else
11110    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11111    case $host_os in
11112      sco3.2v5*)
11113        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11114	;;
11115    esac
11116  fi
11117  sys_lib_dlsearch_path_spec='/usr/lib'
11118  ;;
11119
11120tpf*)
11121  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11122  version_type=linux # correct to gnu/linux during the next big refactor
11123  need_lib_prefix=no
11124  need_version=no
11125  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11126  shlibpath_var=LD_LIBRARY_PATH
11127  shlibpath_overrides_runpath=no
11128  hardcode_into_libs=yes
11129  ;;
11130
11131uts4*)
11132  version_type=linux # correct to gnu/linux during the next big refactor
11133  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11134  soname_spec='$libname$release$shared_ext$major'
11135  shlibpath_var=LD_LIBRARY_PATH
11136  ;;
11137
11138*)
11139  dynamic_linker=no
11140  ;;
11141esac
11142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11143$as_echo "$dynamic_linker" >&6; }
11144test no = "$dynamic_linker" && can_build_shared=no
11145
11146variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11147if test yes = "$GCC"; then
11148  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11149fi
11150
11151if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11152  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11153fi
11154
11155if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11156  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11157fi
11158
11159# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11160configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11161
11162# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11163func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11164
11165# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11166configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11265$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11266hardcode_action=
11267if test -n "$hardcode_libdir_flag_spec" ||
11268   test -n "$runpath_var" ||
11269   test yes = "$hardcode_automatic"; then
11270
11271  # We can hardcode non-existent directories.
11272  if test no != "$hardcode_direct" &&
11273     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11274     # have to relink, otherwise we might link with an installed library
11275     # when we should be linking with a yet-to-be-installed one
11276     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11277     test no != "$hardcode_minus_L"; then
11278    # Linking always hardcodes the temporary library directory.
11279    hardcode_action=relink
11280  else
11281    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11282    hardcode_action=immediate
11283  fi
11284else
11285  # We cannot hardcode anything, or else we can only hardcode existing
11286  # directories.
11287  hardcode_action=unsupported
11288fi
11289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11290$as_echo "$hardcode_action" >&6; }
11291
11292if test relink = "$hardcode_action" ||
11293   test yes = "$inherit_rpath"; then
11294  # Fast installation is not supported
11295  enable_fast_install=no
11296elif test yes = "$shlibpath_overrides_runpath" ||
11297     test no = "$enable_shared"; then
11298  # Fast installation is not necessary
11299  enable_fast_install=needless
11300fi
11301
11302
11303
11304
11305
11306
11307  if test yes != "$enable_dlopen"; then
11308  enable_dlopen=unknown
11309  enable_dlopen_self=unknown
11310  enable_dlopen_self_static=unknown
11311else
11312  lt_cv_dlopen=no
11313  lt_cv_dlopen_libs=
11314
11315  case $host_os in
11316  beos*)
11317    lt_cv_dlopen=load_add_on
11318    lt_cv_dlopen_libs=
11319    lt_cv_dlopen_self=yes
11320    ;;
11321
11322  mingw* | pw32* | cegcc*)
11323    lt_cv_dlopen=LoadLibrary
11324    lt_cv_dlopen_libs=
11325    ;;
11326
11327  cygwin*)
11328    lt_cv_dlopen=dlopen
11329    lt_cv_dlopen_libs=
11330    ;;
11331
11332  darwin*)
11333    # if libdl is installed we need to link against it
11334    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11335$as_echo_n "checking for dlopen in -ldl... " >&6; }
11336if ${ac_cv_lib_dl_dlopen+:} false; then :
11337  $as_echo_n "(cached) " >&6
11338else
11339  ac_check_lib_save_LIBS=$LIBS
11340LIBS="-ldl  $LIBS"
11341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342/* end confdefs.h.  */
11343
11344/* Override any GCC internal prototype to avoid an error.
11345   Use char because int might match the return type of a GCC
11346   builtin and then its argument prototype would still apply.  */
11347#ifdef __cplusplus
11348extern "C"
11349#endif
11350char dlopen ();
11351int
11352main ()
11353{
11354return dlopen ();
11355  ;
11356  return 0;
11357}
11358_ACEOF
11359if ac_fn_c_try_link "$LINENO"; then :
11360  ac_cv_lib_dl_dlopen=yes
11361else
11362  ac_cv_lib_dl_dlopen=no
11363fi
11364rm -f core conftest.err conftest.$ac_objext \
11365    conftest$ac_exeext conftest.$ac_ext
11366LIBS=$ac_check_lib_save_LIBS
11367fi
11368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11369$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11370if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11371  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11372else
11373
11374    lt_cv_dlopen=dyld
11375    lt_cv_dlopen_libs=
11376    lt_cv_dlopen_self=yes
11377
11378fi
11379
11380    ;;
11381
11382  tpf*)
11383    # Don't try to run any link tests for TPF.  We know it's impossible
11384    # because TPF is a cross-compiler, and we know how we open DSOs.
11385    lt_cv_dlopen=dlopen
11386    lt_cv_dlopen_libs=
11387    lt_cv_dlopen_self=no
11388    ;;
11389
11390  *)
11391    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11392if test "x$ac_cv_func_shl_load" = xyes; then :
11393  lt_cv_dlopen=shl_load
11394else
11395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11396$as_echo_n "checking for shl_load in -ldld... " >&6; }
11397if ${ac_cv_lib_dld_shl_load+:} false; then :
11398  $as_echo_n "(cached) " >&6
11399else
11400  ac_check_lib_save_LIBS=$LIBS
11401LIBS="-ldld  $LIBS"
11402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403/* end confdefs.h.  */
11404
11405/* Override any GCC internal prototype to avoid an error.
11406   Use char because int might match the return type of a GCC
11407   builtin and then its argument prototype would still apply.  */
11408#ifdef __cplusplus
11409extern "C"
11410#endif
11411char shl_load ();
11412int
11413main ()
11414{
11415return shl_load ();
11416  ;
11417  return 0;
11418}
11419_ACEOF
11420if ac_fn_c_try_link "$LINENO"; then :
11421  ac_cv_lib_dld_shl_load=yes
11422else
11423  ac_cv_lib_dld_shl_load=no
11424fi
11425rm -f core conftest.err conftest.$ac_objext \
11426    conftest$ac_exeext conftest.$ac_ext
11427LIBS=$ac_check_lib_save_LIBS
11428fi
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11430$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11431if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11432  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11433else
11434  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11435if test "x$ac_cv_func_dlopen" = xyes; then :
11436  lt_cv_dlopen=dlopen
11437else
11438  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11439$as_echo_n "checking for dlopen in -ldl... " >&6; }
11440if ${ac_cv_lib_dl_dlopen+:} false; then :
11441  $as_echo_n "(cached) " >&6
11442else
11443  ac_check_lib_save_LIBS=$LIBS
11444LIBS="-ldl  $LIBS"
11445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446/* end confdefs.h.  */
11447
11448/* Override any GCC internal prototype to avoid an error.
11449   Use char because int might match the return type of a GCC
11450   builtin and then its argument prototype would still apply.  */
11451#ifdef __cplusplus
11452extern "C"
11453#endif
11454char dlopen ();
11455int
11456main ()
11457{
11458return dlopen ();
11459  ;
11460  return 0;
11461}
11462_ACEOF
11463if ac_fn_c_try_link "$LINENO"; then :
11464  ac_cv_lib_dl_dlopen=yes
11465else
11466  ac_cv_lib_dl_dlopen=no
11467fi
11468rm -f core conftest.err conftest.$ac_objext \
11469    conftest$ac_exeext conftest.$ac_ext
11470LIBS=$ac_check_lib_save_LIBS
11471fi
11472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11473$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11474if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11475  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11476else
11477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11478$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11479if ${ac_cv_lib_svld_dlopen+:} false; then :
11480  $as_echo_n "(cached) " >&6
11481else
11482  ac_check_lib_save_LIBS=$LIBS
11483LIBS="-lsvld  $LIBS"
11484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485/* end confdefs.h.  */
11486
11487/* Override any GCC internal prototype to avoid an error.
11488   Use char because int might match the return type of a GCC
11489   builtin and then its argument prototype would still apply.  */
11490#ifdef __cplusplus
11491extern "C"
11492#endif
11493char dlopen ();
11494int
11495main ()
11496{
11497return dlopen ();
11498  ;
11499  return 0;
11500}
11501_ACEOF
11502if ac_fn_c_try_link "$LINENO"; then :
11503  ac_cv_lib_svld_dlopen=yes
11504else
11505  ac_cv_lib_svld_dlopen=no
11506fi
11507rm -f core conftest.err conftest.$ac_objext \
11508    conftest$ac_exeext conftest.$ac_ext
11509LIBS=$ac_check_lib_save_LIBS
11510fi
11511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11512$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11513if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11514  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11515else
11516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11517$as_echo_n "checking for dld_link in -ldld... " >&6; }
11518if ${ac_cv_lib_dld_dld_link+:} false; then :
11519  $as_echo_n "(cached) " >&6
11520else
11521  ac_check_lib_save_LIBS=$LIBS
11522LIBS="-ldld  $LIBS"
11523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11524/* end confdefs.h.  */
11525
11526/* Override any GCC internal prototype to avoid an error.
11527   Use char because int might match the return type of a GCC
11528   builtin and then its argument prototype would still apply.  */
11529#ifdef __cplusplus
11530extern "C"
11531#endif
11532char dld_link ();
11533int
11534main ()
11535{
11536return dld_link ();
11537  ;
11538  return 0;
11539}
11540_ACEOF
11541if ac_fn_c_try_link "$LINENO"; then :
11542  ac_cv_lib_dld_dld_link=yes
11543else
11544  ac_cv_lib_dld_dld_link=no
11545fi
11546rm -f core conftest.err conftest.$ac_objext \
11547    conftest$ac_exeext conftest.$ac_ext
11548LIBS=$ac_check_lib_save_LIBS
11549fi
11550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11551$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11552if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11553  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11554fi
11555
11556
11557fi
11558
11559
11560fi
11561
11562
11563fi
11564
11565
11566fi
11567
11568
11569fi
11570
11571    ;;
11572  esac
11573
11574  if test no = "$lt_cv_dlopen"; then
11575    enable_dlopen=no
11576  else
11577    enable_dlopen=yes
11578  fi
11579
11580  case $lt_cv_dlopen in
11581  dlopen)
11582    save_CPPFLAGS=$CPPFLAGS
11583    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11584
11585    save_LDFLAGS=$LDFLAGS
11586    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11587
11588    save_LIBS=$LIBS
11589    LIBS="$lt_cv_dlopen_libs $LIBS"
11590
11591    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11592$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11593if ${lt_cv_dlopen_self+:} false; then :
11594  $as_echo_n "(cached) " >&6
11595else
11596  	  if test yes = "$cross_compiling"; then :
11597  lt_cv_dlopen_self=cross
11598else
11599  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11600  lt_status=$lt_dlunknown
11601  cat > conftest.$ac_ext <<_LT_EOF
11602#line $LINENO "configure"
11603#include "confdefs.h"
11604
11605#if HAVE_DLFCN_H
11606#include <dlfcn.h>
11607#endif
11608
11609#include <stdio.h>
11610
11611#ifdef RTLD_GLOBAL
11612#  define LT_DLGLOBAL		RTLD_GLOBAL
11613#else
11614#  ifdef DL_GLOBAL
11615#    define LT_DLGLOBAL		DL_GLOBAL
11616#  else
11617#    define LT_DLGLOBAL		0
11618#  endif
11619#endif
11620
11621/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11622   find out it does not work in some platform. */
11623#ifndef LT_DLLAZY_OR_NOW
11624#  ifdef RTLD_LAZY
11625#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11626#  else
11627#    ifdef DL_LAZY
11628#      define LT_DLLAZY_OR_NOW		DL_LAZY
11629#    else
11630#      ifdef RTLD_NOW
11631#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11632#      else
11633#        ifdef DL_NOW
11634#          define LT_DLLAZY_OR_NOW	DL_NOW
11635#        else
11636#          define LT_DLLAZY_OR_NOW	0
11637#        endif
11638#      endif
11639#    endif
11640#  endif
11641#endif
11642
11643/* When -fvisibility=hidden is used, assume the code has been annotated
11644   correspondingly for the symbols needed.  */
11645#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11646int fnord () __attribute__((visibility("default")));
11647#endif
11648
11649int fnord () { return 42; }
11650int main ()
11651{
11652  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11653  int status = $lt_dlunknown;
11654
11655  if (self)
11656    {
11657      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11658      else
11659        {
11660	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11661          else puts (dlerror ());
11662	}
11663      /* dlclose (self); */
11664    }
11665  else
11666    puts (dlerror ());
11667
11668  return status;
11669}
11670_LT_EOF
11671  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11672  (eval $ac_link) 2>&5
11673  ac_status=$?
11674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11675  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11676    (./conftest; exit; ) >&5 2>/dev/null
11677    lt_status=$?
11678    case x$lt_status in
11679      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11680      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11681      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11682    esac
11683  else :
11684    # compilation failed
11685    lt_cv_dlopen_self=no
11686  fi
11687fi
11688rm -fr conftest*
11689
11690
11691fi
11692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11693$as_echo "$lt_cv_dlopen_self" >&6; }
11694
11695    if test yes = "$lt_cv_dlopen_self"; then
11696      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11697      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11698$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11699if ${lt_cv_dlopen_self_static+:} false; then :
11700  $as_echo_n "(cached) " >&6
11701else
11702  	  if test yes = "$cross_compiling"; then :
11703  lt_cv_dlopen_self_static=cross
11704else
11705  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11706  lt_status=$lt_dlunknown
11707  cat > conftest.$ac_ext <<_LT_EOF
11708#line $LINENO "configure"
11709#include "confdefs.h"
11710
11711#if HAVE_DLFCN_H
11712#include <dlfcn.h>
11713#endif
11714
11715#include <stdio.h>
11716
11717#ifdef RTLD_GLOBAL
11718#  define LT_DLGLOBAL		RTLD_GLOBAL
11719#else
11720#  ifdef DL_GLOBAL
11721#    define LT_DLGLOBAL		DL_GLOBAL
11722#  else
11723#    define LT_DLGLOBAL		0
11724#  endif
11725#endif
11726
11727/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11728   find out it does not work in some platform. */
11729#ifndef LT_DLLAZY_OR_NOW
11730#  ifdef RTLD_LAZY
11731#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11732#  else
11733#    ifdef DL_LAZY
11734#      define LT_DLLAZY_OR_NOW		DL_LAZY
11735#    else
11736#      ifdef RTLD_NOW
11737#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11738#      else
11739#        ifdef DL_NOW
11740#          define LT_DLLAZY_OR_NOW	DL_NOW
11741#        else
11742#          define LT_DLLAZY_OR_NOW	0
11743#        endif
11744#      endif
11745#    endif
11746#  endif
11747#endif
11748
11749/* When -fvisibility=hidden is used, assume the code has been annotated
11750   correspondingly for the symbols needed.  */
11751#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11752int fnord () __attribute__((visibility("default")));
11753#endif
11754
11755int fnord () { return 42; }
11756int main ()
11757{
11758  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11759  int status = $lt_dlunknown;
11760
11761  if (self)
11762    {
11763      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11764      else
11765        {
11766	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11767          else puts (dlerror ());
11768	}
11769      /* dlclose (self); */
11770    }
11771  else
11772    puts (dlerror ());
11773
11774  return status;
11775}
11776_LT_EOF
11777  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11778  (eval $ac_link) 2>&5
11779  ac_status=$?
11780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11781  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11782    (./conftest; exit; ) >&5 2>/dev/null
11783    lt_status=$?
11784    case x$lt_status in
11785      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11786      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11787      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11788    esac
11789  else :
11790    # compilation failed
11791    lt_cv_dlopen_self_static=no
11792  fi
11793fi
11794rm -fr conftest*
11795
11796
11797fi
11798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11799$as_echo "$lt_cv_dlopen_self_static" >&6; }
11800    fi
11801
11802    CPPFLAGS=$save_CPPFLAGS
11803    LDFLAGS=$save_LDFLAGS
11804    LIBS=$save_LIBS
11805    ;;
11806  esac
11807
11808  case $lt_cv_dlopen_self in
11809  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11810  *) enable_dlopen_self=unknown ;;
11811  esac
11812
11813  case $lt_cv_dlopen_self_static in
11814  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11815  *) enable_dlopen_self_static=unknown ;;
11816  esac
11817fi
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835striplib=
11836old_striplib=
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11838$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11839if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11840  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11841  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11843$as_echo "yes" >&6; }
11844else
11845# FIXME - insert some real tests, host_os isn't really good enough
11846  case $host_os in
11847  darwin*)
11848    if test -n "$STRIP"; then
11849      striplib="$STRIP -x"
11850      old_striplib="$STRIP -S"
11851      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11852$as_echo "yes" >&6; }
11853    else
11854      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855$as_echo "no" >&6; }
11856    fi
11857    ;;
11858  *)
11859    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11860$as_echo "no" >&6; }
11861    ;;
11862  esac
11863fi
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876  # Report what library types will actually be built
11877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11878$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11880$as_echo "$can_build_shared" >&6; }
11881
11882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11883$as_echo_n "checking whether to build shared libraries... " >&6; }
11884  test no = "$can_build_shared" && enable_shared=no
11885
11886  # On AIX, shared libraries and static libraries use the same namespace, and
11887  # are all built from PIC.
11888  case $host_os in
11889  aix3*)
11890    test yes = "$enable_shared" && enable_static=no
11891    if test -n "$RANLIB"; then
11892      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11893      postinstall_cmds='$RANLIB $lib'
11894    fi
11895    ;;
11896
11897  aix[4-9]*)
11898    if test ia64 != "$host_cpu"; then
11899      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11900      yes,aix,yes) ;;			# shared object as lib.so file only
11901      yes,svr4,*) ;;			# shared object as lib.so archive member only
11902      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
11903      esac
11904    fi
11905    ;;
11906  esac
11907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11908$as_echo "$enable_shared" >&6; }
11909
11910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11911$as_echo_n "checking whether to build static libraries... " >&6; }
11912  # Make sure either enable_shared or enable_static is yes.
11913  test yes = "$enable_shared" || enable_static=yes
11914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11915$as_echo "$enable_static" >&6; }
11916
11917
11918
11919
11920fi
11921ac_ext=c
11922ac_cpp='$CPP $CPPFLAGS'
11923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11925ac_compiler_gnu=$ac_cv_c_compiler_gnu
11926
11927CC=$lt_save_CC
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943        ac_config_commands="$ac_config_commands libtool"
11944
11945
11946
11947
11948# Only expand once:
11949
11950
11951
11952# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11965$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11966if ${ac_cv_prog_cc_c99+:} false; then :
11967  $as_echo_n "(cached) " >&6
11968else
11969  ac_cv_prog_cc_c99=no
11970ac_save_CC=$CC
11971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972/* end confdefs.h.  */
11973#include <stdarg.h>
11974#include <stdbool.h>
11975#include <stdlib.h>
11976#include <wchar.h>
11977#include <stdio.h>
11978
11979// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11980#define debug(...) fprintf (stderr, __VA_ARGS__)
11981#define showlist(...) puts (#__VA_ARGS__)
11982#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11983static void
11984test_varargs_macros (void)
11985{
11986  int x = 1234;
11987  int y = 5678;
11988  debug ("Flag");
11989  debug ("X = %d\n", x);
11990  showlist (The first, second, and third items.);
11991  report (x>y, "x is %d but y is %d", x, y);
11992}
11993
11994// Check long long types.
11995#define BIG64 18446744073709551615ull
11996#define BIG32 4294967295ul
11997#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11998#if !BIG_OK
11999  your preprocessor is broken;
12000#endif
12001#if BIG_OK
12002#else
12003  your preprocessor is broken;
12004#endif
12005static long long int bignum = -9223372036854775807LL;
12006static unsigned long long int ubignum = BIG64;
12007
12008struct incomplete_array
12009{
12010  int datasize;
12011  double data[];
12012};
12013
12014struct named_init {
12015  int number;
12016  const wchar_t *name;
12017  double average;
12018};
12019
12020typedef const char *ccp;
12021
12022static inline int
12023test_restrict (ccp restrict text)
12024{
12025  // See if C++-style comments work.
12026  // Iterate through items via the restricted pointer.
12027  // Also check for declarations in for loops.
12028  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12029    continue;
12030  return 0;
12031}
12032
12033// Check varargs and va_copy.
12034static void
12035test_varargs (const char *format, ...)
12036{
12037  va_list args;
12038  va_start (args, format);
12039  va_list args_copy;
12040  va_copy (args_copy, args);
12041
12042  const char *str;
12043  int number;
12044  float fnumber;
12045
12046  while (*format)
12047    {
12048      switch (*format++)
12049	{
12050	case 's': // string
12051	  str = va_arg (args_copy, const char *);
12052	  break;
12053	case 'd': // int
12054	  number = va_arg (args_copy, int);
12055	  break;
12056	case 'f': // float
12057	  fnumber = va_arg (args_copy, double);
12058	  break;
12059	default:
12060	  break;
12061	}
12062    }
12063  va_end (args_copy);
12064  va_end (args);
12065}
12066
12067int
12068main ()
12069{
12070
12071  // Check bool.
12072  _Bool success = false;
12073
12074  // Check restrict.
12075  if (test_restrict ("String literal") == 0)
12076    success = true;
12077  char *restrict newvar = "Another string";
12078
12079  // Check varargs.
12080  test_varargs ("s, d' f .", "string", 65, 34.234);
12081  test_varargs_macros ();
12082
12083  // Check flexible array members.
12084  struct incomplete_array *ia =
12085    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12086  ia->datasize = 10;
12087  for (int i = 0; i < ia->datasize; ++i)
12088    ia->data[i] = i * 1.234;
12089
12090  // Check named initializers.
12091  struct named_init ni = {
12092    .number = 34,
12093    .name = L"Test wide string",
12094    .average = 543.34343,
12095  };
12096
12097  ni.number = 58;
12098
12099  int dynamic_array[ni.number];
12100  dynamic_array[ni.number - 1] = 543;
12101
12102  // work around unused variable warnings
12103  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12104	  || dynamic_array[ni.number - 1] != 543);
12105
12106  ;
12107  return 0;
12108}
12109_ACEOF
12110for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12111do
12112  CC="$ac_save_CC $ac_arg"
12113  if ac_fn_c_try_compile "$LINENO"; then :
12114  ac_cv_prog_cc_c99=$ac_arg
12115fi
12116rm -f core conftest.err conftest.$ac_objext
12117  test "x$ac_cv_prog_cc_c99" != "xno" && break
12118done
12119rm -f conftest.$ac_ext
12120CC=$ac_save_CC
12121
12122fi
12123# AC_CACHE_VAL
12124case "x$ac_cv_prog_cc_c99" in
12125  x)
12126    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12127$as_echo "none needed" >&6; } ;;
12128  xno)
12129    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12130$as_echo "unsupported" >&6; } ;;
12131  *)
12132    CC="$CC $ac_cv_prog_cc_c99"
12133    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12134$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12135esac
12136if test "x$ac_cv_prog_cc_c99" != xno; then :
12137
12138fi
12139
12140
12141
12142
12143
12144
12145ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12146if test "x$ac_cv_have_decl___clang__" = xyes; then :
12147  CLANGCC="yes"
12148else
12149  CLANGCC="no"
12150fi
12151
12152ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12153if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12154  INTELCC="yes"
12155else
12156  INTELCC="no"
12157fi
12158
12159ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12160if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12161  SUNCC="yes"
12162else
12163  SUNCC="no"
12164fi
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12175	if test -n "$ac_tool_prefix"; then
12176  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12177set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12179$as_echo_n "checking for $ac_word... " >&6; }
12180if ${ac_cv_path_PKG_CONFIG+:} false; then :
12181  $as_echo_n "(cached) " >&6
12182else
12183  case $PKG_CONFIG in
12184  [\\/]* | ?:[\\/]*)
12185  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12186  ;;
12187  *)
12188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189for as_dir in $PATH
12190do
12191  IFS=$as_save_IFS
12192  test -z "$as_dir" && as_dir=.
12193    for ac_exec_ext in '' $ac_executable_extensions; do
12194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12195    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12197    break 2
12198  fi
12199done
12200  done
12201IFS=$as_save_IFS
12202
12203  ;;
12204esac
12205fi
12206PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12207if test -n "$PKG_CONFIG"; then
12208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12209$as_echo "$PKG_CONFIG" >&6; }
12210else
12211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212$as_echo "no" >&6; }
12213fi
12214
12215
12216fi
12217if test -z "$ac_cv_path_PKG_CONFIG"; then
12218  ac_pt_PKG_CONFIG=$PKG_CONFIG
12219  # Extract the first word of "pkg-config", so it can be a program name with args.
12220set dummy pkg-config; ac_word=$2
12221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222$as_echo_n "checking for $ac_word... " >&6; }
12223if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12224  $as_echo_n "(cached) " >&6
12225else
12226  case $ac_pt_PKG_CONFIG in
12227  [\\/]* | ?:[\\/]*)
12228  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12229  ;;
12230  *)
12231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232for as_dir in $PATH
12233do
12234  IFS=$as_save_IFS
12235  test -z "$as_dir" && as_dir=.
12236    for ac_exec_ext in '' $ac_executable_extensions; do
12237  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12238    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12240    break 2
12241  fi
12242done
12243  done
12244IFS=$as_save_IFS
12245
12246  ;;
12247esac
12248fi
12249ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12250if test -n "$ac_pt_PKG_CONFIG"; then
12251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12252$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12253else
12254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255$as_echo "no" >&6; }
12256fi
12257
12258  if test "x$ac_pt_PKG_CONFIG" = x; then
12259    PKG_CONFIG=""
12260  else
12261    case $cross_compiling:$ac_tool_warned in
12262yes:)
12263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12265ac_tool_warned=yes ;;
12266esac
12267    PKG_CONFIG=$ac_pt_PKG_CONFIG
12268  fi
12269else
12270  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12271fi
12272
12273fi
12274if test -n "$PKG_CONFIG"; then
12275	_pkg_min_version=0.9.0
12276	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12277$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12278	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12279		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12280$as_echo "yes" >&6; }
12281	else
12282		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283$as_echo "no" >&6; }
12284		PKG_CONFIG=""
12285	fi
12286fi
12287
12288
12289
12290
12291
12292# Check whether --enable-selective-werror was given.
12293if test "${enable_selective_werror+set}" = set; then :
12294  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12295else
12296  SELECTIVE_WERROR=yes
12297fi
12298
12299
12300
12301
12302
12303# -v is too short to test reliably with XORG_TESTSET_CFLAG
12304if test "x$SUNCC" = "xyes"; then
12305    BASE_CFLAGS="-v"
12306else
12307    BASE_CFLAGS=""
12308fi
12309
12310# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324xorg_testset_save_CFLAGS="$CFLAGS"
12325
12326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12328	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12331  $as_echo_n "(cached) " >&6
12332else
12333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334/* end confdefs.h.  */
12335int i;
12336_ACEOF
12337if ac_fn_c_try_compile "$LINENO"; then :
12338  xorg_cv_cc_flag_unknown_warning_option=yes
12339else
12340  xorg_cv_cc_flag_unknown_warning_option=no
12341fi
12342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12343fi
12344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12347	CFLAGS="$xorg_testset_save_CFLAGS"
12348fi
12349
12350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12353	fi
12354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12358  $as_echo_n "(cached) " >&6
12359else
12360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12361/* end confdefs.h.  */
12362int i;
12363_ACEOF
12364if ac_fn_c_try_compile "$LINENO"; then :
12365  xorg_cv_cc_flag_unused_command_line_argument=yes
12366else
12367  xorg_cv_cc_flag_unused_command_line_argument=no
12368fi
12369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12370fi
12371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12373	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12374	CFLAGS="$xorg_testset_save_CFLAGS"
12375fi
12376
12377found="no"
12378
12379	if test $found = "no" ; then
12380		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12382		fi
12383
12384		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12386		fi
12387
12388		CFLAGS="$CFLAGS -Wall"
12389
12390		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12391$as_echo_n "checking if $CC supports -Wall... " >&6; }
12392		cacheid=xorg_cv_cc_flag__Wall
12393		if eval \${$cacheid+:} false; then :
12394  $as_echo_n "(cached) " >&6
12395else
12396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397/* end confdefs.h.  */
12398int i;
12399int
12400main ()
12401{
12402
12403  ;
12404  return 0;
12405}
12406_ACEOF
12407if ac_fn_c_try_link "$LINENO"; then :
12408  eval $cacheid=yes
12409else
12410  eval $cacheid=no
12411fi
12412rm -f core conftest.err conftest.$ac_objext \
12413    conftest$ac_exeext conftest.$ac_ext
12414fi
12415
12416
12417		CFLAGS="$xorg_testset_save_CFLAGS"
12418
12419		eval supported=\$$cacheid
12420		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12421$as_echo "$supported" >&6; }
12422		if test "$supported" = "yes" ; then
12423			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12424			found="yes"
12425		fi
12426	fi
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442xorg_testset_save_CFLAGS="$CFLAGS"
12443
12444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12445	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12449  $as_echo_n "(cached) " >&6
12450else
12451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452/* end confdefs.h.  */
12453int i;
12454_ACEOF
12455if ac_fn_c_try_compile "$LINENO"; then :
12456  xorg_cv_cc_flag_unknown_warning_option=yes
12457else
12458  xorg_cv_cc_flag_unknown_warning_option=no
12459fi
12460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461fi
12462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12464	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12465	CFLAGS="$xorg_testset_save_CFLAGS"
12466fi
12467
12468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12469	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12471	fi
12472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12476  $as_echo_n "(cached) " >&6
12477else
12478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479/* end confdefs.h.  */
12480int i;
12481_ACEOF
12482if ac_fn_c_try_compile "$LINENO"; then :
12483  xorg_cv_cc_flag_unused_command_line_argument=yes
12484else
12485  xorg_cv_cc_flag_unused_command_line_argument=no
12486fi
12487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488fi
12489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12491	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12492	CFLAGS="$xorg_testset_save_CFLAGS"
12493fi
12494
12495found="no"
12496
12497	if test $found = "no" ; then
12498		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12499			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12500		fi
12501
12502		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12503			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12504		fi
12505
12506		CFLAGS="$CFLAGS -Wpointer-arith"
12507
12508		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12509$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12510		cacheid=xorg_cv_cc_flag__Wpointer_arith
12511		if eval \${$cacheid+:} false; then :
12512  $as_echo_n "(cached) " >&6
12513else
12514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515/* end confdefs.h.  */
12516int i;
12517int
12518main ()
12519{
12520
12521  ;
12522  return 0;
12523}
12524_ACEOF
12525if ac_fn_c_try_link "$LINENO"; then :
12526  eval $cacheid=yes
12527else
12528  eval $cacheid=no
12529fi
12530rm -f core conftest.err conftest.$ac_objext \
12531    conftest$ac_exeext conftest.$ac_ext
12532fi
12533
12534
12535		CFLAGS="$xorg_testset_save_CFLAGS"
12536
12537		eval supported=\$$cacheid
12538		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12539$as_echo "$supported" >&6; }
12540		if test "$supported" = "yes" ; then
12541			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12542			found="yes"
12543		fi
12544	fi
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560xorg_testset_save_CFLAGS="$CFLAGS"
12561
12562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12563	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12567  $as_echo_n "(cached) " >&6
12568else
12569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570/* end confdefs.h.  */
12571int i;
12572_ACEOF
12573if ac_fn_c_try_compile "$LINENO"; then :
12574  xorg_cv_cc_flag_unknown_warning_option=yes
12575else
12576  xorg_cv_cc_flag_unknown_warning_option=no
12577fi
12578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12579fi
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12582	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12583	CFLAGS="$xorg_testset_save_CFLAGS"
12584fi
12585
12586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12587	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12588		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12589	fi
12590	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12591	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12594  $as_echo_n "(cached) " >&6
12595else
12596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597/* end confdefs.h.  */
12598int i;
12599_ACEOF
12600if ac_fn_c_try_compile "$LINENO"; then :
12601  xorg_cv_cc_flag_unused_command_line_argument=yes
12602else
12603  xorg_cv_cc_flag_unused_command_line_argument=no
12604fi
12605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12606fi
12607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12609	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12610	CFLAGS="$xorg_testset_save_CFLAGS"
12611fi
12612
12613found="no"
12614
12615	if test $found = "no" ; then
12616		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12617			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12618		fi
12619
12620		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12621			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12622		fi
12623
12624		CFLAGS="$CFLAGS -Wmissing-declarations"
12625
12626		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12627$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12628		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12629		if eval \${$cacheid+:} false; then :
12630  $as_echo_n "(cached) " >&6
12631else
12632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633/* end confdefs.h.  */
12634int i;
12635int
12636main ()
12637{
12638
12639  ;
12640  return 0;
12641}
12642_ACEOF
12643if ac_fn_c_try_link "$LINENO"; then :
12644  eval $cacheid=yes
12645else
12646  eval $cacheid=no
12647fi
12648rm -f core conftest.err conftest.$ac_objext \
12649    conftest$ac_exeext conftest.$ac_ext
12650fi
12651
12652
12653		CFLAGS="$xorg_testset_save_CFLAGS"
12654
12655		eval supported=\$$cacheid
12656		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12657$as_echo "$supported" >&6; }
12658		if test "$supported" = "yes" ; then
12659			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12660			found="yes"
12661		fi
12662	fi
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678xorg_testset_save_CFLAGS="$CFLAGS"
12679
12680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12681	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12685  $as_echo_n "(cached) " >&6
12686else
12687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688/* end confdefs.h.  */
12689int i;
12690_ACEOF
12691if ac_fn_c_try_compile "$LINENO"; then :
12692  xorg_cv_cc_flag_unknown_warning_option=yes
12693else
12694  xorg_cv_cc_flag_unknown_warning_option=no
12695fi
12696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697fi
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12700	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12701	CFLAGS="$xorg_testset_save_CFLAGS"
12702fi
12703
12704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12705	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12706		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12707	fi
12708	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12712  $as_echo_n "(cached) " >&6
12713else
12714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715/* end confdefs.h.  */
12716int i;
12717_ACEOF
12718if ac_fn_c_try_compile "$LINENO"; then :
12719  xorg_cv_cc_flag_unused_command_line_argument=yes
12720else
12721  xorg_cv_cc_flag_unused_command_line_argument=no
12722fi
12723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12724fi
12725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12728	CFLAGS="$xorg_testset_save_CFLAGS"
12729fi
12730
12731found="no"
12732
12733	if test $found = "no" ; then
12734		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12736		fi
12737
12738		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12740		fi
12741
12742		CFLAGS="$CFLAGS -Wformat=2"
12743
12744		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12745$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12746		cacheid=xorg_cv_cc_flag__Wformat_2
12747		if eval \${$cacheid+:} false; then :
12748  $as_echo_n "(cached) " >&6
12749else
12750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751/* end confdefs.h.  */
12752int i;
12753int
12754main ()
12755{
12756
12757  ;
12758  return 0;
12759}
12760_ACEOF
12761if ac_fn_c_try_link "$LINENO"; then :
12762  eval $cacheid=yes
12763else
12764  eval $cacheid=no
12765fi
12766rm -f core conftest.err conftest.$ac_objext \
12767    conftest$ac_exeext conftest.$ac_ext
12768fi
12769
12770
12771		CFLAGS="$xorg_testset_save_CFLAGS"
12772
12773		eval supported=\$$cacheid
12774		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12775$as_echo "$supported" >&6; }
12776		if test "$supported" = "yes" ; then
12777			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12778			found="yes"
12779		fi
12780	fi
12781
12782	if test $found = "no" ; then
12783		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12784			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12785		fi
12786
12787		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12788			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12789		fi
12790
12791		CFLAGS="$CFLAGS -Wformat"
12792
12793		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12794$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12795		cacheid=xorg_cv_cc_flag__Wformat
12796		if eval \${$cacheid+:} false; then :
12797  $as_echo_n "(cached) " >&6
12798else
12799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800/* end confdefs.h.  */
12801int i;
12802int
12803main ()
12804{
12805
12806  ;
12807  return 0;
12808}
12809_ACEOF
12810if ac_fn_c_try_link "$LINENO"; then :
12811  eval $cacheid=yes
12812else
12813  eval $cacheid=no
12814fi
12815rm -f core conftest.err conftest.$ac_objext \
12816    conftest$ac_exeext conftest.$ac_ext
12817fi
12818
12819
12820		CFLAGS="$xorg_testset_save_CFLAGS"
12821
12822		eval supported=\$$cacheid
12823		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12824$as_echo "$supported" >&6; }
12825		if test "$supported" = "yes" ; then
12826			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12827			found="yes"
12828		fi
12829	fi
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847xorg_testset_save_CFLAGS="$CFLAGS"
12848
12849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12850	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12851	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12852$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12853if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12854  $as_echo_n "(cached) " >&6
12855else
12856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857/* end confdefs.h.  */
12858int i;
12859_ACEOF
12860if ac_fn_c_try_compile "$LINENO"; then :
12861  xorg_cv_cc_flag_unknown_warning_option=yes
12862else
12863  xorg_cv_cc_flag_unknown_warning_option=no
12864fi
12865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12866fi
12867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12868$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12869	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12870	CFLAGS="$xorg_testset_save_CFLAGS"
12871fi
12872
12873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12874	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12875		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12876	fi
12877	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12878	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12879$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12880if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12881  $as_echo_n "(cached) " >&6
12882else
12883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884/* end confdefs.h.  */
12885int i;
12886_ACEOF
12887if ac_fn_c_try_compile "$LINENO"; then :
12888  xorg_cv_cc_flag_unused_command_line_argument=yes
12889else
12890  xorg_cv_cc_flag_unused_command_line_argument=no
12891fi
12892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12893fi
12894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12895$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12896	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12897	CFLAGS="$xorg_testset_save_CFLAGS"
12898fi
12899
12900found="no"
12901
12902	if test $found = "no" ; then
12903		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12904			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12905		fi
12906
12907		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12908			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12909		fi
12910
12911		CFLAGS="$CFLAGS -Wstrict-prototypes"
12912
12913		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12914$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12915		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12916		if eval \${$cacheid+:} false; then :
12917  $as_echo_n "(cached) " >&6
12918else
12919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920/* end confdefs.h.  */
12921int i;
12922int
12923main ()
12924{
12925
12926  ;
12927  return 0;
12928}
12929_ACEOF
12930if ac_fn_c_try_link "$LINENO"; then :
12931  eval $cacheid=yes
12932else
12933  eval $cacheid=no
12934fi
12935rm -f core conftest.err conftest.$ac_objext \
12936    conftest$ac_exeext conftest.$ac_ext
12937fi
12938
12939
12940		CFLAGS="$xorg_testset_save_CFLAGS"
12941
12942		eval supported=\$$cacheid
12943		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12944$as_echo "$supported" >&6; }
12945		if test "$supported" = "yes" ; then
12946			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12947			found="yes"
12948		fi
12949	fi
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965xorg_testset_save_CFLAGS="$CFLAGS"
12966
12967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12968	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12969	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12970$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12971if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12972  $as_echo_n "(cached) " >&6
12973else
12974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975/* end confdefs.h.  */
12976int i;
12977_ACEOF
12978if ac_fn_c_try_compile "$LINENO"; then :
12979  xorg_cv_cc_flag_unknown_warning_option=yes
12980else
12981  xorg_cv_cc_flag_unknown_warning_option=no
12982fi
12983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12984fi
12985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12986$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12987	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12988	CFLAGS="$xorg_testset_save_CFLAGS"
12989fi
12990
12991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12992	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12993		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12994	fi
12995	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12996	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12997$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12998if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12999  $as_echo_n "(cached) " >&6
13000else
13001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002/* end confdefs.h.  */
13003int i;
13004_ACEOF
13005if ac_fn_c_try_compile "$LINENO"; then :
13006  xorg_cv_cc_flag_unused_command_line_argument=yes
13007else
13008  xorg_cv_cc_flag_unused_command_line_argument=no
13009fi
13010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13011fi
13012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13013$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13014	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13015	CFLAGS="$xorg_testset_save_CFLAGS"
13016fi
13017
13018found="no"
13019
13020	if test $found = "no" ; then
13021		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13022			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13023		fi
13024
13025		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13026			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13027		fi
13028
13029		CFLAGS="$CFLAGS -Wmissing-prototypes"
13030
13031		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13032$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13033		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13034		if eval \${$cacheid+:} false; then :
13035  $as_echo_n "(cached) " >&6
13036else
13037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038/* end confdefs.h.  */
13039int i;
13040int
13041main ()
13042{
13043
13044  ;
13045  return 0;
13046}
13047_ACEOF
13048if ac_fn_c_try_link "$LINENO"; then :
13049  eval $cacheid=yes
13050else
13051  eval $cacheid=no
13052fi
13053rm -f core conftest.err conftest.$ac_objext \
13054    conftest$ac_exeext conftest.$ac_ext
13055fi
13056
13057
13058		CFLAGS="$xorg_testset_save_CFLAGS"
13059
13060		eval supported=\$$cacheid
13061		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13062$as_echo "$supported" >&6; }
13063		if test "$supported" = "yes" ; then
13064			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13065			found="yes"
13066		fi
13067	fi
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083xorg_testset_save_CFLAGS="$CFLAGS"
13084
13085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13086	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13087	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13088$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13089if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13090  $as_echo_n "(cached) " >&6
13091else
13092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093/* end confdefs.h.  */
13094int i;
13095_ACEOF
13096if ac_fn_c_try_compile "$LINENO"; then :
13097  xorg_cv_cc_flag_unknown_warning_option=yes
13098else
13099  xorg_cv_cc_flag_unknown_warning_option=no
13100fi
13101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13102fi
13103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13104$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13105	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13106	CFLAGS="$xorg_testset_save_CFLAGS"
13107fi
13108
13109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13110	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13111		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13112	fi
13113	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13114	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13115$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13116if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13117  $as_echo_n "(cached) " >&6
13118else
13119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120/* end confdefs.h.  */
13121int i;
13122_ACEOF
13123if ac_fn_c_try_compile "$LINENO"; then :
13124  xorg_cv_cc_flag_unused_command_line_argument=yes
13125else
13126  xorg_cv_cc_flag_unused_command_line_argument=no
13127fi
13128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13129fi
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13131$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13132	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13133	CFLAGS="$xorg_testset_save_CFLAGS"
13134fi
13135
13136found="no"
13137
13138	if test $found = "no" ; then
13139		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13140			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13141		fi
13142
13143		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13144			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13145		fi
13146
13147		CFLAGS="$CFLAGS -Wnested-externs"
13148
13149		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13150$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13151		cacheid=xorg_cv_cc_flag__Wnested_externs
13152		if eval \${$cacheid+:} false; then :
13153  $as_echo_n "(cached) " >&6
13154else
13155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156/* end confdefs.h.  */
13157int i;
13158int
13159main ()
13160{
13161
13162  ;
13163  return 0;
13164}
13165_ACEOF
13166if ac_fn_c_try_link "$LINENO"; then :
13167  eval $cacheid=yes
13168else
13169  eval $cacheid=no
13170fi
13171rm -f core conftest.err conftest.$ac_objext \
13172    conftest$ac_exeext conftest.$ac_ext
13173fi
13174
13175
13176		CFLAGS="$xorg_testset_save_CFLAGS"
13177
13178		eval supported=\$$cacheid
13179		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13180$as_echo "$supported" >&6; }
13181		if test "$supported" = "yes" ; then
13182			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13183			found="yes"
13184		fi
13185	fi
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201xorg_testset_save_CFLAGS="$CFLAGS"
13202
13203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13204	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13205	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13208  $as_echo_n "(cached) " >&6
13209else
13210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211/* end confdefs.h.  */
13212int i;
13213_ACEOF
13214if ac_fn_c_try_compile "$LINENO"; then :
13215  xorg_cv_cc_flag_unknown_warning_option=yes
13216else
13217  xorg_cv_cc_flag_unknown_warning_option=no
13218fi
13219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220fi
13221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13223	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13224	CFLAGS="$xorg_testset_save_CFLAGS"
13225fi
13226
13227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13228	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13229		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13230	fi
13231	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13232	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13235  $as_echo_n "(cached) " >&6
13236else
13237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238/* end confdefs.h.  */
13239int i;
13240_ACEOF
13241if ac_fn_c_try_compile "$LINENO"; then :
13242  xorg_cv_cc_flag_unused_command_line_argument=yes
13243else
13244  xorg_cv_cc_flag_unused_command_line_argument=no
13245fi
13246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13247fi
13248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13250	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13251	CFLAGS="$xorg_testset_save_CFLAGS"
13252fi
13253
13254found="no"
13255
13256	if test $found = "no" ; then
13257		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13258			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13259		fi
13260
13261		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13262			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13263		fi
13264
13265		CFLAGS="$CFLAGS -Wbad-function-cast"
13266
13267		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13268$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13269		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13270		if eval \${$cacheid+:} false; then :
13271  $as_echo_n "(cached) " >&6
13272else
13273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274/* end confdefs.h.  */
13275int i;
13276int
13277main ()
13278{
13279
13280  ;
13281  return 0;
13282}
13283_ACEOF
13284if ac_fn_c_try_link "$LINENO"; then :
13285  eval $cacheid=yes
13286else
13287  eval $cacheid=no
13288fi
13289rm -f core conftest.err conftest.$ac_objext \
13290    conftest$ac_exeext conftest.$ac_ext
13291fi
13292
13293
13294		CFLAGS="$xorg_testset_save_CFLAGS"
13295
13296		eval supported=\$$cacheid
13297		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13298$as_echo "$supported" >&6; }
13299		if test "$supported" = "yes" ; then
13300			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13301			found="yes"
13302		fi
13303	fi
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319xorg_testset_save_CFLAGS="$CFLAGS"
13320
13321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13322	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13326  $as_echo_n "(cached) " >&6
13327else
13328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329/* end confdefs.h.  */
13330int i;
13331_ACEOF
13332if ac_fn_c_try_compile "$LINENO"; then :
13333  xorg_cv_cc_flag_unknown_warning_option=yes
13334else
13335  xorg_cv_cc_flag_unknown_warning_option=no
13336fi
13337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13338fi
13339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13341	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13342	CFLAGS="$xorg_testset_save_CFLAGS"
13343fi
13344
13345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13346	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13347		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13348	fi
13349	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13350	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13353  $as_echo_n "(cached) " >&6
13354else
13355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356/* end confdefs.h.  */
13357int i;
13358_ACEOF
13359if ac_fn_c_try_compile "$LINENO"; then :
13360  xorg_cv_cc_flag_unused_command_line_argument=yes
13361else
13362  xorg_cv_cc_flag_unused_command_line_argument=no
13363fi
13364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13365fi
13366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13368	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13369	CFLAGS="$xorg_testset_save_CFLAGS"
13370fi
13371
13372found="no"
13373
13374	if test $found = "no" ; then
13375		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13377		fi
13378
13379		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13381		fi
13382
13383		CFLAGS="$CFLAGS -Wold-style-definition"
13384
13385		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13386$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13387		cacheid=xorg_cv_cc_flag__Wold_style_definition
13388		if eval \${$cacheid+:} false; then :
13389  $as_echo_n "(cached) " >&6
13390else
13391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392/* end confdefs.h.  */
13393int i;
13394int
13395main ()
13396{
13397
13398  ;
13399  return 0;
13400}
13401_ACEOF
13402if ac_fn_c_try_link "$LINENO"; then :
13403  eval $cacheid=yes
13404else
13405  eval $cacheid=no
13406fi
13407rm -f core conftest.err conftest.$ac_objext \
13408    conftest$ac_exeext conftest.$ac_ext
13409fi
13410
13411
13412		CFLAGS="$xorg_testset_save_CFLAGS"
13413
13414		eval supported=\$$cacheid
13415		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13416$as_echo "$supported" >&6; }
13417		if test "$supported" = "yes" ; then
13418			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13419			found="yes"
13420		fi
13421	fi
13422
13423	if test $found = "no" ; then
13424		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13425			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13426		fi
13427
13428		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13429			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13430		fi
13431
13432		CFLAGS="$CFLAGS -fd"
13433
13434		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13435$as_echo_n "checking if $CC supports -fd... " >&6; }
13436		cacheid=xorg_cv_cc_flag__fd
13437		if eval \${$cacheid+:} false; then :
13438  $as_echo_n "(cached) " >&6
13439else
13440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13441/* end confdefs.h.  */
13442int i;
13443int
13444main ()
13445{
13446
13447  ;
13448  return 0;
13449}
13450_ACEOF
13451if ac_fn_c_try_link "$LINENO"; then :
13452  eval $cacheid=yes
13453else
13454  eval $cacheid=no
13455fi
13456rm -f core conftest.err conftest.$ac_objext \
13457    conftest$ac_exeext conftest.$ac_ext
13458fi
13459
13460
13461		CFLAGS="$xorg_testset_save_CFLAGS"
13462
13463		eval supported=\$$cacheid
13464		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13465$as_echo "$supported" >&6; }
13466		if test "$supported" = "yes" ; then
13467			BASE_CFLAGS="$BASE_CFLAGS -fd"
13468			found="yes"
13469		fi
13470	fi
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486xorg_testset_save_CFLAGS="$CFLAGS"
13487
13488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13493  $as_echo_n "(cached) " >&6
13494else
13495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496/* end confdefs.h.  */
13497int i;
13498_ACEOF
13499if ac_fn_c_try_compile "$LINENO"; then :
13500  xorg_cv_cc_flag_unknown_warning_option=yes
13501else
13502  xorg_cv_cc_flag_unknown_warning_option=no
13503fi
13504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13505fi
13506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13508	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13509	CFLAGS="$xorg_testset_save_CFLAGS"
13510fi
13511
13512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13513	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13514		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13515	fi
13516	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13517	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13520  $as_echo_n "(cached) " >&6
13521else
13522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523/* end confdefs.h.  */
13524int i;
13525_ACEOF
13526if ac_fn_c_try_compile "$LINENO"; then :
13527  xorg_cv_cc_flag_unused_command_line_argument=yes
13528else
13529  xorg_cv_cc_flag_unused_command_line_argument=no
13530fi
13531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13532fi
13533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13535	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13536	CFLAGS="$xorg_testset_save_CFLAGS"
13537fi
13538
13539found="no"
13540
13541	if test $found = "no" ; then
13542		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13544		fi
13545
13546		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13548		fi
13549
13550		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13551
13552		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13553$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13554		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13555		if eval \${$cacheid+:} false; then :
13556  $as_echo_n "(cached) " >&6
13557else
13558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559/* end confdefs.h.  */
13560int i;
13561int
13562main ()
13563{
13564
13565  ;
13566  return 0;
13567}
13568_ACEOF
13569if ac_fn_c_try_link "$LINENO"; then :
13570  eval $cacheid=yes
13571else
13572  eval $cacheid=no
13573fi
13574rm -f core conftest.err conftest.$ac_objext \
13575    conftest$ac_exeext conftest.$ac_ext
13576fi
13577
13578
13579		CFLAGS="$xorg_testset_save_CFLAGS"
13580
13581		eval supported=\$$cacheid
13582		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13583$as_echo "$supported" >&6; }
13584		if test "$supported" = "yes" ; then
13585			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13586			found="yes"
13587		fi
13588	fi
13589
13590
13591
13592
13593
13594# This chunk adds additional warnings that could catch undesired effects.
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608xorg_testset_save_CFLAGS="$CFLAGS"
13609
13610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13611	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13612	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13613$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13614if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13615  $as_echo_n "(cached) " >&6
13616else
13617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13618/* end confdefs.h.  */
13619int i;
13620_ACEOF
13621if ac_fn_c_try_compile "$LINENO"; then :
13622  xorg_cv_cc_flag_unknown_warning_option=yes
13623else
13624  xorg_cv_cc_flag_unknown_warning_option=no
13625fi
13626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13627fi
13628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13629$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13630	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13631	CFLAGS="$xorg_testset_save_CFLAGS"
13632fi
13633
13634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13635	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13636		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13637	fi
13638	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13639	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13640$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13641if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13642  $as_echo_n "(cached) " >&6
13643else
13644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645/* end confdefs.h.  */
13646int i;
13647_ACEOF
13648if ac_fn_c_try_compile "$LINENO"; then :
13649  xorg_cv_cc_flag_unused_command_line_argument=yes
13650else
13651  xorg_cv_cc_flag_unused_command_line_argument=no
13652fi
13653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654fi
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13656$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13657	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13658	CFLAGS="$xorg_testset_save_CFLAGS"
13659fi
13660
13661found="no"
13662
13663	if test $found = "no" ; then
13664		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13665			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13666		fi
13667
13668		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13669			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13670		fi
13671
13672		CFLAGS="$CFLAGS -Wunused"
13673
13674		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13675$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13676		cacheid=xorg_cv_cc_flag__Wunused
13677		if eval \${$cacheid+:} false; then :
13678  $as_echo_n "(cached) " >&6
13679else
13680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681/* end confdefs.h.  */
13682int i;
13683int
13684main ()
13685{
13686
13687  ;
13688  return 0;
13689}
13690_ACEOF
13691if ac_fn_c_try_link "$LINENO"; then :
13692  eval $cacheid=yes
13693else
13694  eval $cacheid=no
13695fi
13696rm -f core conftest.err conftest.$ac_objext \
13697    conftest$ac_exeext conftest.$ac_ext
13698fi
13699
13700
13701		CFLAGS="$xorg_testset_save_CFLAGS"
13702
13703		eval supported=\$$cacheid
13704		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13705$as_echo "$supported" >&6; }
13706		if test "$supported" = "yes" ; then
13707			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13708			found="yes"
13709		fi
13710	fi
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726xorg_testset_save_CFLAGS="$CFLAGS"
13727
13728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13729	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13731$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13732if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13733  $as_echo_n "(cached) " >&6
13734else
13735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736/* end confdefs.h.  */
13737int i;
13738_ACEOF
13739if ac_fn_c_try_compile "$LINENO"; then :
13740  xorg_cv_cc_flag_unknown_warning_option=yes
13741else
13742  xorg_cv_cc_flag_unknown_warning_option=no
13743fi
13744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13745fi
13746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13747$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13748	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13749	CFLAGS="$xorg_testset_save_CFLAGS"
13750fi
13751
13752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13753	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13754		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13755	fi
13756	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13757	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13758$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13759if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13760  $as_echo_n "(cached) " >&6
13761else
13762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763/* end confdefs.h.  */
13764int i;
13765_ACEOF
13766if ac_fn_c_try_compile "$LINENO"; then :
13767  xorg_cv_cc_flag_unused_command_line_argument=yes
13768else
13769  xorg_cv_cc_flag_unused_command_line_argument=no
13770fi
13771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13772fi
13773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13774$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13775	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13776	CFLAGS="$xorg_testset_save_CFLAGS"
13777fi
13778
13779found="no"
13780
13781	if test $found = "no" ; then
13782		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13783			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13784		fi
13785
13786		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13787			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13788		fi
13789
13790		CFLAGS="$CFLAGS -Wuninitialized"
13791
13792		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13793$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13794		cacheid=xorg_cv_cc_flag__Wuninitialized
13795		if eval \${$cacheid+:} false; then :
13796  $as_echo_n "(cached) " >&6
13797else
13798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13799/* end confdefs.h.  */
13800int i;
13801int
13802main ()
13803{
13804
13805  ;
13806  return 0;
13807}
13808_ACEOF
13809if ac_fn_c_try_link "$LINENO"; then :
13810  eval $cacheid=yes
13811else
13812  eval $cacheid=no
13813fi
13814rm -f core conftest.err conftest.$ac_objext \
13815    conftest$ac_exeext conftest.$ac_ext
13816fi
13817
13818
13819		CFLAGS="$xorg_testset_save_CFLAGS"
13820
13821		eval supported=\$$cacheid
13822		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13823$as_echo "$supported" >&6; }
13824		if test "$supported" = "yes" ; then
13825			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13826			found="yes"
13827		fi
13828	fi
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844xorg_testset_save_CFLAGS="$CFLAGS"
13845
13846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13847	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13849$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13850if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13851  $as_echo_n "(cached) " >&6
13852else
13853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13854/* end confdefs.h.  */
13855int i;
13856_ACEOF
13857if ac_fn_c_try_compile "$LINENO"; then :
13858  xorg_cv_cc_flag_unknown_warning_option=yes
13859else
13860  xorg_cv_cc_flag_unknown_warning_option=no
13861fi
13862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13863fi
13864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13865$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13866	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13867	CFLAGS="$xorg_testset_save_CFLAGS"
13868fi
13869
13870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13871	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13872		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13873	fi
13874	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13875	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13876$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13877if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13878  $as_echo_n "(cached) " >&6
13879else
13880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881/* end confdefs.h.  */
13882int i;
13883_ACEOF
13884if ac_fn_c_try_compile "$LINENO"; then :
13885  xorg_cv_cc_flag_unused_command_line_argument=yes
13886else
13887  xorg_cv_cc_flag_unused_command_line_argument=no
13888fi
13889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13890fi
13891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13892$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13893	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13894	CFLAGS="$xorg_testset_save_CFLAGS"
13895fi
13896
13897found="no"
13898
13899	if test $found = "no" ; then
13900		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13901			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13902		fi
13903
13904		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13905			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13906		fi
13907
13908		CFLAGS="$CFLAGS -Wshadow"
13909
13910		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13911$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13912		cacheid=xorg_cv_cc_flag__Wshadow
13913		if eval \${$cacheid+:} false; then :
13914  $as_echo_n "(cached) " >&6
13915else
13916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13917/* end confdefs.h.  */
13918int i;
13919int
13920main ()
13921{
13922
13923  ;
13924  return 0;
13925}
13926_ACEOF
13927if ac_fn_c_try_link "$LINENO"; then :
13928  eval $cacheid=yes
13929else
13930  eval $cacheid=no
13931fi
13932rm -f core conftest.err conftest.$ac_objext \
13933    conftest$ac_exeext conftest.$ac_ext
13934fi
13935
13936
13937		CFLAGS="$xorg_testset_save_CFLAGS"
13938
13939		eval supported=\$$cacheid
13940		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13941$as_echo "$supported" >&6; }
13942		if test "$supported" = "yes" ; then
13943			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13944			found="yes"
13945		fi
13946	fi
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962xorg_testset_save_CFLAGS="$CFLAGS"
13963
13964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13965	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13967$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13968if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13969  $as_echo_n "(cached) " >&6
13970else
13971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972/* end confdefs.h.  */
13973int i;
13974_ACEOF
13975if ac_fn_c_try_compile "$LINENO"; then :
13976  xorg_cv_cc_flag_unknown_warning_option=yes
13977else
13978  xorg_cv_cc_flag_unknown_warning_option=no
13979fi
13980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13981fi
13982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13983$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13984	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13985	CFLAGS="$xorg_testset_save_CFLAGS"
13986fi
13987
13988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13989	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13990		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13991	fi
13992	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13993	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13994$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13995if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13996  $as_echo_n "(cached) " >&6
13997else
13998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999/* end confdefs.h.  */
14000int i;
14001_ACEOF
14002if ac_fn_c_try_compile "$LINENO"; then :
14003  xorg_cv_cc_flag_unused_command_line_argument=yes
14004else
14005  xorg_cv_cc_flag_unused_command_line_argument=no
14006fi
14007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14008fi
14009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14010$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14011	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14012	CFLAGS="$xorg_testset_save_CFLAGS"
14013fi
14014
14015found="no"
14016
14017	if test $found = "no" ; then
14018		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14019			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14020		fi
14021
14022		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14023			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14024		fi
14025
14026		CFLAGS="$CFLAGS -Wmissing-noreturn"
14027
14028		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14029$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14030		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14031		if eval \${$cacheid+:} false; then :
14032  $as_echo_n "(cached) " >&6
14033else
14034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035/* end confdefs.h.  */
14036int i;
14037int
14038main ()
14039{
14040
14041  ;
14042  return 0;
14043}
14044_ACEOF
14045if ac_fn_c_try_link "$LINENO"; then :
14046  eval $cacheid=yes
14047else
14048  eval $cacheid=no
14049fi
14050rm -f core conftest.err conftest.$ac_objext \
14051    conftest$ac_exeext conftest.$ac_ext
14052fi
14053
14054
14055		CFLAGS="$xorg_testset_save_CFLAGS"
14056
14057		eval supported=\$$cacheid
14058		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14059$as_echo "$supported" >&6; }
14060		if test "$supported" = "yes" ; then
14061			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14062			found="yes"
14063		fi
14064	fi
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080xorg_testset_save_CFLAGS="$CFLAGS"
14081
14082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14083	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14085$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14086if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14087  $as_echo_n "(cached) " >&6
14088else
14089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090/* end confdefs.h.  */
14091int i;
14092_ACEOF
14093if ac_fn_c_try_compile "$LINENO"; then :
14094  xorg_cv_cc_flag_unknown_warning_option=yes
14095else
14096  xorg_cv_cc_flag_unknown_warning_option=no
14097fi
14098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099fi
14100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14101$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14102	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14103	CFLAGS="$xorg_testset_save_CFLAGS"
14104fi
14105
14106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14107	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14108		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14109	fi
14110	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14111	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14112$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14113if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14114  $as_echo_n "(cached) " >&6
14115else
14116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14117/* end confdefs.h.  */
14118int i;
14119_ACEOF
14120if ac_fn_c_try_compile "$LINENO"; then :
14121  xorg_cv_cc_flag_unused_command_line_argument=yes
14122else
14123  xorg_cv_cc_flag_unused_command_line_argument=no
14124fi
14125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14126fi
14127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14128$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14129	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14130	CFLAGS="$xorg_testset_save_CFLAGS"
14131fi
14132
14133found="no"
14134
14135	if test $found = "no" ; then
14136		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14138		fi
14139
14140		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14142		fi
14143
14144		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14145
14146		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14147$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14148		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14149		if eval \${$cacheid+:} false; then :
14150  $as_echo_n "(cached) " >&6
14151else
14152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153/* end confdefs.h.  */
14154int i;
14155int
14156main ()
14157{
14158
14159  ;
14160  return 0;
14161}
14162_ACEOF
14163if ac_fn_c_try_link "$LINENO"; then :
14164  eval $cacheid=yes
14165else
14166  eval $cacheid=no
14167fi
14168rm -f core conftest.err conftest.$ac_objext \
14169    conftest$ac_exeext conftest.$ac_ext
14170fi
14171
14172
14173		CFLAGS="$xorg_testset_save_CFLAGS"
14174
14175		eval supported=\$$cacheid
14176		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14177$as_echo "$supported" >&6; }
14178		if test "$supported" = "yes" ; then
14179			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14180			found="yes"
14181		fi
14182	fi
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198xorg_testset_save_CFLAGS="$CFLAGS"
14199
14200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14201	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14203$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14204if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14205  $as_echo_n "(cached) " >&6
14206else
14207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208/* end confdefs.h.  */
14209int i;
14210_ACEOF
14211if ac_fn_c_try_compile "$LINENO"; then :
14212  xorg_cv_cc_flag_unknown_warning_option=yes
14213else
14214  xorg_cv_cc_flag_unknown_warning_option=no
14215fi
14216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14217fi
14218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14219$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14220	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14221	CFLAGS="$xorg_testset_save_CFLAGS"
14222fi
14223
14224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14225	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14226		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14227	fi
14228	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14230$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14231if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14232  $as_echo_n "(cached) " >&6
14233else
14234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235/* end confdefs.h.  */
14236int i;
14237_ACEOF
14238if ac_fn_c_try_compile "$LINENO"; then :
14239  xorg_cv_cc_flag_unused_command_line_argument=yes
14240else
14241  xorg_cv_cc_flag_unused_command_line_argument=no
14242fi
14243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244fi
14245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14246$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14248	CFLAGS="$xorg_testset_save_CFLAGS"
14249fi
14250
14251found="no"
14252
14253	if test $found = "no" ; then
14254		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14256		fi
14257
14258		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14260		fi
14261
14262		CFLAGS="$CFLAGS -Wredundant-decls"
14263
14264		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14265$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14266		cacheid=xorg_cv_cc_flag__Wredundant_decls
14267		if eval \${$cacheid+:} false; then :
14268  $as_echo_n "(cached) " >&6
14269else
14270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271/* end confdefs.h.  */
14272int i;
14273int
14274main ()
14275{
14276
14277  ;
14278  return 0;
14279}
14280_ACEOF
14281if ac_fn_c_try_link "$LINENO"; then :
14282  eval $cacheid=yes
14283else
14284  eval $cacheid=no
14285fi
14286rm -f core conftest.err conftest.$ac_objext \
14287    conftest$ac_exeext conftest.$ac_ext
14288fi
14289
14290
14291		CFLAGS="$xorg_testset_save_CFLAGS"
14292
14293		eval supported=\$$cacheid
14294		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14295$as_echo "$supported" >&6; }
14296		if test "$supported" = "yes" ; then
14297			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14298			found="yes"
14299		fi
14300	fi
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316xorg_testset_save_CFLAGS="$CFLAGS"
14317
14318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14319	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14320	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14321$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14322if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14323  $as_echo_n "(cached) " >&6
14324else
14325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326/* end confdefs.h.  */
14327int i;
14328_ACEOF
14329if ac_fn_c_try_compile "$LINENO"; then :
14330  xorg_cv_cc_flag_unknown_warning_option=yes
14331else
14332  xorg_cv_cc_flag_unknown_warning_option=no
14333fi
14334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335fi
14336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14337$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14338	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14339	CFLAGS="$xorg_testset_save_CFLAGS"
14340fi
14341
14342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14343	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14344		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14345	fi
14346	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14347	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14348$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14349if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14350  $as_echo_n "(cached) " >&6
14351else
14352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353/* end confdefs.h.  */
14354int i;
14355_ACEOF
14356if ac_fn_c_try_compile "$LINENO"; then :
14357  xorg_cv_cc_flag_unused_command_line_argument=yes
14358else
14359  xorg_cv_cc_flag_unused_command_line_argument=no
14360fi
14361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14362fi
14363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14364$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14365	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14366	CFLAGS="$xorg_testset_save_CFLAGS"
14367fi
14368
14369found="no"
14370
14371	if test $found = "no" ; then
14372		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14373			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14374		fi
14375
14376		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14377			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14378		fi
14379
14380		CFLAGS="$CFLAGS -Wlogical-op"
14381
14382		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14383$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14384		cacheid=xorg_cv_cc_flag__Wlogical_op
14385		if eval \${$cacheid+:} false; then :
14386  $as_echo_n "(cached) " >&6
14387else
14388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389/* end confdefs.h.  */
14390int i;
14391int
14392main ()
14393{
14394
14395  ;
14396  return 0;
14397}
14398_ACEOF
14399if ac_fn_c_try_link "$LINENO"; then :
14400  eval $cacheid=yes
14401else
14402  eval $cacheid=no
14403fi
14404rm -f core conftest.err conftest.$ac_objext \
14405    conftest$ac_exeext conftest.$ac_ext
14406fi
14407
14408
14409		CFLAGS="$xorg_testset_save_CFLAGS"
14410
14411		eval supported=\$$cacheid
14412		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14413$as_echo "$supported" >&6; }
14414		if test "$supported" = "yes" ; then
14415			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14416			found="yes"
14417		fi
14418	fi
14419
14420
14421
14422# These are currently disabled because they are noisy.  They will be enabled
14423# in the future once the codebase is sufficiently modernized to silence
14424# them.  For now, I don't want them to drown out the other warnings.
14425# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14426# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14427# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14428
14429# Turn some warnings into errors, so we don't accidently get successful builds
14430# when there are problems that should be fixed.
14431
14432if test "x$SELECTIVE_WERROR" = "xyes" ; then
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446xorg_testset_save_CFLAGS="$CFLAGS"
14447
14448if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14449	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14450	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14451$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14452if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14453  $as_echo_n "(cached) " >&6
14454else
14455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456/* end confdefs.h.  */
14457int i;
14458_ACEOF
14459if ac_fn_c_try_compile "$LINENO"; then :
14460  xorg_cv_cc_flag_unknown_warning_option=yes
14461else
14462  xorg_cv_cc_flag_unknown_warning_option=no
14463fi
14464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14465fi
14466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14467$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14468	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14469	CFLAGS="$xorg_testset_save_CFLAGS"
14470fi
14471
14472if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14473	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14474		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14475	fi
14476	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14477	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14478$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14479if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14480  $as_echo_n "(cached) " >&6
14481else
14482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14483/* end confdefs.h.  */
14484int i;
14485_ACEOF
14486if ac_fn_c_try_compile "$LINENO"; then :
14487  xorg_cv_cc_flag_unused_command_line_argument=yes
14488else
14489  xorg_cv_cc_flag_unused_command_line_argument=no
14490fi
14491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14492fi
14493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14494$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14495	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14496	CFLAGS="$xorg_testset_save_CFLAGS"
14497fi
14498
14499found="no"
14500
14501	if test $found = "no" ; then
14502		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14503			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14504		fi
14505
14506		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14507			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14508		fi
14509
14510		CFLAGS="$CFLAGS -Werror=implicit"
14511
14512		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14513$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14514		cacheid=xorg_cv_cc_flag__Werror_implicit
14515		if eval \${$cacheid+:} false; then :
14516  $as_echo_n "(cached) " >&6
14517else
14518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519/* end confdefs.h.  */
14520int i;
14521int
14522main ()
14523{
14524
14525  ;
14526  return 0;
14527}
14528_ACEOF
14529if ac_fn_c_try_link "$LINENO"; then :
14530  eval $cacheid=yes
14531else
14532  eval $cacheid=no
14533fi
14534rm -f core conftest.err conftest.$ac_objext \
14535    conftest$ac_exeext conftest.$ac_ext
14536fi
14537
14538
14539		CFLAGS="$xorg_testset_save_CFLAGS"
14540
14541		eval supported=\$$cacheid
14542		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14543$as_echo "$supported" >&6; }
14544		if test "$supported" = "yes" ; then
14545			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14546			found="yes"
14547		fi
14548	fi
14549
14550	if test $found = "no" ; then
14551		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14552			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14553		fi
14554
14555		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14556			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14557		fi
14558
14559		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14560
14561		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14562$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14563		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14564		if eval \${$cacheid+:} false; then :
14565  $as_echo_n "(cached) " >&6
14566else
14567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568/* end confdefs.h.  */
14569int i;
14570int
14571main ()
14572{
14573
14574  ;
14575  return 0;
14576}
14577_ACEOF
14578if ac_fn_c_try_link "$LINENO"; then :
14579  eval $cacheid=yes
14580else
14581  eval $cacheid=no
14582fi
14583rm -f core conftest.err conftest.$ac_objext \
14584    conftest$ac_exeext conftest.$ac_ext
14585fi
14586
14587
14588		CFLAGS="$xorg_testset_save_CFLAGS"
14589
14590		eval supported=\$$cacheid
14591		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14592$as_echo "$supported" >&6; }
14593		if test "$supported" = "yes" ; then
14594			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14595			found="yes"
14596		fi
14597	fi
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613xorg_testset_save_CFLAGS="$CFLAGS"
14614
14615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14616	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14617	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14618$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14619if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14620  $as_echo_n "(cached) " >&6
14621else
14622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623/* end confdefs.h.  */
14624int i;
14625_ACEOF
14626if ac_fn_c_try_compile "$LINENO"; then :
14627  xorg_cv_cc_flag_unknown_warning_option=yes
14628else
14629  xorg_cv_cc_flag_unknown_warning_option=no
14630fi
14631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14632fi
14633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14634$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14635	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14636	CFLAGS="$xorg_testset_save_CFLAGS"
14637fi
14638
14639if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14640	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14641		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14642	fi
14643	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14644	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14645$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14646if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14647  $as_echo_n "(cached) " >&6
14648else
14649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650/* end confdefs.h.  */
14651int i;
14652_ACEOF
14653if ac_fn_c_try_compile "$LINENO"; then :
14654  xorg_cv_cc_flag_unused_command_line_argument=yes
14655else
14656  xorg_cv_cc_flag_unused_command_line_argument=no
14657fi
14658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14659fi
14660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14661$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14662	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14663	CFLAGS="$xorg_testset_save_CFLAGS"
14664fi
14665
14666found="no"
14667
14668	if test $found = "no" ; then
14669		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14670			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14671		fi
14672
14673		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14674			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14675		fi
14676
14677		CFLAGS="$CFLAGS -Werror=nonnull"
14678
14679		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14680$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14681		cacheid=xorg_cv_cc_flag__Werror_nonnull
14682		if eval \${$cacheid+:} false; then :
14683  $as_echo_n "(cached) " >&6
14684else
14685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686/* end confdefs.h.  */
14687int i;
14688int
14689main ()
14690{
14691
14692  ;
14693  return 0;
14694}
14695_ACEOF
14696if ac_fn_c_try_link "$LINENO"; then :
14697  eval $cacheid=yes
14698else
14699  eval $cacheid=no
14700fi
14701rm -f core conftest.err conftest.$ac_objext \
14702    conftest$ac_exeext conftest.$ac_ext
14703fi
14704
14705
14706		CFLAGS="$xorg_testset_save_CFLAGS"
14707
14708		eval supported=\$$cacheid
14709		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14710$as_echo "$supported" >&6; }
14711		if test "$supported" = "yes" ; then
14712			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14713			found="yes"
14714		fi
14715	fi
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731xorg_testset_save_CFLAGS="$CFLAGS"
14732
14733if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14734	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14735	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14736$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14737if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14738  $as_echo_n "(cached) " >&6
14739else
14740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14741/* end confdefs.h.  */
14742int i;
14743_ACEOF
14744if ac_fn_c_try_compile "$LINENO"; then :
14745  xorg_cv_cc_flag_unknown_warning_option=yes
14746else
14747  xorg_cv_cc_flag_unknown_warning_option=no
14748fi
14749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14750fi
14751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14752$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14753	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14754	CFLAGS="$xorg_testset_save_CFLAGS"
14755fi
14756
14757if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14758	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14759		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14760	fi
14761	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14762	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14763$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14764if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14765  $as_echo_n "(cached) " >&6
14766else
14767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14768/* end confdefs.h.  */
14769int i;
14770_ACEOF
14771if ac_fn_c_try_compile "$LINENO"; then :
14772  xorg_cv_cc_flag_unused_command_line_argument=yes
14773else
14774  xorg_cv_cc_flag_unused_command_line_argument=no
14775fi
14776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14777fi
14778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14779$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14780	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14781	CFLAGS="$xorg_testset_save_CFLAGS"
14782fi
14783
14784found="no"
14785
14786	if test $found = "no" ; then
14787		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14788			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14789		fi
14790
14791		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14792			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14793		fi
14794
14795		CFLAGS="$CFLAGS -Werror=init-self"
14796
14797		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14798$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14799		cacheid=xorg_cv_cc_flag__Werror_init_self
14800		if eval \${$cacheid+:} false; then :
14801  $as_echo_n "(cached) " >&6
14802else
14803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804/* end confdefs.h.  */
14805int i;
14806int
14807main ()
14808{
14809
14810  ;
14811  return 0;
14812}
14813_ACEOF
14814if ac_fn_c_try_link "$LINENO"; then :
14815  eval $cacheid=yes
14816else
14817  eval $cacheid=no
14818fi
14819rm -f core conftest.err conftest.$ac_objext \
14820    conftest$ac_exeext conftest.$ac_ext
14821fi
14822
14823
14824		CFLAGS="$xorg_testset_save_CFLAGS"
14825
14826		eval supported=\$$cacheid
14827		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14828$as_echo "$supported" >&6; }
14829		if test "$supported" = "yes" ; then
14830			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14831			found="yes"
14832		fi
14833	fi
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849xorg_testset_save_CFLAGS="$CFLAGS"
14850
14851if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14852	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14854$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14855if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14856  $as_echo_n "(cached) " >&6
14857else
14858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859/* end confdefs.h.  */
14860int i;
14861_ACEOF
14862if ac_fn_c_try_compile "$LINENO"; then :
14863  xorg_cv_cc_flag_unknown_warning_option=yes
14864else
14865  xorg_cv_cc_flag_unknown_warning_option=no
14866fi
14867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14868fi
14869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14870$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14871	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14872	CFLAGS="$xorg_testset_save_CFLAGS"
14873fi
14874
14875if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14876	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14877		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14878	fi
14879	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14880	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14881$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14882if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14883  $as_echo_n "(cached) " >&6
14884else
14885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886/* end confdefs.h.  */
14887int i;
14888_ACEOF
14889if ac_fn_c_try_compile "$LINENO"; then :
14890  xorg_cv_cc_flag_unused_command_line_argument=yes
14891else
14892  xorg_cv_cc_flag_unused_command_line_argument=no
14893fi
14894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14895fi
14896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14897$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14898	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14899	CFLAGS="$xorg_testset_save_CFLAGS"
14900fi
14901
14902found="no"
14903
14904	if test $found = "no" ; then
14905		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14906			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14907		fi
14908
14909		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14910			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14911		fi
14912
14913		CFLAGS="$CFLAGS -Werror=main"
14914
14915		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14916$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14917		cacheid=xorg_cv_cc_flag__Werror_main
14918		if eval \${$cacheid+:} false; then :
14919  $as_echo_n "(cached) " >&6
14920else
14921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14922/* end confdefs.h.  */
14923int i;
14924int
14925main ()
14926{
14927
14928  ;
14929  return 0;
14930}
14931_ACEOF
14932if ac_fn_c_try_link "$LINENO"; then :
14933  eval $cacheid=yes
14934else
14935  eval $cacheid=no
14936fi
14937rm -f core conftest.err conftest.$ac_objext \
14938    conftest$ac_exeext conftest.$ac_ext
14939fi
14940
14941
14942		CFLAGS="$xorg_testset_save_CFLAGS"
14943
14944		eval supported=\$$cacheid
14945		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14946$as_echo "$supported" >&6; }
14947		if test "$supported" = "yes" ; then
14948			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14949			found="yes"
14950		fi
14951	fi
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967xorg_testset_save_CFLAGS="$CFLAGS"
14968
14969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14970	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14972$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14973if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14974  $as_echo_n "(cached) " >&6
14975else
14976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977/* end confdefs.h.  */
14978int i;
14979_ACEOF
14980if ac_fn_c_try_compile "$LINENO"; then :
14981  xorg_cv_cc_flag_unknown_warning_option=yes
14982else
14983  xorg_cv_cc_flag_unknown_warning_option=no
14984fi
14985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14986fi
14987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14988$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14990	CFLAGS="$xorg_testset_save_CFLAGS"
14991fi
14992
14993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14996	fi
14997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14998	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14999$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15000if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15001  $as_echo_n "(cached) " >&6
15002else
15003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004/* end confdefs.h.  */
15005int i;
15006_ACEOF
15007if ac_fn_c_try_compile "$LINENO"; then :
15008  xorg_cv_cc_flag_unused_command_line_argument=yes
15009else
15010  xorg_cv_cc_flag_unused_command_line_argument=no
15011fi
15012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15013fi
15014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15015$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15016	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15017	CFLAGS="$xorg_testset_save_CFLAGS"
15018fi
15019
15020found="no"
15021
15022	if test $found = "no" ; then
15023		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15024			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15025		fi
15026
15027		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15028			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15029		fi
15030
15031		CFLAGS="$CFLAGS -Werror=missing-braces"
15032
15033		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15034$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15035		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15036		if eval \${$cacheid+:} false; then :
15037  $as_echo_n "(cached) " >&6
15038else
15039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15040/* end confdefs.h.  */
15041int i;
15042int
15043main ()
15044{
15045
15046  ;
15047  return 0;
15048}
15049_ACEOF
15050if ac_fn_c_try_link "$LINENO"; then :
15051  eval $cacheid=yes
15052else
15053  eval $cacheid=no
15054fi
15055rm -f core conftest.err conftest.$ac_objext \
15056    conftest$ac_exeext conftest.$ac_ext
15057fi
15058
15059
15060		CFLAGS="$xorg_testset_save_CFLAGS"
15061
15062		eval supported=\$$cacheid
15063		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15064$as_echo "$supported" >&6; }
15065		if test "$supported" = "yes" ; then
15066			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15067			found="yes"
15068		fi
15069	fi
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085xorg_testset_save_CFLAGS="$CFLAGS"
15086
15087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15088	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15090$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15091if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15092  $as_echo_n "(cached) " >&6
15093else
15094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095/* end confdefs.h.  */
15096int i;
15097_ACEOF
15098if ac_fn_c_try_compile "$LINENO"; then :
15099  xorg_cv_cc_flag_unknown_warning_option=yes
15100else
15101  xorg_cv_cc_flag_unknown_warning_option=no
15102fi
15103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15104fi
15105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15106$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15107	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15108	CFLAGS="$xorg_testset_save_CFLAGS"
15109fi
15110
15111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15112	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15113		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15114	fi
15115	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15116	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15117$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15118if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15119  $as_echo_n "(cached) " >&6
15120else
15121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15122/* end confdefs.h.  */
15123int i;
15124_ACEOF
15125if ac_fn_c_try_compile "$LINENO"; then :
15126  xorg_cv_cc_flag_unused_command_line_argument=yes
15127else
15128  xorg_cv_cc_flag_unused_command_line_argument=no
15129fi
15130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15131fi
15132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15133$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15134	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15135	CFLAGS="$xorg_testset_save_CFLAGS"
15136fi
15137
15138found="no"
15139
15140	if test $found = "no" ; then
15141		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15142			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15143		fi
15144
15145		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15146			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15147		fi
15148
15149		CFLAGS="$CFLAGS -Werror=sequence-point"
15150
15151		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15152$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15153		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15154		if eval \${$cacheid+:} false; then :
15155  $as_echo_n "(cached) " >&6
15156else
15157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158/* end confdefs.h.  */
15159int i;
15160int
15161main ()
15162{
15163
15164  ;
15165  return 0;
15166}
15167_ACEOF
15168if ac_fn_c_try_link "$LINENO"; then :
15169  eval $cacheid=yes
15170else
15171  eval $cacheid=no
15172fi
15173rm -f core conftest.err conftest.$ac_objext \
15174    conftest$ac_exeext conftest.$ac_ext
15175fi
15176
15177
15178		CFLAGS="$xorg_testset_save_CFLAGS"
15179
15180		eval supported=\$$cacheid
15181		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15182$as_echo "$supported" >&6; }
15183		if test "$supported" = "yes" ; then
15184			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15185			found="yes"
15186		fi
15187	fi
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203xorg_testset_save_CFLAGS="$CFLAGS"
15204
15205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15206	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15208$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15209if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15210  $as_echo_n "(cached) " >&6
15211else
15212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213/* end confdefs.h.  */
15214int i;
15215_ACEOF
15216if ac_fn_c_try_compile "$LINENO"; then :
15217  xorg_cv_cc_flag_unknown_warning_option=yes
15218else
15219  xorg_cv_cc_flag_unknown_warning_option=no
15220fi
15221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15222fi
15223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15224$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15225	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15226	CFLAGS="$xorg_testset_save_CFLAGS"
15227fi
15228
15229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15230	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15231		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15232	fi
15233	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15234	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15235$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15236if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15237  $as_echo_n "(cached) " >&6
15238else
15239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240/* end confdefs.h.  */
15241int i;
15242_ACEOF
15243if ac_fn_c_try_compile "$LINENO"; then :
15244  xorg_cv_cc_flag_unused_command_line_argument=yes
15245else
15246  xorg_cv_cc_flag_unused_command_line_argument=no
15247fi
15248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249fi
15250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15251$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15252	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15253	CFLAGS="$xorg_testset_save_CFLAGS"
15254fi
15255
15256found="no"
15257
15258	if test $found = "no" ; then
15259		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15260			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15261		fi
15262
15263		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15264			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15265		fi
15266
15267		CFLAGS="$CFLAGS -Werror=return-type"
15268
15269		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15270$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15271		cacheid=xorg_cv_cc_flag__Werror_return_type
15272		if eval \${$cacheid+:} false; then :
15273  $as_echo_n "(cached) " >&6
15274else
15275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15276/* end confdefs.h.  */
15277int i;
15278int
15279main ()
15280{
15281
15282  ;
15283  return 0;
15284}
15285_ACEOF
15286if ac_fn_c_try_link "$LINENO"; then :
15287  eval $cacheid=yes
15288else
15289  eval $cacheid=no
15290fi
15291rm -f core conftest.err conftest.$ac_objext \
15292    conftest$ac_exeext conftest.$ac_ext
15293fi
15294
15295
15296		CFLAGS="$xorg_testset_save_CFLAGS"
15297
15298		eval supported=\$$cacheid
15299		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15300$as_echo "$supported" >&6; }
15301		if test "$supported" = "yes" ; then
15302			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15303			found="yes"
15304		fi
15305	fi
15306
15307	if test $found = "no" ; then
15308		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15309			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15310		fi
15311
15312		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15313			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15314		fi
15315
15316		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15317
15318		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15319$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15320		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15321		if eval \${$cacheid+:} false; then :
15322  $as_echo_n "(cached) " >&6
15323else
15324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15325/* end confdefs.h.  */
15326int i;
15327int
15328main ()
15329{
15330
15331  ;
15332  return 0;
15333}
15334_ACEOF
15335if ac_fn_c_try_link "$LINENO"; then :
15336  eval $cacheid=yes
15337else
15338  eval $cacheid=no
15339fi
15340rm -f core conftest.err conftest.$ac_objext \
15341    conftest$ac_exeext conftest.$ac_ext
15342fi
15343
15344
15345		CFLAGS="$xorg_testset_save_CFLAGS"
15346
15347		eval supported=\$$cacheid
15348		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15349$as_echo "$supported" >&6; }
15350		if test "$supported" = "yes" ; then
15351			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15352			found="yes"
15353		fi
15354	fi
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370xorg_testset_save_CFLAGS="$CFLAGS"
15371
15372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15373	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15374	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15375$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15376if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15377  $as_echo_n "(cached) " >&6
15378else
15379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15380/* end confdefs.h.  */
15381int i;
15382_ACEOF
15383if ac_fn_c_try_compile "$LINENO"; then :
15384  xorg_cv_cc_flag_unknown_warning_option=yes
15385else
15386  xorg_cv_cc_flag_unknown_warning_option=no
15387fi
15388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15389fi
15390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15391$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15392	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15393	CFLAGS="$xorg_testset_save_CFLAGS"
15394fi
15395
15396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15397	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15398		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15399	fi
15400	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15401	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15402$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15403if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15404  $as_echo_n "(cached) " >&6
15405else
15406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15407/* end confdefs.h.  */
15408int i;
15409_ACEOF
15410if ac_fn_c_try_compile "$LINENO"; then :
15411  xorg_cv_cc_flag_unused_command_line_argument=yes
15412else
15413  xorg_cv_cc_flag_unused_command_line_argument=no
15414fi
15415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416fi
15417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15418$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15419	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15420	CFLAGS="$xorg_testset_save_CFLAGS"
15421fi
15422
15423found="no"
15424
15425	if test $found = "no" ; then
15426		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15427			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15428		fi
15429
15430		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15431			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15432		fi
15433
15434		CFLAGS="$CFLAGS -Werror=trigraphs"
15435
15436		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15437$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15438		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15439		if eval \${$cacheid+:} false; then :
15440  $as_echo_n "(cached) " >&6
15441else
15442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15443/* end confdefs.h.  */
15444int i;
15445int
15446main ()
15447{
15448
15449  ;
15450  return 0;
15451}
15452_ACEOF
15453if ac_fn_c_try_link "$LINENO"; then :
15454  eval $cacheid=yes
15455else
15456  eval $cacheid=no
15457fi
15458rm -f core conftest.err conftest.$ac_objext \
15459    conftest$ac_exeext conftest.$ac_ext
15460fi
15461
15462
15463		CFLAGS="$xorg_testset_save_CFLAGS"
15464
15465		eval supported=\$$cacheid
15466		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15467$as_echo "$supported" >&6; }
15468		if test "$supported" = "yes" ; then
15469			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15470			found="yes"
15471		fi
15472	fi
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488xorg_testset_save_CFLAGS="$CFLAGS"
15489
15490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15491	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15492	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15493$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15494if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15495  $as_echo_n "(cached) " >&6
15496else
15497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15498/* end confdefs.h.  */
15499int i;
15500_ACEOF
15501if ac_fn_c_try_compile "$LINENO"; then :
15502  xorg_cv_cc_flag_unknown_warning_option=yes
15503else
15504  xorg_cv_cc_flag_unknown_warning_option=no
15505fi
15506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15507fi
15508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15509$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15510	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15511	CFLAGS="$xorg_testset_save_CFLAGS"
15512fi
15513
15514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15515	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15516		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15517	fi
15518	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15519	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15520$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15521if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15522  $as_echo_n "(cached) " >&6
15523else
15524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525/* end confdefs.h.  */
15526int i;
15527_ACEOF
15528if ac_fn_c_try_compile "$LINENO"; then :
15529  xorg_cv_cc_flag_unused_command_line_argument=yes
15530else
15531  xorg_cv_cc_flag_unused_command_line_argument=no
15532fi
15533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15534fi
15535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15536$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15537	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15538	CFLAGS="$xorg_testset_save_CFLAGS"
15539fi
15540
15541found="no"
15542
15543	if test $found = "no" ; then
15544		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15545			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15546		fi
15547
15548		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15549			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15550		fi
15551
15552		CFLAGS="$CFLAGS -Werror=array-bounds"
15553
15554		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15555$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15556		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15557		if eval \${$cacheid+:} false; then :
15558  $as_echo_n "(cached) " >&6
15559else
15560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15561/* end confdefs.h.  */
15562int i;
15563int
15564main ()
15565{
15566
15567  ;
15568  return 0;
15569}
15570_ACEOF
15571if ac_fn_c_try_link "$LINENO"; then :
15572  eval $cacheid=yes
15573else
15574  eval $cacheid=no
15575fi
15576rm -f core conftest.err conftest.$ac_objext \
15577    conftest$ac_exeext conftest.$ac_ext
15578fi
15579
15580
15581		CFLAGS="$xorg_testset_save_CFLAGS"
15582
15583		eval supported=\$$cacheid
15584		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15585$as_echo "$supported" >&6; }
15586		if test "$supported" = "yes" ; then
15587			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15588			found="yes"
15589		fi
15590	fi
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606xorg_testset_save_CFLAGS="$CFLAGS"
15607
15608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15609	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15610	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15611$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15612if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15613  $as_echo_n "(cached) " >&6
15614else
15615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15616/* end confdefs.h.  */
15617int i;
15618_ACEOF
15619if ac_fn_c_try_compile "$LINENO"; then :
15620  xorg_cv_cc_flag_unknown_warning_option=yes
15621else
15622  xorg_cv_cc_flag_unknown_warning_option=no
15623fi
15624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15625fi
15626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15627$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15628	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15629	CFLAGS="$xorg_testset_save_CFLAGS"
15630fi
15631
15632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15633	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15634		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15635	fi
15636	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15637	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15638$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15639if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15640  $as_echo_n "(cached) " >&6
15641else
15642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643/* end confdefs.h.  */
15644int i;
15645_ACEOF
15646if ac_fn_c_try_compile "$LINENO"; then :
15647  xorg_cv_cc_flag_unused_command_line_argument=yes
15648else
15649  xorg_cv_cc_flag_unused_command_line_argument=no
15650fi
15651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15652fi
15653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15654$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15655	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15656	CFLAGS="$xorg_testset_save_CFLAGS"
15657fi
15658
15659found="no"
15660
15661	if test $found = "no" ; then
15662		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15663			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15664		fi
15665
15666		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15667			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15668		fi
15669
15670		CFLAGS="$CFLAGS -Werror=write-strings"
15671
15672		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15673$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15674		cacheid=xorg_cv_cc_flag__Werror_write_strings
15675		if eval \${$cacheid+:} false; then :
15676  $as_echo_n "(cached) " >&6
15677else
15678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679/* end confdefs.h.  */
15680int i;
15681int
15682main ()
15683{
15684
15685  ;
15686  return 0;
15687}
15688_ACEOF
15689if ac_fn_c_try_link "$LINENO"; then :
15690  eval $cacheid=yes
15691else
15692  eval $cacheid=no
15693fi
15694rm -f core conftest.err conftest.$ac_objext \
15695    conftest$ac_exeext conftest.$ac_ext
15696fi
15697
15698
15699		CFLAGS="$xorg_testset_save_CFLAGS"
15700
15701		eval supported=\$$cacheid
15702		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15703$as_echo "$supported" >&6; }
15704		if test "$supported" = "yes" ; then
15705			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15706			found="yes"
15707		fi
15708	fi
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724xorg_testset_save_CFLAGS="$CFLAGS"
15725
15726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15727	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15729$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15730if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15731  $as_echo_n "(cached) " >&6
15732else
15733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15734/* end confdefs.h.  */
15735int i;
15736_ACEOF
15737if ac_fn_c_try_compile "$LINENO"; then :
15738  xorg_cv_cc_flag_unknown_warning_option=yes
15739else
15740  xorg_cv_cc_flag_unknown_warning_option=no
15741fi
15742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15743fi
15744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15745$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15746	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15747	CFLAGS="$xorg_testset_save_CFLAGS"
15748fi
15749
15750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15751	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15752		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15753	fi
15754	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15755	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15756$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15757if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15758  $as_echo_n "(cached) " >&6
15759else
15760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761/* end confdefs.h.  */
15762int i;
15763_ACEOF
15764if ac_fn_c_try_compile "$LINENO"; then :
15765  xorg_cv_cc_flag_unused_command_line_argument=yes
15766else
15767  xorg_cv_cc_flag_unused_command_line_argument=no
15768fi
15769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15770fi
15771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15772$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15773	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15774	CFLAGS="$xorg_testset_save_CFLAGS"
15775fi
15776
15777found="no"
15778
15779	if test $found = "no" ; then
15780		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15781			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15782		fi
15783
15784		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15785			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15786		fi
15787
15788		CFLAGS="$CFLAGS -Werror=address"
15789
15790		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15791$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15792		cacheid=xorg_cv_cc_flag__Werror_address
15793		if eval \${$cacheid+:} false; then :
15794  $as_echo_n "(cached) " >&6
15795else
15796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797/* end confdefs.h.  */
15798int i;
15799int
15800main ()
15801{
15802
15803  ;
15804  return 0;
15805}
15806_ACEOF
15807if ac_fn_c_try_link "$LINENO"; then :
15808  eval $cacheid=yes
15809else
15810  eval $cacheid=no
15811fi
15812rm -f core conftest.err conftest.$ac_objext \
15813    conftest$ac_exeext conftest.$ac_ext
15814fi
15815
15816
15817		CFLAGS="$xorg_testset_save_CFLAGS"
15818
15819		eval supported=\$$cacheid
15820		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15821$as_echo "$supported" >&6; }
15822		if test "$supported" = "yes" ; then
15823			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15824			found="yes"
15825		fi
15826	fi
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842xorg_testset_save_CFLAGS="$CFLAGS"
15843
15844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15849  $as_echo_n "(cached) " >&6
15850else
15851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15852/* end confdefs.h.  */
15853int i;
15854_ACEOF
15855if ac_fn_c_try_compile "$LINENO"; then :
15856  xorg_cv_cc_flag_unknown_warning_option=yes
15857else
15858  xorg_cv_cc_flag_unknown_warning_option=no
15859fi
15860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15861fi
15862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15864	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15865	CFLAGS="$xorg_testset_save_CFLAGS"
15866fi
15867
15868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15869	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15870		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15871	fi
15872	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15873	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15876  $as_echo_n "(cached) " >&6
15877else
15878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879/* end confdefs.h.  */
15880int i;
15881_ACEOF
15882if ac_fn_c_try_compile "$LINENO"; then :
15883  xorg_cv_cc_flag_unused_command_line_argument=yes
15884else
15885  xorg_cv_cc_flag_unused_command_line_argument=no
15886fi
15887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15888fi
15889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15892	CFLAGS="$xorg_testset_save_CFLAGS"
15893fi
15894
15895found="no"
15896
15897	if test $found = "no" ; then
15898		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15900		fi
15901
15902		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15904		fi
15905
15906		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15907
15908		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15909$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15910		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15911		if eval \${$cacheid+:} false; then :
15912  $as_echo_n "(cached) " >&6
15913else
15914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915/* end confdefs.h.  */
15916int i;
15917int
15918main ()
15919{
15920
15921  ;
15922  return 0;
15923}
15924_ACEOF
15925if ac_fn_c_try_link "$LINENO"; then :
15926  eval $cacheid=yes
15927else
15928  eval $cacheid=no
15929fi
15930rm -f core conftest.err conftest.$ac_objext \
15931    conftest$ac_exeext conftest.$ac_ext
15932fi
15933
15934
15935		CFLAGS="$xorg_testset_save_CFLAGS"
15936
15937		eval supported=\$$cacheid
15938		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15939$as_echo "$supported" >&6; }
15940		if test "$supported" = "yes" ; then
15941			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15942			found="yes"
15943		fi
15944	fi
15945
15946	if test $found = "no" ; then
15947		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15948			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15949		fi
15950
15951		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15952			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15953		fi
15954
15955		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15956
15957		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15958$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15959		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15960		if eval \${$cacheid+:} false; then :
15961  $as_echo_n "(cached) " >&6
15962else
15963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15964/* end confdefs.h.  */
15965int i;
15966int
15967main ()
15968{
15969
15970  ;
15971  return 0;
15972}
15973_ACEOF
15974if ac_fn_c_try_link "$LINENO"; then :
15975  eval $cacheid=yes
15976else
15977  eval $cacheid=no
15978fi
15979rm -f core conftest.err conftest.$ac_objext \
15980    conftest$ac_exeext conftest.$ac_ext
15981fi
15982
15983
15984		CFLAGS="$xorg_testset_save_CFLAGS"
15985
15986		eval supported=\$$cacheid
15987		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15988$as_echo "$supported" >&6; }
15989		if test "$supported" = "yes" ; then
15990			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15991			found="yes"
15992		fi
15993	fi
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009xorg_testset_save_CFLAGS="$CFLAGS"
16010
16011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16012	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16013	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16014$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16015if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16016  $as_echo_n "(cached) " >&6
16017else
16018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16019/* end confdefs.h.  */
16020int i;
16021_ACEOF
16022if ac_fn_c_try_compile "$LINENO"; then :
16023  xorg_cv_cc_flag_unknown_warning_option=yes
16024else
16025  xorg_cv_cc_flag_unknown_warning_option=no
16026fi
16027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16028fi
16029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16030$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16031	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16032	CFLAGS="$xorg_testset_save_CFLAGS"
16033fi
16034
16035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16036	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16037		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16038	fi
16039	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16040	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16041$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16042if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16043  $as_echo_n "(cached) " >&6
16044else
16045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16046/* end confdefs.h.  */
16047int i;
16048_ACEOF
16049if ac_fn_c_try_compile "$LINENO"; then :
16050  xorg_cv_cc_flag_unused_command_line_argument=yes
16051else
16052  xorg_cv_cc_flag_unused_command_line_argument=no
16053fi
16054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16055fi
16056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16057$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16058	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16059	CFLAGS="$xorg_testset_save_CFLAGS"
16060fi
16061
16062found="no"
16063
16064	if test $found = "no" ; then
16065		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16066			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16067		fi
16068
16069		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16070			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16071		fi
16072
16073		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16074
16075		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16076$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16077		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16078		if eval \${$cacheid+:} false; then :
16079  $as_echo_n "(cached) " >&6
16080else
16081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082/* end confdefs.h.  */
16083int i;
16084int
16085main ()
16086{
16087
16088  ;
16089  return 0;
16090}
16091_ACEOF
16092if ac_fn_c_try_link "$LINENO"; then :
16093  eval $cacheid=yes
16094else
16095  eval $cacheid=no
16096fi
16097rm -f core conftest.err conftest.$ac_objext \
16098    conftest$ac_exeext conftest.$ac_ext
16099fi
16100
16101
16102		CFLAGS="$xorg_testset_save_CFLAGS"
16103
16104		eval supported=\$$cacheid
16105		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16106$as_echo "$supported" >&6; }
16107		if test "$supported" = "yes" ; then
16108			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16109			found="yes"
16110		fi
16111	fi
16112
16113 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16114else
16115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
16116$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130xorg_testset_save_CFLAGS="$CFLAGS"
16131
16132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16133	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16134	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16135$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16136if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16137  $as_echo_n "(cached) " >&6
16138else
16139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16140/* end confdefs.h.  */
16141int i;
16142_ACEOF
16143if ac_fn_c_try_compile "$LINENO"; then :
16144  xorg_cv_cc_flag_unknown_warning_option=yes
16145else
16146  xorg_cv_cc_flag_unknown_warning_option=no
16147fi
16148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16149fi
16150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16151$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16152	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16153	CFLAGS="$xorg_testset_save_CFLAGS"
16154fi
16155
16156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16157	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16158		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16159	fi
16160	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16162$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16163if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16164  $as_echo_n "(cached) " >&6
16165else
16166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16167/* end confdefs.h.  */
16168int i;
16169_ACEOF
16170if ac_fn_c_try_compile "$LINENO"; then :
16171  xorg_cv_cc_flag_unused_command_line_argument=yes
16172else
16173  xorg_cv_cc_flag_unused_command_line_argument=no
16174fi
16175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16176fi
16177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16178$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16179	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16180	CFLAGS="$xorg_testset_save_CFLAGS"
16181fi
16182
16183found="no"
16184
16185	if test $found = "no" ; then
16186		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16187			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16188		fi
16189
16190		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16191			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16192		fi
16193
16194		CFLAGS="$CFLAGS -Wimplicit"
16195
16196		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16197$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16198		cacheid=xorg_cv_cc_flag__Wimplicit
16199		if eval \${$cacheid+:} false; then :
16200  $as_echo_n "(cached) " >&6
16201else
16202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16203/* end confdefs.h.  */
16204int i;
16205int
16206main ()
16207{
16208
16209  ;
16210  return 0;
16211}
16212_ACEOF
16213if ac_fn_c_try_link "$LINENO"; then :
16214  eval $cacheid=yes
16215else
16216  eval $cacheid=no
16217fi
16218rm -f core conftest.err conftest.$ac_objext \
16219    conftest$ac_exeext conftest.$ac_ext
16220fi
16221
16222
16223		CFLAGS="$xorg_testset_save_CFLAGS"
16224
16225		eval supported=\$$cacheid
16226		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16227$as_echo "$supported" >&6; }
16228		if test "$supported" = "yes" ; then
16229			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16230			found="yes"
16231		fi
16232	fi
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248xorg_testset_save_CFLAGS="$CFLAGS"
16249
16250if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16251	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16252	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16253$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16254if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16255  $as_echo_n "(cached) " >&6
16256else
16257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16258/* end confdefs.h.  */
16259int i;
16260_ACEOF
16261if ac_fn_c_try_compile "$LINENO"; then :
16262  xorg_cv_cc_flag_unknown_warning_option=yes
16263else
16264  xorg_cv_cc_flag_unknown_warning_option=no
16265fi
16266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16267fi
16268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16269$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16270	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16271	CFLAGS="$xorg_testset_save_CFLAGS"
16272fi
16273
16274if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16275	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16276		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16277	fi
16278	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16280$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16281if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16282  $as_echo_n "(cached) " >&6
16283else
16284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285/* end confdefs.h.  */
16286int i;
16287_ACEOF
16288if ac_fn_c_try_compile "$LINENO"; then :
16289  xorg_cv_cc_flag_unused_command_line_argument=yes
16290else
16291  xorg_cv_cc_flag_unused_command_line_argument=no
16292fi
16293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16294fi
16295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16296$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16297	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16298	CFLAGS="$xorg_testset_save_CFLAGS"
16299fi
16300
16301found="no"
16302
16303	if test $found = "no" ; then
16304		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16305			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16306		fi
16307
16308		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16309			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16310		fi
16311
16312		CFLAGS="$CFLAGS -Wnonnull"
16313
16314		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16315$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16316		cacheid=xorg_cv_cc_flag__Wnonnull
16317		if eval \${$cacheid+:} false; then :
16318  $as_echo_n "(cached) " >&6
16319else
16320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321/* end confdefs.h.  */
16322int i;
16323int
16324main ()
16325{
16326
16327  ;
16328  return 0;
16329}
16330_ACEOF
16331if ac_fn_c_try_link "$LINENO"; then :
16332  eval $cacheid=yes
16333else
16334  eval $cacheid=no
16335fi
16336rm -f core conftest.err conftest.$ac_objext \
16337    conftest$ac_exeext conftest.$ac_ext
16338fi
16339
16340
16341		CFLAGS="$xorg_testset_save_CFLAGS"
16342
16343		eval supported=\$$cacheid
16344		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16345$as_echo "$supported" >&6; }
16346		if test "$supported" = "yes" ; then
16347			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16348			found="yes"
16349		fi
16350	fi
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366xorg_testset_save_CFLAGS="$CFLAGS"
16367
16368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16369	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16370	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16371$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16372if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16373  $as_echo_n "(cached) " >&6
16374else
16375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16376/* end confdefs.h.  */
16377int i;
16378_ACEOF
16379if ac_fn_c_try_compile "$LINENO"; then :
16380  xorg_cv_cc_flag_unknown_warning_option=yes
16381else
16382  xorg_cv_cc_flag_unknown_warning_option=no
16383fi
16384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16385fi
16386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16387$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16388	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16389	CFLAGS="$xorg_testset_save_CFLAGS"
16390fi
16391
16392if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16393	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16394		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16395	fi
16396	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16397	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16398$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16399if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16400  $as_echo_n "(cached) " >&6
16401else
16402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16403/* end confdefs.h.  */
16404int i;
16405_ACEOF
16406if ac_fn_c_try_compile "$LINENO"; then :
16407  xorg_cv_cc_flag_unused_command_line_argument=yes
16408else
16409  xorg_cv_cc_flag_unused_command_line_argument=no
16410fi
16411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412fi
16413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16414$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16415	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16416	CFLAGS="$xorg_testset_save_CFLAGS"
16417fi
16418
16419found="no"
16420
16421	if test $found = "no" ; then
16422		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16423			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16424		fi
16425
16426		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16427			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16428		fi
16429
16430		CFLAGS="$CFLAGS -Winit-self"
16431
16432		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16433$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16434		cacheid=xorg_cv_cc_flag__Winit_self
16435		if eval \${$cacheid+:} false; then :
16436  $as_echo_n "(cached) " >&6
16437else
16438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439/* end confdefs.h.  */
16440int i;
16441int
16442main ()
16443{
16444
16445  ;
16446  return 0;
16447}
16448_ACEOF
16449if ac_fn_c_try_link "$LINENO"; then :
16450  eval $cacheid=yes
16451else
16452  eval $cacheid=no
16453fi
16454rm -f core conftest.err conftest.$ac_objext \
16455    conftest$ac_exeext conftest.$ac_ext
16456fi
16457
16458
16459		CFLAGS="$xorg_testset_save_CFLAGS"
16460
16461		eval supported=\$$cacheid
16462		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16463$as_echo "$supported" >&6; }
16464		if test "$supported" = "yes" ; then
16465			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16466			found="yes"
16467		fi
16468	fi
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484xorg_testset_save_CFLAGS="$CFLAGS"
16485
16486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16487	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16488	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16489$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16490if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16491  $as_echo_n "(cached) " >&6
16492else
16493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494/* end confdefs.h.  */
16495int i;
16496_ACEOF
16497if ac_fn_c_try_compile "$LINENO"; then :
16498  xorg_cv_cc_flag_unknown_warning_option=yes
16499else
16500  xorg_cv_cc_flag_unknown_warning_option=no
16501fi
16502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16503fi
16504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16505$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16506	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16507	CFLAGS="$xorg_testset_save_CFLAGS"
16508fi
16509
16510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16511	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16512		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16513	fi
16514	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16516$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16517if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16518  $as_echo_n "(cached) " >&6
16519else
16520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16521/* end confdefs.h.  */
16522int i;
16523_ACEOF
16524if ac_fn_c_try_compile "$LINENO"; then :
16525  xorg_cv_cc_flag_unused_command_line_argument=yes
16526else
16527  xorg_cv_cc_flag_unused_command_line_argument=no
16528fi
16529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16530fi
16531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16532$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16533	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16534	CFLAGS="$xorg_testset_save_CFLAGS"
16535fi
16536
16537found="no"
16538
16539	if test $found = "no" ; then
16540		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16541			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16542		fi
16543
16544		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16545			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16546		fi
16547
16548		CFLAGS="$CFLAGS -Wmain"
16549
16550		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16551$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16552		cacheid=xorg_cv_cc_flag__Wmain
16553		if eval \${$cacheid+:} false; then :
16554  $as_echo_n "(cached) " >&6
16555else
16556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557/* end confdefs.h.  */
16558int i;
16559int
16560main ()
16561{
16562
16563  ;
16564  return 0;
16565}
16566_ACEOF
16567if ac_fn_c_try_link "$LINENO"; then :
16568  eval $cacheid=yes
16569else
16570  eval $cacheid=no
16571fi
16572rm -f core conftest.err conftest.$ac_objext \
16573    conftest$ac_exeext conftest.$ac_ext
16574fi
16575
16576
16577		CFLAGS="$xorg_testset_save_CFLAGS"
16578
16579		eval supported=\$$cacheid
16580		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16581$as_echo "$supported" >&6; }
16582		if test "$supported" = "yes" ; then
16583			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16584			found="yes"
16585		fi
16586	fi
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602xorg_testset_save_CFLAGS="$CFLAGS"
16603
16604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16605	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16606	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16607$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16608if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16609  $as_echo_n "(cached) " >&6
16610else
16611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16612/* end confdefs.h.  */
16613int i;
16614_ACEOF
16615if ac_fn_c_try_compile "$LINENO"; then :
16616  xorg_cv_cc_flag_unknown_warning_option=yes
16617else
16618  xorg_cv_cc_flag_unknown_warning_option=no
16619fi
16620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16621fi
16622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16623$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16624	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16625	CFLAGS="$xorg_testset_save_CFLAGS"
16626fi
16627
16628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16629	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16630		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16631	fi
16632	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16634$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16635if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16636  $as_echo_n "(cached) " >&6
16637else
16638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639/* end confdefs.h.  */
16640int i;
16641_ACEOF
16642if ac_fn_c_try_compile "$LINENO"; then :
16643  xorg_cv_cc_flag_unused_command_line_argument=yes
16644else
16645  xorg_cv_cc_flag_unused_command_line_argument=no
16646fi
16647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16648fi
16649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16650$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16651	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16652	CFLAGS="$xorg_testset_save_CFLAGS"
16653fi
16654
16655found="no"
16656
16657	if test $found = "no" ; then
16658		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16659			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16660		fi
16661
16662		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16663			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16664		fi
16665
16666		CFLAGS="$CFLAGS -Wmissing-braces"
16667
16668		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16669$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16670		cacheid=xorg_cv_cc_flag__Wmissing_braces
16671		if eval \${$cacheid+:} false; then :
16672  $as_echo_n "(cached) " >&6
16673else
16674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16675/* end confdefs.h.  */
16676int i;
16677int
16678main ()
16679{
16680
16681  ;
16682  return 0;
16683}
16684_ACEOF
16685if ac_fn_c_try_link "$LINENO"; then :
16686  eval $cacheid=yes
16687else
16688  eval $cacheid=no
16689fi
16690rm -f core conftest.err conftest.$ac_objext \
16691    conftest$ac_exeext conftest.$ac_ext
16692fi
16693
16694
16695		CFLAGS="$xorg_testset_save_CFLAGS"
16696
16697		eval supported=\$$cacheid
16698		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16699$as_echo "$supported" >&6; }
16700		if test "$supported" = "yes" ; then
16701			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16702			found="yes"
16703		fi
16704	fi
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720xorg_testset_save_CFLAGS="$CFLAGS"
16721
16722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16723	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16724	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16725$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16726if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16727  $as_echo_n "(cached) " >&6
16728else
16729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16730/* end confdefs.h.  */
16731int i;
16732_ACEOF
16733if ac_fn_c_try_compile "$LINENO"; then :
16734  xorg_cv_cc_flag_unknown_warning_option=yes
16735else
16736  xorg_cv_cc_flag_unknown_warning_option=no
16737fi
16738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16739fi
16740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16741$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16742	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16743	CFLAGS="$xorg_testset_save_CFLAGS"
16744fi
16745
16746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16747	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16748		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16749	fi
16750	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16752$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16753if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16754  $as_echo_n "(cached) " >&6
16755else
16756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757/* end confdefs.h.  */
16758int i;
16759_ACEOF
16760if ac_fn_c_try_compile "$LINENO"; then :
16761  xorg_cv_cc_flag_unused_command_line_argument=yes
16762else
16763  xorg_cv_cc_flag_unused_command_line_argument=no
16764fi
16765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16766fi
16767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16768$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16769	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16770	CFLAGS="$xorg_testset_save_CFLAGS"
16771fi
16772
16773found="no"
16774
16775	if test $found = "no" ; then
16776		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16777			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16778		fi
16779
16780		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16781			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16782		fi
16783
16784		CFLAGS="$CFLAGS -Wsequence-point"
16785
16786		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16787$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16788		cacheid=xorg_cv_cc_flag__Wsequence_point
16789		if eval \${$cacheid+:} false; then :
16790  $as_echo_n "(cached) " >&6
16791else
16792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16793/* end confdefs.h.  */
16794int i;
16795int
16796main ()
16797{
16798
16799  ;
16800  return 0;
16801}
16802_ACEOF
16803if ac_fn_c_try_link "$LINENO"; then :
16804  eval $cacheid=yes
16805else
16806  eval $cacheid=no
16807fi
16808rm -f core conftest.err conftest.$ac_objext \
16809    conftest$ac_exeext conftest.$ac_ext
16810fi
16811
16812
16813		CFLAGS="$xorg_testset_save_CFLAGS"
16814
16815		eval supported=\$$cacheid
16816		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16817$as_echo "$supported" >&6; }
16818		if test "$supported" = "yes" ; then
16819			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16820			found="yes"
16821		fi
16822	fi
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838xorg_testset_save_CFLAGS="$CFLAGS"
16839
16840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16841	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16843$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16844if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16845  $as_echo_n "(cached) " >&6
16846else
16847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16848/* end confdefs.h.  */
16849int i;
16850_ACEOF
16851if ac_fn_c_try_compile "$LINENO"; then :
16852  xorg_cv_cc_flag_unknown_warning_option=yes
16853else
16854  xorg_cv_cc_flag_unknown_warning_option=no
16855fi
16856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16857fi
16858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16859$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16860	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16861	CFLAGS="$xorg_testset_save_CFLAGS"
16862fi
16863
16864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16865	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16866		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16867	fi
16868	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16870$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16871if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16872  $as_echo_n "(cached) " >&6
16873else
16874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16875/* end confdefs.h.  */
16876int i;
16877_ACEOF
16878if ac_fn_c_try_compile "$LINENO"; then :
16879  xorg_cv_cc_flag_unused_command_line_argument=yes
16880else
16881  xorg_cv_cc_flag_unused_command_line_argument=no
16882fi
16883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16884fi
16885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16886$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16887	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16888	CFLAGS="$xorg_testset_save_CFLAGS"
16889fi
16890
16891found="no"
16892
16893	if test $found = "no" ; then
16894		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16895			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16896		fi
16897
16898		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16899			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16900		fi
16901
16902		CFLAGS="$CFLAGS -Wreturn-type"
16903
16904		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16905$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16906		cacheid=xorg_cv_cc_flag__Wreturn_type
16907		if eval \${$cacheid+:} false; then :
16908  $as_echo_n "(cached) " >&6
16909else
16910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16911/* end confdefs.h.  */
16912int i;
16913int
16914main ()
16915{
16916
16917  ;
16918  return 0;
16919}
16920_ACEOF
16921if ac_fn_c_try_link "$LINENO"; then :
16922  eval $cacheid=yes
16923else
16924  eval $cacheid=no
16925fi
16926rm -f core conftest.err conftest.$ac_objext \
16927    conftest$ac_exeext conftest.$ac_ext
16928fi
16929
16930
16931		CFLAGS="$xorg_testset_save_CFLAGS"
16932
16933		eval supported=\$$cacheid
16934		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16935$as_echo "$supported" >&6; }
16936		if test "$supported" = "yes" ; then
16937			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16938			found="yes"
16939		fi
16940	fi
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956xorg_testset_save_CFLAGS="$CFLAGS"
16957
16958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16959	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16960	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16961$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16962if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16963  $as_echo_n "(cached) " >&6
16964else
16965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16966/* end confdefs.h.  */
16967int i;
16968_ACEOF
16969if ac_fn_c_try_compile "$LINENO"; then :
16970  xorg_cv_cc_flag_unknown_warning_option=yes
16971else
16972  xorg_cv_cc_flag_unknown_warning_option=no
16973fi
16974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16975fi
16976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16977$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16978	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16979	CFLAGS="$xorg_testset_save_CFLAGS"
16980fi
16981
16982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16983	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16984		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16985	fi
16986	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16988$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16989if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16990  $as_echo_n "(cached) " >&6
16991else
16992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16993/* end confdefs.h.  */
16994int i;
16995_ACEOF
16996if ac_fn_c_try_compile "$LINENO"; then :
16997  xorg_cv_cc_flag_unused_command_line_argument=yes
16998else
16999  xorg_cv_cc_flag_unused_command_line_argument=no
17000fi
17001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17002fi
17003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17004$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17005	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17006	CFLAGS="$xorg_testset_save_CFLAGS"
17007fi
17008
17009found="no"
17010
17011	if test $found = "no" ; then
17012		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17013			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17014		fi
17015
17016		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17017			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17018		fi
17019
17020		CFLAGS="$CFLAGS -Wtrigraphs"
17021
17022		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17023$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17024		cacheid=xorg_cv_cc_flag__Wtrigraphs
17025		if eval \${$cacheid+:} false; then :
17026  $as_echo_n "(cached) " >&6
17027else
17028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17029/* end confdefs.h.  */
17030int i;
17031int
17032main ()
17033{
17034
17035  ;
17036  return 0;
17037}
17038_ACEOF
17039if ac_fn_c_try_link "$LINENO"; then :
17040  eval $cacheid=yes
17041else
17042  eval $cacheid=no
17043fi
17044rm -f core conftest.err conftest.$ac_objext \
17045    conftest$ac_exeext conftest.$ac_ext
17046fi
17047
17048
17049		CFLAGS="$xorg_testset_save_CFLAGS"
17050
17051		eval supported=\$$cacheid
17052		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17053$as_echo "$supported" >&6; }
17054		if test "$supported" = "yes" ; then
17055			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17056			found="yes"
17057		fi
17058	fi
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074xorg_testset_save_CFLAGS="$CFLAGS"
17075
17076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17077	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17078	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17079$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17080if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17081  $as_echo_n "(cached) " >&6
17082else
17083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084/* end confdefs.h.  */
17085int i;
17086_ACEOF
17087if ac_fn_c_try_compile "$LINENO"; then :
17088  xorg_cv_cc_flag_unknown_warning_option=yes
17089else
17090  xorg_cv_cc_flag_unknown_warning_option=no
17091fi
17092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17093fi
17094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17095$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17096	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17097	CFLAGS="$xorg_testset_save_CFLAGS"
17098fi
17099
17100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17101	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17102		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17103	fi
17104	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17105	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17106$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17107if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17108  $as_echo_n "(cached) " >&6
17109else
17110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17111/* end confdefs.h.  */
17112int i;
17113_ACEOF
17114if ac_fn_c_try_compile "$LINENO"; then :
17115  xorg_cv_cc_flag_unused_command_line_argument=yes
17116else
17117  xorg_cv_cc_flag_unused_command_line_argument=no
17118fi
17119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17120fi
17121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17122$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17123	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17124	CFLAGS="$xorg_testset_save_CFLAGS"
17125fi
17126
17127found="no"
17128
17129	if test $found = "no" ; then
17130		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17131			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17132		fi
17133
17134		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17135			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17136		fi
17137
17138		CFLAGS="$CFLAGS -Warray-bounds"
17139
17140		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17141$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17142		cacheid=xorg_cv_cc_flag__Warray_bounds
17143		if eval \${$cacheid+:} false; then :
17144  $as_echo_n "(cached) " >&6
17145else
17146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147/* end confdefs.h.  */
17148int i;
17149int
17150main ()
17151{
17152
17153  ;
17154  return 0;
17155}
17156_ACEOF
17157if ac_fn_c_try_link "$LINENO"; then :
17158  eval $cacheid=yes
17159else
17160  eval $cacheid=no
17161fi
17162rm -f core conftest.err conftest.$ac_objext \
17163    conftest$ac_exeext conftest.$ac_ext
17164fi
17165
17166
17167		CFLAGS="$xorg_testset_save_CFLAGS"
17168
17169		eval supported=\$$cacheid
17170		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17171$as_echo "$supported" >&6; }
17172		if test "$supported" = "yes" ; then
17173			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17174			found="yes"
17175		fi
17176	fi
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192xorg_testset_save_CFLAGS="$CFLAGS"
17193
17194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17195	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17196	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17197$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17198if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17199  $as_echo_n "(cached) " >&6
17200else
17201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17202/* end confdefs.h.  */
17203int i;
17204_ACEOF
17205if ac_fn_c_try_compile "$LINENO"; then :
17206  xorg_cv_cc_flag_unknown_warning_option=yes
17207else
17208  xorg_cv_cc_flag_unknown_warning_option=no
17209fi
17210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17211fi
17212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17213$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17214	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17215	CFLAGS="$xorg_testset_save_CFLAGS"
17216fi
17217
17218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17219	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17220		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17221	fi
17222	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17223	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17224$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17225if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17226  $as_echo_n "(cached) " >&6
17227else
17228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229/* end confdefs.h.  */
17230int i;
17231_ACEOF
17232if ac_fn_c_try_compile "$LINENO"; then :
17233  xorg_cv_cc_flag_unused_command_line_argument=yes
17234else
17235  xorg_cv_cc_flag_unused_command_line_argument=no
17236fi
17237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17238fi
17239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17240$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17241	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17242	CFLAGS="$xorg_testset_save_CFLAGS"
17243fi
17244
17245found="no"
17246
17247	if test $found = "no" ; then
17248		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17249			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17250		fi
17251
17252		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17253			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17254		fi
17255
17256		CFLAGS="$CFLAGS -Wwrite-strings"
17257
17258		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17259$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17260		cacheid=xorg_cv_cc_flag__Wwrite_strings
17261		if eval \${$cacheid+:} false; then :
17262  $as_echo_n "(cached) " >&6
17263else
17264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265/* end confdefs.h.  */
17266int i;
17267int
17268main ()
17269{
17270
17271  ;
17272  return 0;
17273}
17274_ACEOF
17275if ac_fn_c_try_link "$LINENO"; then :
17276  eval $cacheid=yes
17277else
17278  eval $cacheid=no
17279fi
17280rm -f core conftest.err conftest.$ac_objext \
17281    conftest$ac_exeext conftest.$ac_ext
17282fi
17283
17284
17285		CFLAGS="$xorg_testset_save_CFLAGS"
17286
17287		eval supported=\$$cacheid
17288		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17289$as_echo "$supported" >&6; }
17290		if test "$supported" = "yes" ; then
17291			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17292			found="yes"
17293		fi
17294	fi
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310xorg_testset_save_CFLAGS="$CFLAGS"
17311
17312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17313	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17314	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17315$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17316if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17317  $as_echo_n "(cached) " >&6
17318else
17319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17320/* end confdefs.h.  */
17321int i;
17322_ACEOF
17323if ac_fn_c_try_compile "$LINENO"; then :
17324  xorg_cv_cc_flag_unknown_warning_option=yes
17325else
17326  xorg_cv_cc_flag_unknown_warning_option=no
17327fi
17328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17329fi
17330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17331$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17332	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17333	CFLAGS="$xorg_testset_save_CFLAGS"
17334fi
17335
17336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17337	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17338		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17339	fi
17340	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17341	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17342$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17343if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17344  $as_echo_n "(cached) " >&6
17345else
17346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17347/* end confdefs.h.  */
17348int i;
17349_ACEOF
17350if ac_fn_c_try_compile "$LINENO"; then :
17351  xorg_cv_cc_flag_unused_command_line_argument=yes
17352else
17353  xorg_cv_cc_flag_unused_command_line_argument=no
17354fi
17355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17356fi
17357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17358$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17359	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17360	CFLAGS="$xorg_testset_save_CFLAGS"
17361fi
17362
17363found="no"
17364
17365	if test $found = "no" ; then
17366		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17368		fi
17369
17370		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17372		fi
17373
17374		CFLAGS="$CFLAGS -Waddress"
17375
17376		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17377$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17378		cacheid=xorg_cv_cc_flag__Waddress
17379		if eval \${$cacheid+:} false; then :
17380  $as_echo_n "(cached) " >&6
17381else
17382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17383/* end confdefs.h.  */
17384int i;
17385int
17386main ()
17387{
17388
17389  ;
17390  return 0;
17391}
17392_ACEOF
17393if ac_fn_c_try_link "$LINENO"; then :
17394  eval $cacheid=yes
17395else
17396  eval $cacheid=no
17397fi
17398rm -f core conftest.err conftest.$ac_objext \
17399    conftest$ac_exeext conftest.$ac_ext
17400fi
17401
17402
17403		CFLAGS="$xorg_testset_save_CFLAGS"
17404
17405		eval supported=\$$cacheid
17406		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17407$as_echo "$supported" >&6; }
17408		if test "$supported" = "yes" ; then
17409			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17410			found="yes"
17411		fi
17412	fi
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428xorg_testset_save_CFLAGS="$CFLAGS"
17429
17430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17431	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17432	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17433$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17434if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17435  $as_echo_n "(cached) " >&6
17436else
17437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17438/* end confdefs.h.  */
17439int i;
17440_ACEOF
17441if ac_fn_c_try_compile "$LINENO"; then :
17442  xorg_cv_cc_flag_unknown_warning_option=yes
17443else
17444  xorg_cv_cc_flag_unknown_warning_option=no
17445fi
17446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447fi
17448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17449$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17450	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17451	CFLAGS="$xorg_testset_save_CFLAGS"
17452fi
17453
17454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17455	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17456		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17457	fi
17458	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17459	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17460$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17461if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17462  $as_echo_n "(cached) " >&6
17463else
17464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17465/* end confdefs.h.  */
17466int i;
17467_ACEOF
17468if ac_fn_c_try_compile "$LINENO"; then :
17469  xorg_cv_cc_flag_unused_command_line_argument=yes
17470else
17471  xorg_cv_cc_flag_unused_command_line_argument=no
17472fi
17473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17474fi
17475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17476$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17477	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17478	CFLAGS="$xorg_testset_save_CFLAGS"
17479fi
17480
17481found="no"
17482
17483	if test $found = "no" ; then
17484		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17486		fi
17487
17488		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17490		fi
17491
17492		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17493
17494		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17495$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17496		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17497		if eval \${$cacheid+:} false; then :
17498  $as_echo_n "(cached) " >&6
17499else
17500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17501/* end confdefs.h.  */
17502int i;
17503int
17504main ()
17505{
17506
17507  ;
17508  return 0;
17509}
17510_ACEOF
17511if ac_fn_c_try_link "$LINENO"; then :
17512  eval $cacheid=yes
17513else
17514  eval $cacheid=no
17515fi
17516rm -f core conftest.err conftest.$ac_objext \
17517    conftest$ac_exeext conftest.$ac_ext
17518fi
17519
17520
17521		CFLAGS="$xorg_testset_save_CFLAGS"
17522
17523		eval supported=\$$cacheid
17524		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17525$as_echo "$supported" >&6; }
17526		if test "$supported" = "yes" ; then
17527			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17528			found="yes"
17529		fi
17530	fi
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546xorg_testset_save_CFLAGS="$CFLAGS"
17547
17548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17549	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17550	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17551$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17552if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17553  $as_echo_n "(cached) " >&6
17554else
17555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17556/* end confdefs.h.  */
17557int i;
17558_ACEOF
17559if ac_fn_c_try_compile "$LINENO"; then :
17560  xorg_cv_cc_flag_unknown_warning_option=yes
17561else
17562  xorg_cv_cc_flag_unknown_warning_option=no
17563fi
17564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17565fi
17566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17567$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17568	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17569	CFLAGS="$xorg_testset_save_CFLAGS"
17570fi
17571
17572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17573	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17574		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17575	fi
17576	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17577	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17578$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17579if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17580  $as_echo_n "(cached) " >&6
17581else
17582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17583/* end confdefs.h.  */
17584int i;
17585_ACEOF
17586if ac_fn_c_try_compile "$LINENO"; then :
17587  xorg_cv_cc_flag_unused_command_line_argument=yes
17588else
17589  xorg_cv_cc_flag_unused_command_line_argument=no
17590fi
17591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17592fi
17593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17594$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17595	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17596	CFLAGS="$xorg_testset_save_CFLAGS"
17597fi
17598
17599found="no"
17600
17601	if test $found = "no" ; then
17602		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17603			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17604		fi
17605
17606		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17607			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17608		fi
17609
17610		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17611
17612		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17613$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17614		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17615		if eval \${$cacheid+:} false; then :
17616  $as_echo_n "(cached) " >&6
17617else
17618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619/* end confdefs.h.  */
17620int i;
17621int
17622main ()
17623{
17624
17625  ;
17626  return 0;
17627}
17628_ACEOF
17629if ac_fn_c_try_link "$LINENO"; then :
17630  eval $cacheid=yes
17631else
17632  eval $cacheid=no
17633fi
17634rm -f core conftest.err conftest.$ac_objext \
17635    conftest$ac_exeext conftest.$ac_ext
17636fi
17637
17638
17639		CFLAGS="$xorg_testset_save_CFLAGS"
17640
17641		eval supported=\$$cacheid
17642		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17643$as_echo "$supported" >&6; }
17644		if test "$supported" = "yes" ; then
17645			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17646			found="yes"
17647		fi
17648	fi
17649
17650
17651fi
17652
17653
17654
17655
17656
17657
17658
17659		CWARNFLAGS="$BASE_CFLAGS"
17660		if  test "x$GCC" = xyes ; then
17661		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17662		fi
17663
17664
17665
17666
17667
17668
17669
17670
17671# Check whether --enable-strict-compilation was given.
17672if test "${enable_strict_compilation+set}" = set; then :
17673  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17674else
17675  STRICT_COMPILE=no
17676fi
17677
17678
17679
17680
17681
17682
17683STRICT_CFLAGS=""
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697xorg_testset_save_CFLAGS="$CFLAGS"
17698
17699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17700	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17702$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17703if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17704  $as_echo_n "(cached) " >&6
17705else
17706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17707/* end confdefs.h.  */
17708int i;
17709_ACEOF
17710if ac_fn_c_try_compile "$LINENO"; then :
17711  xorg_cv_cc_flag_unknown_warning_option=yes
17712else
17713  xorg_cv_cc_flag_unknown_warning_option=no
17714fi
17715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17716fi
17717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17718$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17719	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17720	CFLAGS="$xorg_testset_save_CFLAGS"
17721fi
17722
17723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17724	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17725		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17726	fi
17727	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17729$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17730if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17731  $as_echo_n "(cached) " >&6
17732else
17733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17734/* end confdefs.h.  */
17735int i;
17736_ACEOF
17737if ac_fn_c_try_compile "$LINENO"; then :
17738  xorg_cv_cc_flag_unused_command_line_argument=yes
17739else
17740  xorg_cv_cc_flag_unused_command_line_argument=no
17741fi
17742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17743fi
17744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17745$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17746	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17747	CFLAGS="$xorg_testset_save_CFLAGS"
17748fi
17749
17750found="no"
17751
17752	if test $found = "no" ; then
17753		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17754			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17755		fi
17756
17757		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17758			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17759		fi
17760
17761		CFLAGS="$CFLAGS -pedantic"
17762
17763		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17764$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17765		cacheid=xorg_cv_cc_flag__pedantic
17766		if eval \${$cacheid+:} false; then :
17767  $as_echo_n "(cached) " >&6
17768else
17769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17770/* end confdefs.h.  */
17771int i;
17772int
17773main ()
17774{
17775
17776  ;
17777  return 0;
17778}
17779_ACEOF
17780if ac_fn_c_try_link "$LINENO"; then :
17781  eval $cacheid=yes
17782else
17783  eval $cacheid=no
17784fi
17785rm -f core conftest.err conftest.$ac_objext \
17786    conftest$ac_exeext conftest.$ac_ext
17787fi
17788
17789
17790		CFLAGS="$xorg_testset_save_CFLAGS"
17791
17792		eval supported=\$$cacheid
17793		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17794$as_echo "$supported" >&6; }
17795		if test "$supported" = "yes" ; then
17796			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17797			found="yes"
17798		fi
17799	fi
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815xorg_testset_save_CFLAGS="$CFLAGS"
17816
17817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17818	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17819	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17820$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17821if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17822  $as_echo_n "(cached) " >&6
17823else
17824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17825/* end confdefs.h.  */
17826int i;
17827_ACEOF
17828if ac_fn_c_try_compile "$LINENO"; then :
17829  xorg_cv_cc_flag_unknown_warning_option=yes
17830else
17831  xorg_cv_cc_flag_unknown_warning_option=no
17832fi
17833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834fi
17835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17836$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17837	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17838	CFLAGS="$xorg_testset_save_CFLAGS"
17839fi
17840
17841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17842	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17843		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17844	fi
17845	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17847$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17848if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17849  $as_echo_n "(cached) " >&6
17850else
17851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17852/* end confdefs.h.  */
17853int i;
17854_ACEOF
17855if ac_fn_c_try_compile "$LINENO"; then :
17856  xorg_cv_cc_flag_unused_command_line_argument=yes
17857else
17858  xorg_cv_cc_flag_unused_command_line_argument=no
17859fi
17860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17861fi
17862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17863$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17864	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17865	CFLAGS="$xorg_testset_save_CFLAGS"
17866fi
17867
17868found="no"
17869
17870	if test $found = "no" ; then
17871		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17872			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17873		fi
17874
17875		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17876			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17877		fi
17878
17879		CFLAGS="$CFLAGS -Werror"
17880
17881		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17882$as_echo_n "checking if $CC supports -Werror... " >&6; }
17883		cacheid=xorg_cv_cc_flag__Werror
17884		if eval \${$cacheid+:} false; then :
17885  $as_echo_n "(cached) " >&6
17886else
17887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17888/* end confdefs.h.  */
17889int i;
17890int
17891main ()
17892{
17893
17894  ;
17895  return 0;
17896}
17897_ACEOF
17898if ac_fn_c_try_link "$LINENO"; then :
17899  eval $cacheid=yes
17900else
17901  eval $cacheid=no
17902fi
17903rm -f core conftest.err conftest.$ac_objext \
17904    conftest$ac_exeext conftest.$ac_ext
17905fi
17906
17907
17908		CFLAGS="$xorg_testset_save_CFLAGS"
17909
17910		eval supported=\$$cacheid
17911		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17912$as_echo "$supported" >&6; }
17913		if test "$supported" = "yes" ; then
17914			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17915			found="yes"
17916		fi
17917	fi
17918
17919	if test $found = "no" ; then
17920		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17921			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17922		fi
17923
17924		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17925			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17926		fi
17927
17928		CFLAGS="$CFLAGS -errwarn"
17929
17930		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17931$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17932		cacheid=xorg_cv_cc_flag__errwarn
17933		if eval \${$cacheid+:} false; then :
17934  $as_echo_n "(cached) " >&6
17935else
17936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937/* end confdefs.h.  */
17938int i;
17939int
17940main ()
17941{
17942
17943  ;
17944  return 0;
17945}
17946_ACEOF
17947if ac_fn_c_try_link "$LINENO"; then :
17948  eval $cacheid=yes
17949else
17950  eval $cacheid=no
17951fi
17952rm -f core conftest.err conftest.$ac_objext \
17953    conftest$ac_exeext conftest.$ac_ext
17954fi
17955
17956
17957		CFLAGS="$xorg_testset_save_CFLAGS"
17958
17959		eval supported=\$$cacheid
17960		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17961$as_echo "$supported" >&6; }
17962		if test "$supported" = "yes" ; then
17963			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17964			found="yes"
17965		fi
17966	fi
17967
17968
17969
17970# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17971# activate it with -Werror, so we add it here explicitly.
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985xorg_testset_save_CFLAGS="$CFLAGS"
17986
17987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17988	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17989	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17990$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17991if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17992  $as_echo_n "(cached) " >&6
17993else
17994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995/* end confdefs.h.  */
17996int i;
17997_ACEOF
17998if ac_fn_c_try_compile "$LINENO"; then :
17999  xorg_cv_cc_flag_unknown_warning_option=yes
18000else
18001  xorg_cv_cc_flag_unknown_warning_option=no
18002fi
18003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18004fi
18005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18006$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18007	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18008	CFLAGS="$xorg_testset_save_CFLAGS"
18009fi
18010
18011if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18012	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18013		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18014	fi
18015	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18016	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18017$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18018if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18019  $as_echo_n "(cached) " >&6
18020else
18021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18022/* end confdefs.h.  */
18023int i;
18024_ACEOF
18025if ac_fn_c_try_compile "$LINENO"; then :
18026  xorg_cv_cc_flag_unused_command_line_argument=yes
18027else
18028  xorg_cv_cc_flag_unused_command_line_argument=no
18029fi
18030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18031fi
18032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18033$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18034	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18035	CFLAGS="$xorg_testset_save_CFLAGS"
18036fi
18037
18038found="no"
18039
18040	if test $found = "no" ; then
18041		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18042			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18043		fi
18044
18045		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18046			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18047		fi
18048
18049		CFLAGS="$CFLAGS -Werror=attributes"
18050
18051		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18052$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18053		cacheid=xorg_cv_cc_flag__Werror_attributes
18054		if eval \${$cacheid+:} false; then :
18055  $as_echo_n "(cached) " >&6
18056else
18057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058/* end confdefs.h.  */
18059int i;
18060int
18061main ()
18062{
18063
18064  ;
18065  return 0;
18066}
18067_ACEOF
18068if ac_fn_c_try_link "$LINENO"; then :
18069  eval $cacheid=yes
18070else
18071  eval $cacheid=no
18072fi
18073rm -f core conftest.err conftest.$ac_objext \
18074    conftest$ac_exeext conftest.$ac_ext
18075fi
18076
18077
18078		CFLAGS="$xorg_testset_save_CFLAGS"
18079
18080		eval supported=\$$cacheid
18081		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18082$as_echo "$supported" >&6; }
18083		if test "$supported" = "yes" ; then
18084			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18085			found="yes"
18086		fi
18087	fi
18088
18089
18090
18091if test "x$STRICT_COMPILE" = "xyes"; then
18092    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18093    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18094fi
18095
18096
18097
18098
18099
18100
18101cat >>confdefs.h <<_ACEOF
18102#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18103_ACEOF
18104
18105	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18106	if test "x$PVM" = "x"; then
18107		PVM="0"
18108	fi
18109
18110cat >>confdefs.h <<_ACEOF
18111#define PACKAGE_VERSION_MINOR $PVM
18112_ACEOF
18113
18114	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18115	if test "x$PVP" = "x"; then
18116		PVP="0"
18117	fi
18118
18119cat >>confdefs.h <<_ACEOF
18120#define PACKAGE_VERSION_PATCHLEVEL $PVP
18121_ACEOF
18122
18123
18124
18125CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18126mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18127|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18128echo 'git directory not found: installing possibly empty changelog.' >&2)"
18129
18130
18131
18132
18133macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18134INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18135mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18136|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18137echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18138
18139
18140
18141
18142
18143
18144if test x$APP_MAN_SUFFIX = x    ; then
18145    APP_MAN_SUFFIX=1
18146fi
18147if test x$APP_MAN_DIR = x    ; then
18148    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18149fi
18150
18151if test x$LIB_MAN_SUFFIX = x    ; then
18152    LIB_MAN_SUFFIX=3
18153fi
18154if test x$LIB_MAN_DIR = x    ; then
18155    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18156fi
18157
18158if test x$FILE_MAN_SUFFIX = x    ; then
18159    case $host_os in
18160	# Solaris 2.0 - 11 use SysV man page sections
18161	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
18162	*)				FILE_MAN_SUFFIX=5  ;;
18163    esac
18164fi
18165if test x$FILE_MAN_DIR = x    ; then
18166    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18167fi
18168
18169if test x$MISC_MAN_SUFFIX = x    ; then
18170    case $host_os in
18171	# Solaris 2.0 - 11 use SysV man page sections
18172	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
18173	*)				MISC_MAN_SUFFIX=7  ;;
18174    esac
18175fi
18176if test x$MISC_MAN_DIR = x    ; then
18177    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18178fi
18179
18180if test x$DRIVER_MAN_SUFFIX = x    ; then
18181    case $host_os in
18182	# Solaris 2.0 - 11 use SysV man page sections
18183	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
18184	*)				DRIVER_MAN_SUFFIX=4  ;;
18185    esac
18186fi
18187if test x$DRIVER_MAN_DIR = x    ; then
18188    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18189fi
18190
18191if test x$ADMIN_MAN_SUFFIX = x    ; then
18192    case $host_os in
18193	# Solaris 2.0 - 11 use SysV man page sections
18194	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
18195	*)				ADMIN_MAN_SUFFIX=8  ;;
18196    esac
18197fi
18198if test x$ADMIN_MAN_DIR = x    ; then
18199    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18200fi
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216XORG_MAN_PAGE="X Version 11"
18217
18218MAN_SUBSTS="\
18219	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18220	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18221	-e 's|__xservername__|Xorg|g' \
18222	-e 's|__xconfigfile__|xorg.conf|g' \
18223	-e 's|__projectroot__|\$(prefix)|g' \
18224	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18225	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18226	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18227	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18228	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18229	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18230	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18231
18232
18233
18234# Check whether --enable-silent-rules was given.
18235if test "${enable_silent_rules+set}" = set; then :
18236  enableval=$enable_silent_rules;
18237fi
18238
18239case $enable_silent_rules in # (((
18240  yes) AM_DEFAULT_VERBOSITY=0;;
18241   no) AM_DEFAULT_VERBOSITY=1;;
18242    *) AM_DEFAULT_VERBOSITY=0;;
18243esac
18244am_make=${MAKE-make}
18245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18246$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18247if ${am_cv_make_support_nested_variables+:} false; then :
18248  $as_echo_n "(cached) " >&6
18249else
18250  if $as_echo 'TRUE=$(BAR$(V))
18251BAR0=false
18252BAR1=true
18253V=1
18254am__doit:
18255	@$(TRUE)
18256.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18257  am_cv_make_support_nested_variables=yes
18258else
18259  am_cv_make_support_nested_variables=no
18260fi
18261fi
18262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18263$as_echo "$am_cv_make_support_nested_variables" >&6; }
18264if test $am_cv_make_support_nested_variables = yes; then
18265    AM_V='$(V)'
18266  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18267else
18268  AM_V=$AM_DEFAULT_VERBOSITY
18269  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18270fi
18271AM_BACKSLASH='\'
18272
18273
18274
18275# Set library version for Xft.h from package version set in AC_INIT
18276# copied from PACKAGE_VERSION_* settings in XORG_VERSION
18277ac_config_headers="$ac_config_headers include/X11/Xft/Xft.h"
18278
18279
18280cat >>confdefs.h <<_ACEOF
18281#define XFT_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18282_ACEOF
18283
18284
18285cat >>confdefs.h <<_ACEOF
18286#define XFT_MINOR `echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18287_ACEOF
18288
18289
18290cat >>confdefs.h <<_ACEOF
18291#define XFT_REVISION `echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18292_ACEOF
18293
18294
18295XFT_LT_VERSION=`echo $PACKAGE_VERSION | tr '.' ':'`
18296
18297
18298#
18299# Check for Xrender
18300#
18301
18302pkg_failed=no
18303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
18304$as_echo_n "checking for XRENDER... " >&6; }
18305
18306if test -n "$XRENDER_CFLAGS"; then
18307    pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
18308 elif test -n "$PKG_CONFIG"; then
18309    if test -n "$PKG_CONFIG" && \
18310    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5
18311  ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5
18312  ac_status=$?
18313  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18314  test $ac_status = 0; }; then
18315  pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 x11" 2>/dev/null`
18316		      test "x$?" != "x0" && pkg_failed=yes
18317else
18318  pkg_failed=yes
18319fi
18320 else
18321    pkg_failed=untried
18322fi
18323if test -n "$XRENDER_LIBS"; then
18324    pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
18325 elif test -n "$PKG_CONFIG"; then
18326    if test -n "$PKG_CONFIG" && \
18327    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5
18328  ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5
18329  ac_status=$?
18330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18331  test $ac_status = 0; }; then
18332  pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 x11" 2>/dev/null`
18333		      test "x$?" != "x0" && pkg_failed=yes
18334else
18335  pkg_failed=yes
18336fi
18337 else
18338    pkg_failed=untried
18339fi
18340
18341
18342
18343if test $pkg_failed = yes; then
18344   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18345$as_echo "no" >&6; }
18346
18347if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18348        _pkg_short_errors_supported=yes
18349else
18350        _pkg_short_errors_supported=no
18351fi
18352        if test $_pkg_short_errors_supported = yes; then
18353	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender >= 0.8.2 x11" 2>&1`
18354        else
18355	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender >= 0.8.2 x11" 2>&1`
18356        fi
18357	# Put the nasty error message in config.log where it belongs
18358	echo "$XRENDER_PKG_ERRORS" >&5
18359
18360	as_fn_error $? "Package requirements (xrender >= 0.8.2 x11) were not met:
18361
18362$XRENDER_PKG_ERRORS
18363
18364Consider adjusting the PKG_CONFIG_PATH environment variable if you
18365installed software in a non-standard prefix.
18366
18367Alternatively, you may set the environment variables XRENDER_CFLAGS
18368and XRENDER_LIBS to avoid the need to call pkg-config.
18369See the pkg-config man page for more details." "$LINENO" 5
18370elif test $pkg_failed = untried; then
18371     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18372$as_echo "no" >&6; }
18373	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18375as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18376is in your PATH or set the PKG_CONFIG environment variable to the full
18377path to pkg-config.
18378
18379Alternatively, you may set the environment variables XRENDER_CFLAGS
18380and XRENDER_LIBS to avoid the need to call pkg-config.
18381See the pkg-config man page for more details.
18382
18383To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18384See \`config.log' for more details" "$LINENO" 5; }
18385else
18386	XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
18387	XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
18388        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18389$as_echo "yes" >&6; }
18390
18391fi
18392
18393# Check freetype configuration
18394
18395pkg_failed=no
18396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
18397$as_echo_n "checking for FREETYPE... " >&6; }
18398
18399if test -n "$FREETYPE_CFLAGS"; then
18400    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
18401 elif test -n "$PKG_CONFIG"; then
18402    if test -n "$PKG_CONFIG" && \
18403    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5
18404  ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5
18405  ac_status=$?
18406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18407  test $ac_status = 0; }; then
18408  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.6" 2>/dev/null`
18409		      test "x$?" != "x0" && pkg_failed=yes
18410else
18411  pkg_failed=yes
18412fi
18413 else
18414    pkg_failed=untried
18415fi
18416if test -n "$FREETYPE_LIBS"; then
18417    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
18418 elif test -n "$PKG_CONFIG"; then
18419    if test -n "$PKG_CONFIG" && \
18420    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5
18421  ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5
18422  ac_status=$?
18423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18424  test $ac_status = 0; }; then
18425  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.6" 2>/dev/null`
18426		      test "x$?" != "x0" && pkg_failed=yes
18427else
18428  pkg_failed=yes
18429fi
18430 else
18431    pkg_failed=untried
18432fi
18433
18434
18435
18436if test $pkg_failed = yes; then
18437   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18438$as_echo "no" >&6; }
18439
18440if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18441        _pkg_short_errors_supported=yes
18442else
18443        _pkg_short_errors_supported=no
18444fi
18445        if test $_pkg_short_errors_supported = yes; then
18446	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 2.1.6" 2>&1`
18447        else
18448	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 2.1.6" 2>&1`
18449        fi
18450	# Put the nasty error message in config.log where it belongs
18451	echo "$FREETYPE_PKG_ERRORS" >&5
18452
18453	as_fn_error $? "Package requirements (freetype2 >= 2.1.6) were not met:
18454
18455$FREETYPE_PKG_ERRORS
18456
18457Consider adjusting the PKG_CONFIG_PATH environment variable if you
18458installed software in a non-standard prefix.
18459
18460Alternatively, you may set the environment variables FREETYPE_CFLAGS
18461and FREETYPE_LIBS to avoid the need to call pkg-config.
18462See the pkg-config man page for more details." "$LINENO" 5
18463elif test $pkg_failed = untried; then
18464     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18465$as_echo "no" >&6; }
18466	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18468as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18469is in your PATH or set the PKG_CONFIG environment variable to the full
18470path to pkg-config.
18471
18472Alternatively, you may set the environment variables FREETYPE_CFLAGS
18473and FREETYPE_LIBS to avoid the need to call pkg-config.
18474See the pkg-config man page for more details.
18475
18476To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18477See \`config.log' for more details" "$LINENO" 5; }
18478else
18479	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
18480	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
18481        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18482$as_echo "yes" >&6; }
18483
18484fi
18485
18486# Check fontconfig configuration
18487
18488pkg_failed=no
18489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
18490$as_echo_n "checking for FONTCONFIG... " >&6; }
18491
18492if test -n "$FONTCONFIG_CFLAGS"; then
18493    pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
18494 elif test -n "$PKG_CONFIG"; then
18495    if test -n "$PKG_CONFIG" && \
18496    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5
18497  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5
18498  ac_status=$?
18499  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18500  test $ac_status = 0; }; then
18501  pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.5.92" 2>/dev/null`
18502		      test "x$?" != "x0" && pkg_failed=yes
18503else
18504  pkg_failed=yes
18505fi
18506 else
18507    pkg_failed=untried
18508fi
18509if test -n "$FONTCONFIG_LIBS"; then
18510    pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
18511 elif test -n "$PKG_CONFIG"; then
18512    if test -n "$PKG_CONFIG" && \
18513    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5
18514  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5
18515  ac_status=$?
18516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18517  test $ac_status = 0; }; then
18518  pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.5.92" 2>/dev/null`
18519		      test "x$?" != "x0" && pkg_failed=yes
18520else
18521  pkg_failed=yes
18522fi
18523 else
18524    pkg_failed=untried
18525fi
18526
18527
18528
18529if test $pkg_failed = yes; then
18530   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18531$as_echo "no" >&6; }
18532
18533if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18534        _pkg_short_errors_supported=yes
18535else
18536        _pkg_short_errors_supported=no
18537fi
18538        if test $_pkg_short_errors_supported = yes; then
18539	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.5.92" 2>&1`
18540        else
18541	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.5.92" 2>&1`
18542        fi
18543	# Put the nasty error message in config.log where it belongs
18544	echo "$FONTCONFIG_PKG_ERRORS" >&5
18545
18546	as_fn_error $? "Package requirements (fontconfig >= 2.5.92) were not met:
18547
18548$FONTCONFIG_PKG_ERRORS
18549
18550Consider adjusting the PKG_CONFIG_PATH environment variable if you
18551installed software in a non-standard prefix.
18552
18553Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
18554and FONTCONFIG_LIBS to avoid the need to call pkg-config.
18555See the pkg-config man page for more details." "$LINENO" 5
18556elif test $pkg_failed = untried; then
18557     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18558$as_echo "no" >&6; }
18559	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18561as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18562is in your PATH or set the PKG_CONFIG environment variable to the full
18563path to pkg-config.
18564
18565Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
18566and FONTCONFIG_LIBS to avoid the need to call pkg-config.
18567See the pkg-config man page for more details.
18568
18569To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18570See \`config.log' for more details" "$LINENO" 5; }
18571else
18572	FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
18573	FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
18574        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18575$as_echo "yes" >&6; }
18576
18577fi
18578
18579
18580
18581
18582
18583
18584
18585
18586if test "$VERSION" = "" ; then
18587       VERSION=$PACKAGE_VERSION;
18588fi
18589
18590ac_config_files="$ac_config_files Makefile xft.pc src/Makefile man/Makefile"
18591
18592cat >confcache <<\_ACEOF
18593# This file is a shell script that caches the results of configure
18594# tests run on this system so they can be shared between configure
18595# scripts and configure runs, see configure's option --config-cache.
18596# It is not useful on other systems.  If it contains results you don't
18597# want to keep, you may remove or edit it.
18598#
18599# config.status only pays attention to the cache file if you give it
18600# the --recheck option to rerun configure.
18601#
18602# `ac_cv_env_foo' variables (set or unset) will be overridden when
18603# loading this file, other *unset* `ac_cv_foo' will be assigned the
18604# following values.
18605
18606_ACEOF
18607
18608# The following way of writing the cache mishandles newlines in values,
18609# but we know of no workaround that is simple, portable, and efficient.
18610# So, we kill variables containing newlines.
18611# Ultrix sh set writes to stderr and can't be redirected directly,
18612# and sets the high bit in the cache file unless we assign to the vars.
18613(
18614  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18615    eval ac_val=\$$ac_var
18616    case $ac_val in #(
18617    *${as_nl}*)
18618      case $ac_var in #(
18619      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18620$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18621      esac
18622      case $ac_var in #(
18623      _ | IFS | as_nl) ;; #(
18624      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18625      *) { eval $ac_var=; unset $ac_var;} ;;
18626      esac ;;
18627    esac
18628  done
18629
18630  (set) 2>&1 |
18631    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18632    *${as_nl}ac_space=\ *)
18633      # `set' does not quote correctly, so add quotes: double-quote
18634      # substitution turns \\\\ into \\, and sed turns \\ into \.
18635      sed -n \
18636	"s/'/'\\\\''/g;
18637	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18638      ;; #(
18639    *)
18640      # `set' quotes correctly as required by POSIX, so do not add quotes.
18641      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18642      ;;
18643    esac |
18644    sort
18645) |
18646  sed '
18647     /^ac_cv_env_/b end
18648     t clear
18649     :clear
18650     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18651     t end
18652     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18653     :end' >>confcache
18654if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18655  if test -w "$cache_file"; then
18656    if test "x$cache_file" != "x/dev/null"; then
18657      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18658$as_echo "$as_me: updating cache $cache_file" >&6;}
18659      if test ! -f "$cache_file" || test -h "$cache_file"; then
18660	cat confcache >"$cache_file"
18661      else
18662        case $cache_file in #(
18663        */* | ?:*)
18664	  mv -f confcache "$cache_file"$$ &&
18665	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18666        *)
18667	  mv -f confcache "$cache_file" ;;
18668	esac
18669      fi
18670    fi
18671  else
18672    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18673$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18674  fi
18675fi
18676rm -f confcache
18677
18678test "x$prefix" = xNONE && prefix=$ac_default_prefix
18679# Let make expand exec_prefix.
18680test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18681
18682DEFS=-DHAVE_CONFIG_H
18683
18684ac_libobjs=
18685ac_ltlibobjs=
18686U=
18687for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18688  # 1. Remove the extension, and $U if already installed.
18689  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18690  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18691  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18692  #    will be set to the directory where LIBOBJS objects are built.
18693  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18694  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18695done
18696LIBOBJS=$ac_libobjs
18697
18698LTLIBOBJS=$ac_ltlibobjs
18699
18700
18701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18702$as_echo_n "checking that generated files are newer than configure... " >&6; }
18703   if test -n "$am_sleep_pid"; then
18704     # Hide warnings about reused PIDs.
18705     wait $am_sleep_pid 2>/dev/null
18706   fi
18707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18708$as_echo "done" >&6; }
18709 if test -n "$EXEEXT"; then
18710  am__EXEEXT_TRUE=
18711  am__EXEEXT_FALSE='#'
18712else
18713  am__EXEEXT_TRUE='#'
18714  am__EXEEXT_FALSE=
18715fi
18716
18717if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18718  as_fn_error $? "conditional \"AMDEP\" was never defined.
18719Usually this means the macro was only invoked conditionally." "$LINENO" 5
18720fi
18721if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18722  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18723Usually this means the macro was only invoked conditionally." "$LINENO" 5
18724fi
18725
18726: "${CONFIG_STATUS=./config.status}"
18727ac_write_fail=0
18728ac_clean_files_save=$ac_clean_files
18729ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18730{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18731$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18732as_write_fail=0
18733cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18734#! $SHELL
18735# Generated by $as_me.
18736# Run this file to recreate the current configuration.
18737# Compiler output produced by configure, useful for debugging
18738# configure, is in config.log if it exists.
18739
18740debug=false
18741ac_cs_recheck=false
18742ac_cs_silent=false
18743
18744SHELL=\${CONFIG_SHELL-$SHELL}
18745export SHELL
18746_ASEOF
18747cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18748## -------------------- ##
18749## M4sh Initialization. ##
18750## -------------------- ##
18751
18752# Be more Bourne compatible
18753DUALCASE=1; export DUALCASE # for MKS sh
18754if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18755  emulate sh
18756  NULLCMD=:
18757  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18758  # is contrary to our usage.  Disable this feature.
18759  alias -g '${1+"$@"}'='"$@"'
18760  setopt NO_GLOB_SUBST
18761else
18762  case `(set -o) 2>/dev/null` in #(
18763  *posix*) :
18764    set -o posix ;; #(
18765  *) :
18766     ;;
18767esac
18768fi
18769
18770
18771as_nl='
18772'
18773export as_nl
18774# Printing a long string crashes Solaris 7 /usr/bin/printf.
18775as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18776as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18777as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18778# Prefer a ksh shell builtin over an external printf program on Solaris,
18779# but without wasting forks for bash or zsh.
18780if test -z "$BASH_VERSION$ZSH_VERSION" \
18781    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18782  as_echo='print -r --'
18783  as_echo_n='print -rn --'
18784elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18785  as_echo='printf %s\n'
18786  as_echo_n='printf %s'
18787else
18788  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18789    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18790    as_echo_n='/usr/ucb/echo -n'
18791  else
18792    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18793    as_echo_n_body='eval
18794      arg=$1;
18795      case $arg in #(
18796      *"$as_nl"*)
18797	expr "X$arg" : "X\\(.*\\)$as_nl";
18798	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18799      esac;
18800      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18801    '
18802    export as_echo_n_body
18803    as_echo_n='sh -c $as_echo_n_body as_echo'
18804  fi
18805  export as_echo_body
18806  as_echo='sh -c $as_echo_body as_echo'
18807fi
18808
18809# The user is always right.
18810if test "${PATH_SEPARATOR+set}" != set; then
18811  PATH_SEPARATOR=:
18812  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18813    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18814      PATH_SEPARATOR=';'
18815  }
18816fi
18817
18818
18819# IFS
18820# We need space, tab and new line, in precisely that order.  Quoting is
18821# there to prevent editors from complaining about space-tab.
18822# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18823# splitting by setting IFS to empty value.)
18824IFS=" ""	$as_nl"
18825
18826# Find who we are.  Look in the path if we contain no directory separator.
18827as_myself=
18828case $0 in #((
18829  *[\\/]* ) as_myself=$0 ;;
18830  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18831for as_dir in $PATH
18832do
18833  IFS=$as_save_IFS
18834  test -z "$as_dir" && as_dir=.
18835    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18836  done
18837IFS=$as_save_IFS
18838
18839     ;;
18840esac
18841# We did not find ourselves, most probably we were run as `sh COMMAND'
18842# in which case we are not to be found in the path.
18843if test "x$as_myself" = x; then
18844  as_myself=$0
18845fi
18846if test ! -f "$as_myself"; then
18847  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18848  exit 1
18849fi
18850
18851# Unset variables that we do not need and which cause bugs (e.g. in
18852# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18853# suppresses any "Segmentation fault" message there.  '((' could
18854# trigger a bug in pdksh 5.2.14.
18855for as_var in BASH_ENV ENV MAIL MAILPATH
18856do eval test x\${$as_var+set} = xset \
18857  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18858done
18859PS1='$ '
18860PS2='> '
18861PS4='+ '
18862
18863# NLS nuisances.
18864LC_ALL=C
18865export LC_ALL
18866LANGUAGE=C
18867export LANGUAGE
18868
18869# CDPATH.
18870(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18871
18872
18873# as_fn_error STATUS ERROR [LINENO LOG_FD]
18874# ----------------------------------------
18875# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18876# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18877# script with STATUS, using 1 if that was 0.
18878as_fn_error ()
18879{
18880  as_status=$1; test $as_status -eq 0 && as_status=1
18881  if test "$4"; then
18882    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18883    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18884  fi
18885  $as_echo "$as_me: error: $2" >&2
18886  as_fn_exit $as_status
18887} # as_fn_error
18888
18889
18890# as_fn_set_status STATUS
18891# -----------------------
18892# Set $? to STATUS, without forking.
18893as_fn_set_status ()
18894{
18895  return $1
18896} # as_fn_set_status
18897
18898# as_fn_exit STATUS
18899# -----------------
18900# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18901as_fn_exit ()
18902{
18903  set +e
18904  as_fn_set_status $1
18905  exit $1
18906} # as_fn_exit
18907
18908# as_fn_unset VAR
18909# ---------------
18910# Portably unset VAR.
18911as_fn_unset ()
18912{
18913  { eval $1=; unset $1;}
18914}
18915as_unset=as_fn_unset
18916# as_fn_append VAR VALUE
18917# ----------------------
18918# Append the text in VALUE to the end of the definition contained in VAR. Take
18919# advantage of any shell optimizations that allow amortized linear growth over
18920# repeated appends, instead of the typical quadratic growth present in naive
18921# implementations.
18922if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18923  eval 'as_fn_append ()
18924  {
18925    eval $1+=\$2
18926  }'
18927else
18928  as_fn_append ()
18929  {
18930    eval $1=\$$1\$2
18931  }
18932fi # as_fn_append
18933
18934# as_fn_arith ARG...
18935# ------------------
18936# Perform arithmetic evaluation on the ARGs, and store the result in the
18937# global $as_val. Take advantage of shells that can avoid forks. The arguments
18938# must be portable across $(()) and expr.
18939if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18940  eval 'as_fn_arith ()
18941  {
18942    as_val=$(( $* ))
18943  }'
18944else
18945  as_fn_arith ()
18946  {
18947    as_val=`expr "$@" || test $? -eq 1`
18948  }
18949fi # as_fn_arith
18950
18951
18952if expr a : '\(a\)' >/dev/null 2>&1 &&
18953   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18954  as_expr=expr
18955else
18956  as_expr=false
18957fi
18958
18959if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18960  as_basename=basename
18961else
18962  as_basename=false
18963fi
18964
18965if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18966  as_dirname=dirname
18967else
18968  as_dirname=false
18969fi
18970
18971as_me=`$as_basename -- "$0" ||
18972$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18973	 X"$0" : 'X\(//\)$' \| \
18974	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18975$as_echo X/"$0" |
18976    sed '/^.*\/\([^/][^/]*\)\/*$/{
18977	    s//\1/
18978	    q
18979	  }
18980	  /^X\/\(\/\/\)$/{
18981	    s//\1/
18982	    q
18983	  }
18984	  /^X\/\(\/\).*/{
18985	    s//\1/
18986	    q
18987	  }
18988	  s/.*/./; q'`
18989
18990# Avoid depending upon Character Ranges.
18991as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18992as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18993as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18994as_cr_digits='0123456789'
18995as_cr_alnum=$as_cr_Letters$as_cr_digits
18996
18997ECHO_C= ECHO_N= ECHO_T=
18998case `echo -n x` in #(((((
18999-n*)
19000  case `echo 'xy\c'` in
19001  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19002  xy)  ECHO_C='\c';;
19003  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19004       ECHO_T='	';;
19005  esac;;
19006*)
19007  ECHO_N='-n';;
19008esac
19009
19010rm -f conf$$ conf$$.exe conf$$.file
19011if test -d conf$$.dir; then
19012  rm -f conf$$.dir/conf$$.file
19013else
19014  rm -f conf$$.dir
19015  mkdir conf$$.dir 2>/dev/null
19016fi
19017if (echo >conf$$.file) 2>/dev/null; then
19018  if ln -s conf$$.file conf$$ 2>/dev/null; then
19019    as_ln_s='ln -s'
19020    # ... but there are two gotchas:
19021    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19022    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19023    # In both cases, we have to default to `cp -pR'.
19024    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19025      as_ln_s='cp -pR'
19026  elif ln conf$$.file conf$$ 2>/dev/null; then
19027    as_ln_s=ln
19028  else
19029    as_ln_s='cp -pR'
19030  fi
19031else
19032  as_ln_s='cp -pR'
19033fi
19034rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19035rmdir conf$$.dir 2>/dev/null
19036
19037
19038# as_fn_mkdir_p
19039# -------------
19040# Create "$as_dir" as a directory, including parents if necessary.
19041as_fn_mkdir_p ()
19042{
19043
19044  case $as_dir in #(
19045  -*) as_dir=./$as_dir;;
19046  esac
19047  test -d "$as_dir" || eval $as_mkdir_p || {
19048    as_dirs=
19049    while :; do
19050      case $as_dir in #(
19051      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19052      *) as_qdir=$as_dir;;
19053      esac
19054      as_dirs="'$as_qdir' $as_dirs"
19055      as_dir=`$as_dirname -- "$as_dir" ||
19056$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19057	 X"$as_dir" : 'X\(//\)[^/]' \| \
19058	 X"$as_dir" : 'X\(//\)$' \| \
19059	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19060$as_echo X"$as_dir" |
19061    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19062	    s//\1/
19063	    q
19064	  }
19065	  /^X\(\/\/\)[^/].*/{
19066	    s//\1/
19067	    q
19068	  }
19069	  /^X\(\/\/\)$/{
19070	    s//\1/
19071	    q
19072	  }
19073	  /^X\(\/\).*/{
19074	    s//\1/
19075	    q
19076	  }
19077	  s/.*/./; q'`
19078      test -d "$as_dir" && break
19079    done
19080    test -z "$as_dirs" || eval "mkdir $as_dirs"
19081  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19082
19083
19084} # as_fn_mkdir_p
19085if mkdir -p . 2>/dev/null; then
19086  as_mkdir_p='mkdir -p "$as_dir"'
19087else
19088  test -d ./-p && rmdir ./-p
19089  as_mkdir_p=false
19090fi
19091
19092
19093# as_fn_executable_p FILE
19094# -----------------------
19095# Test if FILE is an executable regular file.
19096as_fn_executable_p ()
19097{
19098  test -f "$1" && test -x "$1"
19099} # as_fn_executable_p
19100as_test_x='test -x'
19101as_executable_p=as_fn_executable_p
19102
19103# Sed expression to map a string onto a valid CPP name.
19104as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19105
19106# Sed expression to map a string onto a valid variable name.
19107as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19108
19109
19110exec 6>&1
19111## ----------------------------------- ##
19112## Main body of $CONFIG_STATUS script. ##
19113## ----------------------------------- ##
19114_ASEOF
19115test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19116
19117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19118# Save the log message, to keep $0 and so on meaningful, and to
19119# report actual input values of CONFIG_FILES etc. instead of their
19120# values after options handling.
19121ac_log="
19122This file was extended by libXft $as_me 2.3.3, which was
19123generated by GNU Autoconf 2.69.  Invocation command line was
19124
19125  CONFIG_FILES    = $CONFIG_FILES
19126  CONFIG_HEADERS  = $CONFIG_HEADERS
19127  CONFIG_LINKS    = $CONFIG_LINKS
19128  CONFIG_COMMANDS = $CONFIG_COMMANDS
19129  $ $0 $@
19130
19131on `(hostname || uname -n) 2>/dev/null | sed 1q`
19132"
19133
19134_ACEOF
19135
19136case $ac_config_files in *"
19137"*) set x $ac_config_files; shift; ac_config_files=$*;;
19138esac
19139
19140case $ac_config_headers in *"
19141"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19142esac
19143
19144
19145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19146# Files that config.status was made for.
19147config_files="$ac_config_files"
19148config_headers="$ac_config_headers"
19149config_commands="$ac_config_commands"
19150
19151_ACEOF
19152
19153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19154ac_cs_usage="\
19155\`$as_me' instantiates files and other configuration actions
19156from templates according to the current configuration.  Unless the files
19157and actions are specified as TAGs, all are instantiated by default.
19158
19159Usage: $0 [OPTION]... [TAG]...
19160
19161  -h, --help       print this help, then exit
19162  -V, --version    print version number and configuration settings, then exit
19163      --config     print configuration, then exit
19164  -q, --quiet, --silent
19165                   do not print progress messages
19166  -d, --debug      don't remove temporary files
19167      --recheck    update $as_me by reconfiguring in the same conditions
19168      --file=FILE[:TEMPLATE]
19169                   instantiate the configuration file FILE
19170      --header=FILE[:TEMPLATE]
19171                   instantiate the configuration header FILE
19172
19173Configuration files:
19174$config_files
19175
19176Configuration headers:
19177$config_headers
19178
19179Configuration commands:
19180$config_commands
19181
19182Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>."
19183
19184_ACEOF
19185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19186ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19187ac_cs_version="\\
19188libXft config.status 2.3.3
19189configured by $0, generated by GNU Autoconf 2.69,
19190  with options \\"\$ac_cs_config\\"
19191
19192Copyright (C) 2012 Free Software Foundation, Inc.
19193This config.status script is free software; the Free Software Foundation
19194gives unlimited permission to copy, distribute and modify it."
19195
19196ac_pwd='$ac_pwd'
19197srcdir='$srcdir'
19198INSTALL='$INSTALL'
19199MKDIR_P='$MKDIR_P'
19200AWK='$AWK'
19201test -n "\$AWK" || AWK=awk
19202_ACEOF
19203
19204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19205# The default lists apply if the user does not specify any file.
19206ac_need_defaults=:
19207while test $# != 0
19208do
19209  case $1 in
19210  --*=?*)
19211    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19212    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19213    ac_shift=:
19214    ;;
19215  --*=)
19216    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19217    ac_optarg=
19218    ac_shift=:
19219    ;;
19220  *)
19221    ac_option=$1
19222    ac_optarg=$2
19223    ac_shift=shift
19224    ;;
19225  esac
19226
19227  case $ac_option in
19228  # Handling of the options.
19229  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19230    ac_cs_recheck=: ;;
19231  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19232    $as_echo "$ac_cs_version"; exit ;;
19233  --config | --confi | --conf | --con | --co | --c )
19234    $as_echo "$ac_cs_config"; exit ;;
19235  --debug | --debu | --deb | --de | --d | -d )
19236    debug=: ;;
19237  --file | --fil | --fi | --f )
19238    $ac_shift
19239    case $ac_optarg in
19240    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19241    '') as_fn_error $? "missing file argument" ;;
19242    esac
19243    as_fn_append CONFIG_FILES " '$ac_optarg'"
19244    ac_need_defaults=false;;
19245  --header | --heade | --head | --hea )
19246    $ac_shift
19247    case $ac_optarg in
19248    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19249    esac
19250    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19251    ac_need_defaults=false;;
19252  --he | --h)
19253    # Conflict between --help and --header
19254    as_fn_error $? "ambiguous option: \`$1'
19255Try \`$0 --help' for more information.";;
19256  --help | --hel | -h )
19257    $as_echo "$ac_cs_usage"; exit ;;
19258  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19259  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19260    ac_cs_silent=: ;;
19261
19262  # This is an error.
19263  -*) as_fn_error $? "unrecognized option: \`$1'
19264Try \`$0 --help' for more information." ;;
19265
19266  *) as_fn_append ac_config_targets " $1"
19267     ac_need_defaults=false ;;
19268
19269  esac
19270  shift
19271done
19272
19273ac_configure_extra_args=
19274
19275if $ac_cs_silent; then
19276  exec 6>/dev/null
19277  ac_configure_extra_args="$ac_configure_extra_args --silent"
19278fi
19279
19280_ACEOF
19281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19282if \$ac_cs_recheck; then
19283  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19284  shift
19285  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19286  CONFIG_SHELL='$SHELL'
19287  export CONFIG_SHELL
19288  exec "\$@"
19289fi
19290
19291_ACEOF
19292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19293exec 5>>config.log
19294{
19295  echo
19296  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19297## Running $as_me. ##
19298_ASBOX
19299  $as_echo "$ac_log"
19300} >&5
19301
19302_ACEOF
19303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19304#
19305# INIT-COMMANDS
19306#
19307AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19308
19309
19310# The HP-UX ksh and POSIX shell print the target directory to stdout
19311# if CDPATH is set.
19312(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19313
19314sed_quote_subst='$sed_quote_subst'
19315double_quote_subst='$double_quote_subst'
19316delay_variable_subst='$delay_variable_subst'
19317macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19318macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19319enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19320enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19321pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19322enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19323shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19324SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19325ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19326PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19327host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19328host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19329host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19330build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19331build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19332build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19333SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19334Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19335GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19336EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19337FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19338LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19339NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19340LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19341max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19342ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19343exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19344lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19345lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19346lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19347lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19348lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19349reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19350reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19351OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19352deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19353file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19354file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19355want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19356DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19357sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19358AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19359AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19360archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19361STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19362RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19363old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19364old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19365old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19366lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19367CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19368CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19369compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19370GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19371lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19372lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19373lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19374lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19375lt_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"`'
19376lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19377nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19378lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19379lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19380objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19381MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19382lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19383lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19384lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19385lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19386lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19387need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19388MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19389DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19390NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19391LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19392OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19393OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19394libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19395shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19396extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19397archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19398enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19399export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19400whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19401compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19402old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19403old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19404archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19405archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19406module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19407module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19408with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19409allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19410no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19411hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19412hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19413hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19414hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19415hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19416hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19417hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19418inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19419link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19420always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19421export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19422exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19423include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19424prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19425postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19426file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19427variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19428need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19429need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19430version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19431runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19432shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19433shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19434libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19435library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19436soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19437install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19438postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19439postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19440finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19441finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19442hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19443sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19444configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19445configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19446hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19447enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19448enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19449enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19450old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19451striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19452
19453LTCC='$LTCC'
19454LTCFLAGS='$LTCFLAGS'
19455compiler='$compiler_DEFAULT'
19456
19457# A function that is used when there is no print builtin or printf.
19458func_fallback_echo ()
19459{
19460  eval 'cat <<_LTECHO_EOF
19461\$1
19462_LTECHO_EOF'
19463}
19464
19465# Quote evaled strings.
19466for var in SHELL \
19467ECHO \
19468PATH_SEPARATOR \
19469SED \
19470GREP \
19471EGREP \
19472FGREP \
19473LD \
19474NM \
19475LN_S \
19476lt_SP2NL \
19477lt_NL2SP \
19478reload_flag \
19479OBJDUMP \
19480deplibs_check_method \
19481file_magic_cmd \
19482file_magic_glob \
19483want_nocaseglob \
19484DLLTOOL \
19485sharedlib_from_linklib_cmd \
19486AR \
19487AR_FLAGS \
19488archiver_list_spec \
19489STRIP \
19490RANLIB \
19491CC \
19492CFLAGS \
19493compiler \
19494lt_cv_sys_global_symbol_pipe \
19495lt_cv_sys_global_symbol_to_cdecl \
19496lt_cv_sys_global_symbol_to_import \
19497lt_cv_sys_global_symbol_to_c_name_address \
19498lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19499lt_cv_nm_interface \
19500nm_file_list_spec \
19501lt_cv_truncate_bin \
19502lt_prog_compiler_no_builtin_flag \
19503lt_prog_compiler_pic \
19504lt_prog_compiler_wl \
19505lt_prog_compiler_static \
19506lt_cv_prog_compiler_c_o \
19507need_locks \
19508MANIFEST_TOOL \
19509DSYMUTIL \
19510NMEDIT \
19511LIPO \
19512OTOOL \
19513OTOOL64 \
19514shrext_cmds \
19515export_dynamic_flag_spec \
19516whole_archive_flag_spec \
19517compiler_needs_object \
19518with_gnu_ld \
19519allow_undefined_flag \
19520no_undefined_flag \
19521hardcode_libdir_flag_spec \
19522hardcode_libdir_separator \
19523exclude_expsyms \
19524include_expsyms \
19525file_list_spec \
19526variables_saved_for_relink \
19527libname_spec \
19528library_names_spec \
19529soname_spec \
19530install_override_mode \
19531finish_eval \
19532old_striplib \
19533striplib; do
19534    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19535    *[\\\\\\\`\\"\\\$]*)
19536      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19537      ;;
19538    *)
19539      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19540      ;;
19541    esac
19542done
19543
19544# Double-quote double-evaled strings.
19545for var in reload_cmds \
19546old_postinstall_cmds \
19547old_postuninstall_cmds \
19548old_archive_cmds \
19549extract_expsyms_cmds \
19550old_archive_from_new_cmds \
19551old_archive_from_expsyms_cmds \
19552archive_cmds \
19553archive_expsym_cmds \
19554module_cmds \
19555module_expsym_cmds \
19556export_symbols_cmds \
19557prelink_cmds \
19558postlink_cmds \
19559postinstall_cmds \
19560postuninstall_cmds \
19561finish_cmds \
19562sys_lib_search_path_spec \
19563configure_time_dlsearch_path \
19564configure_time_lt_sys_library_path; do
19565    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19566    *[\\\\\\\`\\"\\\$]*)
19567      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19568      ;;
19569    *)
19570      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19571      ;;
19572    esac
19573done
19574
19575ac_aux_dir='$ac_aux_dir'
19576
19577# See if we are running on zsh, and set the options that allow our
19578# commands through without removal of \ escapes INIT.
19579if test -n "\${ZSH_VERSION+set}"; then
19580   setopt NO_GLOB_SUBST
19581fi
19582
19583
19584    PACKAGE='$PACKAGE'
19585    VERSION='$VERSION'
19586    RM='$RM'
19587    ofile='$ofile'
19588
19589
19590
19591
19592_ACEOF
19593
19594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19595
19596# Handling of arguments.
19597for ac_config_target in $ac_config_targets
19598do
19599  case $ac_config_target in
19600    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19601    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19602    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19603    "include/X11/Xft/Xft.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/Xft/Xft.h" ;;
19604    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19605    "xft.pc") CONFIG_FILES="$CONFIG_FILES xft.pc" ;;
19606    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19607    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19608
19609  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19610  esac
19611done
19612
19613
19614# If the user did not use the arguments to specify the items to instantiate,
19615# then the envvar interface is used.  Set only those that are not.
19616# We use the long form for the default assignment because of an extremely
19617# bizarre bug on SunOS 4.1.3.
19618if $ac_need_defaults; then
19619  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19620  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19621  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19622fi
19623
19624# Have a temporary directory for convenience.  Make it in the build tree
19625# simply because there is no reason against having it here, and in addition,
19626# creating and moving files from /tmp can sometimes cause problems.
19627# Hook for its removal unless debugging.
19628# Note that there is a small window in which the directory will not be cleaned:
19629# after its creation but before its name has been assigned to `$tmp'.
19630$debug ||
19631{
19632  tmp= ac_tmp=
19633  trap 'exit_status=$?
19634  : "${ac_tmp:=$tmp}"
19635  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19636' 0
19637  trap 'as_fn_exit 1' 1 2 13 15
19638}
19639# Create a (secure) tmp directory for tmp files.
19640
19641{
19642  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19643  test -d "$tmp"
19644}  ||
19645{
19646  tmp=./conf$$-$RANDOM
19647  (umask 077 && mkdir "$tmp")
19648} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19649ac_tmp=$tmp
19650
19651# Set up the scripts for CONFIG_FILES section.
19652# No need to generate them if there are no CONFIG_FILES.
19653# This happens for instance with `./config.status config.h'.
19654if test -n "$CONFIG_FILES"; then
19655
19656
19657ac_cr=`echo X | tr X '\015'`
19658# On cygwin, bash can eat \r inside `` if the user requested igncr.
19659# But we know of no other shell where ac_cr would be empty at this
19660# point, so we can use a bashism as a fallback.
19661if test "x$ac_cr" = x; then
19662  eval ac_cr=\$\'\\r\'
19663fi
19664ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19665if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19666  ac_cs_awk_cr='\\r'
19667else
19668  ac_cs_awk_cr=$ac_cr
19669fi
19670
19671echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19672_ACEOF
19673
19674
19675{
19676  echo "cat >conf$$subs.awk <<_ACEOF" &&
19677  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19678  echo "_ACEOF"
19679} >conf$$subs.sh ||
19680  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19681ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19682ac_delim='%!_!# '
19683for ac_last_try in false false false false false :; do
19684  . ./conf$$subs.sh ||
19685    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19686
19687  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19688  if test $ac_delim_n = $ac_delim_num; then
19689    break
19690  elif $ac_last_try; then
19691    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19692  else
19693    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19694  fi
19695done
19696rm -f conf$$subs.sh
19697
19698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19699cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19700_ACEOF
19701sed -n '
19702h
19703s/^/S["/; s/!.*/"]=/
19704p
19705g
19706s/^[^!]*!//
19707:repl
19708t repl
19709s/'"$ac_delim"'$//
19710t delim
19711:nl
19712h
19713s/\(.\{148\}\)..*/\1/
19714t more1
19715s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19716p
19717n
19718b repl
19719:more1
19720s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19721p
19722g
19723s/.\{148\}//
19724t nl
19725:delim
19726h
19727s/\(.\{148\}\)..*/\1/
19728t more2
19729s/["\\]/\\&/g; s/^/"/; s/$/"/
19730p
19731b
19732:more2
19733s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19734p
19735g
19736s/.\{148\}//
19737t delim
19738' <conf$$subs.awk | sed '
19739/^[^""]/{
19740  N
19741  s/\n//
19742}
19743' >>$CONFIG_STATUS || ac_write_fail=1
19744rm -f conf$$subs.awk
19745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19746_ACAWK
19747cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19748  for (key in S) S_is_set[key] = 1
19749  FS = ""
19750
19751}
19752{
19753  line = $ 0
19754  nfields = split(line, field, "@")
19755  substed = 0
19756  len = length(field[1])
19757  for (i = 2; i < nfields; i++) {
19758    key = field[i]
19759    keylen = length(key)
19760    if (S_is_set[key]) {
19761      value = S[key]
19762      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19763      len += length(value) + length(field[++i])
19764      substed = 1
19765    } else
19766      len += 1 + keylen
19767  }
19768
19769  print line
19770}
19771
19772_ACAWK
19773_ACEOF
19774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19775if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19776  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19777else
19778  cat
19779fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19780  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19781_ACEOF
19782
19783# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19784# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19785# trailing colons and then remove the whole line if VPATH becomes empty
19786# (actually we leave an empty line to preserve line numbers).
19787if test "x$srcdir" = x.; then
19788  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19789h
19790s///
19791s/^/:/
19792s/[	 ]*$/:/
19793s/:\$(srcdir):/:/g
19794s/:\${srcdir}:/:/g
19795s/:@srcdir@:/:/g
19796s/^:*//
19797s/:*$//
19798x
19799s/\(=[	 ]*\).*/\1/
19800G
19801s/\n//
19802s/^[^=]*=[	 ]*$//
19803}'
19804fi
19805
19806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19807fi # test -n "$CONFIG_FILES"
19808
19809# Set up the scripts for CONFIG_HEADERS section.
19810# No need to generate them if there are no CONFIG_HEADERS.
19811# This happens for instance with `./config.status Makefile'.
19812if test -n "$CONFIG_HEADERS"; then
19813cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19814BEGIN {
19815_ACEOF
19816
19817# Transform confdefs.h into an awk script `defines.awk', embedded as
19818# here-document in config.status, that substitutes the proper values into
19819# config.h.in to produce config.h.
19820
19821# Create a delimiter string that does not exist in confdefs.h, to ease
19822# handling of long lines.
19823ac_delim='%!_!# '
19824for ac_last_try in false false :; do
19825  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19826  if test -z "$ac_tt"; then
19827    break
19828  elif $ac_last_try; then
19829    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19830  else
19831    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19832  fi
19833done
19834
19835# For the awk script, D is an array of macro values keyed by name,
19836# likewise P contains macro parameters if any.  Preserve backslash
19837# newline sequences.
19838
19839ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19840sed -n '
19841s/.\{148\}/&'"$ac_delim"'/g
19842t rset
19843:rset
19844s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19845t def
19846d
19847:def
19848s/\\$//
19849t bsnl
19850s/["\\]/\\&/g
19851s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19852D["\1"]=" \3"/p
19853s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19854d
19855:bsnl
19856s/["\\]/\\&/g
19857s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19858D["\1"]=" \3\\\\\\n"\\/p
19859t cont
19860s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19861t cont
19862d
19863:cont
19864n
19865s/.\{148\}/&'"$ac_delim"'/g
19866t clear
19867:clear
19868s/\\$//
19869t bsnlc
19870s/["\\]/\\&/g; s/^/"/; s/$/"/p
19871d
19872:bsnlc
19873s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19874b cont
19875' <confdefs.h | sed '
19876s/'"$ac_delim"'/"\\\
19877"/g' >>$CONFIG_STATUS || ac_write_fail=1
19878
19879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19880  for (key in D) D_is_set[key] = 1
19881  FS = ""
19882}
19883/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19884  line = \$ 0
19885  split(line, arg, " ")
19886  if (arg[1] == "#") {
19887    defundef = arg[2]
19888    mac1 = arg[3]
19889  } else {
19890    defundef = substr(arg[1], 2)
19891    mac1 = arg[2]
19892  }
19893  split(mac1, mac2, "(") #)
19894  macro = mac2[1]
19895  prefix = substr(line, 1, index(line, defundef) - 1)
19896  if (D_is_set[macro]) {
19897    # Preserve the white space surrounding the "#".
19898    print prefix "define", macro P[macro] D[macro]
19899    next
19900  } else {
19901    # Replace #undef with comments.  This is necessary, for example,
19902    # in the case of _POSIX_SOURCE, which is predefined and required
19903    # on some systems where configure will not decide to define it.
19904    if (defundef == "undef") {
19905      print "/*", prefix defundef, macro, "*/"
19906      next
19907    }
19908  }
19909}
19910{ print }
19911_ACAWK
19912_ACEOF
19913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19914  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19915fi # test -n "$CONFIG_HEADERS"
19916
19917
19918eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19919shift
19920for ac_tag
19921do
19922  case $ac_tag in
19923  :[FHLC]) ac_mode=$ac_tag; continue;;
19924  esac
19925  case $ac_mode$ac_tag in
19926  :[FHL]*:*);;
19927  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19928  :[FH]-) ac_tag=-:-;;
19929  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19930  esac
19931  ac_save_IFS=$IFS
19932  IFS=:
19933  set x $ac_tag
19934  IFS=$ac_save_IFS
19935  shift
19936  ac_file=$1
19937  shift
19938
19939  case $ac_mode in
19940  :L) ac_source=$1;;
19941  :[FH])
19942    ac_file_inputs=
19943    for ac_f
19944    do
19945      case $ac_f in
19946      -) ac_f="$ac_tmp/stdin";;
19947      *) # Look for the file first in the build tree, then in the source tree
19948	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19949	 # because $ac_f cannot contain `:'.
19950	 test -f "$ac_f" ||
19951	   case $ac_f in
19952	   [\\/$]*) false;;
19953	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19954	   esac ||
19955	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19956      esac
19957      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19958      as_fn_append ac_file_inputs " '$ac_f'"
19959    done
19960
19961    # Let's still pretend it is `configure' which instantiates (i.e., don't
19962    # use $as_me), people would be surprised to read:
19963    #    /* config.h.  Generated by config.status.  */
19964    configure_input='Generated from '`
19965	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19966	`' by configure.'
19967    if test x"$ac_file" != x-; then
19968      configure_input="$ac_file.  $configure_input"
19969      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19970$as_echo "$as_me: creating $ac_file" >&6;}
19971    fi
19972    # Neutralize special characters interpreted by sed in replacement strings.
19973    case $configure_input in #(
19974    *\&* | *\|* | *\\* )
19975       ac_sed_conf_input=`$as_echo "$configure_input" |
19976       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19977    *) ac_sed_conf_input=$configure_input;;
19978    esac
19979
19980    case $ac_tag in
19981    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19982      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19983    esac
19984    ;;
19985  esac
19986
19987  ac_dir=`$as_dirname -- "$ac_file" ||
19988$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19989	 X"$ac_file" : 'X\(//\)[^/]' \| \
19990	 X"$ac_file" : 'X\(//\)$' \| \
19991	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19992$as_echo X"$ac_file" |
19993    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19994	    s//\1/
19995	    q
19996	  }
19997	  /^X\(\/\/\)[^/].*/{
19998	    s//\1/
19999	    q
20000	  }
20001	  /^X\(\/\/\)$/{
20002	    s//\1/
20003	    q
20004	  }
20005	  /^X\(\/\).*/{
20006	    s//\1/
20007	    q
20008	  }
20009	  s/.*/./; q'`
20010  as_dir="$ac_dir"; as_fn_mkdir_p
20011  ac_builddir=.
20012
20013case "$ac_dir" in
20014.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20015*)
20016  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20017  # A ".." for each directory in $ac_dir_suffix.
20018  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20019  case $ac_top_builddir_sub in
20020  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20021  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20022  esac ;;
20023esac
20024ac_abs_top_builddir=$ac_pwd
20025ac_abs_builddir=$ac_pwd$ac_dir_suffix
20026# for backward compatibility:
20027ac_top_builddir=$ac_top_build_prefix
20028
20029case $srcdir in
20030  .)  # We are building in place.
20031    ac_srcdir=.
20032    ac_top_srcdir=$ac_top_builddir_sub
20033    ac_abs_top_srcdir=$ac_pwd ;;
20034  [\\/]* | ?:[\\/]* )  # Absolute name.
20035    ac_srcdir=$srcdir$ac_dir_suffix;
20036    ac_top_srcdir=$srcdir
20037    ac_abs_top_srcdir=$srcdir ;;
20038  *) # Relative name.
20039    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20040    ac_top_srcdir=$ac_top_build_prefix$srcdir
20041    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20042esac
20043ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20044
20045
20046  case $ac_mode in
20047  :F)
20048  #
20049  # CONFIG_FILE
20050  #
20051
20052  case $INSTALL in
20053  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20054  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20055  esac
20056  ac_MKDIR_P=$MKDIR_P
20057  case $MKDIR_P in
20058  [\\/$]* | ?:[\\/]* ) ;;
20059  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20060  esac
20061_ACEOF
20062
20063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20064# If the template does not know about datarootdir, expand it.
20065# FIXME: This hack should be removed a few years after 2.60.
20066ac_datarootdir_hack=; ac_datarootdir_seen=
20067ac_sed_dataroot='
20068/datarootdir/ {
20069  p
20070  q
20071}
20072/@datadir@/p
20073/@docdir@/p
20074/@infodir@/p
20075/@localedir@/p
20076/@mandir@/p'
20077case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20078*datarootdir*) ac_datarootdir_seen=yes;;
20079*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20080  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20081$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20082_ACEOF
20083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20084  ac_datarootdir_hack='
20085  s&@datadir@&$datadir&g
20086  s&@docdir@&$docdir&g
20087  s&@infodir@&$infodir&g
20088  s&@localedir@&$localedir&g
20089  s&@mandir@&$mandir&g
20090  s&\\\${datarootdir}&$datarootdir&g' ;;
20091esac
20092_ACEOF
20093
20094# Neutralize VPATH when `$srcdir' = `.'.
20095# Shell code in configure.ac might set extrasub.
20096# FIXME: do we really want to maintain this feature?
20097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20098ac_sed_extra="$ac_vpsub
20099$extrasub
20100_ACEOF
20101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20102:t
20103/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20104s|@configure_input@|$ac_sed_conf_input|;t t
20105s&@top_builddir@&$ac_top_builddir_sub&;t t
20106s&@top_build_prefix@&$ac_top_build_prefix&;t t
20107s&@srcdir@&$ac_srcdir&;t t
20108s&@abs_srcdir@&$ac_abs_srcdir&;t t
20109s&@top_srcdir@&$ac_top_srcdir&;t t
20110s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20111s&@builddir@&$ac_builddir&;t t
20112s&@abs_builddir@&$ac_abs_builddir&;t t
20113s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20114s&@INSTALL@&$ac_INSTALL&;t t
20115s&@MKDIR_P@&$ac_MKDIR_P&;t t
20116$ac_datarootdir_hack
20117"
20118eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20119  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20120
20121test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20122  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20123  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20124      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20125  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20126which seems to be undefined.  Please make sure it is defined" >&5
20127$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20128which seems to be undefined.  Please make sure it is defined" >&2;}
20129
20130  rm -f "$ac_tmp/stdin"
20131  case $ac_file in
20132  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20133  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20134  esac \
20135  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20136 ;;
20137  :H)
20138  #
20139  # CONFIG_HEADER
20140  #
20141  if test x"$ac_file" != x-; then
20142    {
20143      $as_echo "/* $configure_input  */" \
20144      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20145    } >"$ac_tmp/config.h" \
20146      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20147    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20148      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20149$as_echo "$as_me: $ac_file is unchanged" >&6;}
20150    else
20151      rm -f "$ac_file"
20152      mv "$ac_tmp/config.h" "$ac_file" \
20153	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20154    fi
20155  else
20156    $as_echo "/* $configure_input  */" \
20157      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20158      || as_fn_error $? "could not create -" "$LINENO" 5
20159  fi
20160# Compute "$ac_file"'s index in $config_headers.
20161_am_arg="$ac_file"
20162_am_stamp_count=1
20163for _am_header in $config_headers :; do
20164  case $_am_header in
20165    $_am_arg | $_am_arg:* )
20166      break ;;
20167    * )
20168      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20169  esac
20170done
20171echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20172$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20173	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20174	 X"$_am_arg" : 'X\(//\)$' \| \
20175	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20176$as_echo X"$_am_arg" |
20177    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20178	    s//\1/
20179	    q
20180	  }
20181	  /^X\(\/\/\)[^/].*/{
20182	    s//\1/
20183	    q
20184	  }
20185	  /^X\(\/\/\)$/{
20186	    s//\1/
20187	    q
20188	  }
20189	  /^X\(\/\).*/{
20190	    s//\1/
20191	    q
20192	  }
20193	  s/.*/./; q'`/stamp-h$_am_stamp_count
20194 ;;
20195
20196  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20197$as_echo "$as_me: executing $ac_file commands" >&6;}
20198 ;;
20199  esac
20200
20201
20202  case $ac_file$ac_mode in
20203    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20204  # Older Autoconf quotes --file arguments for eval, but not when files
20205  # are listed without --file.  Let's play safe and only enable the eval
20206  # if we detect the quoting.
20207  case $CONFIG_FILES in
20208  *\'*) eval set x "$CONFIG_FILES" ;;
20209  *)   set x $CONFIG_FILES ;;
20210  esac
20211  shift
20212  for mf
20213  do
20214    # Strip MF so we end up with the name of the file.
20215    mf=`echo "$mf" | sed -e 's/:.*$//'`
20216    # Check whether this is an Automake generated Makefile or not.
20217    # We used to match only the files named 'Makefile.in', but
20218    # some people rename them; so instead we look at the file content.
20219    # Grep'ing the first line is not enough: some people post-process
20220    # each Makefile.in and add a new line on top of each file to say so.
20221    # Grep'ing the whole file is not good either: AIX grep has a line
20222    # limit of 2048, but all sed's we know have understand at least 4000.
20223    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20224      dirpart=`$as_dirname -- "$mf" ||
20225$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20226	 X"$mf" : 'X\(//\)[^/]' \| \
20227	 X"$mf" : 'X\(//\)$' \| \
20228	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20229$as_echo X"$mf" |
20230    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20231	    s//\1/
20232	    q
20233	  }
20234	  /^X\(\/\/\)[^/].*/{
20235	    s//\1/
20236	    q
20237	  }
20238	  /^X\(\/\/\)$/{
20239	    s//\1/
20240	    q
20241	  }
20242	  /^X\(\/\).*/{
20243	    s//\1/
20244	    q
20245	  }
20246	  s/.*/./; q'`
20247    else
20248      continue
20249    fi
20250    # Extract the definition of DEPDIR, am__include, and am__quote
20251    # from the Makefile without running 'make'.
20252    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20253    test -z "$DEPDIR" && continue
20254    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20255    test -z "$am__include" && continue
20256    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20257    # Find all dependency output files, they are included files with
20258    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20259    # simplest approach to changing $(DEPDIR) to its actual value in the
20260    # expansion.
20261    for file in `sed -n "
20262      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20263	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20264      # Make sure the directory exists.
20265      test -f "$dirpart/$file" && continue
20266      fdir=`$as_dirname -- "$file" ||
20267$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20268	 X"$file" : 'X\(//\)[^/]' \| \
20269	 X"$file" : 'X\(//\)$' \| \
20270	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20271$as_echo X"$file" |
20272    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20273	    s//\1/
20274	    q
20275	  }
20276	  /^X\(\/\/\)[^/].*/{
20277	    s//\1/
20278	    q
20279	  }
20280	  /^X\(\/\/\)$/{
20281	    s//\1/
20282	    q
20283	  }
20284	  /^X\(\/\).*/{
20285	    s//\1/
20286	    q
20287	  }
20288	  s/.*/./; q'`
20289      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20290      # echo "creating $dirpart/$file"
20291      echo '# dummy' > "$dirpart/$file"
20292    done
20293  done
20294}
20295 ;;
20296    "libtool":C)
20297
20298    # See if we are running on zsh, and set the options that allow our
20299    # commands through without removal of \ escapes.
20300    if test -n "${ZSH_VERSION+set}"; then
20301      setopt NO_GLOB_SUBST
20302    fi
20303
20304    cfgfile=${ofile}T
20305    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20306    $RM "$cfgfile"
20307
20308    cat <<_LT_EOF >> "$cfgfile"
20309#! $SHELL
20310# Generated automatically by $as_me ($PACKAGE) $VERSION
20311# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20312# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20313
20314# Provide generalized library-building support services.
20315# Written by Gordon Matzigkeit, 1996
20316
20317# Copyright (C) 2014 Free Software Foundation, Inc.
20318# This is free software; see the source for copying conditions.  There is NO
20319# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20320
20321# GNU Libtool is free software; you can redistribute it and/or modify
20322# it under the terms of the GNU General Public License as published by
20323# the Free Software Foundation; either version 2 of of the License, or
20324# (at your option) any later version.
20325#
20326# As a special exception to the GNU General Public License, if you
20327# distribute this file as part of a program or library that is built
20328# using GNU Libtool, you may include this file under the  same
20329# distribution terms that you use for the rest of that program.
20330#
20331# GNU Libtool is distributed in the hope that it will be useful, but
20332# WITHOUT ANY WARRANTY; without even the implied warranty of
20333# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20334# GNU General Public License for more details.
20335#
20336# You should have received a copy of the GNU General Public License
20337# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20338
20339
20340# The names of the tagged configurations supported by this script.
20341available_tags=''
20342
20343# Configured defaults for sys_lib_dlsearch_path munging.
20344: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20345
20346# ### BEGIN LIBTOOL CONFIG
20347
20348# Which release of libtool.m4 was used?
20349macro_version=$macro_version
20350macro_revision=$macro_revision
20351
20352# Whether or not to build shared libraries.
20353build_libtool_libs=$enable_shared
20354
20355# Whether or not to build static libraries.
20356build_old_libs=$enable_static
20357
20358# What type of objects to build.
20359pic_mode=$pic_mode
20360
20361# Whether or not to optimize for fast installation.
20362fast_install=$enable_fast_install
20363
20364# Shared archive member basename,for filename based shared library versioning on AIX.
20365shared_archive_member_spec=$shared_archive_member_spec
20366
20367# Shell to use when invoking shell scripts.
20368SHELL=$lt_SHELL
20369
20370# An echo program that protects backslashes.
20371ECHO=$lt_ECHO
20372
20373# The PATH separator for the build system.
20374PATH_SEPARATOR=$lt_PATH_SEPARATOR
20375
20376# The host system.
20377host_alias=$host_alias
20378host=$host
20379host_os=$host_os
20380
20381# The build system.
20382build_alias=$build_alias
20383build=$build
20384build_os=$build_os
20385
20386# A sed program that does not truncate output.
20387SED=$lt_SED
20388
20389# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20390Xsed="\$SED -e 1s/^X//"
20391
20392# A grep program that handles long lines.
20393GREP=$lt_GREP
20394
20395# An ERE matcher.
20396EGREP=$lt_EGREP
20397
20398# A literal string matcher.
20399FGREP=$lt_FGREP
20400
20401# A BSD- or MS-compatible name lister.
20402NM=$lt_NM
20403
20404# Whether we need soft or hard links.
20405LN_S=$lt_LN_S
20406
20407# What is the maximum length of a command?
20408max_cmd_len=$max_cmd_len
20409
20410# Object file suffix (normally "o").
20411objext=$ac_objext
20412
20413# Executable file suffix (normally "").
20414exeext=$exeext
20415
20416# whether the shell understands "unset".
20417lt_unset=$lt_unset
20418
20419# turn spaces into newlines.
20420SP2NL=$lt_lt_SP2NL
20421
20422# turn newlines into spaces.
20423NL2SP=$lt_lt_NL2SP
20424
20425# convert \$build file names to \$host format.
20426to_host_file_cmd=$lt_cv_to_host_file_cmd
20427
20428# convert \$build files to toolchain format.
20429to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20430
20431# An object symbol dumper.
20432OBJDUMP=$lt_OBJDUMP
20433
20434# Method to check whether dependent libraries are shared objects.
20435deplibs_check_method=$lt_deplibs_check_method
20436
20437# Command to use when deplibs_check_method = "file_magic".
20438file_magic_cmd=$lt_file_magic_cmd
20439
20440# How to find potential files when deplibs_check_method = "file_magic".
20441file_magic_glob=$lt_file_magic_glob
20442
20443# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20444want_nocaseglob=$lt_want_nocaseglob
20445
20446# DLL creation program.
20447DLLTOOL=$lt_DLLTOOL
20448
20449# Command to associate shared and link libraries.
20450sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20451
20452# The archiver.
20453AR=$lt_AR
20454
20455# Flags to create an archive.
20456AR_FLAGS=$lt_AR_FLAGS
20457
20458# How to feed a file listing to the archiver.
20459archiver_list_spec=$lt_archiver_list_spec
20460
20461# A symbol stripping program.
20462STRIP=$lt_STRIP
20463
20464# Commands used to install an old-style archive.
20465RANLIB=$lt_RANLIB
20466old_postinstall_cmds=$lt_old_postinstall_cmds
20467old_postuninstall_cmds=$lt_old_postuninstall_cmds
20468
20469# Whether to use a lock for old archive extraction.
20470lock_old_archive_extraction=$lock_old_archive_extraction
20471
20472# A C compiler.
20473LTCC=$lt_CC
20474
20475# LTCC compiler flags.
20476LTCFLAGS=$lt_CFLAGS
20477
20478# Take the output of nm and produce a listing of raw symbols and C names.
20479global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20480
20481# Transform the output of nm in a proper C declaration.
20482global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20483
20484# Transform the output of nm into a list of symbols to manually relocate.
20485global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20486
20487# Transform the output of nm in a C name address pair.
20488global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20489
20490# Transform the output of nm in a C name address pair when lib prefix is needed.
20491global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20492
20493# The name lister interface.
20494nm_interface=$lt_lt_cv_nm_interface
20495
20496# Specify filename containing input files for \$NM.
20497nm_file_list_spec=$lt_nm_file_list_spec
20498
20499# The root where to search for dependent libraries,and where our libraries should be installed.
20500lt_sysroot=$lt_sysroot
20501
20502# Command to truncate a binary pipe.
20503lt_truncate_bin=$lt_lt_cv_truncate_bin
20504
20505# The name of the directory that contains temporary libtool files.
20506objdir=$objdir
20507
20508# Used to examine libraries when file_magic_cmd begins with "file".
20509MAGIC_CMD=$MAGIC_CMD
20510
20511# Must we lock files when doing compilation?
20512need_locks=$lt_need_locks
20513
20514# Manifest tool.
20515MANIFEST_TOOL=$lt_MANIFEST_TOOL
20516
20517# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20518DSYMUTIL=$lt_DSYMUTIL
20519
20520# Tool to change global to local symbols on Mac OS X.
20521NMEDIT=$lt_NMEDIT
20522
20523# Tool to manipulate fat objects and archives on Mac OS X.
20524LIPO=$lt_LIPO
20525
20526# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20527OTOOL=$lt_OTOOL
20528
20529# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20530OTOOL64=$lt_OTOOL64
20531
20532# Old archive suffix (normally "a").
20533libext=$libext
20534
20535# Shared library suffix (normally ".so").
20536shrext_cmds=$lt_shrext_cmds
20537
20538# The commands to extract the exported symbol list from a shared archive.
20539extract_expsyms_cmds=$lt_extract_expsyms_cmds
20540
20541# Variables whose values should be saved in libtool wrapper scripts and
20542# restored at link time.
20543variables_saved_for_relink=$lt_variables_saved_for_relink
20544
20545# Do we need the "lib" prefix for modules?
20546need_lib_prefix=$need_lib_prefix
20547
20548# Do we need a version for libraries?
20549need_version=$need_version
20550
20551# Library versioning type.
20552version_type=$version_type
20553
20554# Shared library runtime path variable.
20555runpath_var=$runpath_var
20556
20557# Shared library path variable.
20558shlibpath_var=$shlibpath_var
20559
20560# Is shlibpath searched before the hard-coded library search path?
20561shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20562
20563# Format of library name prefix.
20564libname_spec=$lt_libname_spec
20565
20566# List of archive names.  First name is the real one, the rest are links.
20567# The last name is the one that the linker finds with -lNAME
20568library_names_spec=$lt_library_names_spec
20569
20570# The coded name of the library, if different from the real name.
20571soname_spec=$lt_soname_spec
20572
20573# Permission mode override for installation of shared libraries.
20574install_override_mode=$lt_install_override_mode
20575
20576# Command to use after installation of a shared archive.
20577postinstall_cmds=$lt_postinstall_cmds
20578
20579# Command to use after uninstallation of a shared archive.
20580postuninstall_cmds=$lt_postuninstall_cmds
20581
20582# Commands used to finish a libtool library installation in a directory.
20583finish_cmds=$lt_finish_cmds
20584
20585# As "finish_cmds", except a single script fragment to be evaled but
20586# not shown.
20587finish_eval=$lt_finish_eval
20588
20589# Whether we should hardcode library paths into libraries.
20590hardcode_into_libs=$hardcode_into_libs
20591
20592# Compile-time system search path for libraries.
20593sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20594
20595# Detected run-time system search path for libraries.
20596sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20597
20598# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20599configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20600
20601# Whether dlopen is supported.
20602dlopen_support=$enable_dlopen
20603
20604# Whether dlopen of programs is supported.
20605dlopen_self=$enable_dlopen_self
20606
20607# Whether dlopen of statically linked programs is supported.
20608dlopen_self_static=$enable_dlopen_self_static
20609
20610# Commands to strip libraries.
20611old_striplib=$lt_old_striplib
20612striplib=$lt_striplib
20613
20614
20615# The linker used to build libraries.
20616LD=$lt_LD
20617
20618# How to create reloadable object files.
20619reload_flag=$lt_reload_flag
20620reload_cmds=$lt_reload_cmds
20621
20622# Commands used to build an old-style archive.
20623old_archive_cmds=$lt_old_archive_cmds
20624
20625# A language specific compiler.
20626CC=$lt_compiler
20627
20628# Is the compiler the GNU compiler?
20629with_gcc=$GCC
20630
20631# Compiler flag to turn off builtin functions.
20632no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20633
20634# Additional compiler flags for building library objects.
20635pic_flag=$lt_lt_prog_compiler_pic
20636
20637# How to pass a linker flag through the compiler.
20638wl=$lt_lt_prog_compiler_wl
20639
20640# Compiler flag to prevent dynamic linking.
20641link_static_flag=$lt_lt_prog_compiler_static
20642
20643# Does compiler simultaneously support -c and -o options?
20644compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20645
20646# Whether or not to add -lc for building shared libraries.
20647build_libtool_need_lc=$archive_cmds_need_lc
20648
20649# Whether or not to disallow shared libs when runtime libs are static.
20650allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20651
20652# Compiler flag to allow reflexive dlopens.
20653export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20654
20655# Compiler flag to generate shared objects directly from archives.
20656whole_archive_flag_spec=$lt_whole_archive_flag_spec
20657
20658# Whether the compiler copes with passing no objects directly.
20659compiler_needs_object=$lt_compiler_needs_object
20660
20661# Create an old-style archive from a shared archive.
20662old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20663
20664# Create a temporary old-style archive to link instead of a shared archive.
20665old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20666
20667# Commands used to build a shared archive.
20668archive_cmds=$lt_archive_cmds
20669archive_expsym_cmds=$lt_archive_expsym_cmds
20670
20671# Commands used to build a loadable module if different from building
20672# a shared archive.
20673module_cmds=$lt_module_cmds
20674module_expsym_cmds=$lt_module_expsym_cmds
20675
20676# Whether we are building with GNU ld or not.
20677with_gnu_ld=$lt_with_gnu_ld
20678
20679# Flag that allows shared libraries with undefined symbols to be built.
20680allow_undefined_flag=$lt_allow_undefined_flag
20681
20682# Flag that enforces no undefined symbols.
20683no_undefined_flag=$lt_no_undefined_flag
20684
20685# Flag to hardcode \$libdir into a binary during linking.
20686# This must work even if \$libdir does not exist
20687hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20688
20689# Whether we need a single "-rpath" flag with a separated argument.
20690hardcode_libdir_separator=$lt_hardcode_libdir_separator
20691
20692# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20693# DIR into the resulting binary.
20694hardcode_direct=$hardcode_direct
20695
20696# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20697# DIR into the resulting binary and the resulting library dependency is
20698# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20699# library is relocated.
20700hardcode_direct_absolute=$hardcode_direct_absolute
20701
20702# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20703# into the resulting binary.
20704hardcode_minus_L=$hardcode_minus_L
20705
20706# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20707# into the resulting binary.
20708hardcode_shlibpath_var=$hardcode_shlibpath_var
20709
20710# Set to "yes" if building a shared library automatically hardcodes DIR
20711# into the library and all subsequent libraries and executables linked
20712# against it.
20713hardcode_automatic=$hardcode_automatic
20714
20715# Set to yes if linker adds runtime paths of dependent libraries
20716# to runtime path list.
20717inherit_rpath=$inherit_rpath
20718
20719# Whether libtool must link a program against all its dependency libraries.
20720link_all_deplibs=$link_all_deplibs
20721
20722# Set to "yes" if exported symbols are required.
20723always_export_symbols=$always_export_symbols
20724
20725# The commands to list exported symbols.
20726export_symbols_cmds=$lt_export_symbols_cmds
20727
20728# Symbols that should not be listed in the preloaded symbols.
20729exclude_expsyms=$lt_exclude_expsyms
20730
20731# Symbols that must always be exported.
20732include_expsyms=$lt_include_expsyms
20733
20734# Commands necessary for linking programs (against libraries) with templates.
20735prelink_cmds=$lt_prelink_cmds
20736
20737# Commands necessary for finishing linking programs.
20738postlink_cmds=$lt_postlink_cmds
20739
20740# Specify filename containing input files.
20741file_list_spec=$lt_file_list_spec
20742
20743# How to hardcode a shared library path into an executable.
20744hardcode_action=$hardcode_action
20745
20746# ### END LIBTOOL CONFIG
20747
20748_LT_EOF
20749
20750    cat <<'_LT_EOF' >> "$cfgfile"
20751
20752# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20753
20754# func_munge_path_list VARIABLE PATH
20755# -----------------------------------
20756# VARIABLE is name of variable containing _space_ separated list of
20757# directories to be munged by the contents of PATH, which is string
20758# having a format:
20759# "DIR[:DIR]:"
20760#       string "DIR[ DIR]" will be prepended to VARIABLE
20761# ":DIR[:DIR]"
20762#       string "DIR[ DIR]" will be appended to VARIABLE
20763# "DIRP[:DIRP]::[DIRA:]DIRA"
20764#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20765#       "DIRA[ DIRA]" will be appended to VARIABLE
20766# "DIR[:DIR]"
20767#       VARIABLE will be replaced by "DIR[ DIR]"
20768func_munge_path_list ()
20769{
20770    case x$2 in
20771    x)
20772        ;;
20773    *:)
20774        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20775        ;;
20776    x:*)
20777        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20778        ;;
20779    *::*)
20780        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20781        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20782        ;;
20783    *)
20784        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20785        ;;
20786    esac
20787}
20788
20789
20790# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20791func_cc_basename ()
20792{
20793    for cc_temp in $*""; do
20794      case $cc_temp in
20795        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20796        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20797        \-*) ;;
20798        *) break;;
20799      esac
20800    done
20801    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20802}
20803
20804
20805# ### END FUNCTIONS SHARED WITH CONFIGURE
20806
20807_LT_EOF
20808
20809  case $host_os in
20810  aix3*)
20811    cat <<\_LT_EOF >> "$cfgfile"
20812# AIX sometimes has problems with the GCC collect2 program.  For some
20813# reason, if we set the COLLECT_NAMES environment variable, the problems
20814# vanish in a puff of smoke.
20815if test set != "${COLLECT_NAMES+set}"; then
20816  COLLECT_NAMES=
20817  export COLLECT_NAMES
20818fi
20819_LT_EOF
20820    ;;
20821  esac
20822
20823
20824ltmain=$ac_aux_dir/ltmain.sh
20825
20826
20827  # We use sed instead of cat because bash on DJGPP gets confused if
20828  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20829  # text mode, it properly converts lines to CR/LF.  This bash problem
20830  # is reportedly fixed, but why not run on old versions too?
20831  sed '$q' "$ltmain" >> "$cfgfile" \
20832     || (rm -f "$cfgfile"; exit 1)
20833
20834   mv -f "$cfgfile" "$ofile" ||
20835    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20836  chmod +x "$ofile"
20837
20838 ;;
20839
20840  esac
20841done # for ac_tag
20842
20843
20844as_fn_exit 0
20845_ACEOF
20846ac_clean_files=$ac_clean_files_save
20847
20848test $ac_write_fail = 0 ||
20849  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20850
20851
20852# configure is writing to config.log, and then calls config.status.
20853# config.status does its own redirection, appending to config.log.
20854# Unfortunately, on DOS this fails, as config.log is still kept open
20855# by configure, so config.status won't be able to write to it; its
20856# output is simply discarded.  So we exec the FD to /dev/null,
20857# effectively closing config.log, so it can be properly (re)opened and
20858# appended to by config.status.  When coming back to configure, we
20859# need to make the FD available again.
20860if test "$no_create" != yes; then
20861  ac_cs_success=:
20862  ac_config_status_args=
20863  test "$silent" = yes &&
20864    ac_config_status_args="$ac_config_status_args --quiet"
20865  exec 5>/dev/null
20866  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20867  exec 5>>config.log
20868  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20869  # would make configure fail if this is the last instruction.
20870  $ac_cs_success || as_fn_exit 1
20871fi
20872if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20873  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20874$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20875fi
20876
20877