configure revision 42542f5f
11.73Sandvar#! /bin/sh
21.1Spk# Guess values for system-dependent variables and create Makefiles.
31.1Spk# Generated by GNU Autoconf 2.69 for xf86-video-intel 2.99.916.
41.1Spk#
51.1Spk# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
61.1Spk#
71.1Spk#
81.1Spk# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
91.1Spk#
101.1Spk#
111.1Spk# This configure script is free software; the Free Software Foundation
121.1Spk# gives unlimited permission to copy, distribute and modify it.
131.1Spk## -------------------- ##
141.1Spk## M4sh Initialization. ##
151.1Spk## -------------------- ##
161.1Spk
171.1Spk# Be more Bourne compatible
181.1SpkDUALCASE=1; export DUALCASE # for MKS sh
191.1Spkif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
201.1Spk  emulate sh
211.1Spk  NULLCMD=:
221.1Spk  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
231.1Spk  # is contrary to our usage.  Disable this feature.
241.1Spk  alias -g '${1+"$@"}'='"$@"'
251.1Spk  setopt NO_GLOB_SUBST
261.1Spkelse
271.1Spk  case `(set -o) 2>/dev/null` in #(
281.1Spk  *posix*) :
291.1Spk    set -o posix ;; #(
301.1Spk  *) :
311.1Spk     ;;
321.1Spkesac
331.1Spkfi
341.1Spk
351.12Slukem
361.12Slukemas_nl='
371.73Sandvar'
381.1Spkexport as_nl
391.1Spk# Printing a long string crashes Solaris 7 /usr/bin/printf.
401.1Spkas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
411.1Spkas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
421.1Spkas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
431.15Smartin# Prefer a ksh shell builtin over an external printf program on Solaris,
441.1Spk# but without wasting forks for bash or zsh.
451.1Spkif test -z "$BASH_VERSION$ZSH_VERSION" \
461.1Spk    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
471.1Spk  as_echo='print -r --'
481.51Sad  as_echo_n='print -rn --'
491.1Spkelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
501.1Spk  as_echo='printf %s\n'
511.1Spk  as_echo_n='printf %s'
521.1Spkelse
531.1Spk  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
541.52Sad    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
551.1Spk    as_echo_n='/usr/ucb/echo -n'
561.1Spk  else
571.1Spk    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
581.1Spk    as_echo_n_body='eval
591.1Spk      arg=$1;
601.1Spk      case $arg in #(
611.15Smartin      *"$as_nl"*)
621.15Smartin	expr "X$arg" : "X\\(.*\\)$as_nl";
631.15Smartin	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
641.15Smartin      esac;
651.15Smartin      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
661.15Smartin    '
671.15Smartin    export as_echo_n_body
681.15Smartin    as_echo_n='sh -c $as_echo_n_body as_echo'
691.15Smartin  fi
701.15Smartin  export as_echo_body
711.1Spk  as_echo='sh -c $as_echo_body as_echo'
721.1Spkfi
731.1Spk
741.1Spk# The user is always right.
751.1Spkif test "${PATH_SEPARATOR+set}" != set; then
761.1Spk  PATH_SEPARATOR=:
771.1Spk  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
781.1Spk    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
791.1Spk      PATH_SEPARATOR=';'
801.1Spk  }
811.1Spkfi
821.1Spk
831.1Spk
841.1Spk# IFS
851.1Spk# We need space, tab and new line, in precisely that order.  Quoting is
861.1Spk# there to prevent editors from complaining about space-tab.
871.1Spk# (If _AS_PATH_WALK were called with IFS unset, it would disable word
881.1Spk# splitting by setting IFS to empty value.)
891.1SpkIFS=" ""	$as_nl"
901.1Spk
911.1Spk# Find who we are.  Look in the path if we contain no directory separator.
921.1Spkas_myself=
931.1Spkcase $0 in #((
941.1Spk  *[\\/]* ) as_myself=$0 ;;
951.1Spk  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
961.1Spkfor as_dir in $PATH
971.1Spkdo
981.1Spk  IFS=$as_save_IFS
991.28Smartin  test -z "$as_dir" && as_dir=.
1001.28Smartin    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1011.53Smartin  done
1021.31SmartinIFS=$as_save_IFS
1031.31Smartin
1041.53Smartin     ;;
1051.33Smartinesac
1061.33Smartin# We did not find ourselves, most probably we were run as `sh COMMAND'
1071.33Smartin# in which case we are not to be found in the path.
1081.67Schsif test "x$as_myself" = x; then
1091.1Spk  as_myself=$0
1101.42Sperryfi
1111.1Spkif test ! -f "$as_myself"; then
1121.53Smartin  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1131.31Smartin  exit 1
1141.53Smartinfi
1151.31Smartin
1161.1Spk# Unset variables that we do not need and which cause bugs (e.g. in
1171.1Spk# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1181.1Spk# suppresses any "Segmentation fault" message there.  '((' could
1191.1Spk# trigger a bug in pdksh 5.2.14.
1201.1Spkfor as_var in BASH_ENV ENV MAIL MAILPATH
1211.1Spkdo eval test x\${$as_var+set} = xset \
1221.1Spk  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1231.65Smrgdone
1241.1SpkPS1='$ '
1251.1SpkPS2='> '
1261.50SadPS4='+ '
1271.1Spk
1281.1Spk# NLS nuisances.
1291.1SpkLC_ALL=C
1301.53Smartinexport LC_ALL
1311.53SmartinLANGUAGE=C
1321.53Smartinexport LANGUAGE
1331.1Spk
1341.1Spk# CDPATH.
1351.1Spk(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1361.42Sperry
1371.61Scegger# Use a proper internal environment variable to ensure we don't fall
1381.61Scegger  # into an infinite loop, continuously re-executing ourselves.
1391.42Sperry  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
1401.16Smartin    _as_can_reexec=no; export _as_can_reexec;
1411.44Sjdc    # We cannot yet assume a decent shell, so we have to provide a
1421.53Smartin# neutralization value for shells without unset; and this also
1431.31Smartin# works around shells that cannot unset nonexistent variables.
1441.53Smartin# Preserve -v and -x to the replacement shell.
1451.1SpkBASH_ENV=/dev/null
1461.65SmrgENV=/dev/null
1471.27Sthorpej(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
1481.1Spkcase $- in # ((((
1491.6Spk  *v*x* | *x*v* ) as_opts=-vx ;;
1501.42Sperry  *v* ) as_opts=-v ;;
1511.6Spk  *x* ) as_opts=-x ;;
1521.1Spk  * ) as_opts= ;;
1531.42Sperryesac
1541.42Sperryexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
1551.42Sperry# Admittedly, this is quite paranoid, since all the known shells bail
1561.42Sperry# out after a failed `exec'.
1571.46Smartin$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
1581.42Sperryas_fn_exit 255
1591.42Sperry  fi
1601.42Sperry  # We don't want this to propagate to other subprocesses.
1611.42Sperry          { _as_can_reexec=; unset _as_can_reexec;}
1621.42Sperryif test "x$CONFIG_SHELL" = x; then
1631.42Sperry  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1641.42Sperry  emulate sh
1651.42Sperry  NULLCMD=:
1661.42Sperry  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1671.1Spk  # is contrary to our usage.  Disable this feature.
1681.42Sperry  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1691.42Sperry  setopt NO_GLOB_SUBST
1701.1Spkelse
1711.42Sperry  case \`(set -o) 2>/dev/null\` in #(
1721.1Spk  *posix*) :
1731.42Sperry    set -o posix ;; #(
1741.42Sperry  *) :
1751.42Sperry     ;;
1761.42Sperryesac
1771.42Sperryfi
1781.42Sperry"
1791.42Sperry  as_required="as_fn_return () { (exit \$1); }
1801.42Sperryas_fn_success () { as_fn_return 0; }
1811.42Sperryas_fn_failure () { as_fn_return 1; }
1821.42Sperryas_fn_ret_success () { return 0; }
1831.42Sperryas_fn_ret_failure () { return 1; }
1841.1Spk
1851.42Sperryexitcode=0
1861.42Sperryas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1871.1Spkas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1881.1Spkas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1891.1Spkas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1901.1Spkif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1911.1Spk
1921.1Spkelse
1931.1Spk  exitcode=1; echo positional parameters were not saved.
1941.1Spkfi
1951.1Spktest x\$exitcode = x0 || exit 1
1961.1Spktest -x / || exit 1"
1971.1Spk  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1981.1Spk  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1991.1Spk  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
2001.1Spk  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
2011.1Spktest \$(( 1 + 1 )) = 2 || exit 1
2021.1Spk
2031.1Spk  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
2041.39Smycroft    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2051.39Smycroft    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
2061.49Sjdc    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
2071.1Spk    PATH=/empty FPATH=/empty; export PATH FPATH
2081.1Spk    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
2091.1Spk      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
2101.47Sperry  if (eval "$as_required") 2>/dev/null; then :
2111.57Sdsl  as_have_required=yes
2121.1Spkelse
2131.1Spk  as_have_required=no
2141.1Spkfi
2151.1Spk  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
2161.1Spk
2171.47Sperryelse
2181.57Sdsl  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191.1Spkas_found=false
2201.1Spkfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2211.1Spkdo
2221.1Spk  IFS=$as_save_IFS
2231.1Spk  test -z "$as_dir" && as_dir=.
2241.47Sperry  as_found=:
2251.57Sdsl  case $as_dir in #(
2261.1Spk	 /*)
2271.1Spk	   for as_base in sh bash ksh sh5; do
2281.1Spk	     # Try only shells that exist, to save several forks.
2291.1Spk	     as_shell=$as_dir/$as_base
2301.1Spk	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2311.1Spk		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2321.1Spk  CONFIG_SHELL=$as_shell as_have_required=yes
2331.33Smartin		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2341.33Smartin  break 2
2351.64Stsutsuifi
2361.64Stsutsuifi
2371.64Stsutsui	   done;;
2381.64Stsutsui       esac
2391.64Stsutsui  as_found=false
2401.64Stsutsuidone
2411.64Stsutsui$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2421.64Stsutsui	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2431.64Stsutsui  CONFIG_SHELL=$SHELL as_have_required=yes
2441.32Smrgfi; }
2451.32SmrgIFS=$as_save_IFS
2461.32Smrg
2471.64Stsutsui
2481.32Smrg      if test "x$CONFIG_SHELL" != x; then :
2491.32Smrg  export CONFIG_SHELL
2501.32Smrg             # We cannot yet assume a decent shell, so we have to provide a
2511.64Stsutsui# neutralization value for shells without unset; and this also
2521.32Smrg# works around shells that cannot unset nonexistent variables.
2531.32Smrg# Preserve -v and -x to the replacement shell.
2541.32SmrgBASH_ENV=/dev/null
2551.64StsutsuiENV=/dev/null
2561.32Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2571.64Stsutsuicase $- in # ((((
2581.57Sdsl  *v*x* | *x*v* ) as_opts=-vx ;;
2591.32Smrg  *v* ) as_opts=-v ;;
2601.64Stsutsui  *x* ) as_opts=-x ;;
2611.32Smrg  * ) as_opts= ;;
2621.32Smrgesac
2631.64Stsutsuiexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
2641.57Sdsl# Admittedly, this is quite paranoid, since all the known shells bail
2651.32Smrg# out after a failed `exec'.
2661.64Stsutsui$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
2671.32Smrgexit 255
2681.32Smrgfi
2691.64Stsutsui
2701.57Sdsl    if test x$as_have_required = xno; then :
2711.32Smrg  $as_echo "$0: This script requires a shell more modern than all"
2721.64Stsutsui  $as_echo "$0: the shells that I found on your system."
2731.32Smrg  if test x${ZSH_VERSION+set} = xset ; then
2741.32Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2751.32Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2761.64Stsutsui  else
2771.32Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2781.64Stsutsui$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
2791.32Smrg$0: about your system, including any error possibly output
2801.32Smrg$0: before this message. Then install a modern shell, or
2811.32Smrg$0: manually run the script under such a shell if you do
2821.64Stsutsui$0: have one."
2831.32Smrg  fi
2841.64Stsutsui  exit 1
2851.32Smrgfi
2861.32Smrgfi
2871.32Smrgfi
2881.64StsutsuiSHELL=${CONFIG_SHELL-/bin/sh}
2891.32Smrgexport SHELL
2901.64Stsutsui# Unset more variables known to interfere with behavior of common tools.
2911.32SmrgCLICOLOR_FORCE= GREP_OPTIONS=
2921.33Smartinunset CLICOLOR_FORCE GREP_OPTIONS
2931.1Spk
2941.1Spk## --------------------- ##
2951.57Sdsl## M4sh Shell Functions. ##
2961.1Spk## --------------------- ##
2971.4Spk# as_fn_unset VAR
2981.3Spk# ---------------
2991.3Spk# Portably unset VAR.
3001.30Sthorpejas_fn_unset ()
3011.1Spk{
3021.1Spk  { eval $1=; unset $1;}
3031.1Spk}
3041.1Spkas_unset=as_fn_unset
3051.61Scegger
3061.1Spk# as_fn_set_status STATUS
3071.1Spk# -----------------------
3081.1Spk# Set $? to STATUS, without forking.
3091.2Spkas_fn_set_status ()
3101.1Spk{
3111.1Spk  return $1
3121.1Spk} # as_fn_set_status
3131.1Spk
3141.1Spk# as_fn_exit STATUS
3151.1Spk# -----------------
3161.61Scegger# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3171.1Spkas_fn_exit ()
3181.1Spk{
3191.63Stsutsui  set +e
3201.32Smrg  as_fn_set_status $1
3211.53Smartin  exit $1
3221.1Spk} # as_fn_exit
3231.1Spk
3241.65Smrg# as_fn_mkdir_p
3251.65Smrg# -------------
3261.1Spk# Create "$as_dir" as a directory, including parents if necessary.
3271.37Smartinas_fn_mkdir_p ()
3281.37Smartin{
3291.37Smartin
3301.38Spk  case $as_dir in #(
3311.38Spk  -*) as_dir=./$as_dir;;
3321.54Scegger  esac
3331.38Spk  test -d "$as_dir" || eval $as_mkdir_p || {
3341.38Spk    as_dirs=
3351.32Smrg    while :; do
3361.32Smrg      case $as_dir in #(
3371.32Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3381.32Smrg      *) as_qdir=$as_dir;;
3391.32Smrg      esac
3401.32Smrg      as_dirs="'$as_qdir' $as_dirs"
3411.38Spk      as_dir=`$as_dirname -- "$as_dir" ||
3421.1Spk$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3431.53Smartin	 X"$as_dir" : 'X\(//\)[^/]' \| \
3441.53Smartin	 X"$as_dir" : 'X\(//\)$' \| \
3451.53Smartin	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3461.53Smartin$as_echo X"$as_dir" |
3471.53Smartin    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3481.73Sandvar	    s//\1/
3491.53Smartin	    q
3501.53Smartin	  }
3511.53Smartin	  /^X\(\/\/\)[^/].*/{
3521.53Smartin	    s//\1/
3531.53Smartin	    q
3541.53Smartin	  }
3551.53Smartin	  /^X\(\/\/\)$/{
3561.53Smartin	    s//\1/
3571.53Smartin	    q
3581.53Smartin	  }
3591.53Smartin	  /^X\(\/\).*/{
3601.53Smartin	    s//\1/
3611.53Smartin	    q
3621.53Smartin	  }
3631.53Smartin	  s/.*/./; q'`
3641.53Smartin      test -d "$as_dir" && break
3651.53Smartin    done
3661.53Smartin    test -z "$as_dirs" || eval "mkdir $as_dirs"
3671.53Smartin  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3681.53Smartin
3691.53Smartin
3701.53Smartin} # as_fn_mkdir_p
3711.53Smartin
3721.53Smartin# as_fn_executable_p FILE
3731.53Smartin# -----------------------
3741.53Smartin# Test if FILE is an executable regular file.
3751.53Smartinas_fn_executable_p ()
3761.53Smartin{
3771.53Smartin  test -f "$1" && test -x "$1"
3781.53Smartin} # as_fn_executable_p
3791.53Smartin# as_fn_append VAR VALUE
3801.53Smartin# ----------------------
3811.53Smartin# Append the text in VALUE to the end of the definition contained in VAR. Take
3821.53Smartin# advantage of any shell optimizations that allow amortized linear growth over
3831.1Spk# repeated appends, instead of the typical quadratic growth present in naive
3841.1Spk# implementations.
3851.33Smartinif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3861.33Smartin  eval 'as_fn_append ()
3871.33Smartin  {
3881.33Smartin    eval $1+=\$2
3891.33Smartin  }'
3901.33Smartinelse
3911.28Smartin  as_fn_append ()
3921.28Smartin  {
3931.1Spk    eval $1=\$$1\$2
3941.9Spk  }
3951.1Spkfi # as_fn_append
3961.54Scegger
3971.1Spk# as_fn_arith ARG...
3981.1Spk# ------------------
3991.1Spk# Perform arithmetic evaluation on the ARGs, and store the result in the
4001.1Spk# global $as_val. Take advantage of shells that can avoid forks. The arguments
4011.1Spk# must be portable across $(()) and expr.
4021.54Sceggerif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4031.1Spk  eval 'as_fn_arith ()
4041.1Spk  {
4051.1Spk    as_val=$(( $* ))
4061.9Spk  }'
4071.1Spkelse
4081.1Spk  as_fn_arith ()
4091.10Spk  {
4101.1Spk    as_val=`expr "$@" || test $? -eq 1`
4111.1Spk  }
4121.1Spkfi # as_fn_arith
4131.1Spk
4141.1Spk
4151.1Spk# as_fn_error STATUS ERROR [LINENO LOG_FD]
4161.1Spk# ----------------------------------------
4171.10Spk# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4181.9Spk# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4191.9Spk# script with STATUS, using 1 if that was 0.
4201.9Spkas_fn_error ()
4211.9Spk{
4221.1Spk  as_status=$1; test $as_status -eq 0 && as_status=1
4231.24Smartin  if test "$4"; then
4241.24Smartin    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4251.24Smartin    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4261.21Seeh  fi
4271.54Scegger  $as_echo "$as_me: error: $2" >&2
4281.1Spk  as_fn_exit $as_status
4291.43Sperry} # as_fn_error
4301.10Spk
4311.10Spkif expr a : '\(a\)' >/dev/null 2>&1 &&
4321.10Spk   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4331.10Spk  as_expr=expr
4341.10Spkelse
4351.10Spk  as_expr=false
4361.10Spkfi
4371.10Spk
4381.10Spkif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4391.10Spk  as_basename=basename
4401.10Spkelse
4411.10Spk  as_basename=false
4421.10Spkfi
4431.10Spk
4441.1Spkif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4451.1Spk  as_dirname=dirname
4461.28Smartinelse
4471.28Smartin  as_dirname=false
4481.28Smartinfi
4491.28Smartin
4501.53Smartinas_me=`$as_basename -- "$0" ||
4511.7Spk$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4521.1Spk	 X"$0" : 'X\(//\)$' \| \
4531.1Spk	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4541.1Spk$as_echo X/"$0" |
4551.1Spk    sed '/^.*\/\([^/][^/]*\)\/*$/{
4561.1Spk	    s//\1/
4571.1Spk	    q
4581.1Spk	  }
4591.1Spk	  /^X\/\(\/\/\)$/{
4601.1Spk	    s//\1/
4611.1Spk	    q
4621.1Spk	  }
4631.1Spk	  /^X\/\(\/\).*/{
4641.1Spk	    s//\1/
4651.6Spk	    q
4661.18Smartin	  }
4671.18Smartin	  s/.*/./; q'`
4681.6Spk
4691.16Smartin# Avoid depending upon Character Ranges.
4701.1Spkas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4711.50Sadas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4721.50Sadas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4731.50Sadas_cr_digits='0123456789'
4741.50Sadas_cr_alnum=$as_cr_Letters$as_cr_digits
4751.50Sad
4761.50Sad
4771.54Scegger  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4781.54Scegger  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4791.50Sad  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4801.1Spk  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4811.1Spk  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4821.1Spk  sed -n '
4831.57Sdsl    p
4841.1Spk    /[$]LINENO/=
4851.1Spk  ' <$as_myself |
4861.1Spk    sed '
4871.1Spk      s/[$]LINENO.*/&-/
4881.31Smartin      t lineno
4891.31Smartin      b
4901.31Smartin      :lineno
4911.53Smartin      N
4921.31Smartin      :loop
4931.31Smartin      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4941.31Smartin      t loop
4951.53Smartin      s/-\n.*//
4961.31Smartin    ' >$as_me.lineno &&
4971.15Smartin  chmod +x "$as_me.lineno" ||
4981.16Smartin    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
4991.16Smartin
5001.16Smartin  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
5011.1Spk  # already done that, so ensure we don't try to do so again and fall
5021.1Spk  # in an infinite loop.  This has already happened in practice.
5031.9Spk  _as_can_reexec=no; export _as_can_reexec
5041.1Spk  # Don't try to exec as it changes $[0], causing all sort of problems
5051.1Spk  # (the dirname of $[0] is not the place where we might find the
5061.1Spk  # original and so on.  Autoconf is especially sensitive to this).
5071.71Sthorpej  . "./$as_me.lineno"
5081.1Spk  # Exit status is that of the last command.
5091.1Spk  exit
5101.1Spk}
5111.1Spk
5121.1SpkECHO_C= ECHO_N= ECHO_T=
5131.1Spkcase `echo -n x` in #(((((
5141.1Spk-n*)
5151.1Spk  case `echo 'xy\c'` in
5161.1Spk  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5171.16Smartin  xy)  ECHO_C='\c';;
5181.16Smartin  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5191.16Smartin       ECHO_T='	';;
5201.16Smartin  esac;;
5211.16Smartin*)
5221.16Smartin  ECHO_N='-n';;
5231.16Smartinesac
5241.16Smartin
5251.16Smartinrm -f conf$$ conf$$.exe conf$$.file
5261.1Spkif test -d conf$$.dir; then
5271.28Smartin  rm -f conf$$.dir/conf$$.file
5281.28Smartinelse
5291.1Spk  rm -f conf$$.dir
5301.28Smartin  mkdir conf$$.dir 2>/dev/null
5311.28Smartinfi
5321.28Smartinif (echo >conf$$.file) 2>/dev/null; then
5331.1Spk  if ln -s conf$$.file conf$$ 2>/dev/null; then
5341.1Spk    as_ln_s='ln -s'
5351.35Smartin    # ... but there are two gotchas:
5361.1Spk    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5371.35Smartin    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5381.35Smartin    # In both cases, we have to default to `cp -pR'.
5391.1Spk    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5401.1Spk      as_ln_s='cp -pR'
5411.1Spk  elif ln conf$$.file conf$$ 2>/dev/null; then
5421.1Spk    as_ln_s=ln
5431.1Spk  else
5441.1Spk    as_ln_s='cp -pR'
5451.1Spk  fi
5461.1Spkelse
5471.1Spk  as_ln_s='cp -pR'
5481.1Spkfi
5491.1Spkrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5501.57Sdslrmdir conf$$.dir 2>/dev/null
5511.1Spk
5521.1Spkif mkdir -p . 2>/dev/null; then
5531.1Spk  as_mkdir_p='mkdir -p "$as_dir"'
5541.1Spkelse
5551.1Spk  test -d ./-p && rmdir ./-p
5561.1Spk  as_mkdir_p=false
5571.1Spkfi
5581.1Spk
5591.1Spkas_test_x='test -x'
5601.1Spkas_executable_p=as_fn_executable_p
5611.1Spk
5621.1Spk# Sed expression to map a string onto a valid CPP name.
5631.45Smartinas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5641.1Spk
5651.1Spk# Sed expression to map a string onto a valid variable name.
5661.23Slukemas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5671.1Spk
5681.1SpkSHELL=${CONFIG_SHELL-/bin/sh}
5691.1Spk
5701.1Spk
5711.1Spktest -n "$DJDIR" || exec 7<&0 </dev/null
5721.1Spkexec 6>&1
5731.1Spk
5741.1Spk# Name of the host.
5751.1Spk# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5761.1Spk# so uname gets run too.
5771.1Spkac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5781.1Spk
5791.1Spk#
5801.1Spk# Initializations.
5811.1Spk#
5821.1Spkac_default_prefix=/usr/local
5831.1Spkac_clean_files=
5841.1Spkac_config_libobj_dir=.
5851.1SpkLIBOBJS=
5861.1Spkcross_compiling=no
5871.1Spksubdirs=
5881.1SpkMFLAGS=
5891.1SpkMAKEFLAGS=
5901.1Spk
5911.58Sdsl# Identity of this package.
5921.1SpkPACKAGE_NAME='xf86-video-intel'
5931.1SpkPACKAGE_TARNAME='xf86-video-intel'
5941.1SpkPACKAGE_VERSION='2.99.916'
5951.1SpkPACKAGE_STRING='xf86-video-intel 2.99.916'
5961.1SpkPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
5971.1SpkPACKAGE_URL=''
5981.1Spk
5991.1Spkac_unique_file="Makefile.am"
6001.1Spk# Factoring default headers for most tests.
6011.1Spkac_includes_default="\
6021.1Spk#include <stdio.h>
6031.1Spk#ifdef HAVE_SYS_TYPES_H
6041.1Spk# include <sys/types.h>
6051.1Spk#endif
6061.1Spk#ifdef HAVE_SYS_STAT_H
6071.1Spk# include <sys/stat.h>
6081.53Smartin#endif
6091.31Smartin#ifdef STDC_HEADERS
6101.31Smartin# include <stdlib.h>
6111.31Smartin# include <stddef.h>
6121.31Smartin#else
6131.57Sdsl# ifdef HAVE_STDLIB_H
6141.31Smartin#  include <stdlib.h>
6151.31Smartin# endif
6161.31Smartin#endif
6171.31Smartin#ifdef HAVE_STRING_H
6181.31Smartin# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6191.31Smartin#  include <memory.h>
6201.31Smartin# endif
6211.31Smartin# include <string.h>
6221.31Smartin#endif
6231.31Smartin#ifdef HAVE_STRINGS_H
6241.31Smartin# include <strings.h>
6251.31Smartin#endif
6261.53Smartin#ifdef HAVE_INTTYPES_H
6271.31Smartin# include <inttypes.h>
6281.1Spk#endif
6291.57Sdsl#ifdef HAVE_STDINT_H
6301.1Spk# include <stdint.h>
6311.1Spk#endif
6321.53Smartin#ifdef HAVE_UNISTD_H
6331.53Smartin# include <unistd.h>
6341.53Smartin#endif"
6351.69Smartin
6361.31Smartinac_config_libobj_dir=libobj
6371.31Smartinac_subst_vars='am__EXEEXT_FALSE
6381.53Smartinam__EXEEXT_TRUE
6391.31SmartinLTLIBOBJS
6401.31SmartinLIBEXEC_PATH
6411.53SmartinPREFIX_PATH
6421.1Spkmoduledir
6431.1SpkDRIVER_NAME
6441.1SpkLIBOBJS
6451.1SpkVALGRIND_FALSE
6461.1SpkVALGRIND_TRUE
6471.1SpkVALGRIND_LIBS
6481.28SmartinVALGRIND_CFLAGS
6491.1SpkFULL_DEBUG_FALSE
6501.1SpkFULL_DEBUG_TRUE
6511.31SmartinDEBUG_FALSE
6521.28SmartinDEBUG_TRUE
6531.1SpkCLOCK_GETTIME_LIBS
6541.31SmartinUSE_ASYNC_SWAP_FALSE
6551.35SmartinUSE_ASYNC_SWAP_TRUE
6561.1SpkUSE_CREATE2_FALSE
6571.1SpkUSE_CREATE2_TRUE
6581.1SpkUSE_RENDERNODE_FALSE
6591.1SpkUSE_RENDERNODE_TRUE
6601.56SchristosXVMC_FALSE
6611.1SpkXVMC_TRUE
6621.1SpkXVMCLIB_LIBS
6631.1SpkXVMCLIB_CFLAGS
6641.1SpkSNA_FALSE
6651.1SpkSNA_TRUE
6661.1SpkGLAMOR_FALSE
6671.1SpkGLAMOR_TRUE
6681.1SpkUXA_FALSE
6691.18SmartinUXA_TRUE
6701.18SmartinPRESENT_FALSE
6711.1SpkPRESENT_TRUE
6721.1SpkPRESENT_LIBS
6731.1SpkPRESENT_CFLAGS
6741.1SpkDRI3_FALSE
6751.1SpkDRI3_TRUE
6761.1SpkDRI2_FALSE
6771.1SpkDRI2_TRUE
6781.1SpkDRI3_LIBS
6791.1SpkDRI3_CFLAGS
6801.1SpkDRI_DRIVER_PATH
6811.1SpkDRI2_LIBS
6821.1SpkDRI2_CFLAGS
6831.1SpkDRI1_FALSE
6841.1SpkDRI1_TRUE
6851.43SperryDRI1_LIBS
6861.28SmartinDRI1_CFLAGS
6871.28SmartinUMS_FALSE
6881.28SmartinUMS_TRUE
6891.28SmartinKMS_FALSE
6901.28SmartinKMS_TRUE
6911.28SmartinXAA_FALSE
6921.28SmartinXAA_TRUE
6931.28SmartinDGA_FALSE
6941.28SmartinDGA_TRUE
6951.28SmartinXORG_LIBS
6961.28SmartinXORG_CFLAGS
6971.31SmartinLIBGLAMOR_EGL_LIBS
6981.53SmartinLIBGLAMOR_EGL_CFLAGS
6991.31SmartinLIBGLAMOR_LIBS
7001.43SperryLIBGLAMOR_CFLAGS
7011.31SmartinDRMINTEL_LIBS
7021.31SmartinDRMINTEL_CFLAGS
7031.31SmartinPCIACCESS_LIBS
7041.53SmartinPCIACCESS_CFLAGS
7051.31SmartinDRM_LIBS
7061.31SmartinDRM_CFLAGS
7071.31SmartinBUILD_TOOLS_FALSE
7081.31SmartinBUILD_TOOLS_TRUE
7091.31SmartinIVO_LIBS
7101.53SmartinIVO_CFLAGS
7111.53SmartinIVO_EXTRA_LIBS
7121.53SmartinIVO_EXTRA_CFLAGS
7131.28SmartinX11_SHM_FALSE
7141.1SpkX11_SHM_TRUE
7151.18SmartinX11_DRI3_FALSE
7161.1SpkX11_DRI3_TRUE
7171.18SmartinX11_DRI3_LIBS
7181.15SmartinX11_DRI3_CFLAGS
7191.1SpkHAVE_X11_FALSE
7201.1SpkHAVE_X11_TRUE
7211.1SpkX11_LIBS
7221.18SmartinX11_CFLAGS
7231.15SmartinUDEV_LIBS
7241.1SpkUDEV_CFLAGS
7251.1SpkHAVE_GEN4ASM_FALSE
7261.36SmartinHAVE_GEN4ASM_TRUE
7271.36SmartinINTEL_GEN4ASM
7281.36SmartinGEN4ASM_LIBS
7291.36SmartinGEN4ASM_CFLAGS
7301.36SmartinHAVE_DOT_GIT_FALSE
7311.1SpkHAVE_DOT_GIT_TRUE
7321.18SmartinBUILD_BACKLIGHT_HELPER_FALSE
7331.15SmartinBUILD_BACKLIGHT_HELPER_TRUE
7341.1SpkOTOOL64
7351.1SpkOTOOL
7361.1SpkLIPO
7371.18SmartinNMEDIT
7381.15SmartinDSYMUTIL
7391.1SpkMANIFEST_TOOL
7401.1SpkRANLIB
7411.1Spkac_ct_AR
7421.18SmartinAR
7431.15SmartinDLLTOOL
7441.1SpkOBJDUMP
7451.18SmartinLN_S
7461.35SmartinNM
7471.35Smartinac_ct_DUMPBIN
7481.35SmartinDUMPBIN
7491.1SpkLD
7501.53SmartinFGREP
7511.31SmartinLIBTOOL
7521.53SmartinNOWARNFLAGS
7531.1SpkMAN_SUBSTS
7541.1SpkXORG_MAN_PAGE
7551.1SpkADMIN_MAN_DIR
7561.1SpkDRIVER_MAN_DIR
7571.16SmartinMISC_MAN_DIR
7581.16SmartinFILE_MAN_DIR
7591.16SmartinLIB_MAN_DIR
7601.16SmartinAPP_MAN_DIR
7611.15SmartinADMIN_MAN_SUFFIX
7621.44SjdcDRIVER_MAN_SUFFIX
7631.1SpkMISC_MAN_SUFFIX
7641.16SmartinFILE_MAN_SUFFIX
7651.16SmartinLIB_MAN_SUFFIX
7661.16SmartinAPP_MAN_SUFFIX
7671.16SmartinSED
7681.16Smartinhost_os
7691.16Smartinhost_vendor
7701.16Smartinhost_cpu
7711.16Smartinhost
7721.16Smartinbuild_os
7731.16Smartinbuild_vendor
7741.16Smartinbuild_cpu
7751.16Smartinbuild
7761.16SmartinINSTALL_CMD
7771.16SmartinPKG_CONFIG_LIBDIR
7781.44SjdcPKG_CONFIG_PATH
7791.16SmartinPKG_CONFIG
7801.15SmartinCHANGELOG_CMD
7811.16SmartinSTRICT_CFLAGS
7821.16SmartinCWARNFLAGS
7831.16SmartinBASE_CFLAGS
7841.44SjdcEGREP
7851.15SmartinGREP
7861.15SmartinCPP
7871.16Smartinam__fastdepCC_FALSE
7881.16Smartinam__fastdepCC_TRUE
7891.16SmartinCCDEPMODE
7901.16Smartinam__nodep
7911.15SmartinAMDEPBACKSLASH
7921.44SjdcAMDEP_FALSE
7931.1SpkAMDEP_TRUE
7941.1Spkam__quote
7951.15Smartinam__include
7961.15SmartinDEPDIR
7971.1SpkOBJEXT
7981.44SjdcEXEEXT
7991.16Smartinac_ct_CC
8001.15SmartinCPPFLAGS
8011.15SmartinLDFLAGS
8021.15SmartinCFLAGS
8031.15SmartinCC
8041.15SmartinAM_BACKSLASH
8051.15SmartinAM_DEFAULT_VERBOSITY
8061.15SmartinAM_DEFAULT_V
8071.15SmartinAM_V
8081.15Smartinam__untar
8091.15Smartinam__tar
8101.15SmartinAMTAR
8111.15Smartinam__leading_dot
8121.15SmartinSET_MAKE
8131.16SmartinAWK
8141.15Smartinmkdir_p
8151.1SpkMKDIR_P
8161.15SmartinINSTALL_STRIP_PROGRAM
8171.57SdslSTRIP
8181.15Smartininstall_sh
8191.15SmartinMAKEINFO
8201.1SpkAUTOHEADER
8211.15SmartinAUTOMAKE
8221.33SmartinAUTOCONF
8231.1SpkACLOCAL
8241.19SmartinVERSION
8251.19SmartinPACKAGE
8261.19SmartinCYGPATH_W
8271.1Spkam__isrc
8281.1SpkINSTALL_DATA
8291.1SpkINSTALL_SCRIPT
8301.1SpkINSTALL_PROGRAM
8311.1Spktarget_alias
8321.57Sdslhost_alias
8331.1Spkbuild_alias
8341.1SpkLIBS
8351.1SpkECHO_T
8361.1SpkECHO_N
8371.57SdslECHO_C
8381.1SpkDEFS
8391.1Spkmandir
8401.15Smartinlocaledir
8411.8Sjodalibdir
8421.33Smartinpsdir
8431.33Smartinpdfdir
8441.34Smartindvidir
8451.64Stsutsuihtmldir
8461.34Smartininfodir
8471.64Stsutsuidocdir
8481.34Smartinoldincludedir
8491.34Smartinincludedir
8501.19Smartinlocalstatedir
8511.19Smartinsharedstatedir
8521.15Smartinsysconfdir
8531.15Smartindatadir
8541.1Spkdatarootdir
8551.1Spklibexecdir
8561.1Spksbindir
8571.1Spkbindir
8581.1Spkprogram_transform_name
8591.57Sdslprefix
8601.1Spkexec_prefix
8611.1SpkPACKAGE_URL
8621.1SpkPACKAGE_BUGREPORT
8631.1SpkPACKAGE_STRING
8641.57SdslPACKAGE_VERSION
8651.1SpkPACKAGE_TARNAME
8661.1SpkPACKAGE_NAME
8671.1SpkPATH_SEPARATOR
8681.33SmartinSHELL'
8691.15Smartinac_subst_files=''
8701.15Smartinac_user_opts='
8711.1Spkenable_option_checking
8721.1Spkenable_silent_rules
8731.1Spkenable_dependency_tracking
8741.57Sdslenable_selective_werror
8751.1Spkenable_strict_compilation
8761.1Spkenable_static
8771.1Spkenable_shared
8781.1Spkwith_pic
8791.57Sdslenable_fast_install
8801.1Spkwith_gnu_ld
8811.1Spkwith_sysroot
8821.1Spkenable_libtool_lock
8831.33Smartinenable_largefile
8841.33Smartinenable_backlight
8851.34Smartinenable_backlight_helper
8861.64Stsutsuiwith_builderstring
8871.34Smartinenable_gen4asm
8881.64Stsutsuiwith_gen4asm
8891.34Smartinenable_udev
8901.34Smartinenable_tools
8911.15Smartinwith_xorg_module_dir
8921.15Smartinenable_dri
8931.1Spkenable_dri1
8941.1Spkenable_dri2
8951.1Spkenable_dri3
8961.57Sdslenable_xvmc
8971.1Spkenable_kms
8981.1Spkenable_ums
8991.1Spkenable_kms_only
9001.1Spkenable_ums_only
9011.57Sdslenable_sna
9021.1Spkenable_uxa
9031.1Spkenable_glamor
9041.18Smartinenable_xaa
9051.1Spkenable_dga
9061.1Spkwith_default_accel
9071.1Spkenable_tear_free
9081.1Spkenable_rendernode
9091.18Smartinenable_create2
9101.1Spkenable_async_swap
9111.1Spkenable_debug
9121.1Spkenable_valgrind
9131.1Spk'
9141.1Spk      ac_precious_vars='build_alias
9151.46Smartinhost_alias
9161.1Spktarget_alias
9171.1SpkCC
9181.18SmartinCFLAGS
9191.1SpkLDFLAGS
9201.1SpkLIBS
9211.1SpkCPPFLAGS
9221.1SpkCPP
9231.1SpkPKG_CONFIG
9241.1SpkPKG_CONFIG_PATH
9251.46SmartinPKG_CONFIG_LIBDIR
9261.1SpkGEN4ASM_CFLAGS
9271.18SmartinGEN4ASM_LIBS
9281.1SpkUDEV_CFLAGS
9291.1SpkUDEV_LIBS
9301.1SpkX11_CFLAGS
9311.1SpkX11_LIBS
9321.1SpkX11_DRI3_CFLAGS
9331.1SpkX11_DRI3_LIBS
9341.1SpkIVO_EXTRA_CFLAGS
9351.40SmycroftIVO_EXTRA_LIBS
9361.1SpkIVO_CFLAGS
9371.40SmycroftIVO_LIBS
9381.40SmycroftDRM_CFLAGS
9391.1SpkDRM_LIBS
9401.1SpkPCIACCESS_CFLAGS
9411.1SpkPCIACCESS_LIBS
9421.1SpkDRMINTEL_CFLAGS
9431.46SmartinDRMINTEL_LIBS
9441.1SpkLIBGLAMOR_CFLAGS
9451.1SpkLIBGLAMOR_LIBS
9461.1SpkLIBGLAMOR_EGL_CFLAGS
9471.1SpkLIBGLAMOR_EGL_LIBS
9481.1SpkXORG_CFLAGS
9491.1SpkXORG_LIBS
9501.1SpkDRI1_CFLAGS
9511.1SpkDRI1_LIBS
9521.1SpkDRI2_CFLAGS
9531.1SpkDRI2_LIBS
9541.56SchristosDRI3_CFLAGS
9551.56SchristosDRI3_LIBS
9561.56SchristosPRESENT_CFLAGS
9571.1SpkPRESENT_LIBS
9581.1SpkXVMCLIB_CFLAGS
9591.1SpkXVMCLIB_LIBS
9601.1SpkVALGRIND_CFLAGS
9611.39SmycroftVALGRIND_LIBS'
9621.1Spk
9631.39Smycroft
9641.57Sdsl# Initialize some variables set by options.
9651.39Smycroftac_init_help=
9661.39Smycroftac_init_version=false
9671.39Smycroftac_unrecognized_opts=
9681.1Spkac_unrecognized_sep=
9691.1Spk# The variables have the same names as the options, with
9701.18Smartin# dashes changed to underlines.
9711.18Smartincache_file=/dev/null
9721.1Spkexec_prefix=NONE
9731.39Smycroftno_create=
9741.41Smycroftno_recursion=
9751.41Smycroftprefix=NONE
9761.39Smycroftprogram_prefix=NONE
9771.18Smartinprogram_suffix=NONE
9781.28Smartinprogram_transform_name=s,x,x,
9791.28Smartinsilent=
9801.28Smartinsite=
9811.53Smartinsrcdir=
9821.31Smartinverbose=
9831.31Smartinx_includes=NONE
9841.53Smartinx_libraries=NONE
9851.72Sandvar
9861.18Smartin# Installation directory options.
9871.18Smartin# These are left unexpanded so users can "make install exec_prefix=/foo"
9881.53Smartin# and all the variables that are supposed to be based on exec_prefix
9891.35Smartin# by default will actually change.
9901.53Smartin# Use braces instead of parens because sh, perl, etc. also accept them.
9911.72Sandvar# (The list follows the same order as the GNU Coding Standards.)
9921.72Sandvarbindir='${exec_prefix}/bin'
9931.18Smartinsbindir='${exec_prefix}/sbin'
9941.1Spklibexecdir='${exec_prefix}/libexec'
9951.1Spkdatarootdir='${prefix}/share'
9961.1Spkdatadir='${datarootdir}'
9971.1Spksysconfdir='${prefix}/etc'
9981.57Sdslsharedstatedir='${prefix}/com'
9991.1Spklocalstatedir='${prefix}/var'
10001.1Spkincludedir='${prefix}/include'
10011.1Spkoldincludedir='/usr/include'
10021.1Spkdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
10031.1Spkinfodir='${datarootdir}/info'
10041.1Spkhtmldir='${docdir}'
10051.1Spkdvidir='${docdir}'
10061.1Spkpdfdir='${docdir}'
10071.40Smycroftpsdir='${docdir}'
10081.40Smycroftlibdir='${exec_prefix}/lib'
10091.1Spklocaledir='${datarootdir}/locale'
10101.1Spkmandir='${datarootdir}/man'
10111.1Spk
10121.18Smartinac_prev=
10131.1Spkac_dashdash=
10141.1Spkfor ac_option
10151.1Spkdo
10161.1Spk  # If the previous option needs an argument, assign it.
10171.46Smartin  if test -n "$ac_prev"; then
10181.1Spk    eval $ac_prev=\$ac_option
10191.1Spk    ac_prev=
10201.1Spk    continue
10211.59Sdsl  fi
10221.1Spk
10231.1Spk  case $ac_option in
10241.1Spk  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
10251.31Smartin  *=)   ac_optarg= ;;
10261.31Smartin  *)    ac_optarg=yes ;;
10271.31Smartin  esac
10281.1Spk
10291.1Spk  # Accept the important Cygnus configure options, so we can diagnose typos.
10301.53Smartin
10311.53Smartin  case $ac_dashdash$ac_option in
10321.53Smartin  --)
10331.53Smartin    ac_dashdash=yes ;;
10341.53Smartin
10351.53Smartin  -bindir | --bindir | --bindi | --bind | --bin | --bi)
10361.53Smartin    ac_prev=bindir ;;
10371.1Spk  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
10381.1Spk    bindir=$ac_optarg ;;
10391.1Spk
10401.57Sdsl  -build | --build | --buil | --bui | --bu)
10411.1Spk    ac_prev=build_alias ;;
10421.1Spk  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
10431.1Spk    build_alias=$ac_optarg ;;
10441.1Spk
10451.1Spk  -cache-file | --cache-file | --cache-fil | --cache-fi \
10461.53Smartin  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10471.31Smartin    ac_prev=cache_file ;;
10481.53Smartin  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10491.31Smartin  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
10501.31Smartin    cache_file=$ac_optarg ;;
10511.53Smartin
10521.1Spk  --config-cache | -C)
10531.1Spk    cache_file=config.cache ;;
10541.1Spk
10551.1Spk  -datadir | --datadir | --datadi | --datad)
10561.1Spk    ac_prev=datadir ;;
10571.1Spk  -datadir=* | --datadir=* | --datadi=* | --datad=*)
10581.1Spk    datadir=$ac_optarg ;;
10591.57Sdsl
10601.1Spk  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
10611.46Smartin  | --dataroo | --dataro | --datar)
10621.1Spk    ac_prev=datarootdir ;;
10631.1Spk  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
10641.1Spk  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
10651.1Spk    datarootdir=$ac_optarg ;;
10661.1Spk
10671.1Spk  -disable-* | --disable-*)
10681.1Spk    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10691.1Spk    # Reject names that are not valid shell variable names.
10701.1Spk    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10711.1Spk      as_fn_error $? "invalid feature name: $ac_useropt"
10721.46Smartin    ac_useropt_orig=$ac_useropt
10731.1Spk    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10741.6Spk    case $ac_user_opts in
10751.6Spk      *"
10761.6Spk"enable_$ac_useropt"
10771.57Sdsl"*) ;;
10781.6Spk      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
10791.6Spk	 ac_unrecognized_sep=', ';;
10801.6Spk    esac
10811.6Spk    eval enable_$ac_useropt=no ;;
10821.6Spk
10831.6Spk  -docdir | --docdir | --docdi | --doc | --do)
10841.56Schristos    ac_prev=docdir ;;
10851.56Schristos  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
10861.6Spk    docdir=$ac_optarg ;;
10871.6Spk
10881.56Schristos  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
10891.56Schristos    ac_prev=dvidir ;;
10901.6Spk  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
10911.6Spk    dvidir=$ac_optarg ;;
10921.56Schristos
10931.56Schristos  -enable-* | --enable-*)
10941.6Spk    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10951.6Spk    # Reject names that are not valid shell variable names.
10961.56Schristos    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10971.56Schristos      as_fn_error $? "invalid feature name: $ac_useropt"
10981.6Spk    ac_useropt_orig=$ac_useropt
10991.6Spk    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11001.6Spk    case $ac_user_opts in
1101      *"
1102"enable_$ac_useropt"
1103"*) ;;
1104      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1105	 ac_unrecognized_sep=', ';;
1106    esac
1107    eval enable_$ac_useropt=\$ac_optarg ;;
1108
1109  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1110  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1111  | --exec | --exe | --ex)
1112    ac_prev=exec_prefix ;;
1113  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1114  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1115  | --exec=* | --exe=* | --ex=*)
1116    exec_prefix=$ac_optarg ;;
1117
1118  -gas | --gas | --ga | --g)
1119    # Obsolete; use --with-gas.
1120    with_gas=yes ;;
1121
1122  -help | --help | --hel | --he | -h)
1123    ac_init_help=long ;;
1124  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1125    ac_init_help=recursive ;;
1126  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1127    ac_init_help=short ;;
1128
1129  -host | --host | --hos | --ho)
1130    ac_prev=host_alias ;;
1131  -host=* | --host=* | --hos=* | --ho=*)
1132    host_alias=$ac_optarg ;;
1133
1134  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135    ac_prev=htmldir ;;
1136  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137  | --ht=*)
1138    htmldir=$ac_optarg ;;
1139
1140  -includedir | --includedir | --includedi | --included | --include \
1141  | --includ | --inclu | --incl | --inc)
1142    ac_prev=includedir ;;
1143  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1144  | --includ=* | --inclu=* | --incl=* | --inc=*)
1145    includedir=$ac_optarg ;;
1146
1147  -infodir | --infodir | --infodi | --infod | --info | --inf)
1148    ac_prev=infodir ;;
1149  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1150    infodir=$ac_optarg ;;
1151
1152  -libdir | --libdir | --libdi | --libd)
1153    ac_prev=libdir ;;
1154  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1155    libdir=$ac_optarg ;;
1156
1157  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1158  | --libexe | --libex | --libe)
1159    ac_prev=libexecdir ;;
1160  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1161  | --libexe=* | --libex=* | --libe=*)
1162    libexecdir=$ac_optarg ;;
1163
1164  -localedir | --localedir | --localedi | --localed | --locale)
1165    ac_prev=localedir ;;
1166  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1167    localedir=$ac_optarg ;;
1168
1169  -localstatedir | --localstatedir | --localstatedi | --localstated \
1170  | --localstate | --localstat | --localsta | --localst | --locals)
1171    ac_prev=localstatedir ;;
1172  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1173  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1174    localstatedir=$ac_optarg ;;
1175
1176  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177    ac_prev=mandir ;;
1178  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1179    mandir=$ac_optarg ;;
1180
1181  -nfp | --nfp | --nf)
1182    # Obsolete; use --without-fp.
1183    with_fp=no ;;
1184
1185  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1186  | --no-cr | --no-c | -n)
1187    no_create=yes ;;
1188
1189  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1190  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191    no_recursion=yes ;;
1192
1193  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1194  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1195  | --oldin | --oldi | --old | --ol | --o)
1196    ac_prev=oldincludedir ;;
1197  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1198  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1199  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1200    oldincludedir=$ac_optarg ;;
1201
1202  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203    ac_prev=prefix ;;
1204  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1205    prefix=$ac_optarg ;;
1206
1207  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1208  | --program-pre | --program-pr | --program-p)
1209    ac_prev=program_prefix ;;
1210  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1211  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1212    program_prefix=$ac_optarg ;;
1213
1214  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1215  | --program-suf | --program-su | --program-s)
1216    ac_prev=program_suffix ;;
1217  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1218  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1219    program_suffix=$ac_optarg ;;
1220
1221  -program-transform-name | --program-transform-name \
1222  | --program-transform-nam | --program-transform-na \
1223  | --program-transform-n | --program-transform- \
1224  | --program-transform | --program-transfor \
1225  | --program-transfo | --program-transf \
1226  | --program-trans | --program-tran \
1227  | --progr-tra | --program-tr | --program-t)
1228    ac_prev=program_transform_name ;;
1229  -program-transform-name=* | --program-transform-name=* \
1230  | --program-transform-nam=* | --program-transform-na=* \
1231  | --program-transform-n=* | --program-transform-=* \
1232  | --program-transform=* | --program-transfor=* \
1233  | --program-transfo=* | --program-transf=* \
1234  | --program-trans=* | --program-tran=* \
1235  | --progr-tra=* | --program-tr=* | --program-t=*)
1236    program_transform_name=$ac_optarg ;;
1237
1238  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239    ac_prev=pdfdir ;;
1240  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1241    pdfdir=$ac_optarg ;;
1242
1243  -psdir | --psdir | --psdi | --psd | --ps)
1244    ac_prev=psdir ;;
1245  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246    psdir=$ac_optarg ;;
1247
1248  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249  | -silent | --silent | --silen | --sile | --sil)
1250    silent=yes ;;
1251
1252  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1253    ac_prev=sbindir ;;
1254  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1255  | --sbi=* | --sb=*)
1256    sbindir=$ac_optarg ;;
1257
1258  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1259  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1260  | --sharedst | --shareds | --shared | --share | --shar \
1261  | --sha | --sh)
1262    ac_prev=sharedstatedir ;;
1263  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1264  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1265  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1266  | --sha=* | --sh=*)
1267    sharedstatedir=$ac_optarg ;;
1268
1269  -site | --site | --sit)
1270    ac_prev=site ;;
1271  -site=* | --site=* | --sit=*)
1272    site=$ac_optarg ;;
1273
1274  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1275    ac_prev=srcdir ;;
1276  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1277    srcdir=$ac_optarg ;;
1278
1279  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1280  | --syscon | --sysco | --sysc | --sys | --sy)
1281    ac_prev=sysconfdir ;;
1282  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1283  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1284    sysconfdir=$ac_optarg ;;
1285
1286  -target | --target | --targe | --targ | --tar | --ta | --t)
1287    ac_prev=target_alias ;;
1288  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1289    target_alias=$ac_optarg ;;
1290
1291  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292    verbose=yes ;;
1293
1294  -version | --version | --versio | --versi | --vers | -V)
1295    ac_init_version=: ;;
1296
1297  -with-* | --with-*)
1298    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1299    # Reject names that are not valid shell variable names.
1300    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301      as_fn_error $? "invalid package name: $ac_useropt"
1302    ac_useropt_orig=$ac_useropt
1303    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304    case $ac_user_opts in
1305      *"
1306"with_$ac_useropt"
1307"*) ;;
1308      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309	 ac_unrecognized_sep=', ';;
1310    esac
1311    eval with_$ac_useropt=\$ac_optarg ;;
1312
1313  -without-* | --without-*)
1314    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315    # Reject names that are not valid shell variable names.
1316    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317      as_fn_error $? "invalid package name: $ac_useropt"
1318    ac_useropt_orig=$ac_useropt
1319    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320    case $ac_user_opts in
1321      *"
1322"with_$ac_useropt"
1323"*) ;;
1324      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1325	 ac_unrecognized_sep=', ';;
1326    esac
1327    eval with_$ac_useropt=no ;;
1328
1329  --x)
1330    # Obsolete; use --with-x.
1331    with_x=yes ;;
1332
1333  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1334  | --x-incl | --x-inc | --x-in | --x-i)
1335    ac_prev=x_includes ;;
1336  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1337  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1338    x_includes=$ac_optarg ;;
1339
1340  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1341  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1342    ac_prev=x_libraries ;;
1343  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1344  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1345    x_libraries=$ac_optarg ;;
1346
1347  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1348Try \`$0 --help' for more information"
1349    ;;
1350
1351  *=*)
1352    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1353    # Reject names that are not valid shell variable names.
1354    case $ac_envvar in #(
1355      '' | [0-9]* | *[!_$as_cr_alnum]* )
1356      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1357    esac
1358    eval $ac_envvar=\$ac_optarg
1359    export $ac_envvar ;;
1360
1361  *)
1362    # FIXME: should be removed in autoconf 3.0.
1363    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1367    ;;
1368
1369  esac
1370done
1371
1372if test -n "$ac_prev"; then
1373  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1374  as_fn_error $? "missing argument to $ac_option"
1375fi
1376
1377if test -n "$ac_unrecognized_opts"; then
1378  case $enable_option_checking in
1379    no) ;;
1380    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1381    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382  esac
1383fi
1384
1385# Check all directory arguments for consistency.
1386for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1387		datadir sysconfdir sharedstatedir localstatedir includedir \
1388		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1389		libdir localedir mandir
1390do
1391  eval ac_val=\$$ac_var
1392  # Remove trailing slashes.
1393  case $ac_val in
1394    */ )
1395      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1396      eval $ac_var=\$ac_val;;
1397  esac
1398  # Be sure to have absolute directory names.
1399  case $ac_val in
1400    [\\/$]* | ?:[\\/]* )  continue;;
1401    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1402  esac
1403  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1404done
1405
1406# There might be people who depend on the old broken behavior: `$host'
1407# used to hold the argument of --host etc.
1408# FIXME: To remove some day.
1409build=$build_alias
1410host=$host_alias
1411target=$target_alias
1412
1413# FIXME: To remove some day.
1414if test "x$host_alias" != x; then
1415  if test "x$build_alias" = x; then
1416    cross_compiling=maybe
1417  elif test "x$build_alias" != "x$host_alias"; then
1418    cross_compiling=yes
1419  fi
1420fi
1421
1422ac_tool_prefix=
1423test -n "$host_alias" && ac_tool_prefix=$host_alias-
1424
1425test "$silent" = yes && exec 6>/dev/null
1426
1427
1428ac_pwd=`pwd` && test -n "$ac_pwd" &&
1429ac_ls_di=`ls -di .` &&
1430ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1431  as_fn_error $? "working directory cannot be determined"
1432test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1433  as_fn_error $? "pwd does not report name of working directory"
1434
1435
1436# Find the source files, if location was not specified.
1437if test -z "$srcdir"; then
1438  ac_srcdir_defaulted=yes
1439  # Try the directory containing this script, then the parent directory.
1440  ac_confdir=`$as_dirname -- "$as_myself" ||
1441$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1442	 X"$as_myself" : 'X\(//\)[^/]' \| \
1443	 X"$as_myself" : 'X\(//\)$' \| \
1444	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1445$as_echo X"$as_myself" |
1446    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1447	    s//\1/
1448	    q
1449	  }
1450	  /^X\(\/\/\)[^/].*/{
1451	    s//\1/
1452	    q
1453	  }
1454	  /^X\(\/\/\)$/{
1455	    s//\1/
1456	    q
1457	  }
1458	  /^X\(\/\).*/{
1459	    s//\1/
1460	    q
1461	  }
1462	  s/.*/./; q'`
1463  srcdir=$ac_confdir
1464  if test ! -r "$srcdir/$ac_unique_file"; then
1465    srcdir=..
1466  fi
1467else
1468  ac_srcdir_defaulted=no
1469fi
1470if test ! -r "$srcdir/$ac_unique_file"; then
1471  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1472  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1473fi
1474ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1475ac_abs_confdir=`(
1476	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1477	pwd)`
1478# When building in place, set srcdir=.
1479if test "$ac_abs_confdir" = "$ac_pwd"; then
1480  srcdir=.
1481fi
1482# Remove unnecessary trailing slashes from srcdir.
1483# Double slashes in file names in object file debugging info
1484# mess up M-x gdb in Emacs.
1485case $srcdir in
1486*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1487esac
1488for ac_var in $ac_precious_vars; do
1489  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1490  eval ac_env_${ac_var}_value=\$${ac_var}
1491  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1492  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1493done
1494
1495#
1496# Report the --help message.
1497#
1498if test "$ac_init_help" = "long"; then
1499  # Omit some internal or obsolete options to make the list less imposing.
1500  # This message is too long to be a string in the A/UX 3.1 sh.
1501  cat <<_ACEOF
1502\`configure' configures xf86-video-intel 2.99.916 to adapt to many kinds of systems.
1503
1504Usage: $0 [OPTION]... [VAR=VALUE]...
1505
1506To assign environment variables (e.g., CC, CFLAGS...), specify them as
1507VAR=VALUE.  See below for descriptions of some of the useful variables.
1508
1509Defaults for the options are specified in brackets.
1510
1511Configuration:
1512  -h, --help              display this help and exit
1513      --help=short        display options specific to this package
1514      --help=recursive    display the short help of all the included packages
1515  -V, --version           display version information and exit
1516  -q, --quiet, --silent   do not print \`checking ...' messages
1517      --cache-file=FILE   cache test results in FILE [disabled]
1518  -C, --config-cache      alias for \`--cache-file=config.cache'
1519  -n, --no-create         do not create output files
1520      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1521
1522Installation directories:
1523  --prefix=PREFIX         install architecture-independent files in PREFIX
1524                          [$ac_default_prefix]
1525  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1526                          [PREFIX]
1527
1528By default, \`make install' will install all the files in
1529\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1530an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1531for instance \`--prefix=\$HOME'.
1532
1533For better control, use the options below.
1534
1535Fine tuning of the installation directories:
1536  --bindir=DIR            user executables [EPREFIX/bin]
1537  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1538  --libexecdir=DIR        program executables [EPREFIX/libexec]
1539  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1540  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1541  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1542  --libdir=DIR            object code libraries [EPREFIX/lib]
1543  --includedir=DIR        C header files [PREFIX/include]
1544  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1545  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1546  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1547  --infodir=DIR           info documentation [DATAROOTDIR/info]
1548  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1549  --mandir=DIR            man documentation [DATAROOTDIR/man]
1550  --docdir=DIR            documentation root
1551                          [DATAROOTDIR/doc/xf86-video-intel]
1552  --htmldir=DIR           html documentation [DOCDIR]
1553  --dvidir=DIR            dvi documentation [DOCDIR]
1554  --pdfdir=DIR            pdf documentation [DOCDIR]
1555  --psdir=DIR             ps documentation [DOCDIR]
1556_ACEOF
1557
1558  cat <<\_ACEOF
1559
1560Program names:
1561  --program-prefix=PREFIX            prepend PREFIX to installed program names
1562  --program-suffix=SUFFIX            append SUFFIX to installed program names
1563  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1564
1565System types:
1566  --build=BUILD     configure for building on BUILD [guessed]
1567  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1568_ACEOF
1569fi
1570
1571if test -n "$ac_init_help"; then
1572  case $ac_init_help in
1573     short | recursive ) echo "Configuration of xf86-video-intel 2.99.916:";;
1574   esac
1575  cat <<\_ACEOF
1576
1577Optional Features:
1578  --disable-option-checking  ignore unrecognized --enable/--with options
1579  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1580  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1581  --enable-silent-rules   less verbose build output (undo: "make V=1")
1582  --disable-silent-rules  verbose build output (undo: "make V=0")
1583  --enable-dependency-tracking
1584                          do not reject slow dependency extractors
1585  --disable-dependency-tracking
1586                          speeds up one-time build
1587  --disable-selective-werror
1588                          Turn off selective compiler errors. (default:
1589                          enabled)
1590  --enable-strict-compilation
1591                          Enable all warnings from compiler and make them
1592                          errors (default: disabled)
1593  --enable-static[=PKGS]  build static libraries [default=no]
1594  --enable-shared[=PKGS]  build shared libraries [default=yes]
1595  --enable-fast-install[=PKGS]
1596                          optimize for fast installation [default=yes]
1597  --disable-libtool-lock  avoid locking (might break parallel builds)
1598  --disable-largefile     omit support for large files
1599  --disable-backlight     Enable control over the backlight [default=yes]
1600  --disable-backlight-helper
1601                          Enable building the backlight helper executable for
1602                          running X under a normal user [default=auto]
1603  --enable-gen4asm        Enable rebuilding the gen4 assembly files
1604                          [default=no]
1605  --disable-udev          Disable udev-based monitor hotplug detection
1606                          [default=auto]
1607  --disable-tools         Enable building and installing the miscellaneous
1608                          tools [default=auto]
1609  --disable-dri           Disable DRI support [[default=auto]]
1610  --disable-dri1          Disable DRI1 support [[default=yes]]
1611  --disable-dri2          Disable DRI2 support [[default=yes]]
1612  --disable-dri3          Disable DRI3 support [[default=yes]]
1613  --disable-xvmc          Disable XvMC support [[default=yes]]
1614  --enable-kms            Assume KMS support [[default=yes]]
1615  --enable-ums            Assume UMS support [[default=auto]]
1616  --enable-kms-only       Only assume KMS support (no UMS) [[default=no]]
1617  --enable-ums-only       Only assume UMS support (no KMS) [[default=no]]
1618  --enable-sna            Enable SandyBridge\'s New Acceleration (SNA)
1619                          [default=auto]
1620  --enable-uxa            Enable Unified Acceleration Architecture (UXA)
1621                          [default=auto]
1622  --enable-glamor         Enable glamor, a new GL-based acceleration
1623                          [default=no]
1624  --enable-xaa            Enable legacy X Acceleration Architecture (XAA) for
1625                          i810 chipsets [default=auto]
1626  --enable-dga            Enable legacy Direct Graphics Access (DGA) for i810
1627                          chipsets [default=auto]
1628  --enable-tear-free      Enable use of TearFree by default [default=no]
1629  --enable-rendernode     Enable use of render nodes (experimental)
1630                          [default=no]
1631  --enable-create2        Enable use of create2 ioctl (experimental)
1632                          [default=no]
1633  --enable-async-swap     Enable use of asynchronous swaps (experimental)
1634                          [default=no]
1635  --enable-debug          Enables internal debugging [default=no]
1636  --enable-valgrind       Enables valgrindified ioctls for debugging
1637                          [default=no]
1638
1639Optional Packages:
1640  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1641  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1642  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1643                          both]
1644  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1645  --with-sysroot=DIR Search for dependent libraries within DIR
1646                        (or the compiler's sysroot if not specified).
1647  --with-builderstring=BUILDERSTRING
1648                          Additional builder string (default: use git
1649                          describe)
1650  --with-gen4asm=PATH     Path to intel-gen4asm binary
1651  --with-xorg-module-dir=DIR
1652                          Default xorg module directory
1653                          [[default=$libdir/xorg/modules]]
1654  --with-default-accel    Select the default acceleration method out of
1655                          glamor, none, sna, or uxa [default is sna if
1656                          enabled, otherwise uxa]
1657
1658Some influential environment variables:
1659  CC          C compiler command
1660  CFLAGS      C compiler flags
1661  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1662              nonstandard directory <lib dir>
1663  LIBS        libraries to pass to the linker, e.g. -l<library>
1664  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1665              you have headers in a nonstandard directory <include dir>
1666  CPP         C preprocessor
1667  PKG_CONFIG  path to pkg-config utility
1668  PKG_CONFIG_PATH
1669              directories to add to pkg-config's search path
1670  PKG_CONFIG_LIBDIR
1671              path overriding pkg-config's built-in search path
1672  GEN4ASM_CFLAGS
1673              C compiler flags for GEN4ASM, overriding pkg-config
1674  GEN4ASM_LIBS
1675              linker flags for GEN4ASM, overriding pkg-config
1676  UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1677  UDEV_LIBS   linker flags for UDEV, overriding pkg-config
1678  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1679  X11_LIBS    linker flags for X11, overriding pkg-config
1680  X11_DRI3_CFLAGS
1681              C compiler flags for X11_DRI3, overriding pkg-config
1682  X11_DRI3_LIBS
1683              linker flags for X11_DRI3, overriding pkg-config
1684  IVO_EXTRA_CFLAGS
1685              C compiler flags for IVO_EXTRA, overriding pkg-config
1686  IVO_EXTRA_LIBS
1687              linker flags for IVO_EXTRA, overriding pkg-config
1688  IVO_CFLAGS  C compiler flags for IVO, overriding pkg-config
1689  IVO_LIBS    linker flags for IVO, overriding pkg-config
1690  DRM_CFLAGS  C compiler flags for DRM, overriding pkg-config
1691  DRM_LIBS    linker flags for DRM, overriding pkg-config
1692  PCIACCESS_CFLAGS
1693              C compiler flags for PCIACCESS, overriding pkg-config
1694  PCIACCESS_LIBS
1695              linker flags for PCIACCESS, overriding pkg-config
1696  DRMINTEL_CFLAGS
1697              C compiler flags for DRMINTEL, overriding pkg-config
1698  DRMINTEL_LIBS
1699              linker flags for DRMINTEL, overriding pkg-config
1700  LIBGLAMOR_CFLAGS
1701              C compiler flags for LIBGLAMOR, overriding pkg-config
1702  LIBGLAMOR_LIBS
1703              linker flags for LIBGLAMOR, overriding pkg-config
1704  LIBGLAMOR_EGL_CFLAGS
1705              C compiler flags for LIBGLAMOR_EGL, overriding pkg-config
1706  LIBGLAMOR_EGL_LIBS
1707              linker flags for LIBGLAMOR_EGL, overriding pkg-config
1708  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1709  XORG_LIBS   linker flags for XORG, overriding pkg-config
1710  DRI1_CFLAGS C compiler flags for DRI1, overriding pkg-config
1711  DRI1_LIBS   linker flags for DRI1, overriding pkg-config
1712  DRI2_CFLAGS C compiler flags for DRI2, overriding pkg-config
1713  DRI2_LIBS   linker flags for DRI2, overriding pkg-config
1714  DRI3_CFLAGS C compiler flags for DRI3, overriding pkg-config
1715  DRI3_LIBS   linker flags for DRI3, overriding pkg-config
1716  PRESENT_CFLAGS
1717              C compiler flags for PRESENT, overriding pkg-config
1718  PRESENT_LIBS
1719              linker flags for PRESENT, overriding pkg-config
1720  XVMCLIB_CFLAGS
1721              C compiler flags for XVMCLIB, overriding pkg-config
1722  XVMCLIB_LIBS
1723              linker flags for XVMCLIB, overriding pkg-config
1724  VALGRIND_CFLAGS
1725              C compiler flags for VALGRIND, overriding pkg-config
1726  VALGRIND_LIBS
1727              linker flags for VALGRIND, overriding pkg-config
1728
1729Use these variables to override the choices made by `configure' or to help
1730it to find libraries and programs with nonstandard names/locations.
1731
1732Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1733_ACEOF
1734ac_status=$?
1735fi
1736
1737if test "$ac_init_help" = "recursive"; then
1738  # If there are subdirs, report their specific --help.
1739  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1740    test -d "$ac_dir" ||
1741      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1742      continue
1743    ac_builddir=.
1744
1745case "$ac_dir" in
1746.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1747*)
1748  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1749  # A ".." for each directory in $ac_dir_suffix.
1750  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1751  case $ac_top_builddir_sub in
1752  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1753  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1754  esac ;;
1755esac
1756ac_abs_top_builddir=$ac_pwd
1757ac_abs_builddir=$ac_pwd$ac_dir_suffix
1758# for backward compatibility:
1759ac_top_builddir=$ac_top_build_prefix
1760
1761case $srcdir in
1762  .)  # We are building in place.
1763    ac_srcdir=.
1764    ac_top_srcdir=$ac_top_builddir_sub
1765    ac_abs_top_srcdir=$ac_pwd ;;
1766  [\\/]* | ?:[\\/]* )  # Absolute name.
1767    ac_srcdir=$srcdir$ac_dir_suffix;
1768    ac_top_srcdir=$srcdir
1769    ac_abs_top_srcdir=$srcdir ;;
1770  *) # Relative name.
1771    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1772    ac_top_srcdir=$ac_top_build_prefix$srcdir
1773    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1774esac
1775ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1776
1777    cd "$ac_dir" || { ac_status=$?; continue; }
1778    # Check for guested configure.
1779    if test -f "$ac_srcdir/configure.gnu"; then
1780      echo &&
1781      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1782    elif test -f "$ac_srcdir/configure"; then
1783      echo &&
1784      $SHELL "$ac_srcdir/configure" --help=recursive
1785    else
1786      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1787    fi || ac_status=$?
1788    cd "$ac_pwd" || { ac_status=$?; break; }
1789  done
1790fi
1791
1792test -n "$ac_init_help" && exit $ac_status
1793if $ac_init_version; then
1794  cat <<\_ACEOF
1795xf86-video-intel configure 2.99.916
1796generated by GNU Autoconf 2.69
1797
1798Copyright (C) 2012 Free Software Foundation, Inc.
1799This configure script is free software; the Free Software Foundation
1800gives unlimited permission to copy, distribute and modify it.
1801_ACEOF
1802  exit
1803fi
1804
1805## ------------------------ ##
1806## Autoconf initialization. ##
1807## ------------------------ ##
1808
1809# ac_fn_c_try_compile LINENO
1810# --------------------------
1811# Try to compile conftest.$ac_ext, and return whether this succeeded.
1812ac_fn_c_try_compile ()
1813{
1814  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815  rm -f conftest.$ac_objext
1816  if { { ac_try="$ac_compile"
1817case "(($ac_try" in
1818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819  *) ac_try_echo=$ac_try;;
1820esac
1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822$as_echo "$ac_try_echo"; } >&5
1823  (eval "$ac_compile") 2>conftest.err
1824  ac_status=$?
1825  if test -s conftest.err; then
1826    grep -v '^ *+' conftest.err >conftest.er1
1827    cat conftest.er1 >&5
1828    mv -f conftest.er1 conftest.err
1829  fi
1830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831  test $ac_status = 0; } && {
1832	 test -z "$ac_c_werror_flag" ||
1833	 test ! -s conftest.err
1834       } && test -s conftest.$ac_objext; then :
1835  ac_retval=0
1836else
1837  $as_echo "$as_me: failed program was:" >&5
1838sed 's/^/| /' conftest.$ac_ext >&5
1839
1840	ac_retval=1
1841fi
1842  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843  as_fn_set_status $ac_retval
1844
1845} # ac_fn_c_try_compile
1846
1847# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1848# ---------------------------------------------
1849# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1850# accordingly.
1851ac_fn_c_check_decl ()
1852{
1853  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854  as_decl_name=`echo $2|sed 's/ *(.*//'`
1855  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1857$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1858if eval \${$3+:} false; then :
1859  $as_echo_n "(cached) " >&6
1860else
1861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862/* end confdefs.h.  */
1863$4
1864int
1865main ()
1866{
1867#ifndef $as_decl_name
1868#ifdef __cplusplus
1869  (void) $as_decl_use;
1870#else
1871  (void) $as_decl_name;
1872#endif
1873#endif
1874
1875  ;
1876  return 0;
1877}
1878_ACEOF
1879if ac_fn_c_try_compile "$LINENO"; then :
1880  eval "$3=yes"
1881else
1882  eval "$3=no"
1883fi
1884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885fi
1886eval ac_res=\$$3
1887	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888$as_echo "$ac_res" >&6; }
1889  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891} # ac_fn_c_check_decl
1892
1893# ac_fn_c_try_cpp LINENO
1894# ----------------------
1895# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1896ac_fn_c_try_cpp ()
1897{
1898  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899  if { { ac_try="$ac_cpp conftest.$ac_ext"
1900case "(($ac_try" in
1901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902  *) ac_try_echo=$ac_try;;
1903esac
1904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905$as_echo "$ac_try_echo"; } >&5
1906  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1907  ac_status=$?
1908  if test -s conftest.err; then
1909    grep -v '^ *+' conftest.err >conftest.er1
1910    cat conftest.er1 >&5
1911    mv -f conftest.er1 conftest.err
1912  fi
1913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914  test $ac_status = 0; } > conftest.i && {
1915	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1916	 test ! -s conftest.err
1917       }; then :
1918  ac_retval=0
1919else
1920  $as_echo "$as_me: failed program was:" >&5
1921sed 's/^/| /' conftest.$ac_ext >&5
1922
1923    ac_retval=1
1924fi
1925  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926  as_fn_set_status $ac_retval
1927
1928} # ac_fn_c_try_cpp
1929
1930# ac_fn_c_try_run LINENO
1931# ----------------------
1932# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1933# that executables *can* be run.
1934ac_fn_c_try_run ()
1935{
1936  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937  if { { ac_try="$ac_link"
1938case "(($ac_try" in
1939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940  *) ac_try_echo=$ac_try;;
1941esac
1942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943$as_echo "$ac_try_echo"; } >&5
1944  (eval "$ac_link") 2>&5
1945  ac_status=$?
1946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1948  { { case "(($ac_try" in
1949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950  *) ac_try_echo=$ac_try;;
1951esac
1952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953$as_echo "$ac_try_echo"; } >&5
1954  (eval "$ac_try") 2>&5
1955  ac_status=$?
1956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957  test $ac_status = 0; }; }; then :
1958  ac_retval=0
1959else
1960  $as_echo "$as_me: program exited with status $ac_status" >&5
1961       $as_echo "$as_me: failed program was:" >&5
1962sed 's/^/| /' conftest.$ac_ext >&5
1963
1964       ac_retval=$ac_status
1965fi
1966  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968  as_fn_set_status $ac_retval
1969
1970} # ac_fn_c_try_run
1971
1972# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1973# -------------------------------------------------------
1974# Tests whether HEADER exists and can be compiled using the include files in
1975# INCLUDES, setting the cache variable VAR accordingly.
1976ac_fn_c_check_header_compile ()
1977{
1978  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980$as_echo_n "checking for $2... " >&6; }
1981if eval \${$3+:} false; then :
1982  $as_echo_n "(cached) " >&6
1983else
1984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985/* end confdefs.h.  */
1986$4
1987#include <$2>
1988_ACEOF
1989if ac_fn_c_try_compile "$LINENO"; then :
1990  eval "$3=yes"
1991else
1992  eval "$3=no"
1993fi
1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995fi
1996eval ac_res=\$$3
1997	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998$as_echo "$ac_res" >&6; }
1999  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001} # ac_fn_c_check_header_compile
2002
2003# ac_fn_c_try_link LINENO
2004# -----------------------
2005# Try to link conftest.$ac_ext, and return whether this succeeded.
2006ac_fn_c_try_link ()
2007{
2008  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009  rm -f conftest.$ac_objext conftest$ac_exeext
2010  if { { ac_try="$ac_link"
2011case "(($ac_try" in
2012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013  *) ac_try_echo=$ac_try;;
2014esac
2015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016$as_echo "$ac_try_echo"; } >&5
2017  (eval "$ac_link") 2>conftest.err
2018  ac_status=$?
2019  if test -s conftest.err; then
2020    grep -v '^ *+' conftest.err >conftest.er1
2021    cat conftest.er1 >&5
2022    mv -f conftest.er1 conftest.err
2023  fi
2024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025  test $ac_status = 0; } && {
2026	 test -z "$ac_c_werror_flag" ||
2027	 test ! -s conftest.err
2028       } && test -s conftest$ac_exeext && {
2029	 test "$cross_compiling" = yes ||
2030	 test -x conftest$ac_exeext
2031       }; then :
2032  ac_retval=0
2033else
2034  $as_echo "$as_me: failed program was:" >&5
2035sed 's/^/| /' conftest.$ac_ext >&5
2036
2037	ac_retval=1
2038fi
2039  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2040  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2041  # interfere with the next link command; also delete a directory that is
2042  # left behind by Apple's compiler.  We do this before executing the actions.
2043  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2044  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045  as_fn_set_status $ac_retval
2046
2047} # ac_fn_c_try_link
2048
2049# ac_fn_c_check_func LINENO FUNC VAR
2050# ----------------------------------
2051# Tests whether FUNC exists, setting the cache variable VAR accordingly
2052ac_fn_c_check_func ()
2053{
2054  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056$as_echo_n "checking for $2... " >&6; }
2057if eval \${$3+:} false; then :
2058  $as_echo_n "(cached) " >&6
2059else
2060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061/* end confdefs.h.  */
2062/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2063   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2064#define $2 innocuous_$2
2065
2066/* System header to define __stub macros and hopefully few prototypes,
2067    which can conflict with char $2 (); below.
2068    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2069    <limits.h> exists even on freestanding compilers.  */
2070
2071#ifdef __STDC__
2072# include <limits.h>
2073#else
2074# include <assert.h>
2075#endif
2076
2077#undef $2
2078
2079/* Override any GCC internal prototype to avoid an error.
2080   Use char because int might match the return type of a GCC
2081   builtin and then its argument prototype would still apply.  */
2082#ifdef __cplusplus
2083extern "C"
2084#endif
2085char $2 ();
2086/* The GNU C library defines this for functions which it implements
2087    to always fail with ENOSYS.  Some functions are actually named
2088    something starting with __ and the normal name is an alias.  */
2089#if defined __stub_$2 || defined __stub___$2
2090choke me
2091#endif
2092
2093int
2094main ()
2095{
2096return $2 ();
2097  ;
2098  return 0;
2099}
2100_ACEOF
2101if ac_fn_c_try_link "$LINENO"; then :
2102  eval "$3=yes"
2103else
2104  eval "$3=no"
2105fi
2106rm -f core conftest.err conftest.$ac_objext \
2107    conftest$ac_exeext conftest.$ac_ext
2108fi
2109eval ac_res=\$$3
2110	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111$as_echo "$ac_res" >&6; }
2112  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113
2114} # ac_fn_c_check_func
2115
2116# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2117# -------------------------------------------------------
2118# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2119# the include files in INCLUDES and setting the cache variable VAR
2120# accordingly.
2121ac_fn_c_check_header_mongrel ()
2122{
2123  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124  if eval \${$3+:} false; then :
2125  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126$as_echo_n "checking for $2... " >&6; }
2127if eval \${$3+:} false; then :
2128  $as_echo_n "(cached) " >&6
2129fi
2130eval ac_res=\$$3
2131	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132$as_echo "$ac_res" >&6; }
2133else
2134  # Is the header compilable?
2135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2136$as_echo_n "checking $2 usability... " >&6; }
2137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138/* end confdefs.h.  */
2139$4
2140#include <$2>
2141_ACEOF
2142if ac_fn_c_try_compile "$LINENO"; then :
2143  ac_header_compiler=yes
2144else
2145  ac_header_compiler=no
2146fi
2147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2149$as_echo "$ac_header_compiler" >&6; }
2150
2151# Is the header present?
2152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2153$as_echo_n "checking $2 presence... " >&6; }
2154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155/* end confdefs.h.  */
2156#include <$2>
2157_ACEOF
2158if ac_fn_c_try_cpp "$LINENO"; then :
2159  ac_header_preproc=yes
2160else
2161  ac_header_preproc=no
2162fi
2163rm -f conftest.err conftest.i conftest.$ac_ext
2164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2165$as_echo "$ac_header_preproc" >&6; }
2166
2167# So?  What about this header?
2168case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2169  yes:no: )
2170    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2171$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2172    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2173$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2174    ;;
2175  no:yes:* )
2176    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2177$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2178    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2179$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2180    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2181$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2182    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2183$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2184    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2185$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2186( $as_echo "## ---------------------------------------------------------------------- ##
2187## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2188## ---------------------------------------------------------------------- ##"
2189     ) | sed "s/^/$as_me: WARNING:     /" >&2
2190    ;;
2191esac
2192  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2193$as_echo_n "checking for $2... " >&6; }
2194if eval \${$3+:} false; then :
2195  $as_echo_n "(cached) " >&6
2196else
2197  eval "$3=\$ac_header_compiler"
2198fi
2199eval ac_res=\$$3
2200	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2201$as_echo "$ac_res" >&6; }
2202fi
2203  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204
2205} # ac_fn_c_check_header_mongrel
2206cat >config.log <<_ACEOF
2207This file contains any messages produced by compilers while
2208running configure, to aid debugging if configure makes a mistake.
2209
2210It was created by xf86-video-intel $as_me 2.99.916, which was
2211generated by GNU Autoconf 2.69.  Invocation command line was
2212
2213  $ $0 $@
2214
2215_ACEOF
2216exec 5>>config.log
2217{
2218cat <<_ASUNAME
2219## --------- ##
2220## Platform. ##
2221## --------- ##
2222
2223hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2224uname -m = `(uname -m) 2>/dev/null || echo unknown`
2225uname -r = `(uname -r) 2>/dev/null || echo unknown`
2226uname -s = `(uname -s) 2>/dev/null || echo unknown`
2227uname -v = `(uname -v) 2>/dev/null || echo unknown`
2228
2229/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2230/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2231
2232/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2233/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2234/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2235/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2236/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2237/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2238/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2239
2240_ASUNAME
2241
2242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243for as_dir in $PATH
2244do
2245  IFS=$as_save_IFS
2246  test -z "$as_dir" && as_dir=.
2247    $as_echo "PATH: $as_dir"
2248  done
2249IFS=$as_save_IFS
2250
2251} >&5
2252
2253cat >&5 <<_ACEOF
2254
2255
2256## ----------- ##
2257## Core tests. ##
2258## ----------- ##
2259
2260_ACEOF
2261
2262
2263# Keep a trace of the command line.
2264# Strip out --no-create and --no-recursion so they do not pile up.
2265# Strip out --silent because we don't want to record it for future runs.
2266# Also quote any args containing shell meta-characters.
2267# Make two passes to allow for proper duplicate-argument suppression.
2268ac_configure_args=
2269ac_configure_args0=
2270ac_configure_args1=
2271ac_must_keep_next=false
2272for ac_pass in 1 2
2273do
2274  for ac_arg
2275  do
2276    case $ac_arg in
2277    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2278    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2279    | -silent | --silent | --silen | --sile | --sil)
2280      continue ;;
2281    *\'*)
2282      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2283    esac
2284    case $ac_pass in
2285    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2286    2)
2287      as_fn_append ac_configure_args1 " '$ac_arg'"
2288      if test $ac_must_keep_next = true; then
2289	ac_must_keep_next=false # Got value, back to normal.
2290      else
2291	case $ac_arg in
2292	  *=* | --config-cache | -C | -disable-* | --disable-* \
2293	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2294	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2295	  | -with-* | --with-* | -without-* | --without-* | --x)
2296	    case "$ac_configure_args0 " in
2297	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2298	    esac
2299	    ;;
2300	  -* ) ac_must_keep_next=true ;;
2301	esac
2302      fi
2303      as_fn_append ac_configure_args " '$ac_arg'"
2304      ;;
2305    esac
2306  done
2307done
2308{ ac_configure_args0=; unset ac_configure_args0;}
2309{ ac_configure_args1=; unset ac_configure_args1;}
2310
2311# When interrupted or exit'd, cleanup temporary files, and complete
2312# config.log.  We remove comments because anyway the quotes in there
2313# would cause problems or look ugly.
2314# WARNING: Use '\'' to represent an apostrophe within the trap.
2315# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2316trap 'exit_status=$?
2317  # Save into config.log some information that might help in debugging.
2318  {
2319    echo
2320
2321    $as_echo "## ---------------- ##
2322## Cache variables. ##
2323## ---------------- ##"
2324    echo
2325    # The following way of writing the cache mishandles newlines in values,
2326(
2327  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2328    eval ac_val=\$$ac_var
2329    case $ac_val in #(
2330    *${as_nl}*)
2331      case $ac_var in #(
2332      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2333$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2334      esac
2335      case $ac_var in #(
2336      _ | IFS | as_nl) ;; #(
2337      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2338      *) { eval $ac_var=; unset $ac_var;} ;;
2339      esac ;;
2340    esac
2341  done
2342  (set) 2>&1 |
2343    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2344    *${as_nl}ac_space=\ *)
2345      sed -n \
2346	"s/'\''/'\''\\\\'\'''\''/g;
2347	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2348      ;; #(
2349    *)
2350      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2351      ;;
2352    esac |
2353    sort
2354)
2355    echo
2356
2357    $as_echo "## ----------------- ##
2358## Output variables. ##
2359## ----------------- ##"
2360    echo
2361    for ac_var in $ac_subst_vars
2362    do
2363      eval ac_val=\$$ac_var
2364      case $ac_val in
2365      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2366      esac
2367      $as_echo "$ac_var='\''$ac_val'\''"
2368    done | sort
2369    echo
2370
2371    if test -n "$ac_subst_files"; then
2372      $as_echo "## ------------------- ##
2373## File substitutions. ##
2374## ------------------- ##"
2375      echo
2376      for ac_var in $ac_subst_files
2377      do
2378	eval ac_val=\$$ac_var
2379	case $ac_val in
2380	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2381	esac
2382	$as_echo "$ac_var='\''$ac_val'\''"
2383      done | sort
2384      echo
2385    fi
2386
2387    if test -s confdefs.h; then
2388      $as_echo "## ----------- ##
2389## confdefs.h. ##
2390## ----------- ##"
2391      echo
2392      cat confdefs.h
2393      echo
2394    fi
2395    test "$ac_signal" != 0 &&
2396      $as_echo "$as_me: caught signal $ac_signal"
2397    $as_echo "$as_me: exit $exit_status"
2398  } >&5
2399  rm -f core *.core core.conftest.* &&
2400    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2401    exit $exit_status
2402' 0
2403for ac_signal in 1 2 13 15; do
2404  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2405done
2406ac_signal=0
2407
2408# confdefs.h avoids OS command line length limits that DEFS can exceed.
2409rm -f -r conftest* confdefs.h
2410
2411$as_echo "/* confdefs.h */" > confdefs.h
2412
2413# Predefined preprocessor variables.
2414
2415cat >>confdefs.h <<_ACEOF
2416#define PACKAGE_NAME "$PACKAGE_NAME"
2417_ACEOF
2418
2419cat >>confdefs.h <<_ACEOF
2420#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2421_ACEOF
2422
2423cat >>confdefs.h <<_ACEOF
2424#define PACKAGE_VERSION "$PACKAGE_VERSION"
2425_ACEOF
2426
2427cat >>confdefs.h <<_ACEOF
2428#define PACKAGE_STRING "$PACKAGE_STRING"
2429_ACEOF
2430
2431cat >>confdefs.h <<_ACEOF
2432#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2433_ACEOF
2434
2435cat >>confdefs.h <<_ACEOF
2436#define PACKAGE_URL "$PACKAGE_URL"
2437_ACEOF
2438
2439
2440# Let the site file select an alternate cache file if it wants to.
2441# Prefer an explicitly selected file to automatically selected ones.
2442ac_site_file1=NONE
2443ac_site_file2=NONE
2444if test -n "$CONFIG_SITE"; then
2445  # We do not want a PATH search for config.site.
2446  case $CONFIG_SITE in #((
2447    -*)  ac_site_file1=./$CONFIG_SITE;;
2448    */*) ac_site_file1=$CONFIG_SITE;;
2449    *)   ac_site_file1=./$CONFIG_SITE;;
2450  esac
2451elif test "x$prefix" != xNONE; then
2452  ac_site_file1=$prefix/share/config.site
2453  ac_site_file2=$prefix/etc/config.site
2454else
2455  ac_site_file1=$ac_default_prefix/share/config.site
2456  ac_site_file2=$ac_default_prefix/etc/config.site
2457fi
2458for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2459do
2460  test "x$ac_site_file" = xNONE && continue
2461  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2462    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2463$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2464    sed 's/^/| /' "$ac_site_file" >&5
2465    . "$ac_site_file" \
2466      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2468as_fn_error $? "failed to load site script $ac_site_file
2469See \`config.log' for more details" "$LINENO" 5; }
2470  fi
2471done
2472
2473if test -r "$cache_file"; then
2474  # Some versions of bash will fail to source /dev/null (special files
2475  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2476  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2477    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2478$as_echo "$as_me: loading cache $cache_file" >&6;}
2479    case $cache_file in
2480      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2481      *)                      . "./$cache_file";;
2482    esac
2483  fi
2484else
2485  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2486$as_echo "$as_me: creating cache $cache_file" >&6;}
2487  >$cache_file
2488fi
2489
2490# Check that the precious variables saved in the cache have kept the same
2491# value.
2492ac_cache_corrupted=false
2493for ac_var in $ac_precious_vars; do
2494  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2495  eval ac_new_set=\$ac_env_${ac_var}_set
2496  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2497  eval ac_new_val=\$ac_env_${ac_var}_value
2498  case $ac_old_set,$ac_new_set in
2499    set,)
2500      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2501$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2502      ac_cache_corrupted=: ;;
2503    ,set)
2504      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2505$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2506      ac_cache_corrupted=: ;;
2507    ,);;
2508    *)
2509      if test "x$ac_old_val" != "x$ac_new_val"; then
2510	# differences in whitespace do not lead to failure.
2511	ac_old_val_w=`echo x $ac_old_val`
2512	ac_new_val_w=`echo x $ac_new_val`
2513	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2514	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2515$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2516	  ac_cache_corrupted=:
2517	else
2518	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2519$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2520	  eval $ac_var=\$ac_old_val
2521	fi
2522	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2523$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2524	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2525$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2526      fi;;
2527  esac
2528  # Pass precious variables to config.status.
2529  if test "$ac_new_set" = set; then
2530    case $ac_new_val in
2531    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2532    *) ac_arg=$ac_var=$ac_new_val ;;
2533    esac
2534    case " $ac_configure_args " in
2535      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2536      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2537    esac
2538  fi
2539done
2540if $ac_cache_corrupted; then
2541  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2543  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2544$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2545  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2546fi
2547## -------------------- ##
2548## Main body of script. ##
2549## -------------------- ##
2550
2551ac_ext=c
2552ac_cpp='$CPP $CPPFLAGS'
2553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2555ac_compiler_gnu=$ac_cv_c_compiler_gnu
2556
2557
2558
2559ac_config_headers="$ac_config_headers config.h"
2560
2561
2562ac_aux_dir=
2563for ac_dir in . "$srcdir"/.; do
2564  if test -f "$ac_dir/install-sh"; then
2565    ac_aux_dir=$ac_dir
2566    ac_install_sh="$ac_aux_dir/install-sh -c"
2567    break
2568  elif test -f "$ac_dir/install.sh"; then
2569    ac_aux_dir=$ac_dir
2570    ac_install_sh="$ac_aux_dir/install.sh -c"
2571    break
2572  elif test -f "$ac_dir/shtool"; then
2573    ac_aux_dir=$ac_dir
2574    ac_install_sh="$ac_aux_dir/shtool install -c"
2575    break
2576  fi
2577done
2578if test -z "$ac_aux_dir"; then
2579  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2580fi
2581
2582# These three variables are undocumented and unsupported,
2583# and are intended to be withdrawn in a future Autoconf release.
2584# They can cause serious problems if a builder's source tree is in a directory
2585# whose full name contains unusual characters.
2586ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2587ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2588ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2589
2590
2591
2592# Initialize Automake
2593am__api_version='1.14'
2594
2595# Find a good install program.  We prefer a C program (faster),
2596# so one script is as good as another.  But avoid the broken or
2597# incompatible versions:
2598# SysV /etc/install, /usr/sbin/install
2599# SunOS /usr/etc/install
2600# IRIX /sbin/install
2601# AIX /bin/install
2602# AmigaOS /C/install, which installs bootblocks on floppy discs
2603# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2604# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2605# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2606# OS/2's system install, which has a completely different semantic
2607# ./install, which can be erroneously created by make from ./install.sh.
2608# Reject install programs that cannot install multiple files.
2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2610$as_echo_n "checking for a BSD-compatible install... " >&6; }
2611if test -z "$INSTALL"; then
2612if ${ac_cv_path_install+:} false; then :
2613  $as_echo_n "(cached) " >&6
2614else
2615  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618  IFS=$as_save_IFS
2619  test -z "$as_dir" && as_dir=.
2620    # Account for people who put trailing slashes in PATH elements.
2621case $as_dir/ in #((
2622  ./ | .// | /[cC]/* | \
2623  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2624  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2625  /usr/ucb/* ) ;;
2626  *)
2627    # OSF1 and SCO ODT 3.0 have their own names for install.
2628    # Don't use installbsd from OSF since it installs stuff as root
2629    # by default.
2630    for ac_prog in ginstall scoinst install; do
2631      for ac_exec_ext in '' $ac_executable_extensions; do
2632	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2633	  if test $ac_prog = install &&
2634	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2635	    # AIX install.  It has an incompatible calling convention.
2636	    :
2637	  elif test $ac_prog = install &&
2638	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2639	    # program-specific install script used by HP pwplus--don't use.
2640	    :
2641	  else
2642	    rm -rf conftest.one conftest.two conftest.dir
2643	    echo one > conftest.one
2644	    echo two > conftest.two
2645	    mkdir conftest.dir
2646	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2647	      test -s conftest.one && test -s conftest.two &&
2648	      test -s conftest.dir/conftest.one &&
2649	      test -s conftest.dir/conftest.two
2650	    then
2651	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2652	      break 3
2653	    fi
2654	  fi
2655	fi
2656      done
2657    done
2658    ;;
2659esac
2660
2661  done
2662IFS=$as_save_IFS
2663
2664rm -rf conftest.one conftest.two conftest.dir
2665
2666fi
2667  if test "${ac_cv_path_install+set}" = set; then
2668    INSTALL=$ac_cv_path_install
2669  else
2670    # As a last resort, use the slow shell script.  Don't cache a
2671    # value for INSTALL within a source directory, because that will
2672    # break other packages using the cache if that directory is
2673    # removed, or if the value is a relative name.
2674    INSTALL=$ac_install_sh
2675  fi
2676fi
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2678$as_echo "$INSTALL" >&6; }
2679
2680# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2681# It thinks the first close brace ends the variable substitution.
2682test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2683
2684test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2685
2686test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2687
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2689$as_echo_n "checking whether build environment is sane... " >&6; }
2690# Reject unsafe characters in $srcdir or the absolute working directory
2691# name.  Accept space and tab only in the latter.
2692am_lf='
2693'
2694case `pwd` in
2695  *[\\\"\#\$\&\'\`$am_lf]*)
2696    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2697esac
2698case $srcdir in
2699  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2700    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2701esac
2702
2703# Do 'set' in a subshell so we don't clobber the current shell's
2704# arguments.  Must try -L first in case configure is actually a
2705# symlink; some systems play weird games with the mod time of symlinks
2706# (eg FreeBSD returns the mod time of the symlink's containing
2707# directory).
2708if (
2709   am_has_slept=no
2710   for am_try in 1 2; do
2711     echo "timestamp, slept: $am_has_slept" > conftest.file
2712     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2713     if test "$*" = "X"; then
2714	# -L didn't work.
2715	set X `ls -t "$srcdir/configure" conftest.file`
2716     fi
2717     if test "$*" != "X $srcdir/configure conftest.file" \
2718	&& test "$*" != "X conftest.file $srcdir/configure"; then
2719
2720	# If neither matched, then we have a broken ls.  This can happen
2721	# if, for instance, CONFIG_SHELL is bash and it inherits a
2722	# broken ls alias from the environment.  This has actually
2723	# happened.  Such a system could not be considered "sane".
2724	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2725  alias in your environment" "$LINENO" 5
2726     fi
2727     if test "$2" = conftest.file || test $am_try -eq 2; then
2728       break
2729     fi
2730     # Just in case.
2731     sleep 1
2732     am_has_slept=yes
2733   done
2734   test "$2" = conftest.file
2735   )
2736then
2737   # Ok.
2738   :
2739else
2740   as_fn_error $? "newly created file is older than distributed files!
2741Check your system clock" "$LINENO" 5
2742fi
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2744$as_echo "yes" >&6; }
2745# If we didn't sleep, we still need to ensure time stamps of config.status and
2746# generated files are strictly newer.
2747am_sleep_pid=
2748if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2749  ( sleep 1 ) &
2750  am_sleep_pid=$!
2751fi
2752
2753rm -f conftest.file
2754
2755test "$program_prefix" != NONE &&
2756  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2757# Use a double $ so make ignores it.
2758test "$program_suffix" != NONE &&
2759  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2760# Double any \ or $.
2761# By default was `s,x,x', remove it if useless.
2762ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2763program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2764
2765# expand $ac_aux_dir to an absolute path
2766am_aux_dir=`cd $ac_aux_dir && pwd`
2767
2768if test x"${MISSING+set}" != xset; then
2769  case $am_aux_dir in
2770  *\ * | *\	*)
2771    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2772  *)
2773    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2774  esac
2775fi
2776# Use eval to expand $SHELL
2777if eval "$MISSING --is-lightweight"; then
2778  am_missing_run="$MISSING "
2779else
2780  am_missing_run=
2781  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2782$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2783fi
2784
2785if test x"${install_sh}" != xset; then
2786  case $am_aux_dir in
2787  *\ * | *\	*)
2788    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2789  *)
2790    install_sh="\${SHELL} $am_aux_dir/install-sh"
2791  esac
2792fi
2793
2794# Installed binaries are usually stripped using 'strip' when the user
2795# run "make install-strip".  However 'strip' might not be the right
2796# tool to use in cross-compilation environments, therefore Automake
2797# will honor the 'STRIP' environment variable to overrule this program.
2798if test "$cross_compiling" != no; then
2799  if test -n "$ac_tool_prefix"; then
2800  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2801set dummy ${ac_tool_prefix}strip; ac_word=$2
2802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803$as_echo_n "checking for $ac_word... " >&6; }
2804if ${ac_cv_prog_STRIP+:} false; then :
2805  $as_echo_n "(cached) " >&6
2806else
2807  if test -n "$STRIP"; then
2808  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2809else
2810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811for as_dir in $PATH
2812do
2813  IFS=$as_save_IFS
2814  test -z "$as_dir" && as_dir=.
2815    for ac_exec_ext in '' $ac_executable_extensions; do
2816  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819    break 2
2820  fi
2821done
2822  done
2823IFS=$as_save_IFS
2824
2825fi
2826fi
2827STRIP=$ac_cv_prog_STRIP
2828if test -n "$STRIP"; then
2829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2830$as_echo "$STRIP" >&6; }
2831else
2832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833$as_echo "no" >&6; }
2834fi
2835
2836
2837fi
2838if test -z "$ac_cv_prog_STRIP"; then
2839  ac_ct_STRIP=$STRIP
2840  # Extract the first word of "strip", so it can be a program name with args.
2841set dummy strip; ac_word=$2
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843$as_echo_n "checking for $ac_word... " >&6; }
2844if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2845  $as_echo_n "(cached) " >&6
2846else
2847  if test -n "$ac_ct_STRIP"; then
2848  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2849else
2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853  IFS=$as_save_IFS
2854  test -z "$as_dir" && as_dir=.
2855    for ac_exec_ext in '' $ac_executable_extensions; do
2856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857    ac_cv_prog_ac_ct_STRIP="strip"
2858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859    break 2
2860  fi
2861done
2862  done
2863IFS=$as_save_IFS
2864
2865fi
2866fi
2867ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2868if test -n "$ac_ct_STRIP"; then
2869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2870$as_echo "$ac_ct_STRIP" >&6; }
2871else
2872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873$as_echo "no" >&6; }
2874fi
2875
2876  if test "x$ac_ct_STRIP" = x; then
2877    STRIP=":"
2878  else
2879    case $cross_compiling:$ac_tool_warned in
2880yes:)
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2883ac_tool_warned=yes ;;
2884esac
2885    STRIP=$ac_ct_STRIP
2886  fi
2887else
2888  STRIP="$ac_cv_prog_STRIP"
2889fi
2890
2891fi
2892INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2893
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2895$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2896if test -z "$MKDIR_P"; then
2897  if ${ac_cv_path_mkdir+:} false; then :
2898  $as_echo_n "(cached) " >&6
2899else
2900  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2902do
2903  IFS=$as_save_IFS
2904  test -z "$as_dir" && as_dir=.
2905    for ac_prog in mkdir gmkdir; do
2906	 for ac_exec_ext in '' $ac_executable_extensions; do
2907	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2908	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2909	     'mkdir (GNU coreutils) '* | \
2910	     'mkdir (coreutils) '* | \
2911	     'mkdir (fileutils) '4.1*)
2912	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2913	       break 3;;
2914	   esac
2915	 done
2916       done
2917  done
2918IFS=$as_save_IFS
2919
2920fi
2921
2922  test -d ./--version && rmdir ./--version
2923  if test "${ac_cv_path_mkdir+set}" = set; then
2924    MKDIR_P="$ac_cv_path_mkdir -p"
2925  else
2926    # As a last resort, use the slow shell script.  Don't cache a
2927    # value for MKDIR_P within a source directory, because that will
2928    # break other packages using the cache if that directory is
2929    # removed, or if the value is a relative name.
2930    MKDIR_P="$ac_install_sh -d"
2931  fi
2932fi
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2934$as_echo "$MKDIR_P" >&6; }
2935
2936for ac_prog in gawk mawk nawk awk
2937do
2938  # Extract the first word of "$ac_prog", so it can be a program name with args.
2939set dummy $ac_prog; ac_word=$2
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941$as_echo_n "checking for $ac_word... " >&6; }
2942if ${ac_cv_prog_AWK+:} false; then :
2943  $as_echo_n "(cached) " >&6
2944else
2945  if test -n "$AWK"; then
2946  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951  IFS=$as_save_IFS
2952  test -z "$as_dir" && as_dir=.
2953    for ac_exec_ext in '' $ac_executable_extensions; do
2954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955    ac_cv_prog_AWK="$ac_prog"
2956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957    break 2
2958  fi
2959done
2960  done
2961IFS=$as_save_IFS
2962
2963fi
2964fi
2965AWK=$ac_cv_prog_AWK
2966if test -n "$AWK"; then
2967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2968$as_echo "$AWK" >&6; }
2969else
2970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971$as_echo "no" >&6; }
2972fi
2973
2974
2975  test -n "$AWK" && break
2976done
2977
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2979$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2980set x ${MAKE-make}
2981ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2982if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2983  $as_echo_n "(cached) " >&6
2984else
2985  cat >conftest.make <<\_ACEOF
2986SHELL = /bin/sh
2987all:
2988	@echo '@@@%%%=$(MAKE)=@@@%%%'
2989_ACEOF
2990# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2991case `${MAKE-make} -f conftest.make 2>/dev/null` in
2992  *@@@%%%=?*=@@@%%%*)
2993    eval ac_cv_prog_make_${ac_make}_set=yes;;
2994  *)
2995    eval ac_cv_prog_make_${ac_make}_set=no;;
2996esac
2997rm -f conftest.make
2998fi
2999if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3001$as_echo "yes" >&6; }
3002  SET_MAKE=
3003else
3004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005$as_echo "no" >&6; }
3006  SET_MAKE="MAKE=${MAKE-make}"
3007fi
3008
3009rm -rf .tst 2>/dev/null
3010mkdir .tst 2>/dev/null
3011if test -d .tst; then
3012  am__leading_dot=.
3013else
3014  am__leading_dot=_
3015fi
3016rmdir .tst 2>/dev/null
3017
3018# Check whether --enable-silent-rules was given.
3019if test "${enable_silent_rules+set}" = set; then :
3020  enableval=$enable_silent_rules;
3021fi
3022
3023case $enable_silent_rules in # (((
3024  yes) AM_DEFAULT_VERBOSITY=0;;
3025   no) AM_DEFAULT_VERBOSITY=1;;
3026    *) AM_DEFAULT_VERBOSITY=1;;
3027esac
3028am_make=${MAKE-make}
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3030$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3031if ${am_cv_make_support_nested_variables+:} false; then :
3032  $as_echo_n "(cached) " >&6
3033else
3034  if $as_echo 'TRUE=$(BAR$(V))
3035BAR0=false
3036BAR1=true
3037V=1
3038am__doit:
3039	@$(TRUE)
3040.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3041  am_cv_make_support_nested_variables=yes
3042else
3043  am_cv_make_support_nested_variables=no
3044fi
3045fi
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3047$as_echo "$am_cv_make_support_nested_variables" >&6; }
3048if test $am_cv_make_support_nested_variables = yes; then
3049    AM_V='$(V)'
3050  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3051else
3052  AM_V=$AM_DEFAULT_VERBOSITY
3053  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3054fi
3055AM_BACKSLASH='\'
3056
3057if test "`cd $srcdir && pwd`" != "`pwd`"; then
3058  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3059  # is not polluted with repeated "-I."
3060  am__isrc=' -I$(srcdir)'
3061  # test to see if srcdir already configured
3062  if test -f $srcdir/config.status; then
3063    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3064  fi
3065fi
3066
3067# test whether we have cygpath
3068if test -z "$CYGPATH_W"; then
3069  if (cygpath --version) >/dev/null 2>/dev/null; then
3070    CYGPATH_W='cygpath -w'
3071  else
3072    CYGPATH_W=echo
3073  fi
3074fi
3075
3076
3077# Define the identity of the package.
3078 PACKAGE='xf86-video-intel'
3079 VERSION='2.99.916'
3080
3081
3082cat >>confdefs.h <<_ACEOF
3083#define PACKAGE "$PACKAGE"
3084_ACEOF
3085
3086
3087cat >>confdefs.h <<_ACEOF
3088#define VERSION "$VERSION"
3089_ACEOF
3090
3091# Some tools Automake needs.
3092
3093ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3094
3095
3096AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3097
3098
3099AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3100
3101
3102AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3103
3104
3105MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3106
3107# For better backward compatibility.  To be removed once Automake 1.9.x
3108# dies out for good.  For more background, see:
3109# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3110# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3111mkdir_p='$(MKDIR_P)'
3112
3113# We need awk for the "check" target.  The system "awk" is bad on
3114# some platforms.
3115# Always define AMTAR for backward compatibility.  Yes, it's still used
3116# in the wild :-(  We should find a proper way to deprecate it ...
3117AMTAR='$${TAR-tar}'
3118
3119
3120# We'll loop over all known methods to create a tar archive until one works.
3121_am_tools='gnutar  pax cpio none'
3122
3123am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3124
3125
3126
3127
3128
3129
3130# POSIX will say in a future version that running "rm -f" with no argument
3131# is OK; and we want to be able to make that assumption in our Makefile
3132# recipes.  So use an aggressive probe to check that the usage we want is
3133# actually supported "in the wild" to an acceptable degree.
3134# See automake bug#10828.
3135# To make any issue more visible, cause the running configure to be aborted
3136# by default if the 'rm' program in use doesn't match our expectations; the
3137# user can still override this though.
3138if rm -f && rm -fr && rm -rf; then : OK; else
3139  cat >&2 <<'END'
3140Oops!
3141
3142Your 'rm' program seems unable to run without file operands specified
3143on the command line, even when the '-f' option is present.  This is contrary
3144to the behaviour of most rm programs out there, and not conforming with
3145the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3146
3147Please tell bug-automake@gnu.org about your system, including the value
3148of your $PATH and any error possibly output before this message.  This
3149can help us improve future automake versions.
3150
3151END
3152  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3153    echo 'Configuration will proceed anyway, since you have set the' >&2
3154    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3155    echo >&2
3156  else
3157    cat >&2 <<'END'
3158Aborting the configuration process, to ensure you take notice of the issue.
3159
3160You can download and install GNU coreutils to get an 'rm' implementation
3161that behaves properly: <http://www.gnu.org/software/coreutils/>.
3162
3163If you want to complete the configuration process using your problematic
3164'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3165to "yes", and re-run configure.
3166
3167END
3168    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3169  fi
3170fi
3171
3172# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185DEPDIR="${am__leading_dot}deps"
3186
3187ac_config_commands="$ac_config_commands depfiles"
3188
3189
3190am_make=${MAKE-make}
3191cat > confinc << 'END'
3192am__doit:
3193	@echo this is the am__doit target
3194.PHONY: am__doit
3195END
3196# If we don't find an include directive, just comment out the code.
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3198$as_echo_n "checking for style of include used by $am_make... " >&6; }
3199am__include="#"
3200am__quote=
3201_am_result=none
3202# First try GNU make style include.
3203echo "include confinc" > confmf
3204# Ignore all kinds of additional output from 'make'.
3205case `$am_make -s -f confmf 2> /dev/null` in #(
3206*the\ am__doit\ target*)
3207  am__include=include
3208  am__quote=
3209  _am_result=GNU
3210  ;;
3211esac
3212# Now try BSD make style include.
3213if test "$am__include" = "#"; then
3214   echo '.include "confinc"' > confmf
3215   case `$am_make -s -f confmf 2> /dev/null` in #(
3216   *the\ am__doit\ target*)
3217     am__include=.include
3218     am__quote="\""
3219     _am_result=BSD
3220     ;;
3221   esac
3222fi
3223
3224
3225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3226$as_echo "$_am_result" >&6; }
3227rm -f confinc confmf
3228
3229# Check whether --enable-dependency-tracking was given.
3230if test "${enable_dependency_tracking+set}" = set; then :
3231  enableval=$enable_dependency_tracking;
3232fi
3233
3234if test "x$enable_dependency_tracking" != xno; then
3235  am_depcomp="$ac_aux_dir/depcomp"
3236  AMDEPBACKSLASH='\'
3237  am__nodep='_no'
3238fi
3239 if test "x$enable_dependency_tracking" != xno; then
3240  AMDEP_TRUE=
3241  AMDEP_FALSE='#'
3242else
3243  AMDEP_TRUE='#'
3244  AMDEP_FALSE=
3245fi
3246
3247
3248ac_ext=c
3249ac_cpp='$CPP $CPPFLAGS'
3250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252ac_compiler_gnu=$ac_cv_c_compiler_gnu
3253if test -n "$ac_tool_prefix"; then
3254  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3255set dummy ${ac_tool_prefix}gcc; ac_word=$2
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257$as_echo_n "checking for $ac_word... " >&6; }
3258if ${ac_cv_prog_CC+:} false; then :
3259  $as_echo_n "(cached) " >&6
3260else
3261  if test -n "$CC"; then
3262  ac_cv_prog_CC="$CC" # Let the user override the test.
3263else
3264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265for as_dir in $PATH
3266do
3267  IFS=$as_save_IFS
3268  test -z "$as_dir" && as_dir=.
3269    for ac_exec_ext in '' $ac_executable_extensions; do
3270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273    break 2
3274  fi
3275done
3276  done
3277IFS=$as_save_IFS
3278
3279fi
3280fi
3281CC=$ac_cv_prog_CC
3282if test -n "$CC"; then
3283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284$as_echo "$CC" >&6; }
3285else
3286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287$as_echo "no" >&6; }
3288fi
3289
3290
3291fi
3292if test -z "$ac_cv_prog_CC"; then
3293  ac_ct_CC=$CC
3294  # Extract the first word of "gcc", so it can be a program name with args.
3295set dummy gcc; ac_word=$2
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297$as_echo_n "checking for $ac_word... " >&6; }
3298if ${ac_cv_prog_ac_ct_CC+:} false; then :
3299  $as_echo_n "(cached) " >&6
3300else
3301  if test -n "$ac_ct_CC"; then
3302  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3303else
3304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305for as_dir in $PATH
3306do
3307  IFS=$as_save_IFS
3308  test -z "$as_dir" && as_dir=.
3309    for ac_exec_ext in '' $ac_executable_extensions; do
3310  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3311    ac_cv_prog_ac_ct_CC="gcc"
3312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313    break 2
3314  fi
3315done
3316  done
3317IFS=$as_save_IFS
3318
3319fi
3320fi
3321ac_ct_CC=$ac_cv_prog_ac_ct_CC
3322if test -n "$ac_ct_CC"; then
3323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3324$as_echo "$ac_ct_CC" >&6; }
3325else
3326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327$as_echo "no" >&6; }
3328fi
3329
3330  if test "x$ac_ct_CC" = x; then
3331    CC=""
3332  else
3333    case $cross_compiling:$ac_tool_warned in
3334yes:)
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3337ac_tool_warned=yes ;;
3338esac
3339    CC=$ac_ct_CC
3340  fi
3341else
3342  CC="$ac_cv_prog_CC"
3343fi
3344
3345if test -z "$CC"; then
3346          if test -n "$ac_tool_prefix"; then
3347    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3348set dummy ${ac_tool_prefix}cc; ac_word=$2
3349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350$as_echo_n "checking for $ac_word... " >&6; }
3351if ${ac_cv_prog_CC+:} false; then :
3352  $as_echo_n "(cached) " >&6
3353else
3354  if test -n "$CC"; then
3355  ac_cv_prog_CC="$CC" # Let the user override the test.
3356else
3357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358for as_dir in $PATH
3359do
3360  IFS=$as_save_IFS
3361  test -z "$as_dir" && as_dir=.
3362    for ac_exec_ext in '' $ac_executable_extensions; do
3363  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364    ac_cv_prog_CC="${ac_tool_prefix}cc"
3365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366    break 2
3367  fi
3368done
3369  done
3370IFS=$as_save_IFS
3371
3372fi
3373fi
3374CC=$ac_cv_prog_CC
3375if test -n "$CC"; then
3376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3377$as_echo "$CC" >&6; }
3378else
3379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380$as_echo "no" >&6; }
3381fi
3382
3383
3384  fi
3385fi
3386if test -z "$CC"; then
3387  # Extract the first word of "cc", so it can be a program name with args.
3388set dummy cc; ac_word=$2
3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390$as_echo_n "checking for $ac_word... " >&6; }
3391if ${ac_cv_prog_CC+:} false; then :
3392  $as_echo_n "(cached) " >&6
3393else
3394  if test -n "$CC"; then
3395  ac_cv_prog_CC="$CC" # Let the user override the test.
3396else
3397  ac_prog_rejected=no
3398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399for as_dir in $PATH
3400do
3401  IFS=$as_save_IFS
3402  test -z "$as_dir" && as_dir=.
3403    for ac_exec_ext in '' $ac_executable_extensions; do
3404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3406       ac_prog_rejected=yes
3407       continue
3408     fi
3409    ac_cv_prog_CC="cc"
3410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411    break 2
3412  fi
3413done
3414  done
3415IFS=$as_save_IFS
3416
3417if test $ac_prog_rejected = yes; then
3418  # We found a bogon in the path, so make sure we never use it.
3419  set dummy $ac_cv_prog_CC
3420  shift
3421  if test $# != 0; then
3422    # We chose a different compiler from the bogus one.
3423    # However, it has the same basename, so the bogon will be chosen
3424    # first if we set CC to just the basename; use the full file name.
3425    shift
3426    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3427  fi
3428fi
3429fi
3430fi
3431CC=$ac_cv_prog_CC
3432if test -n "$CC"; then
3433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3434$as_echo "$CC" >&6; }
3435else
3436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437$as_echo "no" >&6; }
3438fi
3439
3440
3441fi
3442if test -z "$CC"; then
3443  if test -n "$ac_tool_prefix"; then
3444  for ac_prog in cl.exe
3445  do
3446    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3447set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449$as_echo_n "checking for $ac_word... " >&6; }
3450if ${ac_cv_prog_CC+:} false; then :
3451  $as_echo_n "(cached) " >&6
3452else
3453  if test -n "$CC"; then
3454  ac_cv_prog_CC="$CC" # Let the user override the test.
3455else
3456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457for as_dir in $PATH
3458do
3459  IFS=$as_save_IFS
3460  test -z "$as_dir" && as_dir=.
3461    for ac_exec_ext in '' $ac_executable_extensions; do
3462  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3463    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3465    break 2
3466  fi
3467done
3468  done
3469IFS=$as_save_IFS
3470
3471fi
3472fi
3473CC=$ac_cv_prog_CC
3474if test -n "$CC"; then
3475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3476$as_echo "$CC" >&6; }
3477else
3478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479$as_echo "no" >&6; }
3480fi
3481
3482
3483    test -n "$CC" && break
3484  done
3485fi
3486if test -z "$CC"; then
3487  ac_ct_CC=$CC
3488  for ac_prog in cl.exe
3489do
3490  # Extract the first word of "$ac_prog", so it can be a program name with args.
3491set dummy $ac_prog; ac_word=$2
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493$as_echo_n "checking for $ac_word... " >&6; }
3494if ${ac_cv_prog_ac_ct_CC+:} false; then :
3495  $as_echo_n "(cached) " >&6
3496else
3497  if test -n "$ac_ct_CC"; then
3498  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3499else
3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501for as_dir in $PATH
3502do
3503  IFS=$as_save_IFS
3504  test -z "$as_dir" && as_dir=.
3505    for ac_exec_ext in '' $ac_executable_extensions; do
3506  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507    ac_cv_prog_ac_ct_CC="$ac_prog"
3508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509    break 2
3510  fi
3511done
3512  done
3513IFS=$as_save_IFS
3514
3515fi
3516fi
3517ac_ct_CC=$ac_cv_prog_ac_ct_CC
3518if test -n "$ac_ct_CC"; then
3519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3520$as_echo "$ac_ct_CC" >&6; }
3521else
3522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523$as_echo "no" >&6; }
3524fi
3525
3526
3527  test -n "$ac_ct_CC" && break
3528done
3529
3530  if test "x$ac_ct_CC" = x; then
3531    CC=""
3532  else
3533    case $cross_compiling:$ac_tool_warned in
3534yes:)
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3537ac_tool_warned=yes ;;
3538esac
3539    CC=$ac_ct_CC
3540  fi
3541fi
3542
3543fi
3544
3545
3546test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3548as_fn_error $? "no acceptable C compiler found in \$PATH
3549See \`config.log' for more details" "$LINENO" 5; }
3550
3551# Provide some information about the compiler.
3552$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3553set X $ac_compile
3554ac_compiler=$2
3555for ac_option in --version -v -V -qversion; do
3556  { { ac_try="$ac_compiler $ac_option >&5"
3557case "(($ac_try" in
3558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559  *) ac_try_echo=$ac_try;;
3560esac
3561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562$as_echo "$ac_try_echo"; } >&5
3563  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3564  ac_status=$?
3565  if test -s conftest.err; then
3566    sed '10a\
3567... rest of stderr output deleted ...
3568         10q' conftest.err >conftest.er1
3569    cat conftest.er1 >&5
3570  fi
3571  rm -f conftest.er1 conftest.err
3572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573  test $ac_status = 0; }
3574done
3575
3576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577/* end confdefs.h.  */
3578
3579int
3580main ()
3581{
3582
3583  ;
3584  return 0;
3585}
3586_ACEOF
3587ac_clean_files_save=$ac_clean_files
3588ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3589# Try to create an executable without -o first, disregard a.out.
3590# It will help us diagnose broken compilers, and finding out an intuition
3591# of exeext.
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3593$as_echo_n "checking whether the C compiler works... " >&6; }
3594ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3595
3596# The possible output files:
3597ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3598
3599ac_rmfiles=
3600for ac_file in $ac_files
3601do
3602  case $ac_file in
3603    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3604    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3605  esac
3606done
3607rm -f $ac_rmfiles
3608
3609if { { ac_try="$ac_link_default"
3610case "(($ac_try" in
3611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612  *) ac_try_echo=$ac_try;;
3613esac
3614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615$as_echo "$ac_try_echo"; } >&5
3616  (eval "$ac_link_default") 2>&5
3617  ac_status=$?
3618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619  test $ac_status = 0; }; then :
3620  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3621# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3622# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3623# so that the user can short-circuit this test for compilers unknown to
3624# Autoconf.
3625for ac_file in $ac_files ''
3626do
3627  test -f "$ac_file" || continue
3628  case $ac_file in
3629    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3630	;;
3631    [ab].out )
3632	# We found the default executable, but exeext='' is most
3633	# certainly right.
3634	break;;
3635    *.* )
3636	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3637	then :; else
3638	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3639	fi
3640	# We set ac_cv_exeext here because the later test for it is not
3641	# safe: cross compilers may not add the suffix if given an `-o'
3642	# argument, so we may need to know it at that point already.
3643	# Even if this section looks crufty: it has the advantage of
3644	# actually working.
3645	break;;
3646    * )
3647	break;;
3648  esac
3649done
3650test "$ac_cv_exeext" = no && ac_cv_exeext=
3651
3652else
3653  ac_file=''
3654fi
3655if test -z "$ac_file"; then :
3656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657$as_echo "no" >&6; }
3658$as_echo "$as_me: failed program was:" >&5
3659sed 's/^/| /' conftest.$ac_ext >&5
3660
3661{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663as_fn_error 77 "C compiler cannot create executables
3664See \`config.log' for more details" "$LINENO" 5; }
3665else
3666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3667$as_echo "yes" >&6; }
3668fi
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3670$as_echo_n "checking for C compiler default output file name... " >&6; }
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3672$as_echo "$ac_file" >&6; }
3673ac_exeext=$ac_cv_exeext
3674
3675rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3676ac_clean_files=$ac_clean_files_save
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3678$as_echo_n "checking for suffix of executables... " >&6; }
3679if { { ac_try="$ac_link"
3680case "(($ac_try" in
3681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682  *) ac_try_echo=$ac_try;;
3683esac
3684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685$as_echo "$ac_try_echo"; } >&5
3686  (eval "$ac_link") 2>&5
3687  ac_status=$?
3688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689  test $ac_status = 0; }; then :
3690  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3691# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3692# work properly (i.e., refer to `conftest.exe'), while it won't with
3693# `rm'.
3694for ac_file in conftest.exe conftest conftest.*; do
3695  test -f "$ac_file" || continue
3696  case $ac_file in
3697    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3698    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3699	  break;;
3700    * ) break;;
3701  esac
3702done
3703else
3704  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3707See \`config.log' for more details" "$LINENO" 5; }
3708fi
3709rm -f conftest conftest$ac_cv_exeext
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3711$as_echo "$ac_cv_exeext" >&6; }
3712
3713rm -f conftest.$ac_ext
3714EXEEXT=$ac_cv_exeext
3715ac_exeext=$EXEEXT
3716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717/* end confdefs.h.  */
3718#include <stdio.h>
3719int
3720main ()
3721{
3722FILE *f = fopen ("conftest.out", "w");
3723 return ferror (f) || fclose (f) != 0;
3724
3725  ;
3726  return 0;
3727}
3728_ACEOF
3729ac_clean_files="$ac_clean_files conftest.out"
3730# Check that the compiler produces executables we can run.  If not, either
3731# the compiler is broken, or we cross compile.
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3733$as_echo_n "checking whether we are cross compiling... " >&6; }
3734if test "$cross_compiling" != yes; then
3735  { { ac_try="$ac_link"
3736case "(($ac_try" in
3737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738  *) ac_try_echo=$ac_try;;
3739esac
3740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741$as_echo "$ac_try_echo"; } >&5
3742  (eval "$ac_link") 2>&5
3743  ac_status=$?
3744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745  test $ac_status = 0; }
3746  if { ac_try='./conftest$ac_cv_exeext'
3747  { { case "(($ac_try" in
3748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749  *) ac_try_echo=$ac_try;;
3750esac
3751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752$as_echo "$ac_try_echo"; } >&5
3753  (eval "$ac_try") 2>&5
3754  ac_status=$?
3755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756  test $ac_status = 0; }; }; then
3757    cross_compiling=no
3758  else
3759    if test "$cross_compiling" = maybe; then
3760	cross_compiling=yes
3761    else
3762	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764as_fn_error $? "cannot run C compiled programs.
3765If you meant to cross compile, use \`--host'.
3766See \`config.log' for more details" "$LINENO" 5; }
3767    fi
3768  fi
3769fi
3770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3771$as_echo "$cross_compiling" >&6; }
3772
3773rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3774ac_clean_files=$ac_clean_files_save
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3776$as_echo_n "checking for suffix of object files... " >&6; }
3777if ${ac_cv_objext+:} false; then :
3778  $as_echo_n "(cached) " >&6
3779else
3780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781/* end confdefs.h.  */
3782
3783int
3784main ()
3785{
3786
3787  ;
3788  return 0;
3789}
3790_ACEOF
3791rm -f conftest.o conftest.obj
3792if { { ac_try="$ac_compile"
3793case "(($ac_try" in
3794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795  *) ac_try_echo=$ac_try;;
3796esac
3797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798$as_echo "$ac_try_echo"; } >&5
3799  (eval "$ac_compile") 2>&5
3800  ac_status=$?
3801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802  test $ac_status = 0; }; then :
3803  for ac_file in conftest.o conftest.obj conftest.*; do
3804  test -f "$ac_file" || continue;
3805  case $ac_file in
3806    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3807    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3808       break;;
3809  esac
3810done
3811else
3812  $as_echo "$as_me: failed program was:" >&5
3813sed 's/^/| /' conftest.$ac_ext >&5
3814
3815{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817as_fn_error $? "cannot compute suffix of object files: cannot compile
3818See \`config.log' for more details" "$LINENO" 5; }
3819fi
3820rm -f conftest.$ac_cv_objext conftest.$ac_ext
3821fi
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3823$as_echo "$ac_cv_objext" >&6; }
3824OBJEXT=$ac_cv_objext
3825ac_objext=$OBJEXT
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3827$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3828if ${ac_cv_c_compiler_gnu+:} false; then :
3829  $as_echo_n "(cached) " >&6
3830else
3831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832/* end confdefs.h.  */
3833
3834int
3835main ()
3836{
3837#ifndef __GNUC__
3838       choke me
3839#endif
3840
3841  ;
3842  return 0;
3843}
3844_ACEOF
3845if ac_fn_c_try_compile "$LINENO"; then :
3846  ac_compiler_gnu=yes
3847else
3848  ac_compiler_gnu=no
3849fi
3850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851ac_cv_c_compiler_gnu=$ac_compiler_gnu
3852
3853fi
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3855$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3856if test $ac_compiler_gnu = yes; then
3857  GCC=yes
3858else
3859  GCC=
3860fi
3861ac_test_CFLAGS=${CFLAGS+set}
3862ac_save_CFLAGS=$CFLAGS
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3864$as_echo_n "checking whether $CC accepts -g... " >&6; }
3865if ${ac_cv_prog_cc_g+:} false; then :
3866  $as_echo_n "(cached) " >&6
3867else
3868  ac_save_c_werror_flag=$ac_c_werror_flag
3869   ac_c_werror_flag=yes
3870   ac_cv_prog_cc_g=no
3871   CFLAGS="-g"
3872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873/* end confdefs.h.  */
3874
3875int
3876main ()
3877{
3878
3879  ;
3880  return 0;
3881}
3882_ACEOF
3883if ac_fn_c_try_compile "$LINENO"; then :
3884  ac_cv_prog_cc_g=yes
3885else
3886  CFLAGS=""
3887      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888/* end confdefs.h.  */
3889
3890int
3891main ()
3892{
3893
3894  ;
3895  return 0;
3896}
3897_ACEOF
3898if ac_fn_c_try_compile "$LINENO"; then :
3899
3900else
3901  ac_c_werror_flag=$ac_save_c_werror_flag
3902	 CFLAGS="-g"
3903	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904/* end confdefs.h.  */
3905
3906int
3907main ()
3908{
3909
3910  ;
3911  return 0;
3912}
3913_ACEOF
3914if ac_fn_c_try_compile "$LINENO"; then :
3915  ac_cv_prog_cc_g=yes
3916fi
3917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918fi
3919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920fi
3921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922   ac_c_werror_flag=$ac_save_c_werror_flag
3923fi
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3925$as_echo "$ac_cv_prog_cc_g" >&6; }
3926if test "$ac_test_CFLAGS" = set; then
3927  CFLAGS=$ac_save_CFLAGS
3928elif test $ac_cv_prog_cc_g = yes; then
3929  if test "$GCC" = yes; then
3930    CFLAGS="-g -O2"
3931  else
3932    CFLAGS="-g"
3933  fi
3934else
3935  if test "$GCC" = yes; then
3936    CFLAGS="-O2"
3937  else
3938    CFLAGS=
3939  fi
3940fi
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3942$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3943if ${ac_cv_prog_cc_c89+:} false; then :
3944  $as_echo_n "(cached) " >&6
3945else
3946  ac_cv_prog_cc_c89=no
3947ac_save_CC=$CC
3948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949/* end confdefs.h.  */
3950#include <stdarg.h>
3951#include <stdio.h>
3952struct stat;
3953/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3954struct buf { int x; };
3955FILE * (*rcsopen) (struct buf *, struct stat *, int);
3956static char *e (p, i)
3957     char **p;
3958     int i;
3959{
3960  return p[i];
3961}
3962static char *f (char * (*g) (char **, int), char **p, ...)
3963{
3964  char *s;
3965  va_list v;
3966  va_start (v,p);
3967  s = g (p, va_arg (v,int));
3968  va_end (v);
3969  return s;
3970}
3971
3972/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3973   function prototypes and stuff, but not '\xHH' hex character constants.
3974   These don't provoke an error unfortunately, instead are silently treated
3975   as 'x'.  The following induces an error, until -std is added to get
3976   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3977   array size at least.  It's necessary to write '\x00'==0 to get something
3978   that's true only with -std.  */
3979int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3980
3981/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3982   inside strings and character constants.  */
3983#define FOO(x) 'x'
3984int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3985
3986int test (int i, double x);
3987struct s1 {int (*f) (int a);};
3988struct s2 {int (*f) (double a);};
3989int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3990int argc;
3991char **argv;
3992int
3993main ()
3994{
3995return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3996  ;
3997  return 0;
3998}
3999_ACEOF
4000for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4001	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4002do
4003  CC="$ac_save_CC $ac_arg"
4004  if ac_fn_c_try_compile "$LINENO"; then :
4005  ac_cv_prog_cc_c89=$ac_arg
4006fi
4007rm -f core conftest.err conftest.$ac_objext
4008  test "x$ac_cv_prog_cc_c89" != "xno" && break
4009done
4010rm -f conftest.$ac_ext
4011CC=$ac_save_CC
4012
4013fi
4014# AC_CACHE_VAL
4015case "x$ac_cv_prog_cc_c89" in
4016  x)
4017    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4018$as_echo "none needed" >&6; } ;;
4019  xno)
4020    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4021$as_echo "unsupported" >&6; } ;;
4022  *)
4023    CC="$CC $ac_cv_prog_cc_c89"
4024    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4025$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4026esac
4027if test "x$ac_cv_prog_cc_c89" != xno; then :
4028
4029fi
4030
4031ac_ext=c
4032ac_cpp='$CPP $CPPFLAGS'
4033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036
4037ac_ext=c
4038ac_cpp='$CPP $CPPFLAGS'
4039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4043$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4044if ${am_cv_prog_cc_c_o+:} false; then :
4045  $as_echo_n "(cached) " >&6
4046else
4047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048/* end confdefs.h.  */
4049
4050int
4051main ()
4052{
4053
4054  ;
4055  return 0;
4056}
4057_ACEOF
4058  # Make sure it works both with $CC and with simple cc.
4059  # Following AC_PROG_CC_C_O, we do the test twice because some
4060  # compilers refuse to overwrite an existing .o file with -o,
4061  # though they will create one.
4062  am_cv_prog_cc_c_o=yes
4063  for am_i in 1 2; do
4064    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4065   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4066   ac_status=$?
4067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068   (exit $ac_status); } \
4069         && test -f conftest2.$ac_objext; then
4070      : OK
4071    else
4072      am_cv_prog_cc_c_o=no
4073      break
4074    fi
4075  done
4076  rm -f core conftest*
4077  unset am_i
4078fi
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4080$as_echo "$am_cv_prog_cc_c_o" >&6; }
4081if test "$am_cv_prog_cc_c_o" != yes; then
4082   # Losing compiler, so override with the script.
4083   # FIXME: It is wrong to rewrite CC.
4084   # But if we don't then we get into trouble of one sort or another.
4085   # A longer-term fix would be to have automake use am__CC in this case,
4086   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4087   CC="$am_aux_dir/compile $CC"
4088fi
4089ac_ext=c
4090ac_cpp='$CPP $CPPFLAGS'
4091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094
4095
4096depcc="$CC"   am_compiler_list=
4097
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4099$as_echo_n "checking dependency style of $depcc... " >&6; }
4100if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4101  $as_echo_n "(cached) " >&6
4102else
4103  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4104  # We make a subdir and do the tests there.  Otherwise we can end up
4105  # making bogus files that we don't know about and never remove.  For
4106  # instance it was reported that on HP-UX the gcc test will end up
4107  # making a dummy file named 'D' -- because '-MD' means "put the output
4108  # in D".
4109  rm -rf conftest.dir
4110  mkdir conftest.dir
4111  # Copy depcomp to subdir because otherwise we won't find it if we're
4112  # using a relative directory.
4113  cp "$am_depcomp" conftest.dir
4114  cd conftest.dir
4115  # We will build objects and dependencies in a subdirectory because
4116  # it helps to detect inapplicable dependency modes.  For instance
4117  # both Tru64's cc and ICC support -MD to output dependencies as a
4118  # side effect of compilation, but ICC will put the dependencies in
4119  # the current directory while Tru64 will put them in the object
4120  # directory.
4121  mkdir sub
4122
4123  am_cv_CC_dependencies_compiler_type=none
4124  if test "$am_compiler_list" = ""; then
4125     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4126  fi
4127  am__universal=false
4128  case " $depcc " in #(
4129     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4130     esac
4131
4132  for depmode in $am_compiler_list; do
4133    # Setup a source with many dependencies, because some compilers
4134    # like to wrap large dependency lists on column 80 (with \), and
4135    # we should not choose a depcomp mode which is confused by this.
4136    #
4137    # We need to recreate these files for each test, as the compiler may
4138    # overwrite some of them when testing with obscure command lines.
4139    # This happens at least with the AIX C compiler.
4140    : > sub/conftest.c
4141    for i in 1 2 3 4 5 6; do
4142      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4143      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4144      # Solaris 10 /bin/sh.
4145      echo '/* dummy */' > sub/conftst$i.h
4146    done
4147    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4148
4149    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4150    # mode.  It turns out that the SunPro C++ compiler does not properly
4151    # handle '-M -o', and we need to detect this.  Also, some Intel
4152    # versions had trouble with output in subdirs.
4153    am__obj=sub/conftest.${OBJEXT-o}
4154    am__minus_obj="-o $am__obj"
4155    case $depmode in
4156    gcc)
4157      # This depmode causes a compiler race in universal mode.
4158      test "$am__universal" = false || continue
4159      ;;
4160    nosideeffect)
4161      # After this tag, mechanisms are not by side-effect, so they'll
4162      # only be used when explicitly requested.
4163      if test "x$enable_dependency_tracking" = xyes; then
4164	continue
4165      else
4166	break
4167      fi
4168      ;;
4169    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4170      # This compiler won't grok '-c -o', but also, the minuso test has
4171      # not run yet.  These depmodes are late enough in the game, and
4172      # so weak that their functioning should not be impacted.
4173      am__obj=conftest.${OBJEXT-o}
4174      am__minus_obj=
4175      ;;
4176    none) break ;;
4177    esac
4178    if depmode=$depmode \
4179       source=sub/conftest.c object=$am__obj \
4180       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4181       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4182         >/dev/null 2>conftest.err &&
4183       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4184       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4185       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4186       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4187      # icc doesn't choke on unknown options, it will just issue warnings
4188      # or remarks (even with -Werror).  So we grep stderr for any message
4189      # that says an option was ignored or not supported.
4190      # When given -MP, icc 7.0 and 7.1 complain thusly:
4191      #   icc: Command line warning: ignoring option '-M'; no argument required
4192      # The diagnosis changed in icc 8.0:
4193      #   icc: Command line remark: option '-MP' not supported
4194      if (grep 'ignoring option' conftest.err ||
4195          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4196        am_cv_CC_dependencies_compiler_type=$depmode
4197        break
4198      fi
4199    fi
4200  done
4201
4202  cd ..
4203  rm -rf conftest.dir
4204else
4205  am_cv_CC_dependencies_compiler_type=none
4206fi
4207
4208fi
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4210$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4211CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4212
4213 if
4214  test "x$enable_dependency_tracking" != xno \
4215  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4216  am__fastdepCC_TRUE=
4217  am__fastdepCC_FALSE='#'
4218else
4219  am__fastdepCC_TRUE='#'
4220  am__fastdepCC_FALSE=
4221fi
4222
4223
4224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4225$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4226if ${ac_cv_prog_cc_c99+:} false; then :
4227  $as_echo_n "(cached) " >&6
4228else
4229  ac_cv_prog_cc_c99=no
4230ac_save_CC=$CC
4231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232/* end confdefs.h.  */
4233#include <stdarg.h>
4234#include <stdbool.h>
4235#include <stdlib.h>
4236#include <wchar.h>
4237#include <stdio.h>
4238
4239// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4240#define debug(...) fprintf (stderr, __VA_ARGS__)
4241#define showlist(...) puts (#__VA_ARGS__)
4242#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4243static void
4244test_varargs_macros (void)
4245{
4246  int x = 1234;
4247  int y = 5678;
4248  debug ("Flag");
4249  debug ("X = %d\n", x);
4250  showlist (The first, second, and third items.);
4251  report (x>y, "x is %d but y is %d", x, y);
4252}
4253
4254// Check long long types.
4255#define BIG64 18446744073709551615ull
4256#define BIG32 4294967295ul
4257#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4258#if !BIG_OK
4259  your preprocessor is broken;
4260#endif
4261#if BIG_OK
4262#else
4263  your preprocessor is broken;
4264#endif
4265static long long int bignum = -9223372036854775807LL;
4266static unsigned long long int ubignum = BIG64;
4267
4268struct incomplete_array
4269{
4270  int datasize;
4271  double data[];
4272};
4273
4274struct named_init {
4275  int number;
4276  const wchar_t *name;
4277  double average;
4278};
4279
4280typedef const char *ccp;
4281
4282static inline int
4283test_restrict (ccp restrict text)
4284{
4285  // See if C++-style comments work.
4286  // Iterate through items via the restricted pointer.
4287  // Also check for declarations in for loops.
4288  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4289    continue;
4290  return 0;
4291}
4292
4293// Check varargs and va_copy.
4294static void
4295test_varargs (const char *format, ...)
4296{
4297  va_list args;
4298  va_start (args, format);
4299  va_list args_copy;
4300  va_copy (args_copy, args);
4301
4302  const char *str;
4303  int number;
4304  float fnumber;
4305
4306  while (*format)
4307    {
4308      switch (*format++)
4309	{
4310	case 's': // string
4311	  str = va_arg (args_copy, const char *);
4312	  break;
4313	case 'd': // int
4314	  number = va_arg (args_copy, int);
4315	  break;
4316	case 'f': // float
4317	  fnumber = va_arg (args_copy, double);
4318	  break;
4319	default:
4320	  break;
4321	}
4322    }
4323  va_end (args_copy);
4324  va_end (args);
4325}
4326
4327int
4328main ()
4329{
4330
4331  // Check bool.
4332  _Bool success = false;
4333
4334  // Check restrict.
4335  if (test_restrict ("String literal") == 0)
4336    success = true;
4337  char *restrict newvar = "Another string";
4338
4339  // Check varargs.
4340  test_varargs ("s, d' f .", "string", 65, 34.234);
4341  test_varargs_macros ();
4342
4343  // Check flexible array members.
4344  struct incomplete_array *ia =
4345    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4346  ia->datasize = 10;
4347  for (int i = 0; i < ia->datasize; ++i)
4348    ia->data[i] = i * 1.234;
4349
4350  // Check named initializers.
4351  struct named_init ni = {
4352    .number = 34,
4353    .name = L"Test wide string",
4354    .average = 543.34343,
4355  };
4356
4357  ni.number = 58;
4358
4359  int dynamic_array[ni.number];
4360  dynamic_array[ni.number - 1] = 543;
4361
4362  // work around unused variable warnings
4363  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4364	  || dynamic_array[ni.number - 1] != 543);
4365
4366  ;
4367  return 0;
4368}
4369_ACEOF
4370for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4371do
4372  CC="$ac_save_CC $ac_arg"
4373  if ac_fn_c_try_compile "$LINENO"; then :
4374  ac_cv_prog_cc_c99=$ac_arg
4375fi
4376rm -f core conftest.err conftest.$ac_objext
4377  test "x$ac_cv_prog_cc_c99" != "xno" && break
4378done
4379rm -f conftest.$ac_ext
4380CC=$ac_save_CC
4381
4382fi
4383# AC_CACHE_VAL
4384case "x$ac_cv_prog_cc_c99" in
4385  x)
4386    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4387$as_echo "none needed" >&6; } ;;
4388  xno)
4389    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4390$as_echo "unsupported" >&6; } ;;
4391  *)
4392    CC="$CC $ac_cv_prog_cc_c99"
4393    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4394$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4395esac
4396if test "x$ac_cv_prog_cc_c99" != xno; then :
4397
4398fi
4399
4400
4401
4402ac_ext=c
4403ac_cpp='$CPP $CPPFLAGS'
4404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4408$as_echo_n "checking how to run the C preprocessor... " >&6; }
4409# On Suns, sometimes $CPP names a directory.
4410if test -n "$CPP" && test -d "$CPP"; then
4411  CPP=
4412fi
4413if test -z "$CPP"; then
4414  if ${ac_cv_prog_CPP+:} false; then :
4415  $as_echo_n "(cached) " >&6
4416else
4417      # Double quotes because CPP needs to be expanded
4418    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4419    do
4420      ac_preproc_ok=false
4421for ac_c_preproc_warn_flag in '' yes
4422do
4423  # Use a header file that comes with gcc, so configuring glibc
4424  # with a fresh cross-compiler works.
4425  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4426  # <limits.h> exists even on freestanding compilers.
4427  # On the NeXT, cc -E runs the code through the compiler's parser,
4428  # not just through cpp. "Syntax error" is here to catch this case.
4429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430/* end confdefs.h.  */
4431#ifdef __STDC__
4432# include <limits.h>
4433#else
4434# include <assert.h>
4435#endif
4436		     Syntax error
4437_ACEOF
4438if ac_fn_c_try_cpp "$LINENO"; then :
4439
4440else
4441  # Broken: fails on valid input.
4442continue
4443fi
4444rm -f conftest.err conftest.i conftest.$ac_ext
4445
4446  # OK, works on sane cases.  Now check whether nonexistent headers
4447  # can be detected and how.
4448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449/* end confdefs.h.  */
4450#include <ac_nonexistent.h>
4451_ACEOF
4452if ac_fn_c_try_cpp "$LINENO"; then :
4453  # Broken: success on invalid input.
4454continue
4455else
4456  # Passes both tests.
4457ac_preproc_ok=:
4458break
4459fi
4460rm -f conftest.err conftest.i conftest.$ac_ext
4461
4462done
4463# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4464rm -f conftest.i conftest.err conftest.$ac_ext
4465if $ac_preproc_ok; then :
4466  break
4467fi
4468
4469    done
4470    ac_cv_prog_CPP=$CPP
4471
4472fi
4473  CPP=$ac_cv_prog_CPP
4474else
4475  ac_cv_prog_CPP=$CPP
4476fi
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4478$as_echo "$CPP" >&6; }
4479ac_preproc_ok=false
4480for ac_c_preproc_warn_flag in '' yes
4481do
4482  # Use a header file that comes with gcc, so configuring glibc
4483  # with a fresh cross-compiler works.
4484  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4485  # <limits.h> exists even on freestanding compilers.
4486  # On the NeXT, cc -E runs the code through the compiler's parser,
4487  # not just through cpp. "Syntax error" is here to catch this case.
4488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489/* end confdefs.h.  */
4490#ifdef __STDC__
4491# include <limits.h>
4492#else
4493# include <assert.h>
4494#endif
4495		     Syntax error
4496_ACEOF
4497if ac_fn_c_try_cpp "$LINENO"; then :
4498
4499else
4500  # Broken: fails on valid input.
4501continue
4502fi
4503rm -f conftest.err conftest.i conftest.$ac_ext
4504
4505  # OK, works on sane cases.  Now check whether nonexistent headers
4506  # can be detected and how.
4507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508/* end confdefs.h.  */
4509#include <ac_nonexistent.h>
4510_ACEOF
4511if ac_fn_c_try_cpp "$LINENO"; then :
4512  # Broken: success on invalid input.
4513continue
4514else
4515  # Passes both tests.
4516ac_preproc_ok=:
4517break
4518fi
4519rm -f conftest.err conftest.i conftest.$ac_ext
4520
4521done
4522# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4523rm -f conftest.i conftest.err conftest.$ac_ext
4524if $ac_preproc_ok; then :
4525
4526else
4527  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4529as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4530See \`config.log' for more details" "$LINENO" 5; }
4531fi
4532
4533ac_ext=c
4534ac_cpp='$CPP $CPPFLAGS'
4535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538
4539
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4541$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4542if ${ac_cv_path_GREP+:} false; then :
4543  $as_echo_n "(cached) " >&6
4544else
4545  if test -z "$GREP"; then
4546  ac_path_GREP_found=false
4547  # Loop through the user's path and test for each of PROGNAME-LIST
4548  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4550do
4551  IFS=$as_save_IFS
4552  test -z "$as_dir" && as_dir=.
4553    for ac_prog in grep ggrep; do
4554    for ac_exec_ext in '' $ac_executable_extensions; do
4555      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4556      as_fn_executable_p "$ac_path_GREP" || continue
4557# Check for GNU ac_path_GREP and select it if it is found.
4558  # Check for GNU $ac_path_GREP
4559case `"$ac_path_GREP" --version 2>&1` in
4560*GNU*)
4561  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4562*)
4563  ac_count=0
4564  $as_echo_n 0123456789 >"conftest.in"
4565  while :
4566  do
4567    cat "conftest.in" "conftest.in" >"conftest.tmp"
4568    mv "conftest.tmp" "conftest.in"
4569    cp "conftest.in" "conftest.nl"
4570    $as_echo 'GREP' >> "conftest.nl"
4571    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4572    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4573    as_fn_arith $ac_count + 1 && ac_count=$as_val
4574    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4575      # Best one so far, save it but keep looking for a better one
4576      ac_cv_path_GREP="$ac_path_GREP"
4577      ac_path_GREP_max=$ac_count
4578    fi
4579    # 10*(2^10) chars as input seems more than enough
4580    test $ac_count -gt 10 && break
4581  done
4582  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4583esac
4584
4585      $ac_path_GREP_found && break 3
4586    done
4587  done
4588  done
4589IFS=$as_save_IFS
4590  if test -z "$ac_cv_path_GREP"; then
4591    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4592  fi
4593else
4594  ac_cv_path_GREP=$GREP
4595fi
4596
4597fi
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4599$as_echo "$ac_cv_path_GREP" >&6; }
4600 GREP="$ac_cv_path_GREP"
4601
4602
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4604$as_echo_n "checking for egrep... " >&6; }
4605if ${ac_cv_path_EGREP+:} false; then :
4606  $as_echo_n "(cached) " >&6
4607else
4608  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4609   then ac_cv_path_EGREP="$GREP -E"
4610   else
4611     if test -z "$EGREP"; then
4612  ac_path_EGREP_found=false
4613  # Loop through the user's path and test for each of PROGNAME-LIST
4614  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4616do
4617  IFS=$as_save_IFS
4618  test -z "$as_dir" && as_dir=.
4619    for ac_prog in egrep; do
4620    for ac_exec_ext in '' $ac_executable_extensions; do
4621      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4622      as_fn_executable_p "$ac_path_EGREP" || continue
4623# Check for GNU ac_path_EGREP and select it if it is found.
4624  # Check for GNU $ac_path_EGREP
4625case `"$ac_path_EGREP" --version 2>&1` in
4626*GNU*)
4627  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4628*)
4629  ac_count=0
4630  $as_echo_n 0123456789 >"conftest.in"
4631  while :
4632  do
4633    cat "conftest.in" "conftest.in" >"conftest.tmp"
4634    mv "conftest.tmp" "conftest.in"
4635    cp "conftest.in" "conftest.nl"
4636    $as_echo 'EGREP' >> "conftest.nl"
4637    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4638    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4639    as_fn_arith $ac_count + 1 && ac_count=$as_val
4640    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4641      # Best one so far, save it but keep looking for a better one
4642      ac_cv_path_EGREP="$ac_path_EGREP"
4643      ac_path_EGREP_max=$ac_count
4644    fi
4645    # 10*(2^10) chars as input seems more than enough
4646    test $ac_count -gt 10 && break
4647  done
4648  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4649esac
4650
4651      $ac_path_EGREP_found && break 3
4652    done
4653  done
4654  done
4655IFS=$as_save_IFS
4656  if test -z "$ac_cv_path_EGREP"; then
4657    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4658  fi
4659else
4660  ac_cv_path_EGREP=$EGREP
4661fi
4662
4663   fi
4664fi
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4666$as_echo "$ac_cv_path_EGREP" >&6; }
4667 EGREP="$ac_cv_path_EGREP"
4668
4669
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4671$as_echo_n "checking for ANSI C header files... " >&6; }
4672if ${ac_cv_header_stdc+:} false; then :
4673  $as_echo_n "(cached) " >&6
4674else
4675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676/* end confdefs.h.  */
4677#include <stdlib.h>
4678#include <stdarg.h>
4679#include <string.h>
4680#include <float.h>
4681
4682int
4683main ()
4684{
4685
4686  ;
4687  return 0;
4688}
4689_ACEOF
4690if ac_fn_c_try_compile "$LINENO"; then :
4691  ac_cv_header_stdc=yes
4692else
4693  ac_cv_header_stdc=no
4694fi
4695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696
4697if test $ac_cv_header_stdc = yes; then
4698  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700/* end confdefs.h.  */
4701#include <string.h>
4702
4703_ACEOF
4704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4705  $EGREP "memchr" >/dev/null 2>&1; then :
4706
4707else
4708  ac_cv_header_stdc=no
4709fi
4710rm -f conftest*
4711
4712fi
4713
4714if test $ac_cv_header_stdc = yes; then
4715  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717/* end confdefs.h.  */
4718#include <stdlib.h>
4719
4720_ACEOF
4721if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4722  $EGREP "free" >/dev/null 2>&1; then :
4723
4724else
4725  ac_cv_header_stdc=no
4726fi
4727rm -f conftest*
4728
4729fi
4730
4731if test $ac_cv_header_stdc = yes; then
4732  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4733  if test "$cross_compiling" = yes; then :
4734  :
4735else
4736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737/* end confdefs.h.  */
4738#include <ctype.h>
4739#include <stdlib.h>
4740#if ((' ' & 0x0FF) == 0x020)
4741# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4742# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4743#else
4744# define ISLOWER(c) \
4745		   (('a' <= (c) && (c) <= 'i') \
4746		     || ('j' <= (c) && (c) <= 'r') \
4747		     || ('s' <= (c) && (c) <= 'z'))
4748# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4749#endif
4750
4751#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4752int
4753main ()
4754{
4755  int i;
4756  for (i = 0; i < 256; i++)
4757    if (XOR (islower (i), ISLOWER (i))
4758	|| toupper (i) != TOUPPER (i))
4759      return 2;
4760  return 0;
4761}
4762_ACEOF
4763if ac_fn_c_try_run "$LINENO"; then :
4764
4765else
4766  ac_cv_header_stdc=no
4767fi
4768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4769  conftest.$ac_objext conftest.beam conftest.$ac_ext
4770fi
4771
4772fi
4773fi
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4775$as_echo "$ac_cv_header_stdc" >&6; }
4776if test $ac_cv_header_stdc = yes; then
4777
4778$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4779
4780fi
4781
4782# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4783for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4784		  inttypes.h stdint.h unistd.h
4785do :
4786  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4787ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4788"
4789if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4790  cat >>confdefs.h <<_ACEOF
4791#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4792_ACEOF
4793
4794fi
4795
4796done
4797
4798
4799
4800
4801
4802
4803ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4804if test "x$ac_cv_have_decl___clang__" = xyes; then :
4805  CLANGCC="yes"
4806else
4807  CLANGCC="no"
4808fi
4809
4810ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4811if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4812  INTELCC="yes"
4813else
4814  INTELCC="no"
4815fi
4816
4817ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4818if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4819  SUNCC="yes"
4820else
4821  SUNCC="no"
4822fi
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4833	if test -n "$ac_tool_prefix"; then
4834  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4835set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4837$as_echo_n "checking for $ac_word... " >&6; }
4838if ${ac_cv_path_PKG_CONFIG+:} false; then :
4839  $as_echo_n "(cached) " >&6
4840else
4841  case $PKG_CONFIG in
4842  [\\/]* | ?:[\\/]*)
4843  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4844  ;;
4845  *)
4846  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847for as_dir in $PATH
4848do
4849  IFS=$as_save_IFS
4850  test -z "$as_dir" && as_dir=.
4851    for ac_exec_ext in '' $ac_executable_extensions; do
4852  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4853    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4854    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4855    break 2
4856  fi
4857done
4858  done
4859IFS=$as_save_IFS
4860
4861  ;;
4862esac
4863fi
4864PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4865if test -n "$PKG_CONFIG"; then
4866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4867$as_echo "$PKG_CONFIG" >&6; }
4868else
4869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4870$as_echo "no" >&6; }
4871fi
4872
4873
4874fi
4875if test -z "$ac_cv_path_PKG_CONFIG"; then
4876  ac_pt_PKG_CONFIG=$PKG_CONFIG
4877  # Extract the first word of "pkg-config", so it can be a program name with args.
4878set dummy pkg-config; ac_word=$2
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880$as_echo_n "checking for $ac_word... " >&6; }
4881if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4882  $as_echo_n "(cached) " >&6
4883else
4884  case $ac_pt_PKG_CONFIG in
4885  [\\/]* | ?:[\\/]*)
4886  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4887  ;;
4888  *)
4889  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890for as_dir in $PATH
4891do
4892  IFS=$as_save_IFS
4893  test -z "$as_dir" && as_dir=.
4894    for ac_exec_ext in '' $ac_executable_extensions; do
4895  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898    break 2
4899  fi
4900done
4901  done
4902IFS=$as_save_IFS
4903
4904  ;;
4905esac
4906fi
4907ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4908if test -n "$ac_pt_PKG_CONFIG"; then
4909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4910$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4911else
4912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913$as_echo "no" >&6; }
4914fi
4915
4916  if test "x$ac_pt_PKG_CONFIG" = x; then
4917    PKG_CONFIG=""
4918  else
4919    case $cross_compiling:$ac_tool_warned in
4920yes:)
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4923ac_tool_warned=yes ;;
4924esac
4925    PKG_CONFIG=$ac_pt_PKG_CONFIG
4926  fi
4927else
4928  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4929fi
4930
4931fi
4932if test -n "$PKG_CONFIG"; then
4933	_pkg_min_version=0.9.0
4934	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4935$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4936	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4937		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4938$as_echo "yes" >&6; }
4939	else
4940		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941$as_echo "no" >&6; }
4942		PKG_CONFIG=""
4943	fi
4944fi
4945# Make sure we can run config.sub.
4946$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4947  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4948
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4950$as_echo_n "checking build system type... " >&6; }
4951if ${ac_cv_build+:} false; then :
4952  $as_echo_n "(cached) " >&6
4953else
4954  ac_build_alias=$build_alias
4955test "x$ac_build_alias" = x &&
4956  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4957test "x$ac_build_alias" = x &&
4958  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4959ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4960  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4961
4962fi
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4964$as_echo "$ac_cv_build" >&6; }
4965case $ac_cv_build in
4966*-*-*) ;;
4967*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4968esac
4969build=$ac_cv_build
4970ac_save_IFS=$IFS; IFS='-'
4971set x $ac_cv_build
4972shift
4973build_cpu=$1
4974build_vendor=$2
4975shift; shift
4976# Remember, the first character of IFS is used to create $*,
4977# except with old shells:
4978build_os=$*
4979IFS=$ac_save_IFS
4980case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4981
4982
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4984$as_echo_n "checking host system type... " >&6; }
4985if ${ac_cv_host+:} false; then :
4986  $as_echo_n "(cached) " >&6
4987else
4988  if test "x$host_alias" = x; then
4989  ac_cv_host=$ac_cv_build
4990else
4991  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4992    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4993fi
4994
4995fi
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4997$as_echo "$ac_cv_host" >&6; }
4998case $ac_cv_host in
4999*-*-*) ;;
5000*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5001esac
5002host=$ac_cv_host
5003ac_save_IFS=$IFS; IFS='-'
5004set x $ac_cv_host
5005shift
5006host_cpu=$1
5007host_vendor=$2
5008shift; shift
5009# Remember, the first character of IFS is used to create $*,
5010# except with old shells:
5011host_os=$*
5012IFS=$ac_save_IFS
5013case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5014
5015
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5017$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5018if ${ac_cv_path_SED+:} false; then :
5019  $as_echo_n "(cached) " >&6
5020else
5021            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5022     for ac_i in 1 2 3 4 5 6 7; do
5023       ac_script="$ac_script$as_nl$ac_script"
5024     done
5025     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5026     { ac_script=; unset ac_script;}
5027     if test -z "$SED"; then
5028  ac_path_SED_found=false
5029  # Loop through the user's path and test for each of PROGNAME-LIST
5030  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031for as_dir in $PATH
5032do
5033  IFS=$as_save_IFS
5034  test -z "$as_dir" && as_dir=.
5035    for ac_prog in sed gsed; do
5036    for ac_exec_ext in '' $ac_executable_extensions; do
5037      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5038      as_fn_executable_p "$ac_path_SED" || continue
5039# Check for GNU ac_path_SED and select it if it is found.
5040  # Check for GNU $ac_path_SED
5041case `"$ac_path_SED" --version 2>&1` in
5042*GNU*)
5043  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5044*)
5045  ac_count=0
5046  $as_echo_n 0123456789 >"conftest.in"
5047  while :
5048  do
5049    cat "conftest.in" "conftest.in" >"conftest.tmp"
5050    mv "conftest.tmp" "conftest.in"
5051    cp "conftest.in" "conftest.nl"
5052    $as_echo '' >> "conftest.nl"
5053    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5054    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5055    as_fn_arith $ac_count + 1 && ac_count=$as_val
5056    if test $ac_count -gt ${ac_path_SED_max-0}; then
5057      # Best one so far, save it but keep looking for a better one
5058      ac_cv_path_SED="$ac_path_SED"
5059      ac_path_SED_max=$ac_count
5060    fi
5061    # 10*(2^10) chars as input seems more than enough
5062    test $ac_count -gt 10 && break
5063  done
5064  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5065esac
5066
5067      $ac_path_SED_found && break 3
5068    done
5069  done
5070  done
5071IFS=$as_save_IFS
5072  if test -z "$ac_cv_path_SED"; then
5073    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5074  fi
5075else
5076  ac_cv_path_SED=$SED
5077fi
5078
5079fi
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5081$as_echo "$ac_cv_path_SED" >&6; }
5082 SED="$ac_cv_path_SED"
5083  rm -f conftest.sed
5084
5085
5086
5087
5088
5089
5090# Check whether --enable-selective-werror was given.
5091if test "${enable_selective_werror+set}" = set; then :
5092  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5093else
5094  SELECTIVE_WERROR=yes
5095fi
5096
5097
5098
5099
5100
5101# -v is too short to test reliably with XORG_TESTSET_CFLAG
5102if test "x$SUNCC" = "xyes"; then
5103    BASE_CFLAGS="-v"
5104else
5105    BASE_CFLAGS=""
5106fi
5107
5108# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122xorg_testset_save_CFLAGS="$CFLAGS"
5123
5124if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5125	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5126	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5127$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5128if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5129  $as_echo_n "(cached) " >&6
5130else
5131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132/* end confdefs.h.  */
5133int i;
5134_ACEOF
5135if ac_fn_c_try_compile "$LINENO"; then :
5136  xorg_cv_cc_flag_unknown_warning_option=yes
5137else
5138  xorg_cv_cc_flag_unknown_warning_option=no
5139fi
5140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141fi
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5143$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5144	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5145	CFLAGS="$xorg_testset_save_CFLAGS"
5146fi
5147
5148if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5149	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5150		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5151	fi
5152	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5153	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5154$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5155if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5156  $as_echo_n "(cached) " >&6
5157else
5158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159/* end confdefs.h.  */
5160int i;
5161_ACEOF
5162if ac_fn_c_try_compile "$LINENO"; then :
5163  xorg_cv_cc_flag_unused_command_line_argument=yes
5164else
5165  xorg_cv_cc_flag_unused_command_line_argument=no
5166fi
5167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168fi
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5170$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5171	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5172	CFLAGS="$xorg_testset_save_CFLAGS"
5173fi
5174
5175found="no"
5176
5177	if test $found = "no" ; then
5178		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5179			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5180		fi
5181
5182		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5183			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5184		fi
5185
5186		CFLAGS="$CFLAGS -Wall"
5187
5188		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
5189$as_echo_n "checking if $CC supports-Wall... " >&6; }
5190		cacheid=xorg_cv_cc_flag__Wall
5191		if eval \${$cacheid+:} false; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195/* end confdefs.h.  */
5196int i;
5197int
5198main ()
5199{
5200
5201  ;
5202  return 0;
5203}
5204_ACEOF
5205if ac_fn_c_try_link "$LINENO"; then :
5206  eval $cacheid=yes
5207else
5208  eval $cacheid=no
5209fi
5210rm -f core conftest.err conftest.$ac_objext \
5211    conftest$ac_exeext conftest.$ac_ext
5212fi
5213
5214
5215		CFLAGS="$xorg_testset_save_CFLAGS"
5216
5217		eval supported=\$$cacheid
5218		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5219$as_echo "$supported" >&6; }
5220		if test "$supported" = "yes" ; then
5221			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5222			found="yes"
5223		fi
5224	fi
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240xorg_testset_save_CFLAGS="$CFLAGS"
5241
5242if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5243	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5244	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5245$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5246if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5247  $as_echo_n "(cached) " >&6
5248else
5249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250/* end confdefs.h.  */
5251int i;
5252_ACEOF
5253if ac_fn_c_try_compile "$LINENO"; then :
5254  xorg_cv_cc_flag_unknown_warning_option=yes
5255else
5256  xorg_cv_cc_flag_unknown_warning_option=no
5257fi
5258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259fi
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5261$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5262	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5263	CFLAGS="$xorg_testset_save_CFLAGS"
5264fi
5265
5266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5267	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5268		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5269	fi
5270	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5271	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5272$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5273if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5274  $as_echo_n "(cached) " >&6
5275else
5276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277/* end confdefs.h.  */
5278int i;
5279_ACEOF
5280if ac_fn_c_try_compile "$LINENO"; then :
5281  xorg_cv_cc_flag_unused_command_line_argument=yes
5282else
5283  xorg_cv_cc_flag_unused_command_line_argument=no
5284fi
5285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286fi
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5288$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5289	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5290	CFLAGS="$xorg_testset_save_CFLAGS"
5291fi
5292
5293found="no"
5294
5295	if test $found = "no" ; then
5296		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5297			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5298		fi
5299
5300		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5301			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5302		fi
5303
5304		CFLAGS="$CFLAGS -Wpointer-arith"
5305
5306		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
5307$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
5308		cacheid=xorg_cv_cc_flag__Wpointer_arith
5309		if eval \${$cacheid+:} false; then :
5310  $as_echo_n "(cached) " >&6
5311else
5312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313/* end confdefs.h.  */
5314int i;
5315int
5316main ()
5317{
5318
5319  ;
5320  return 0;
5321}
5322_ACEOF
5323if ac_fn_c_try_link "$LINENO"; then :
5324  eval $cacheid=yes
5325else
5326  eval $cacheid=no
5327fi
5328rm -f core conftest.err conftest.$ac_objext \
5329    conftest$ac_exeext conftest.$ac_ext
5330fi
5331
5332
5333		CFLAGS="$xorg_testset_save_CFLAGS"
5334
5335		eval supported=\$$cacheid
5336		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5337$as_echo "$supported" >&6; }
5338		if test "$supported" = "yes" ; then
5339			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5340			found="yes"
5341		fi
5342	fi
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358xorg_testset_save_CFLAGS="$CFLAGS"
5359
5360if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5361	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5362	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5363$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5364if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5365  $as_echo_n "(cached) " >&6
5366else
5367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368/* end confdefs.h.  */
5369int i;
5370_ACEOF
5371if ac_fn_c_try_compile "$LINENO"; then :
5372  xorg_cv_cc_flag_unknown_warning_option=yes
5373else
5374  xorg_cv_cc_flag_unknown_warning_option=no
5375fi
5376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377fi
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5379$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5380	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5381	CFLAGS="$xorg_testset_save_CFLAGS"
5382fi
5383
5384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5385	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5386		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5387	fi
5388	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5389	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5390$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5391if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5392  $as_echo_n "(cached) " >&6
5393else
5394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395/* end confdefs.h.  */
5396int i;
5397_ACEOF
5398if ac_fn_c_try_compile "$LINENO"; then :
5399  xorg_cv_cc_flag_unused_command_line_argument=yes
5400else
5401  xorg_cv_cc_flag_unused_command_line_argument=no
5402fi
5403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404fi
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5406$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5407	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5408	CFLAGS="$xorg_testset_save_CFLAGS"
5409fi
5410
5411found="no"
5412
5413	if test $found = "no" ; then
5414		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5415			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5416		fi
5417
5418		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5419			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5420		fi
5421
5422		CFLAGS="$CFLAGS -Wmissing-declarations"
5423
5424		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
5425$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
5426		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5427		if eval \${$cacheid+:} false; then :
5428  $as_echo_n "(cached) " >&6
5429else
5430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431/* end confdefs.h.  */
5432int i;
5433int
5434main ()
5435{
5436
5437  ;
5438  return 0;
5439}
5440_ACEOF
5441if ac_fn_c_try_link "$LINENO"; then :
5442  eval $cacheid=yes
5443else
5444  eval $cacheid=no
5445fi
5446rm -f core conftest.err conftest.$ac_objext \
5447    conftest$ac_exeext conftest.$ac_ext
5448fi
5449
5450
5451		CFLAGS="$xorg_testset_save_CFLAGS"
5452
5453		eval supported=\$$cacheid
5454		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5455$as_echo "$supported" >&6; }
5456		if test "$supported" = "yes" ; then
5457			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5458			found="yes"
5459		fi
5460	fi
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476xorg_testset_save_CFLAGS="$CFLAGS"
5477
5478if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5479	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5480	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5481$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5482if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5483  $as_echo_n "(cached) " >&6
5484else
5485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486/* end confdefs.h.  */
5487int i;
5488_ACEOF
5489if ac_fn_c_try_compile "$LINENO"; then :
5490  xorg_cv_cc_flag_unknown_warning_option=yes
5491else
5492  xorg_cv_cc_flag_unknown_warning_option=no
5493fi
5494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495fi
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5497$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5498	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5499	CFLAGS="$xorg_testset_save_CFLAGS"
5500fi
5501
5502if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5503	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5504		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5505	fi
5506	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5507	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5508$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5509if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5510  $as_echo_n "(cached) " >&6
5511else
5512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513/* end confdefs.h.  */
5514int i;
5515_ACEOF
5516if ac_fn_c_try_compile "$LINENO"; then :
5517  xorg_cv_cc_flag_unused_command_line_argument=yes
5518else
5519  xorg_cv_cc_flag_unused_command_line_argument=no
5520fi
5521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522fi
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5524$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5525	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5526	CFLAGS="$xorg_testset_save_CFLAGS"
5527fi
5528
5529found="no"
5530
5531	if test $found = "no" ; then
5532		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5533			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5534		fi
5535
5536		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5537			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5538		fi
5539
5540		CFLAGS="$CFLAGS -Wformat=2"
5541
5542		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5543$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5544		cacheid=xorg_cv_cc_flag__Wformat_2
5545		if eval \${$cacheid+:} false; then :
5546  $as_echo_n "(cached) " >&6
5547else
5548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549/* end confdefs.h.  */
5550int i;
5551int
5552main ()
5553{
5554
5555  ;
5556  return 0;
5557}
5558_ACEOF
5559if ac_fn_c_try_link "$LINENO"; then :
5560  eval $cacheid=yes
5561else
5562  eval $cacheid=no
5563fi
5564rm -f core conftest.err conftest.$ac_objext \
5565    conftest$ac_exeext conftest.$ac_ext
5566fi
5567
5568
5569		CFLAGS="$xorg_testset_save_CFLAGS"
5570
5571		eval supported=\$$cacheid
5572		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5573$as_echo "$supported" >&6; }
5574		if test "$supported" = "yes" ; then
5575			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5576			found="yes"
5577		fi
5578	fi
5579
5580	if test $found = "no" ; then
5581		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5582			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5583		fi
5584
5585		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5586			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5587		fi
5588
5589		CFLAGS="$CFLAGS -Wformat"
5590
5591		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5592$as_echo_n "checking if $CC supports-Wformat... " >&6; }
5593		cacheid=xorg_cv_cc_flag__Wformat
5594		if eval \${$cacheid+:} false; then :
5595  $as_echo_n "(cached) " >&6
5596else
5597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598/* end confdefs.h.  */
5599int i;
5600int
5601main ()
5602{
5603
5604  ;
5605  return 0;
5606}
5607_ACEOF
5608if ac_fn_c_try_link "$LINENO"; then :
5609  eval $cacheid=yes
5610else
5611  eval $cacheid=no
5612fi
5613rm -f core conftest.err conftest.$ac_objext \
5614    conftest$ac_exeext conftest.$ac_ext
5615fi
5616
5617
5618		CFLAGS="$xorg_testset_save_CFLAGS"
5619
5620		eval supported=\$$cacheid
5621		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5622$as_echo "$supported" >&6; }
5623		if test "$supported" = "yes" ; then
5624			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5625			found="yes"
5626		fi
5627	fi
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645xorg_testset_save_CFLAGS="$CFLAGS"
5646
5647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5650$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5651if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5652  $as_echo_n "(cached) " >&6
5653else
5654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655/* end confdefs.h.  */
5656int i;
5657_ACEOF
5658if ac_fn_c_try_compile "$LINENO"; then :
5659  xorg_cv_cc_flag_unknown_warning_option=yes
5660else
5661  xorg_cv_cc_flag_unknown_warning_option=no
5662fi
5663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664fi
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5666$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5667	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5668	CFLAGS="$xorg_testset_save_CFLAGS"
5669fi
5670
5671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5672	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5673		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5674	fi
5675	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5677$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5678if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5679  $as_echo_n "(cached) " >&6
5680else
5681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682/* end confdefs.h.  */
5683int i;
5684_ACEOF
5685if ac_fn_c_try_compile "$LINENO"; then :
5686  xorg_cv_cc_flag_unused_command_line_argument=yes
5687else
5688  xorg_cv_cc_flag_unused_command_line_argument=no
5689fi
5690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691fi
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5693$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5694	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5695	CFLAGS="$xorg_testset_save_CFLAGS"
5696fi
5697
5698found="no"
5699
5700	if test $found = "no" ; then
5701		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5702			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5703		fi
5704
5705		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5706			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5707		fi
5708
5709		CFLAGS="$CFLAGS -Wstrict-prototypes"
5710
5711		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5712$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5713		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5714		if eval \${$cacheid+:} false; then :
5715  $as_echo_n "(cached) " >&6
5716else
5717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718/* end confdefs.h.  */
5719int i;
5720int
5721main ()
5722{
5723
5724  ;
5725  return 0;
5726}
5727_ACEOF
5728if ac_fn_c_try_link "$LINENO"; then :
5729  eval $cacheid=yes
5730else
5731  eval $cacheid=no
5732fi
5733rm -f core conftest.err conftest.$ac_objext \
5734    conftest$ac_exeext conftest.$ac_ext
5735fi
5736
5737
5738		CFLAGS="$xorg_testset_save_CFLAGS"
5739
5740		eval supported=\$$cacheid
5741		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5742$as_echo "$supported" >&6; }
5743		if test "$supported" = "yes" ; then
5744			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5745			found="yes"
5746		fi
5747	fi
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763xorg_testset_save_CFLAGS="$CFLAGS"
5764
5765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5766	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5767	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5768$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5769if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5770  $as_echo_n "(cached) " >&6
5771else
5772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773/* end confdefs.h.  */
5774int i;
5775_ACEOF
5776if ac_fn_c_try_compile "$LINENO"; then :
5777  xorg_cv_cc_flag_unknown_warning_option=yes
5778else
5779  xorg_cv_cc_flag_unknown_warning_option=no
5780fi
5781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782fi
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5784$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5785	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5786	CFLAGS="$xorg_testset_save_CFLAGS"
5787fi
5788
5789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5790	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5791		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5792	fi
5793	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5794	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5795$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5796if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5797  $as_echo_n "(cached) " >&6
5798else
5799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800/* end confdefs.h.  */
5801int i;
5802_ACEOF
5803if ac_fn_c_try_compile "$LINENO"; then :
5804  xorg_cv_cc_flag_unused_command_line_argument=yes
5805else
5806  xorg_cv_cc_flag_unused_command_line_argument=no
5807fi
5808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809fi
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5811$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5812	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5813	CFLAGS="$xorg_testset_save_CFLAGS"
5814fi
5815
5816found="no"
5817
5818	if test $found = "no" ; then
5819		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5820			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5821		fi
5822
5823		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5824			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5825		fi
5826
5827		CFLAGS="$CFLAGS -Wmissing-prototypes"
5828
5829		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5830$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5831		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5832		if eval \${$cacheid+:} false; then :
5833  $as_echo_n "(cached) " >&6
5834else
5835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836/* end confdefs.h.  */
5837int i;
5838int
5839main ()
5840{
5841
5842  ;
5843  return 0;
5844}
5845_ACEOF
5846if ac_fn_c_try_link "$LINENO"; then :
5847  eval $cacheid=yes
5848else
5849  eval $cacheid=no
5850fi
5851rm -f core conftest.err conftest.$ac_objext \
5852    conftest$ac_exeext conftest.$ac_ext
5853fi
5854
5855
5856		CFLAGS="$xorg_testset_save_CFLAGS"
5857
5858		eval supported=\$$cacheid
5859		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5860$as_echo "$supported" >&6; }
5861		if test "$supported" = "yes" ; then
5862			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5863			found="yes"
5864		fi
5865	fi
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881xorg_testset_save_CFLAGS="$CFLAGS"
5882
5883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5884	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5886$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5887if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5888  $as_echo_n "(cached) " >&6
5889else
5890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891/* end confdefs.h.  */
5892int i;
5893_ACEOF
5894if ac_fn_c_try_compile "$LINENO"; then :
5895  xorg_cv_cc_flag_unknown_warning_option=yes
5896else
5897  xorg_cv_cc_flag_unknown_warning_option=no
5898fi
5899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900fi
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5902$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5903	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5904	CFLAGS="$xorg_testset_save_CFLAGS"
5905fi
5906
5907if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5908	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5909		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5910	fi
5911	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5913$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5914if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5915  $as_echo_n "(cached) " >&6
5916else
5917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918/* end confdefs.h.  */
5919int i;
5920_ACEOF
5921if ac_fn_c_try_compile "$LINENO"; then :
5922  xorg_cv_cc_flag_unused_command_line_argument=yes
5923else
5924  xorg_cv_cc_flag_unused_command_line_argument=no
5925fi
5926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927fi
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5929$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5930	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5931	CFLAGS="$xorg_testset_save_CFLAGS"
5932fi
5933
5934found="no"
5935
5936	if test $found = "no" ; then
5937		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5938			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5939		fi
5940
5941		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5942			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5943		fi
5944
5945		CFLAGS="$CFLAGS -Wnested-externs"
5946
5947		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5948$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5949		cacheid=xorg_cv_cc_flag__Wnested_externs
5950		if eval \${$cacheid+:} false; then :
5951  $as_echo_n "(cached) " >&6
5952else
5953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954/* end confdefs.h.  */
5955int i;
5956int
5957main ()
5958{
5959
5960  ;
5961  return 0;
5962}
5963_ACEOF
5964if ac_fn_c_try_link "$LINENO"; then :
5965  eval $cacheid=yes
5966else
5967  eval $cacheid=no
5968fi
5969rm -f core conftest.err conftest.$ac_objext \
5970    conftest$ac_exeext conftest.$ac_ext
5971fi
5972
5973
5974		CFLAGS="$xorg_testset_save_CFLAGS"
5975
5976		eval supported=\$$cacheid
5977		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5978$as_echo "$supported" >&6; }
5979		if test "$supported" = "yes" ; then
5980			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5981			found="yes"
5982		fi
5983	fi
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999xorg_testset_save_CFLAGS="$CFLAGS"
6000
6001if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6002	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6003	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6004$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6005if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6006  $as_echo_n "(cached) " >&6
6007else
6008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009/* end confdefs.h.  */
6010int i;
6011_ACEOF
6012if ac_fn_c_try_compile "$LINENO"; then :
6013  xorg_cv_cc_flag_unknown_warning_option=yes
6014else
6015  xorg_cv_cc_flag_unknown_warning_option=no
6016fi
6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018fi
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6020$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6021	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6022	CFLAGS="$xorg_testset_save_CFLAGS"
6023fi
6024
6025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6026	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6027		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6028	fi
6029	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6031$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6032if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6033  $as_echo_n "(cached) " >&6
6034else
6035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036/* end confdefs.h.  */
6037int i;
6038_ACEOF
6039if ac_fn_c_try_compile "$LINENO"; then :
6040  xorg_cv_cc_flag_unused_command_line_argument=yes
6041else
6042  xorg_cv_cc_flag_unused_command_line_argument=no
6043fi
6044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045fi
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6047$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6048	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6049	CFLAGS="$xorg_testset_save_CFLAGS"
6050fi
6051
6052found="no"
6053
6054	if test $found = "no" ; then
6055		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6056			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6057		fi
6058
6059		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6060			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6061		fi
6062
6063		CFLAGS="$CFLAGS -Wbad-function-cast"
6064
6065		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
6066$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
6067		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6068		if eval \${$cacheid+:} false; then :
6069  $as_echo_n "(cached) " >&6
6070else
6071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072/* end confdefs.h.  */
6073int i;
6074int
6075main ()
6076{
6077
6078  ;
6079  return 0;
6080}
6081_ACEOF
6082if ac_fn_c_try_link "$LINENO"; then :
6083  eval $cacheid=yes
6084else
6085  eval $cacheid=no
6086fi
6087rm -f core conftest.err conftest.$ac_objext \
6088    conftest$ac_exeext conftest.$ac_ext
6089fi
6090
6091
6092		CFLAGS="$xorg_testset_save_CFLAGS"
6093
6094		eval supported=\$$cacheid
6095		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6096$as_echo "$supported" >&6; }
6097		if test "$supported" = "yes" ; then
6098			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6099			found="yes"
6100		fi
6101	fi
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117xorg_testset_save_CFLAGS="$CFLAGS"
6118
6119if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6120	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6121	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6122$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6123if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6124  $as_echo_n "(cached) " >&6
6125else
6126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127/* end confdefs.h.  */
6128int i;
6129_ACEOF
6130if ac_fn_c_try_compile "$LINENO"; then :
6131  xorg_cv_cc_flag_unknown_warning_option=yes
6132else
6133  xorg_cv_cc_flag_unknown_warning_option=no
6134fi
6135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6136fi
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6138$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6139	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6140	CFLAGS="$xorg_testset_save_CFLAGS"
6141fi
6142
6143if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6144	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6145		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6146	fi
6147	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6148	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6149$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6150if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6151  $as_echo_n "(cached) " >&6
6152else
6153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154/* end confdefs.h.  */
6155int i;
6156_ACEOF
6157if ac_fn_c_try_compile "$LINENO"; then :
6158  xorg_cv_cc_flag_unused_command_line_argument=yes
6159else
6160  xorg_cv_cc_flag_unused_command_line_argument=no
6161fi
6162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6163fi
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6165$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6166	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6167	CFLAGS="$xorg_testset_save_CFLAGS"
6168fi
6169
6170found="no"
6171
6172	if test $found = "no" ; then
6173		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6174			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6175		fi
6176
6177		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6178			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6179		fi
6180
6181		CFLAGS="$CFLAGS -Wold-style-definition"
6182
6183		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
6184$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
6185		cacheid=xorg_cv_cc_flag__Wold_style_definition
6186		if eval \${$cacheid+:} false; then :
6187  $as_echo_n "(cached) " >&6
6188else
6189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190/* end confdefs.h.  */
6191int i;
6192int
6193main ()
6194{
6195
6196  ;
6197  return 0;
6198}
6199_ACEOF
6200if ac_fn_c_try_link "$LINENO"; then :
6201  eval $cacheid=yes
6202else
6203  eval $cacheid=no
6204fi
6205rm -f core conftest.err conftest.$ac_objext \
6206    conftest$ac_exeext conftest.$ac_ext
6207fi
6208
6209
6210		CFLAGS="$xorg_testset_save_CFLAGS"
6211
6212		eval supported=\$$cacheid
6213		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6214$as_echo "$supported" >&6; }
6215		if test "$supported" = "yes" ; then
6216			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6217			found="yes"
6218		fi
6219	fi
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235xorg_testset_save_CFLAGS="$CFLAGS"
6236
6237if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6238	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6239	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6240$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6241if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6242  $as_echo_n "(cached) " >&6
6243else
6244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245/* end confdefs.h.  */
6246int i;
6247_ACEOF
6248if ac_fn_c_try_compile "$LINENO"; then :
6249  xorg_cv_cc_flag_unknown_warning_option=yes
6250else
6251  xorg_cv_cc_flag_unknown_warning_option=no
6252fi
6253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6254fi
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6256$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6257	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6258	CFLAGS="$xorg_testset_save_CFLAGS"
6259fi
6260
6261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6262	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6263		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6264	fi
6265	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6266	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6267$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6268if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6269  $as_echo_n "(cached) " >&6
6270else
6271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272/* end confdefs.h.  */
6273int i;
6274_ACEOF
6275if ac_fn_c_try_compile "$LINENO"; then :
6276  xorg_cv_cc_flag_unused_command_line_argument=yes
6277else
6278  xorg_cv_cc_flag_unused_command_line_argument=no
6279fi
6280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281fi
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6283$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6284	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6285	CFLAGS="$xorg_testset_save_CFLAGS"
6286fi
6287
6288found="no"
6289
6290	if test $found = "no" ; then
6291		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6292			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6293		fi
6294
6295		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6296			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6297		fi
6298
6299		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6300
6301		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
6302$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
6303		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6304		if eval \${$cacheid+:} false; then :
6305  $as_echo_n "(cached) " >&6
6306else
6307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308/* end confdefs.h.  */
6309int i;
6310int
6311main ()
6312{
6313
6314  ;
6315  return 0;
6316}
6317_ACEOF
6318if ac_fn_c_try_link "$LINENO"; then :
6319  eval $cacheid=yes
6320else
6321  eval $cacheid=no
6322fi
6323rm -f core conftest.err conftest.$ac_objext \
6324    conftest$ac_exeext conftest.$ac_ext
6325fi
6326
6327
6328		CFLAGS="$xorg_testset_save_CFLAGS"
6329
6330		eval supported=\$$cacheid
6331		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6332$as_echo "$supported" >&6; }
6333		if test "$supported" = "yes" ; then
6334			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6335			found="yes"
6336		fi
6337	fi
6338
6339
6340
6341
6342
6343# This chunk adds additional warnings that could catch undesired effects.
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357xorg_testset_save_CFLAGS="$CFLAGS"
6358
6359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6360	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6361	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6362$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6363if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6364  $as_echo_n "(cached) " >&6
6365else
6366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367/* end confdefs.h.  */
6368int i;
6369_ACEOF
6370if ac_fn_c_try_compile "$LINENO"; then :
6371  xorg_cv_cc_flag_unknown_warning_option=yes
6372else
6373  xorg_cv_cc_flag_unknown_warning_option=no
6374fi
6375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376fi
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6378$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6379	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6380	CFLAGS="$xorg_testset_save_CFLAGS"
6381fi
6382
6383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6384	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6385		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6386	fi
6387	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6388	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6389$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6390if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6391  $as_echo_n "(cached) " >&6
6392else
6393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394/* end confdefs.h.  */
6395int i;
6396_ACEOF
6397if ac_fn_c_try_compile "$LINENO"; then :
6398  xorg_cv_cc_flag_unused_command_line_argument=yes
6399else
6400  xorg_cv_cc_flag_unused_command_line_argument=no
6401fi
6402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403fi
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6405$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6406	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6407	CFLAGS="$xorg_testset_save_CFLAGS"
6408fi
6409
6410found="no"
6411
6412	if test $found = "no" ; then
6413		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6414			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6415		fi
6416
6417		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6418			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6419		fi
6420
6421		CFLAGS="$CFLAGS -Wunused"
6422
6423		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
6424$as_echo_n "checking if $CC supports-Wunused... " >&6; }
6425		cacheid=xorg_cv_cc_flag__Wunused
6426		if eval \${$cacheid+:} false; then :
6427  $as_echo_n "(cached) " >&6
6428else
6429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h.  */
6431int i;
6432int
6433main ()
6434{
6435
6436  ;
6437  return 0;
6438}
6439_ACEOF
6440if ac_fn_c_try_link "$LINENO"; then :
6441  eval $cacheid=yes
6442else
6443  eval $cacheid=no
6444fi
6445rm -f core conftest.err conftest.$ac_objext \
6446    conftest$ac_exeext conftest.$ac_ext
6447fi
6448
6449
6450		CFLAGS="$xorg_testset_save_CFLAGS"
6451
6452		eval supported=\$$cacheid
6453		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6454$as_echo "$supported" >&6; }
6455		if test "$supported" = "yes" ; then
6456			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6457			found="yes"
6458		fi
6459	fi
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475xorg_testset_save_CFLAGS="$CFLAGS"
6476
6477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6478	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6480$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6481if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6482  $as_echo_n "(cached) " >&6
6483else
6484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485/* end confdefs.h.  */
6486int i;
6487_ACEOF
6488if ac_fn_c_try_compile "$LINENO"; then :
6489  xorg_cv_cc_flag_unknown_warning_option=yes
6490else
6491  xorg_cv_cc_flag_unknown_warning_option=no
6492fi
6493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494fi
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6496$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6497	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6498	CFLAGS="$xorg_testset_save_CFLAGS"
6499fi
6500
6501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6502	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6503		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6504	fi
6505	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6506	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6507$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6508if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6509  $as_echo_n "(cached) " >&6
6510else
6511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512/* end confdefs.h.  */
6513int i;
6514_ACEOF
6515if ac_fn_c_try_compile "$LINENO"; then :
6516  xorg_cv_cc_flag_unused_command_line_argument=yes
6517else
6518  xorg_cv_cc_flag_unused_command_line_argument=no
6519fi
6520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521fi
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6523$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6524	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6525	CFLAGS="$xorg_testset_save_CFLAGS"
6526fi
6527
6528found="no"
6529
6530	if test $found = "no" ; then
6531		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6532			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6533		fi
6534
6535		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6536			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6537		fi
6538
6539		CFLAGS="$CFLAGS -Wuninitialized"
6540
6541		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6542$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6543		cacheid=xorg_cv_cc_flag__Wuninitialized
6544		if eval \${$cacheid+:} false; then :
6545  $as_echo_n "(cached) " >&6
6546else
6547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548/* end confdefs.h.  */
6549int i;
6550int
6551main ()
6552{
6553
6554  ;
6555  return 0;
6556}
6557_ACEOF
6558if ac_fn_c_try_link "$LINENO"; then :
6559  eval $cacheid=yes
6560else
6561  eval $cacheid=no
6562fi
6563rm -f core conftest.err conftest.$ac_objext \
6564    conftest$ac_exeext conftest.$ac_ext
6565fi
6566
6567
6568		CFLAGS="$xorg_testset_save_CFLAGS"
6569
6570		eval supported=\$$cacheid
6571		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6572$as_echo "$supported" >&6; }
6573		if test "$supported" = "yes" ; then
6574			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6575			found="yes"
6576		fi
6577	fi
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593xorg_testset_save_CFLAGS="$CFLAGS"
6594
6595if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6596	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6597	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6598$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6599if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6600  $as_echo_n "(cached) " >&6
6601else
6602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603/* end confdefs.h.  */
6604int i;
6605_ACEOF
6606if ac_fn_c_try_compile "$LINENO"; then :
6607  xorg_cv_cc_flag_unknown_warning_option=yes
6608else
6609  xorg_cv_cc_flag_unknown_warning_option=no
6610fi
6611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612fi
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6614$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6615	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6616	CFLAGS="$xorg_testset_save_CFLAGS"
6617fi
6618
6619if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6620	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6621		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6622	fi
6623	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6624	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6625$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6626if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6627  $as_echo_n "(cached) " >&6
6628else
6629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h.  */
6631int i;
6632_ACEOF
6633if ac_fn_c_try_compile "$LINENO"; then :
6634  xorg_cv_cc_flag_unused_command_line_argument=yes
6635else
6636  xorg_cv_cc_flag_unused_command_line_argument=no
6637fi
6638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639fi
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6641$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6642	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6643	CFLAGS="$xorg_testset_save_CFLAGS"
6644fi
6645
6646found="no"
6647
6648	if test $found = "no" ; then
6649		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6650			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6651		fi
6652
6653		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6654			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6655		fi
6656
6657		CFLAGS="$CFLAGS -Wshadow"
6658
6659		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6660$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6661		cacheid=xorg_cv_cc_flag__Wshadow
6662		if eval \${$cacheid+:} false; then :
6663  $as_echo_n "(cached) " >&6
6664else
6665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666/* end confdefs.h.  */
6667int i;
6668int
6669main ()
6670{
6671
6672  ;
6673  return 0;
6674}
6675_ACEOF
6676if ac_fn_c_try_link "$LINENO"; then :
6677  eval $cacheid=yes
6678else
6679  eval $cacheid=no
6680fi
6681rm -f core conftest.err conftest.$ac_objext \
6682    conftest$ac_exeext conftest.$ac_ext
6683fi
6684
6685
6686		CFLAGS="$xorg_testset_save_CFLAGS"
6687
6688		eval supported=\$$cacheid
6689		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6690$as_echo "$supported" >&6; }
6691		if test "$supported" = "yes" ; then
6692			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6693			found="yes"
6694		fi
6695	fi
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711xorg_testset_save_CFLAGS="$CFLAGS"
6712
6713if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6714	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6715	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6716$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6717if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6718  $as_echo_n "(cached) " >&6
6719else
6720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721/* end confdefs.h.  */
6722int i;
6723_ACEOF
6724if ac_fn_c_try_compile "$LINENO"; then :
6725  xorg_cv_cc_flag_unknown_warning_option=yes
6726else
6727  xorg_cv_cc_flag_unknown_warning_option=no
6728fi
6729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730fi
6731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6732$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6733	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6734	CFLAGS="$xorg_testset_save_CFLAGS"
6735fi
6736
6737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6738	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6739		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6740	fi
6741	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6743$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6744if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6745  $as_echo_n "(cached) " >&6
6746else
6747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748/* end confdefs.h.  */
6749int i;
6750_ACEOF
6751if ac_fn_c_try_compile "$LINENO"; then :
6752  xorg_cv_cc_flag_unused_command_line_argument=yes
6753else
6754  xorg_cv_cc_flag_unused_command_line_argument=no
6755fi
6756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757fi
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6759$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6760	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6761	CFLAGS="$xorg_testset_save_CFLAGS"
6762fi
6763
6764found="no"
6765
6766	if test $found = "no" ; then
6767		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6768			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6769		fi
6770
6771		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6772			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6773		fi
6774
6775		CFLAGS="$CFLAGS -Wcast-qual"
6776
6777		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6778$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6779		cacheid=xorg_cv_cc_flag__Wcast_qual
6780		if eval \${$cacheid+:} false; then :
6781  $as_echo_n "(cached) " >&6
6782else
6783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784/* end confdefs.h.  */
6785int i;
6786int
6787main ()
6788{
6789
6790  ;
6791  return 0;
6792}
6793_ACEOF
6794if ac_fn_c_try_link "$LINENO"; then :
6795  eval $cacheid=yes
6796else
6797  eval $cacheid=no
6798fi
6799rm -f core conftest.err conftest.$ac_objext \
6800    conftest$ac_exeext conftest.$ac_ext
6801fi
6802
6803
6804		CFLAGS="$xorg_testset_save_CFLAGS"
6805
6806		eval supported=\$$cacheid
6807		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6808$as_echo "$supported" >&6; }
6809		if test "$supported" = "yes" ; then
6810			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6811			found="yes"
6812		fi
6813	fi
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829xorg_testset_save_CFLAGS="$CFLAGS"
6830
6831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6832	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6833	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6834$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6835if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6836  $as_echo_n "(cached) " >&6
6837else
6838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839/* end confdefs.h.  */
6840int i;
6841_ACEOF
6842if ac_fn_c_try_compile "$LINENO"; then :
6843  xorg_cv_cc_flag_unknown_warning_option=yes
6844else
6845  xorg_cv_cc_flag_unknown_warning_option=no
6846fi
6847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848fi
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6850$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6851	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6852	CFLAGS="$xorg_testset_save_CFLAGS"
6853fi
6854
6855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6856	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6857		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6858	fi
6859	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6861$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6862if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6863  $as_echo_n "(cached) " >&6
6864else
6865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866/* end confdefs.h.  */
6867int i;
6868_ACEOF
6869if ac_fn_c_try_compile "$LINENO"; then :
6870  xorg_cv_cc_flag_unused_command_line_argument=yes
6871else
6872  xorg_cv_cc_flag_unused_command_line_argument=no
6873fi
6874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875fi
6876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6877$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6878	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6879	CFLAGS="$xorg_testset_save_CFLAGS"
6880fi
6881
6882found="no"
6883
6884	if test $found = "no" ; then
6885		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6886			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6887		fi
6888
6889		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6890			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6891		fi
6892
6893		CFLAGS="$CFLAGS -Wmissing-noreturn"
6894
6895		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6896$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6897		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6898		if eval \${$cacheid+:} false; then :
6899  $as_echo_n "(cached) " >&6
6900else
6901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902/* end confdefs.h.  */
6903int i;
6904int
6905main ()
6906{
6907
6908  ;
6909  return 0;
6910}
6911_ACEOF
6912if ac_fn_c_try_link "$LINENO"; then :
6913  eval $cacheid=yes
6914else
6915  eval $cacheid=no
6916fi
6917rm -f core conftest.err conftest.$ac_objext \
6918    conftest$ac_exeext conftest.$ac_ext
6919fi
6920
6921
6922		CFLAGS="$xorg_testset_save_CFLAGS"
6923
6924		eval supported=\$$cacheid
6925		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6926$as_echo "$supported" >&6; }
6927		if test "$supported" = "yes" ; then
6928			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6929			found="yes"
6930		fi
6931	fi
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947xorg_testset_save_CFLAGS="$CFLAGS"
6948
6949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6950	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6951	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6952$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6953if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6954  $as_echo_n "(cached) " >&6
6955else
6956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957/* end confdefs.h.  */
6958int i;
6959_ACEOF
6960if ac_fn_c_try_compile "$LINENO"; then :
6961  xorg_cv_cc_flag_unknown_warning_option=yes
6962else
6963  xorg_cv_cc_flag_unknown_warning_option=no
6964fi
6965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966fi
6967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6968$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6970	CFLAGS="$xorg_testset_save_CFLAGS"
6971fi
6972
6973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6976	fi
6977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6978	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6979$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6980if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6981  $as_echo_n "(cached) " >&6
6982else
6983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984/* end confdefs.h.  */
6985int i;
6986_ACEOF
6987if ac_fn_c_try_compile "$LINENO"; then :
6988  xorg_cv_cc_flag_unused_command_line_argument=yes
6989else
6990  xorg_cv_cc_flag_unused_command_line_argument=no
6991fi
6992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6993fi
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6995$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6996	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6997	CFLAGS="$xorg_testset_save_CFLAGS"
6998fi
6999
7000found="no"
7001
7002	if test $found = "no" ; then
7003		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7004			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7005		fi
7006
7007		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7008			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7009		fi
7010
7011		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7012
7013		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
7014$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
7015		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7016		if eval \${$cacheid+:} false; then :
7017  $as_echo_n "(cached) " >&6
7018else
7019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020/* end confdefs.h.  */
7021int i;
7022int
7023main ()
7024{
7025
7026  ;
7027  return 0;
7028}
7029_ACEOF
7030if ac_fn_c_try_link "$LINENO"; then :
7031  eval $cacheid=yes
7032else
7033  eval $cacheid=no
7034fi
7035rm -f core conftest.err conftest.$ac_objext \
7036    conftest$ac_exeext conftest.$ac_ext
7037fi
7038
7039
7040		CFLAGS="$xorg_testset_save_CFLAGS"
7041
7042		eval supported=\$$cacheid
7043		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7044$as_echo "$supported" >&6; }
7045		if test "$supported" = "yes" ; then
7046			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7047			found="yes"
7048		fi
7049	fi
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065xorg_testset_save_CFLAGS="$CFLAGS"
7066
7067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7068	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7069	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7070$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7071if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7072  $as_echo_n "(cached) " >&6
7073else
7074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075/* end confdefs.h.  */
7076int i;
7077_ACEOF
7078if ac_fn_c_try_compile "$LINENO"; then :
7079  xorg_cv_cc_flag_unknown_warning_option=yes
7080else
7081  xorg_cv_cc_flag_unknown_warning_option=no
7082fi
7083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7084fi
7085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7086$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7087	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7088	CFLAGS="$xorg_testset_save_CFLAGS"
7089fi
7090
7091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7092	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7093		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7094	fi
7095	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7096	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7097$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7098if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7099  $as_echo_n "(cached) " >&6
7100else
7101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102/* end confdefs.h.  */
7103int i;
7104_ACEOF
7105if ac_fn_c_try_compile "$LINENO"; then :
7106  xorg_cv_cc_flag_unused_command_line_argument=yes
7107else
7108  xorg_cv_cc_flag_unused_command_line_argument=no
7109fi
7110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7111fi
7112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7113$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7114	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7115	CFLAGS="$xorg_testset_save_CFLAGS"
7116fi
7117
7118found="no"
7119
7120	if test $found = "no" ; then
7121		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7122			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7123		fi
7124
7125		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7126			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7127		fi
7128
7129		CFLAGS="$CFLAGS -Wredundant-decls"
7130
7131		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
7132$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
7133		cacheid=xorg_cv_cc_flag__Wredundant_decls
7134		if eval \${$cacheid+:} false; then :
7135  $as_echo_n "(cached) " >&6
7136else
7137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138/* end confdefs.h.  */
7139int i;
7140int
7141main ()
7142{
7143
7144  ;
7145  return 0;
7146}
7147_ACEOF
7148if ac_fn_c_try_link "$LINENO"; then :
7149  eval $cacheid=yes
7150else
7151  eval $cacheid=no
7152fi
7153rm -f core conftest.err conftest.$ac_objext \
7154    conftest$ac_exeext conftest.$ac_ext
7155fi
7156
7157
7158		CFLAGS="$xorg_testset_save_CFLAGS"
7159
7160		eval supported=\$$cacheid
7161		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7162$as_echo "$supported" >&6; }
7163		if test "$supported" = "yes" ; then
7164			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7165			found="yes"
7166		fi
7167	fi
7168
7169
7170
7171# These are currently disabled because they are noisy.  They will be enabled
7172# in the future once the codebase is sufficiently modernized to silence
7173# them.  For now, I don't want them to drown out the other warnings.
7174# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
7175# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7176# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7177
7178# Turn some warnings into errors, so we don't accidently get successful builds
7179# when there are problems that should be fixed.
7180
7181if test "x$SELECTIVE_WERROR" = "xyes" ; then
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195xorg_testset_save_CFLAGS="$CFLAGS"
7196
7197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7198	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7199	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7200$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7201if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7202  $as_echo_n "(cached) " >&6
7203else
7204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205/* end confdefs.h.  */
7206int i;
7207_ACEOF
7208if ac_fn_c_try_compile "$LINENO"; then :
7209  xorg_cv_cc_flag_unknown_warning_option=yes
7210else
7211  xorg_cv_cc_flag_unknown_warning_option=no
7212fi
7213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7214fi
7215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7216$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7217	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7218	CFLAGS="$xorg_testset_save_CFLAGS"
7219fi
7220
7221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7222	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7223		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7224	fi
7225	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7226	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7227$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7228if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7229  $as_echo_n "(cached) " >&6
7230else
7231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232/* end confdefs.h.  */
7233int i;
7234_ACEOF
7235if ac_fn_c_try_compile "$LINENO"; then :
7236  xorg_cv_cc_flag_unused_command_line_argument=yes
7237else
7238  xorg_cv_cc_flag_unused_command_line_argument=no
7239fi
7240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241fi
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7243$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7244	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7245	CFLAGS="$xorg_testset_save_CFLAGS"
7246fi
7247
7248found="no"
7249
7250	if test $found = "no" ; then
7251		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7252			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7253		fi
7254
7255		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7256			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7257		fi
7258
7259		CFLAGS="$CFLAGS -Werror=implicit"
7260
7261		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
7262$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
7263		cacheid=xorg_cv_cc_flag__Werror_implicit
7264		if eval \${$cacheid+:} false; then :
7265  $as_echo_n "(cached) " >&6
7266else
7267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268/* end confdefs.h.  */
7269int i;
7270int
7271main ()
7272{
7273
7274  ;
7275  return 0;
7276}
7277_ACEOF
7278if ac_fn_c_try_link "$LINENO"; then :
7279  eval $cacheid=yes
7280else
7281  eval $cacheid=no
7282fi
7283rm -f core conftest.err conftest.$ac_objext \
7284    conftest$ac_exeext conftest.$ac_ext
7285fi
7286
7287
7288		CFLAGS="$xorg_testset_save_CFLAGS"
7289
7290		eval supported=\$$cacheid
7291		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7292$as_echo "$supported" >&6; }
7293		if test "$supported" = "yes" ; then
7294			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7295			found="yes"
7296		fi
7297	fi
7298
7299	if test $found = "no" ; then
7300		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7301			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7302		fi
7303
7304		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7305			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7306		fi
7307
7308		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7309
7310		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7311$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7312		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7313		if eval \${$cacheid+:} false; then :
7314  $as_echo_n "(cached) " >&6
7315else
7316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317/* end confdefs.h.  */
7318int i;
7319int
7320main ()
7321{
7322
7323  ;
7324  return 0;
7325}
7326_ACEOF
7327if ac_fn_c_try_link "$LINENO"; then :
7328  eval $cacheid=yes
7329else
7330  eval $cacheid=no
7331fi
7332rm -f core conftest.err conftest.$ac_objext \
7333    conftest$ac_exeext conftest.$ac_ext
7334fi
7335
7336
7337		CFLAGS="$xorg_testset_save_CFLAGS"
7338
7339		eval supported=\$$cacheid
7340		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7341$as_echo "$supported" >&6; }
7342		if test "$supported" = "yes" ; then
7343			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7344			found="yes"
7345		fi
7346	fi
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362xorg_testset_save_CFLAGS="$CFLAGS"
7363
7364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7365	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7366	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7367$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7368if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7369  $as_echo_n "(cached) " >&6
7370else
7371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372/* end confdefs.h.  */
7373int i;
7374_ACEOF
7375if ac_fn_c_try_compile "$LINENO"; then :
7376  xorg_cv_cc_flag_unknown_warning_option=yes
7377else
7378  xorg_cv_cc_flag_unknown_warning_option=no
7379fi
7380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381fi
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7383$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7384	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7385	CFLAGS="$xorg_testset_save_CFLAGS"
7386fi
7387
7388if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7389	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7390		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7391	fi
7392	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7393	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7394$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7395if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7396  $as_echo_n "(cached) " >&6
7397else
7398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399/* end confdefs.h.  */
7400int i;
7401_ACEOF
7402if ac_fn_c_try_compile "$LINENO"; then :
7403  xorg_cv_cc_flag_unused_command_line_argument=yes
7404else
7405  xorg_cv_cc_flag_unused_command_line_argument=no
7406fi
7407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408fi
7409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7410$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7411	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7412	CFLAGS="$xorg_testset_save_CFLAGS"
7413fi
7414
7415found="no"
7416
7417	if test $found = "no" ; then
7418		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7419			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7420		fi
7421
7422		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7423			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7424		fi
7425
7426		CFLAGS="$CFLAGS -Werror=nonnull"
7427
7428		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
7429$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
7430		cacheid=xorg_cv_cc_flag__Werror_nonnull
7431		if eval \${$cacheid+:} false; then :
7432  $as_echo_n "(cached) " >&6
7433else
7434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435/* end confdefs.h.  */
7436int i;
7437int
7438main ()
7439{
7440
7441  ;
7442  return 0;
7443}
7444_ACEOF
7445if ac_fn_c_try_link "$LINENO"; then :
7446  eval $cacheid=yes
7447else
7448  eval $cacheid=no
7449fi
7450rm -f core conftest.err conftest.$ac_objext \
7451    conftest$ac_exeext conftest.$ac_ext
7452fi
7453
7454
7455		CFLAGS="$xorg_testset_save_CFLAGS"
7456
7457		eval supported=\$$cacheid
7458		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7459$as_echo "$supported" >&6; }
7460		if test "$supported" = "yes" ; then
7461			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7462			found="yes"
7463		fi
7464	fi
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480xorg_testset_save_CFLAGS="$CFLAGS"
7481
7482if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7483	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7484	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7485$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7486if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7487  $as_echo_n "(cached) " >&6
7488else
7489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490/* end confdefs.h.  */
7491int i;
7492_ACEOF
7493if ac_fn_c_try_compile "$LINENO"; then :
7494  xorg_cv_cc_flag_unknown_warning_option=yes
7495else
7496  xorg_cv_cc_flag_unknown_warning_option=no
7497fi
7498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7499fi
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7501$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7502	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7503	CFLAGS="$xorg_testset_save_CFLAGS"
7504fi
7505
7506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7507	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7508		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7509	fi
7510	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7511	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7512$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7513if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7514  $as_echo_n "(cached) " >&6
7515else
7516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517/* end confdefs.h.  */
7518int i;
7519_ACEOF
7520if ac_fn_c_try_compile "$LINENO"; then :
7521  xorg_cv_cc_flag_unused_command_line_argument=yes
7522else
7523  xorg_cv_cc_flag_unused_command_line_argument=no
7524fi
7525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526fi
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7528$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7529	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7530	CFLAGS="$xorg_testset_save_CFLAGS"
7531fi
7532
7533found="no"
7534
7535	if test $found = "no" ; then
7536		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7537			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7538		fi
7539
7540		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7541			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7542		fi
7543
7544		CFLAGS="$CFLAGS -Werror=init-self"
7545
7546		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7547$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7548		cacheid=xorg_cv_cc_flag__Werror_init_self
7549		if eval \${$cacheid+:} false; then :
7550  $as_echo_n "(cached) " >&6
7551else
7552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553/* end confdefs.h.  */
7554int i;
7555int
7556main ()
7557{
7558
7559  ;
7560  return 0;
7561}
7562_ACEOF
7563if ac_fn_c_try_link "$LINENO"; then :
7564  eval $cacheid=yes
7565else
7566  eval $cacheid=no
7567fi
7568rm -f core conftest.err conftest.$ac_objext \
7569    conftest$ac_exeext conftest.$ac_ext
7570fi
7571
7572
7573		CFLAGS="$xorg_testset_save_CFLAGS"
7574
7575		eval supported=\$$cacheid
7576		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7577$as_echo "$supported" >&6; }
7578		if test "$supported" = "yes" ; then
7579			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7580			found="yes"
7581		fi
7582	fi
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598xorg_testset_save_CFLAGS="$CFLAGS"
7599
7600if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7601	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7602	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7603$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7604if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7605  $as_echo_n "(cached) " >&6
7606else
7607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608/* end confdefs.h.  */
7609int i;
7610_ACEOF
7611if ac_fn_c_try_compile "$LINENO"; then :
7612  xorg_cv_cc_flag_unknown_warning_option=yes
7613else
7614  xorg_cv_cc_flag_unknown_warning_option=no
7615fi
7616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617fi
7618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7619$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7620	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7621	CFLAGS="$xorg_testset_save_CFLAGS"
7622fi
7623
7624if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7625	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7626		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7627	fi
7628	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7629	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7630$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7631if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7632  $as_echo_n "(cached) " >&6
7633else
7634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635/* end confdefs.h.  */
7636int i;
7637_ACEOF
7638if ac_fn_c_try_compile "$LINENO"; then :
7639  xorg_cv_cc_flag_unused_command_line_argument=yes
7640else
7641  xorg_cv_cc_flag_unused_command_line_argument=no
7642fi
7643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644fi
7645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7646$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7647	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7648	CFLAGS="$xorg_testset_save_CFLAGS"
7649fi
7650
7651found="no"
7652
7653	if test $found = "no" ; then
7654		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7655			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7656		fi
7657
7658		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7659			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7660		fi
7661
7662		CFLAGS="$CFLAGS -Werror=main"
7663
7664		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7665$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7666		cacheid=xorg_cv_cc_flag__Werror_main
7667		if eval \${$cacheid+:} false; then :
7668  $as_echo_n "(cached) " >&6
7669else
7670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671/* end confdefs.h.  */
7672int i;
7673int
7674main ()
7675{
7676
7677  ;
7678  return 0;
7679}
7680_ACEOF
7681if ac_fn_c_try_link "$LINENO"; then :
7682  eval $cacheid=yes
7683else
7684  eval $cacheid=no
7685fi
7686rm -f core conftest.err conftest.$ac_objext \
7687    conftest$ac_exeext conftest.$ac_ext
7688fi
7689
7690
7691		CFLAGS="$xorg_testset_save_CFLAGS"
7692
7693		eval supported=\$$cacheid
7694		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7695$as_echo "$supported" >&6; }
7696		if test "$supported" = "yes" ; then
7697			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7698			found="yes"
7699		fi
7700	fi
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716xorg_testset_save_CFLAGS="$CFLAGS"
7717
7718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7719	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7720	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7721$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7722if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7723  $as_echo_n "(cached) " >&6
7724else
7725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726/* end confdefs.h.  */
7727int i;
7728_ACEOF
7729if ac_fn_c_try_compile "$LINENO"; then :
7730  xorg_cv_cc_flag_unknown_warning_option=yes
7731else
7732  xorg_cv_cc_flag_unknown_warning_option=no
7733fi
7734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7735fi
7736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7737$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7738	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7739	CFLAGS="$xorg_testset_save_CFLAGS"
7740fi
7741
7742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7743	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7744		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7745	fi
7746	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7747	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7748$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7749if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7750  $as_echo_n "(cached) " >&6
7751else
7752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753/* end confdefs.h.  */
7754int i;
7755_ACEOF
7756if ac_fn_c_try_compile "$LINENO"; then :
7757  xorg_cv_cc_flag_unused_command_line_argument=yes
7758else
7759  xorg_cv_cc_flag_unused_command_line_argument=no
7760fi
7761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762fi
7763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7764$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7765	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7766	CFLAGS="$xorg_testset_save_CFLAGS"
7767fi
7768
7769found="no"
7770
7771	if test $found = "no" ; then
7772		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7773			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7774		fi
7775
7776		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7777			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7778		fi
7779
7780		CFLAGS="$CFLAGS -Werror=missing-braces"
7781
7782		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7783$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7784		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7785		if eval \${$cacheid+:} false; then :
7786  $as_echo_n "(cached) " >&6
7787else
7788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789/* end confdefs.h.  */
7790int i;
7791int
7792main ()
7793{
7794
7795  ;
7796  return 0;
7797}
7798_ACEOF
7799if ac_fn_c_try_link "$LINENO"; then :
7800  eval $cacheid=yes
7801else
7802  eval $cacheid=no
7803fi
7804rm -f core conftest.err conftest.$ac_objext \
7805    conftest$ac_exeext conftest.$ac_ext
7806fi
7807
7808
7809		CFLAGS="$xorg_testset_save_CFLAGS"
7810
7811		eval supported=\$$cacheid
7812		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7813$as_echo "$supported" >&6; }
7814		if test "$supported" = "yes" ; then
7815			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7816			found="yes"
7817		fi
7818	fi
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834xorg_testset_save_CFLAGS="$CFLAGS"
7835
7836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7837	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7838	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7839$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7840if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7841  $as_echo_n "(cached) " >&6
7842else
7843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844/* end confdefs.h.  */
7845int i;
7846_ACEOF
7847if ac_fn_c_try_compile "$LINENO"; then :
7848  xorg_cv_cc_flag_unknown_warning_option=yes
7849else
7850  xorg_cv_cc_flag_unknown_warning_option=no
7851fi
7852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7853fi
7854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7855$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7856	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7857	CFLAGS="$xorg_testset_save_CFLAGS"
7858fi
7859
7860if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7861	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7862		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7863	fi
7864	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7865	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7866$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7867if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7868  $as_echo_n "(cached) " >&6
7869else
7870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h.  */
7872int i;
7873_ACEOF
7874if ac_fn_c_try_compile "$LINENO"; then :
7875  xorg_cv_cc_flag_unused_command_line_argument=yes
7876else
7877  xorg_cv_cc_flag_unused_command_line_argument=no
7878fi
7879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880fi
7881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7882$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7883	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7884	CFLAGS="$xorg_testset_save_CFLAGS"
7885fi
7886
7887found="no"
7888
7889	if test $found = "no" ; then
7890		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7891			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7892		fi
7893
7894		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7895			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7896		fi
7897
7898		CFLAGS="$CFLAGS -Werror=sequence-point"
7899
7900		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7901$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7902		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7903		if eval \${$cacheid+:} false; then :
7904  $as_echo_n "(cached) " >&6
7905else
7906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907/* end confdefs.h.  */
7908int i;
7909int
7910main ()
7911{
7912
7913  ;
7914  return 0;
7915}
7916_ACEOF
7917if ac_fn_c_try_link "$LINENO"; then :
7918  eval $cacheid=yes
7919else
7920  eval $cacheid=no
7921fi
7922rm -f core conftest.err conftest.$ac_objext \
7923    conftest$ac_exeext conftest.$ac_ext
7924fi
7925
7926
7927		CFLAGS="$xorg_testset_save_CFLAGS"
7928
7929		eval supported=\$$cacheid
7930		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7931$as_echo "$supported" >&6; }
7932		if test "$supported" = "yes" ; then
7933			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7934			found="yes"
7935		fi
7936	fi
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952xorg_testset_save_CFLAGS="$CFLAGS"
7953
7954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7955	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7956	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7957$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7958if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7959  $as_echo_n "(cached) " >&6
7960else
7961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962/* end confdefs.h.  */
7963int i;
7964_ACEOF
7965if ac_fn_c_try_compile "$LINENO"; then :
7966  xorg_cv_cc_flag_unknown_warning_option=yes
7967else
7968  xorg_cv_cc_flag_unknown_warning_option=no
7969fi
7970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7971fi
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7973$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7974	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7975	CFLAGS="$xorg_testset_save_CFLAGS"
7976fi
7977
7978if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7979	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7980		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7981	fi
7982	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7983	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7984$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7985if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7986  $as_echo_n "(cached) " >&6
7987else
7988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989/* end confdefs.h.  */
7990int i;
7991_ACEOF
7992if ac_fn_c_try_compile "$LINENO"; then :
7993  xorg_cv_cc_flag_unused_command_line_argument=yes
7994else
7995  xorg_cv_cc_flag_unused_command_line_argument=no
7996fi
7997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7998fi
7999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8000$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8001	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8002	CFLAGS="$xorg_testset_save_CFLAGS"
8003fi
8004
8005found="no"
8006
8007	if test $found = "no" ; then
8008		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8009			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8010		fi
8011
8012		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8013			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8014		fi
8015
8016		CFLAGS="$CFLAGS -Werror=return-type"
8017
8018		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
8019$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
8020		cacheid=xorg_cv_cc_flag__Werror_return_type
8021		if eval \${$cacheid+:} false; then :
8022  $as_echo_n "(cached) " >&6
8023else
8024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025/* end confdefs.h.  */
8026int i;
8027int
8028main ()
8029{
8030
8031  ;
8032  return 0;
8033}
8034_ACEOF
8035if ac_fn_c_try_link "$LINENO"; then :
8036  eval $cacheid=yes
8037else
8038  eval $cacheid=no
8039fi
8040rm -f core conftest.err conftest.$ac_objext \
8041    conftest$ac_exeext conftest.$ac_ext
8042fi
8043
8044
8045		CFLAGS="$xorg_testset_save_CFLAGS"
8046
8047		eval supported=\$$cacheid
8048		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8049$as_echo "$supported" >&6; }
8050		if test "$supported" = "yes" ; then
8051			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8052			found="yes"
8053		fi
8054	fi
8055
8056	if test $found = "no" ; then
8057		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8058			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8059		fi
8060
8061		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8062			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8063		fi
8064
8065		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8066
8067		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8068$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8069		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8070		if eval \${$cacheid+:} false; then :
8071  $as_echo_n "(cached) " >&6
8072else
8073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074/* end confdefs.h.  */
8075int i;
8076int
8077main ()
8078{
8079
8080  ;
8081  return 0;
8082}
8083_ACEOF
8084if ac_fn_c_try_link "$LINENO"; then :
8085  eval $cacheid=yes
8086else
8087  eval $cacheid=no
8088fi
8089rm -f core conftest.err conftest.$ac_objext \
8090    conftest$ac_exeext conftest.$ac_ext
8091fi
8092
8093
8094		CFLAGS="$xorg_testset_save_CFLAGS"
8095
8096		eval supported=\$$cacheid
8097		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8098$as_echo "$supported" >&6; }
8099		if test "$supported" = "yes" ; then
8100			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8101			found="yes"
8102		fi
8103	fi
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119xorg_testset_save_CFLAGS="$CFLAGS"
8120
8121if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8122	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8123	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8124$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8125if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8126  $as_echo_n "(cached) " >&6
8127else
8128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129/* end confdefs.h.  */
8130int i;
8131_ACEOF
8132if ac_fn_c_try_compile "$LINENO"; then :
8133  xorg_cv_cc_flag_unknown_warning_option=yes
8134else
8135  xorg_cv_cc_flag_unknown_warning_option=no
8136fi
8137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138fi
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8140$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8141	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8142	CFLAGS="$xorg_testset_save_CFLAGS"
8143fi
8144
8145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8146	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8147		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8148	fi
8149	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8150	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8151$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8152if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8153  $as_echo_n "(cached) " >&6
8154else
8155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156/* end confdefs.h.  */
8157int i;
8158_ACEOF
8159if ac_fn_c_try_compile "$LINENO"; then :
8160  xorg_cv_cc_flag_unused_command_line_argument=yes
8161else
8162  xorg_cv_cc_flag_unused_command_line_argument=no
8163fi
8164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8165fi
8166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8167$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8168	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8169	CFLAGS="$xorg_testset_save_CFLAGS"
8170fi
8171
8172found="no"
8173
8174	if test $found = "no" ; then
8175		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8176			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8177		fi
8178
8179		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8180			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8181		fi
8182
8183		CFLAGS="$CFLAGS -Werror=trigraphs"
8184
8185		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
8186$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
8187		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8188		if eval \${$cacheid+:} false; then :
8189  $as_echo_n "(cached) " >&6
8190else
8191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192/* end confdefs.h.  */
8193int i;
8194int
8195main ()
8196{
8197
8198  ;
8199  return 0;
8200}
8201_ACEOF
8202if ac_fn_c_try_link "$LINENO"; then :
8203  eval $cacheid=yes
8204else
8205  eval $cacheid=no
8206fi
8207rm -f core conftest.err conftest.$ac_objext \
8208    conftest$ac_exeext conftest.$ac_ext
8209fi
8210
8211
8212		CFLAGS="$xorg_testset_save_CFLAGS"
8213
8214		eval supported=\$$cacheid
8215		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8216$as_echo "$supported" >&6; }
8217		if test "$supported" = "yes" ; then
8218			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8219			found="yes"
8220		fi
8221	fi
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237xorg_testset_save_CFLAGS="$CFLAGS"
8238
8239if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8240	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8242$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8243if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8244  $as_echo_n "(cached) " >&6
8245else
8246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247/* end confdefs.h.  */
8248int i;
8249_ACEOF
8250if ac_fn_c_try_compile "$LINENO"; then :
8251  xorg_cv_cc_flag_unknown_warning_option=yes
8252else
8253  xorg_cv_cc_flag_unknown_warning_option=no
8254fi
8255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8256fi
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8258$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8259	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8260	CFLAGS="$xorg_testset_save_CFLAGS"
8261fi
8262
8263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8264	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8265		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8266	fi
8267	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8269$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8270if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8271  $as_echo_n "(cached) " >&6
8272else
8273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274/* end confdefs.h.  */
8275int i;
8276_ACEOF
8277if ac_fn_c_try_compile "$LINENO"; then :
8278  xorg_cv_cc_flag_unused_command_line_argument=yes
8279else
8280  xorg_cv_cc_flag_unused_command_line_argument=no
8281fi
8282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8283fi
8284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8285$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8286	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8287	CFLAGS="$xorg_testset_save_CFLAGS"
8288fi
8289
8290found="no"
8291
8292	if test $found = "no" ; then
8293		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8294			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8295		fi
8296
8297		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8298			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8299		fi
8300
8301		CFLAGS="$CFLAGS -Werror=array-bounds"
8302
8303		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
8304$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
8305		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8306		if eval \${$cacheid+:} false; then :
8307  $as_echo_n "(cached) " >&6
8308else
8309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310/* end confdefs.h.  */
8311int i;
8312int
8313main ()
8314{
8315
8316  ;
8317  return 0;
8318}
8319_ACEOF
8320if ac_fn_c_try_link "$LINENO"; then :
8321  eval $cacheid=yes
8322else
8323  eval $cacheid=no
8324fi
8325rm -f core conftest.err conftest.$ac_objext \
8326    conftest$ac_exeext conftest.$ac_ext
8327fi
8328
8329
8330		CFLAGS="$xorg_testset_save_CFLAGS"
8331
8332		eval supported=\$$cacheid
8333		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8334$as_echo "$supported" >&6; }
8335		if test "$supported" = "yes" ; then
8336			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8337			found="yes"
8338		fi
8339	fi
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355xorg_testset_save_CFLAGS="$CFLAGS"
8356
8357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8358	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8359	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8360$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8361if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8362  $as_echo_n "(cached) " >&6
8363else
8364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365/* end confdefs.h.  */
8366int i;
8367_ACEOF
8368if ac_fn_c_try_compile "$LINENO"; then :
8369  xorg_cv_cc_flag_unknown_warning_option=yes
8370else
8371  xorg_cv_cc_flag_unknown_warning_option=no
8372fi
8373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8374fi
8375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8376$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8377	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8378	CFLAGS="$xorg_testset_save_CFLAGS"
8379fi
8380
8381if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8382	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8383		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8384	fi
8385	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8386	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8387$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8388if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8389  $as_echo_n "(cached) " >&6
8390else
8391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392/* end confdefs.h.  */
8393int i;
8394_ACEOF
8395if ac_fn_c_try_compile "$LINENO"; then :
8396  xorg_cv_cc_flag_unused_command_line_argument=yes
8397else
8398  xorg_cv_cc_flag_unused_command_line_argument=no
8399fi
8400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401fi
8402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8403$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8404	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8405	CFLAGS="$xorg_testset_save_CFLAGS"
8406fi
8407
8408found="no"
8409
8410	if test $found = "no" ; then
8411		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8412			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8413		fi
8414
8415		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8416			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8417		fi
8418
8419		CFLAGS="$CFLAGS -Werror=write-strings"
8420
8421		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
8422$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
8423		cacheid=xorg_cv_cc_flag__Werror_write_strings
8424		if eval \${$cacheid+:} false; then :
8425  $as_echo_n "(cached) " >&6
8426else
8427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428/* end confdefs.h.  */
8429int i;
8430int
8431main ()
8432{
8433
8434  ;
8435  return 0;
8436}
8437_ACEOF
8438if ac_fn_c_try_link "$LINENO"; then :
8439  eval $cacheid=yes
8440else
8441  eval $cacheid=no
8442fi
8443rm -f core conftest.err conftest.$ac_objext \
8444    conftest$ac_exeext conftest.$ac_ext
8445fi
8446
8447
8448		CFLAGS="$xorg_testset_save_CFLAGS"
8449
8450		eval supported=\$$cacheid
8451		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8452$as_echo "$supported" >&6; }
8453		if test "$supported" = "yes" ; then
8454			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8455			found="yes"
8456		fi
8457	fi
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473xorg_testset_save_CFLAGS="$CFLAGS"
8474
8475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8476	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8477	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8478$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8479if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8480  $as_echo_n "(cached) " >&6
8481else
8482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483/* end confdefs.h.  */
8484int i;
8485_ACEOF
8486if ac_fn_c_try_compile "$LINENO"; then :
8487  xorg_cv_cc_flag_unknown_warning_option=yes
8488else
8489  xorg_cv_cc_flag_unknown_warning_option=no
8490fi
8491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492fi
8493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8494$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8495	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8496	CFLAGS="$xorg_testset_save_CFLAGS"
8497fi
8498
8499if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8500	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8501		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8502	fi
8503	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8504	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8505$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8506if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8507  $as_echo_n "(cached) " >&6
8508else
8509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510/* end confdefs.h.  */
8511int i;
8512_ACEOF
8513if ac_fn_c_try_compile "$LINENO"; then :
8514  xorg_cv_cc_flag_unused_command_line_argument=yes
8515else
8516  xorg_cv_cc_flag_unused_command_line_argument=no
8517fi
8518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519fi
8520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8521$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8522	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8523	CFLAGS="$xorg_testset_save_CFLAGS"
8524fi
8525
8526found="no"
8527
8528	if test $found = "no" ; then
8529		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8530			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8531		fi
8532
8533		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8534			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8535		fi
8536
8537		CFLAGS="$CFLAGS -Werror=address"
8538
8539		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8540$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8541		cacheid=xorg_cv_cc_flag__Werror_address
8542		if eval \${$cacheid+:} false; then :
8543  $as_echo_n "(cached) " >&6
8544else
8545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546/* end confdefs.h.  */
8547int i;
8548int
8549main ()
8550{
8551
8552  ;
8553  return 0;
8554}
8555_ACEOF
8556if ac_fn_c_try_link "$LINENO"; then :
8557  eval $cacheid=yes
8558else
8559  eval $cacheid=no
8560fi
8561rm -f core conftest.err conftest.$ac_objext \
8562    conftest$ac_exeext conftest.$ac_ext
8563fi
8564
8565
8566		CFLAGS="$xorg_testset_save_CFLAGS"
8567
8568		eval supported=\$$cacheid
8569		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8570$as_echo "$supported" >&6; }
8571		if test "$supported" = "yes" ; then
8572			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8573			found="yes"
8574		fi
8575	fi
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591xorg_testset_save_CFLAGS="$CFLAGS"
8592
8593if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8594	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8595	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8596$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8597if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8598  $as_echo_n "(cached) " >&6
8599else
8600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601/* end confdefs.h.  */
8602int i;
8603_ACEOF
8604if ac_fn_c_try_compile "$LINENO"; then :
8605  xorg_cv_cc_flag_unknown_warning_option=yes
8606else
8607  xorg_cv_cc_flag_unknown_warning_option=no
8608fi
8609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610fi
8611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8612$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8613	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8614	CFLAGS="$xorg_testset_save_CFLAGS"
8615fi
8616
8617if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8618	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8619		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8620	fi
8621	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8622	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8623$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8624if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8625  $as_echo_n "(cached) " >&6
8626else
8627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8628/* end confdefs.h.  */
8629int i;
8630_ACEOF
8631if ac_fn_c_try_compile "$LINENO"; then :
8632  xorg_cv_cc_flag_unused_command_line_argument=yes
8633else
8634  xorg_cv_cc_flag_unused_command_line_argument=no
8635fi
8636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637fi
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8639$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8640	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8641	CFLAGS="$xorg_testset_save_CFLAGS"
8642fi
8643
8644found="no"
8645
8646	if test $found = "no" ; then
8647		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8648			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8649		fi
8650
8651		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8652			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8653		fi
8654
8655		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8656
8657		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8658$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8659		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8660		if eval \${$cacheid+:} false; then :
8661  $as_echo_n "(cached) " >&6
8662else
8663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664/* end confdefs.h.  */
8665int i;
8666int
8667main ()
8668{
8669
8670  ;
8671  return 0;
8672}
8673_ACEOF
8674if ac_fn_c_try_link "$LINENO"; then :
8675  eval $cacheid=yes
8676else
8677  eval $cacheid=no
8678fi
8679rm -f core conftest.err conftest.$ac_objext \
8680    conftest$ac_exeext conftest.$ac_ext
8681fi
8682
8683
8684		CFLAGS="$xorg_testset_save_CFLAGS"
8685
8686		eval supported=\$$cacheid
8687		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8688$as_echo "$supported" >&6; }
8689		if test "$supported" = "yes" ; then
8690			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8691			found="yes"
8692		fi
8693	fi
8694
8695	if test $found = "no" ; then
8696		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8697			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8698		fi
8699
8700		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8701			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8702		fi
8703
8704		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8705
8706		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8707$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8708		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8709		if eval \${$cacheid+:} false; then :
8710  $as_echo_n "(cached) " >&6
8711else
8712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713/* end confdefs.h.  */
8714int i;
8715int
8716main ()
8717{
8718
8719  ;
8720  return 0;
8721}
8722_ACEOF
8723if ac_fn_c_try_link "$LINENO"; then :
8724  eval $cacheid=yes
8725else
8726  eval $cacheid=no
8727fi
8728rm -f core conftest.err conftest.$ac_objext \
8729    conftest$ac_exeext conftest.$ac_ext
8730fi
8731
8732
8733		CFLAGS="$xorg_testset_save_CFLAGS"
8734
8735		eval supported=\$$cacheid
8736		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8737$as_echo "$supported" >&6; }
8738		if test "$supported" = "yes" ; then
8739			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8740			found="yes"
8741		fi
8742	fi
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758xorg_testset_save_CFLAGS="$CFLAGS"
8759
8760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8761	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8762	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8763$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8764if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8765  $as_echo_n "(cached) " >&6
8766else
8767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768/* end confdefs.h.  */
8769int i;
8770_ACEOF
8771if ac_fn_c_try_compile "$LINENO"; then :
8772  xorg_cv_cc_flag_unknown_warning_option=yes
8773else
8774  xorg_cv_cc_flag_unknown_warning_option=no
8775fi
8776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777fi
8778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8779$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8780	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8781	CFLAGS="$xorg_testset_save_CFLAGS"
8782fi
8783
8784if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8785	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8786		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8787	fi
8788	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8790$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8791if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8792  $as_echo_n "(cached) " >&6
8793else
8794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795/* end confdefs.h.  */
8796int i;
8797_ACEOF
8798if ac_fn_c_try_compile "$LINENO"; then :
8799  xorg_cv_cc_flag_unused_command_line_argument=yes
8800else
8801  xorg_cv_cc_flag_unused_command_line_argument=no
8802fi
8803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8804fi
8805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8806$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8807	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8808	CFLAGS="$xorg_testset_save_CFLAGS"
8809fi
8810
8811found="no"
8812
8813	if test $found = "no" ; then
8814		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8815			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8816		fi
8817
8818		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8819			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8820		fi
8821
8822		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8823
8824		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8825$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8826		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8827		if eval \${$cacheid+:} false; then :
8828  $as_echo_n "(cached) " >&6
8829else
8830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831/* end confdefs.h.  */
8832int i;
8833int
8834main ()
8835{
8836
8837  ;
8838  return 0;
8839}
8840_ACEOF
8841if ac_fn_c_try_link "$LINENO"; then :
8842  eval $cacheid=yes
8843else
8844  eval $cacheid=no
8845fi
8846rm -f core conftest.err conftest.$ac_objext \
8847    conftest$ac_exeext conftest.$ac_ext
8848fi
8849
8850
8851		CFLAGS="$xorg_testset_save_CFLAGS"
8852
8853		eval supported=\$$cacheid
8854		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8855$as_echo "$supported" >&6; }
8856		if test "$supported" = "yes" ; then
8857			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8858			found="yes"
8859		fi
8860	fi
8861
8862 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8863else
8864{ $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
8865$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;}
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879xorg_testset_save_CFLAGS="$CFLAGS"
8880
8881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8882	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8883	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8884$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8885if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8886  $as_echo_n "(cached) " >&6
8887else
8888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889/* end confdefs.h.  */
8890int i;
8891_ACEOF
8892if ac_fn_c_try_compile "$LINENO"; then :
8893  xorg_cv_cc_flag_unknown_warning_option=yes
8894else
8895  xorg_cv_cc_flag_unknown_warning_option=no
8896fi
8897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8898fi
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8900$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8901	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8902	CFLAGS="$xorg_testset_save_CFLAGS"
8903fi
8904
8905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8906	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8907		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8908	fi
8909	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8910	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8911$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8912if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8913  $as_echo_n "(cached) " >&6
8914else
8915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916/* end confdefs.h.  */
8917int i;
8918_ACEOF
8919if ac_fn_c_try_compile "$LINENO"; then :
8920  xorg_cv_cc_flag_unused_command_line_argument=yes
8921else
8922  xorg_cv_cc_flag_unused_command_line_argument=no
8923fi
8924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8925fi
8926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8927$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8928	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8929	CFLAGS="$xorg_testset_save_CFLAGS"
8930fi
8931
8932found="no"
8933
8934	if test $found = "no" ; then
8935		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8936			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8937		fi
8938
8939		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8940			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8941		fi
8942
8943		CFLAGS="$CFLAGS -Wimplicit"
8944
8945		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8946$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8947		cacheid=xorg_cv_cc_flag__Wimplicit
8948		if eval \${$cacheid+:} false; then :
8949  $as_echo_n "(cached) " >&6
8950else
8951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952/* end confdefs.h.  */
8953int i;
8954int
8955main ()
8956{
8957
8958  ;
8959  return 0;
8960}
8961_ACEOF
8962if ac_fn_c_try_link "$LINENO"; then :
8963  eval $cacheid=yes
8964else
8965  eval $cacheid=no
8966fi
8967rm -f core conftest.err conftest.$ac_objext \
8968    conftest$ac_exeext conftest.$ac_ext
8969fi
8970
8971
8972		CFLAGS="$xorg_testset_save_CFLAGS"
8973
8974		eval supported=\$$cacheid
8975		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8976$as_echo "$supported" >&6; }
8977		if test "$supported" = "yes" ; then
8978			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8979			found="yes"
8980		fi
8981	fi
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997xorg_testset_save_CFLAGS="$CFLAGS"
8998
8999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9000	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9001	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9002$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9003if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9004  $as_echo_n "(cached) " >&6
9005else
9006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007/* end confdefs.h.  */
9008int i;
9009_ACEOF
9010if ac_fn_c_try_compile "$LINENO"; then :
9011  xorg_cv_cc_flag_unknown_warning_option=yes
9012else
9013  xorg_cv_cc_flag_unknown_warning_option=no
9014fi
9015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9016fi
9017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9018$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9019	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9020	CFLAGS="$xorg_testset_save_CFLAGS"
9021fi
9022
9023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9024	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9025		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9026	fi
9027	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9028	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9029$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9030if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9031  $as_echo_n "(cached) " >&6
9032else
9033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034/* end confdefs.h.  */
9035int i;
9036_ACEOF
9037if ac_fn_c_try_compile "$LINENO"; then :
9038  xorg_cv_cc_flag_unused_command_line_argument=yes
9039else
9040  xorg_cv_cc_flag_unused_command_line_argument=no
9041fi
9042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9043fi
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9045$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9046	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9047	CFLAGS="$xorg_testset_save_CFLAGS"
9048fi
9049
9050found="no"
9051
9052	if test $found = "no" ; then
9053		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9054			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9055		fi
9056
9057		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9058			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9059		fi
9060
9061		CFLAGS="$CFLAGS -Wnonnull"
9062
9063		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
9064$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
9065		cacheid=xorg_cv_cc_flag__Wnonnull
9066		if eval \${$cacheid+:} false; then :
9067  $as_echo_n "(cached) " >&6
9068else
9069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070/* end confdefs.h.  */
9071int i;
9072int
9073main ()
9074{
9075
9076  ;
9077  return 0;
9078}
9079_ACEOF
9080if ac_fn_c_try_link "$LINENO"; then :
9081  eval $cacheid=yes
9082else
9083  eval $cacheid=no
9084fi
9085rm -f core conftest.err conftest.$ac_objext \
9086    conftest$ac_exeext conftest.$ac_ext
9087fi
9088
9089
9090		CFLAGS="$xorg_testset_save_CFLAGS"
9091
9092		eval supported=\$$cacheid
9093		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9094$as_echo "$supported" >&6; }
9095		if test "$supported" = "yes" ; then
9096			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9097			found="yes"
9098		fi
9099	fi
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115xorg_testset_save_CFLAGS="$CFLAGS"
9116
9117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9118	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9119	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9120$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9121if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9122  $as_echo_n "(cached) " >&6
9123else
9124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125/* end confdefs.h.  */
9126int i;
9127_ACEOF
9128if ac_fn_c_try_compile "$LINENO"; then :
9129  xorg_cv_cc_flag_unknown_warning_option=yes
9130else
9131  xorg_cv_cc_flag_unknown_warning_option=no
9132fi
9133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9134fi
9135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9136$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9137	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9138	CFLAGS="$xorg_testset_save_CFLAGS"
9139fi
9140
9141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9142	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9143		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9144	fi
9145	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9147$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9148if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9149  $as_echo_n "(cached) " >&6
9150else
9151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152/* end confdefs.h.  */
9153int i;
9154_ACEOF
9155if ac_fn_c_try_compile "$LINENO"; then :
9156  xorg_cv_cc_flag_unused_command_line_argument=yes
9157else
9158  xorg_cv_cc_flag_unused_command_line_argument=no
9159fi
9160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9161fi
9162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9163$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9164	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9165	CFLAGS="$xorg_testset_save_CFLAGS"
9166fi
9167
9168found="no"
9169
9170	if test $found = "no" ; then
9171		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9172			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9173		fi
9174
9175		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9176			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9177		fi
9178
9179		CFLAGS="$CFLAGS -Winit-self"
9180
9181		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
9182$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
9183		cacheid=xorg_cv_cc_flag__Winit_self
9184		if eval \${$cacheid+:} false; then :
9185  $as_echo_n "(cached) " >&6
9186else
9187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188/* end confdefs.h.  */
9189int i;
9190int
9191main ()
9192{
9193
9194  ;
9195  return 0;
9196}
9197_ACEOF
9198if ac_fn_c_try_link "$LINENO"; then :
9199  eval $cacheid=yes
9200else
9201  eval $cacheid=no
9202fi
9203rm -f core conftest.err conftest.$ac_objext \
9204    conftest$ac_exeext conftest.$ac_ext
9205fi
9206
9207
9208		CFLAGS="$xorg_testset_save_CFLAGS"
9209
9210		eval supported=\$$cacheid
9211		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9212$as_echo "$supported" >&6; }
9213		if test "$supported" = "yes" ; then
9214			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9215			found="yes"
9216		fi
9217	fi
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233xorg_testset_save_CFLAGS="$CFLAGS"
9234
9235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9236	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9238$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9239if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9240  $as_echo_n "(cached) " >&6
9241else
9242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243/* end confdefs.h.  */
9244int i;
9245_ACEOF
9246if ac_fn_c_try_compile "$LINENO"; then :
9247  xorg_cv_cc_flag_unknown_warning_option=yes
9248else
9249  xorg_cv_cc_flag_unknown_warning_option=no
9250fi
9251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9252fi
9253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9254$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9255	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9256	CFLAGS="$xorg_testset_save_CFLAGS"
9257fi
9258
9259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9260	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9261		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9262	fi
9263	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9265$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9266if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9267  $as_echo_n "(cached) " >&6
9268else
9269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270/* end confdefs.h.  */
9271int i;
9272_ACEOF
9273if ac_fn_c_try_compile "$LINENO"; then :
9274  xorg_cv_cc_flag_unused_command_line_argument=yes
9275else
9276  xorg_cv_cc_flag_unused_command_line_argument=no
9277fi
9278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9279fi
9280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9281$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9282	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9283	CFLAGS="$xorg_testset_save_CFLAGS"
9284fi
9285
9286found="no"
9287
9288	if test $found = "no" ; then
9289		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9290			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9291		fi
9292
9293		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9294			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9295		fi
9296
9297		CFLAGS="$CFLAGS -Wmain"
9298
9299		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
9300$as_echo_n "checking if $CC supports-Wmain... " >&6; }
9301		cacheid=xorg_cv_cc_flag__Wmain
9302		if eval \${$cacheid+:} false; then :
9303  $as_echo_n "(cached) " >&6
9304else
9305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306/* end confdefs.h.  */
9307int i;
9308int
9309main ()
9310{
9311
9312  ;
9313  return 0;
9314}
9315_ACEOF
9316if ac_fn_c_try_link "$LINENO"; then :
9317  eval $cacheid=yes
9318else
9319  eval $cacheid=no
9320fi
9321rm -f core conftest.err conftest.$ac_objext \
9322    conftest$ac_exeext conftest.$ac_ext
9323fi
9324
9325
9326		CFLAGS="$xorg_testset_save_CFLAGS"
9327
9328		eval supported=\$$cacheid
9329		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9330$as_echo "$supported" >&6; }
9331		if test "$supported" = "yes" ; then
9332			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9333			found="yes"
9334		fi
9335	fi
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351xorg_testset_save_CFLAGS="$CFLAGS"
9352
9353if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9354	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9356$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9357if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9358  $as_echo_n "(cached) " >&6
9359else
9360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361/* end confdefs.h.  */
9362int i;
9363_ACEOF
9364if ac_fn_c_try_compile "$LINENO"; then :
9365  xorg_cv_cc_flag_unknown_warning_option=yes
9366else
9367  xorg_cv_cc_flag_unknown_warning_option=no
9368fi
9369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9370fi
9371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9372$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9373	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9374	CFLAGS="$xorg_testset_save_CFLAGS"
9375fi
9376
9377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9378	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9379		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9380	fi
9381	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9383$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9384if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9385  $as_echo_n "(cached) " >&6
9386else
9387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388/* end confdefs.h.  */
9389int i;
9390_ACEOF
9391if ac_fn_c_try_compile "$LINENO"; then :
9392  xorg_cv_cc_flag_unused_command_line_argument=yes
9393else
9394  xorg_cv_cc_flag_unused_command_line_argument=no
9395fi
9396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9397fi
9398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9399$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9400	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9401	CFLAGS="$xorg_testset_save_CFLAGS"
9402fi
9403
9404found="no"
9405
9406	if test $found = "no" ; then
9407		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9408			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9409		fi
9410
9411		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9412			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9413		fi
9414
9415		CFLAGS="$CFLAGS -Wmissing-braces"
9416
9417		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
9418$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
9419		cacheid=xorg_cv_cc_flag__Wmissing_braces
9420		if eval \${$cacheid+:} false; then :
9421  $as_echo_n "(cached) " >&6
9422else
9423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424/* end confdefs.h.  */
9425int i;
9426int
9427main ()
9428{
9429
9430  ;
9431  return 0;
9432}
9433_ACEOF
9434if ac_fn_c_try_link "$LINENO"; then :
9435  eval $cacheid=yes
9436else
9437  eval $cacheid=no
9438fi
9439rm -f core conftest.err conftest.$ac_objext \
9440    conftest$ac_exeext conftest.$ac_ext
9441fi
9442
9443
9444		CFLAGS="$xorg_testset_save_CFLAGS"
9445
9446		eval supported=\$$cacheid
9447		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9448$as_echo "$supported" >&6; }
9449		if test "$supported" = "yes" ; then
9450			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9451			found="yes"
9452		fi
9453	fi
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469xorg_testset_save_CFLAGS="$CFLAGS"
9470
9471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9472	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9474$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9475if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9476  $as_echo_n "(cached) " >&6
9477else
9478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479/* end confdefs.h.  */
9480int i;
9481_ACEOF
9482if ac_fn_c_try_compile "$LINENO"; then :
9483  xorg_cv_cc_flag_unknown_warning_option=yes
9484else
9485  xorg_cv_cc_flag_unknown_warning_option=no
9486fi
9487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9488fi
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9490$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9491	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9492	CFLAGS="$xorg_testset_save_CFLAGS"
9493fi
9494
9495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9496	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9497		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9498	fi
9499	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9501$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9502if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9503  $as_echo_n "(cached) " >&6
9504else
9505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506/* end confdefs.h.  */
9507int i;
9508_ACEOF
9509if ac_fn_c_try_compile "$LINENO"; then :
9510  xorg_cv_cc_flag_unused_command_line_argument=yes
9511else
9512  xorg_cv_cc_flag_unused_command_line_argument=no
9513fi
9514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9515fi
9516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9517$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9518	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9519	CFLAGS="$xorg_testset_save_CFLAGS"
9520fi
9521
9522found="no"
9523
9524	if test $found = "no" ; then
9525		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9526			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9527		fi
9528
9529		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9530			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9531		fi
9532
9533		CFLAGS="$CFLAGS -Wsequence-point"
9534
9535		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9536$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9537		cacheid=xorg_cv_cc_flag__Wsequence_point
9538		if eval \${$cacheid+:} false; then :
9539  $as_echo_n "(cached) " >&6
9540else
9541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542/* end confdefs.h.  */
9543int i;
9544int
9545main ()
9546{
9547
9548  ;
9549  return 0;
9550}
9551_ACEOF
9552if ac_fn_c_try_link "$LINENO"; then :
9553  eval $cacheid=yes
9554else
9555  eval $cacheid=no
9556fi
9557rm -f core conftest.err conftest.$ac_objext \
9558    conftest$ac_exeext conftest.$ac_ext
9559fi
9560
9561
9562		CFLAGS="$xorg_testset_save_CFLAGS"
9563
9564		eval supported=\$$cacheid
9565		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9566$as_echo "$supported" >&6; }
9567		if test "$supported" = "yes" ; then
9568			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9569			found="yes"
9570		fi
9571	fi
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587xorg_testset_save_CFLAGS="$CFLAGS"
9588
9589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9590	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9591	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9592$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9593if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9594  $as_echo_n "(cached) " >&6
9595else
9596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597/* end confdefs.h.  */
9598int i;
9599_ACEOF
9600if ac_fn_c_try_compile "$LINENO"; then :
9601  xorg_cv_cc_flag_unknown_warning_option=yes
9602else
9603  xorg_cv_cc_flag_unknown_warning_option=no
9604fi
9605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9606fi
9607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9608$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9609	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9610	CFLAGS="$xorg_testset_save_CFLAGS"
9611fi
9612
9613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9614	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9615		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9616	fi
9617	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9619$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9620if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9621  $as_echo_n "(cached) " >&6
9622else
9623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624/* end confdefs.h.  */
9625int i;
9626_ACEOF
9627if ac_fn_c_try_compile "$LINENO"; then :
9628  xorg_cv_cc_flag_unused_command_line_argument=yes
9629else
9630  xorg_cv_cc_flag_unused_command_line_argument=no
9631fi
9632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9633fi
9634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9635$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9636	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9637	CFLAGS="$xorg_testset_save_CFLAGS"
9638fi
9639
9640found="no"
9641
9642	if test $found = "no" ; then
9643		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9644			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9645		fi
9646
9647		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9648			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9649		fi
9650
9651		CFLAGS="$CFLAGS -Wreturn-type"
9652
9653		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9654$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9655		cacheid=xorg_cv_cc_flag__Wreturn_type
9656		if eval \${$cacheid+:} false; then :
9657  $as_echo_n "(cached) " >&6
9658else
9659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660/* end confdefs.h.  */
9661int i;
9662int
9663main ()
9664{
9665
9666  ;
9667  return 0;
9668}
9669_ACEOF
9670if ac_fn_c_try_link "$LINENO"; then :
9671  eval $cacheid=yes
9672else
9673  eval $cacheid=no
9674fi
9675rm -f core conftest.err conftest.$ac_objext \
9676    conftest$ac_exeext conftest.$ac_ext
9677fi
9678
9679
9680		CFLAGS="$xorg_testset_save_CFLAGS"
9681
9682		eval supported=\$$cacheid
9683		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9684$as_echo "$supported" >&6; }
9685		if test "$supported" = "yes" ; then
9686			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9687			found="yes"
9688		fi
9689	fi
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705xorg_testset_save_CFLAGS="$CFLAGS"
9706
9707if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9708	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9710$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9711if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9712  $as_echo_n "(cached) " >&6
9713else
9714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715/* end confdefs.h.  */
9716int i;
9717_ACEOF
9718if ac_fn_c_try_compile "$LINENO"; then :
9719  xorg_cv_cc_flag_unknown_warning_option=yes
9720else
9721  xorg_cv_cc_flag_unknown_warning_option=no
9722fi
9723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9724fi
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9726$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9727	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9728	CFLAGS="$xorg_testset_save_CFLAGS"
9729fi
9730
9731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9732	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9733		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9734	fi
9735	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9736	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9737$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9738if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9739  $as_echo_n "(cached) " >&6
9740else
9741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742/* end confdefs.h.  */
9743int i;
9744_ACEOF
9745if ac_fn_c_try_compile "$LINENO"; then :
9746  xorg_cv_cc_flag_unused_command_line_argument=yes
9747else
9748  xorg_cv_cc_flag_unused_command_line_argument=no
9749fi
9750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9751fi
9752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9753$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9754	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9755	CFLAGS="$xorg_testset_save_CFLAGS"
9756fi
9757
9758found="no"
9759
9760	if test $found = "no" ; then
9761		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9762			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9763		fi
9764
9765		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9766			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9767		fi
9768
9769		CFLAGS="$CFLAGS -Wtrigraphs"
9770
9771		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9772$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9773		cacheid=xorg_cv_cc_flag__Wtrigraphs
9774		if eval \${$cacheid+:} false; then :
9775  $as_echo_n "(cached) " >&6
9776else
9777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778/* end confdefs.h.  */
9779int i;
9780int
9781main ()
9782{
9783
9784  ;
9785  return 0;
9786}
9787_ACEOF
9788if ac_fn_c_try_link "$LINENO"; then :
9789  eval $cacheid=yes
9790else
9791  eval $cacheid=no
9792fi
9793rm -f core conftest.err conftest.$ac_objext \
9794    conftest$ac_exeext conftest.$ac_ext
9795fi
9796
9797
9798		CFLAGS="$xorg_testset_save_CFLAGS"
9799
9800		eval supported=\$$cacheid
9801		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9802$as_echo "$supported" >&6; }
9803		if test "$supported" = "yes" ; then
9804			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9805			found="yes"
9806		fi
9807	fi
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823xorg_testset_save_CFLAGS="$CFLAGS"
9824
9825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9826	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9828$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9829if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9830  $as_echo_n "(cached) " >&6
9831else
9832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833/* end confdefs.h.  */
9834int i;
9835_ACEOF
9836if ac_fn_c_try_compile "$LINENO"; then :
9837  xorg_cv_cc_flag_unknown_warning_option=yes
9838else
9839  xorg_cv_cc_flag_unknown_warning_option=no
9840fi
9841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9842fi
9843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9844$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9845	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9846	CFLAGS="$xorg_testset_save_CFLAGS"
9847fi
9848
9849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9850	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9851		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9852	fi
9853	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9854	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9855$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9856if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9857  $as_echo_n "(cached) " >&6
9858else
9859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860/* end confdefs.h.  */
9861int i;
9862_ACEOF
9863if ac_fn_c_try_compile "$LINENO"; then :
9864  xorg_cv_cc_flag_unused_command_line_argument=yes
9865else
9866  xorg_cv_cc_flag_unused_command_line_argument=no
9867fi
9868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869fi
9870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9871$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9872	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9873	CFLAGS="$xorg_testset_save_CFLAGS"
9874fi
9875
9876found="no"
9877
9878	if test $found = "no" ; then
9879		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9880			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9881		fi
9882
9883		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9884			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9885		fi
9886
9887		CFLAGS="$CFLAGS -Warray-bounds"
9888
9889		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9890$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9891		cacheid=xorg_cv_cc_flag__Warray_bounds
9892		if eval \${$cacheid+:} false; then :
9893  $as_echo_n "(cached) " >&6
9894else
9895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896/* end confdefs.h.  */
9897int i;
9898int
9899main ()
9900{
9901
9902  ;
9903  return 0;
9904}
9905_ACEOF
9906if ac_fn_c_try_link "$LINENO"; then :
9907  eval $cacheid=yes
9908else
9909  eval $cacheid=no
9910fi
9911rm -f core conftest.err conftest.$ac_objext \
9912    conftest$ac_exeext conftest.$ac_ext
9913fi
9914
9915
9916		CFLAGS="$xorg_testset_save_CFLAGS"
9917
9918		eval supported=\$$cacheid
9919		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9920$as_echo "$supported" >&6; }
9921		if test "$supported" = "yes" ; then
9922			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9923			found="yes"
9924		fi
9925	fi
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941xorg_testset_save_CFLAGS="$CFLAGS"
9942
9943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9944	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9946$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9947if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9948  $as_echo_n "(cached) " >&6
9949else
9950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951/* end confdefs.h.  */
9952int i;
9953_ACEOF
9954if ac_fn_c_try_compile "$LINENO"; then :
9955  xorg_cv_cc_flag_unknown_warning_option=yes
9956else
9957  xorg_cv_cc_flag_unknown_warning_option=no
9958fi
9959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9960fi
9961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9962$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9963	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9964	CFLAGS="$xorg_testset_save_CFLAGS"
9965fi
9966
9967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9968	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9969		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9970	fi
9971	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9973$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9974if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9975  $as_echo_n "(cached) " >&6
9976else
9977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978/* end confdefs.h.  */
9979int i;
9980_ACEOF
9981if ac_fn_c_try_compile "$LINENO"; then :
9982  xorg_cv_cc_flag_unused_command_line_argument=yes
9983else
9984  xorg_cv_cc_flag_unused_command_line_argument=no
9985fi
9986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9987fi
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9989$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9990	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9991	CFLAGS="$xorg_testset_save_CFLAGS"
9992fi
9993
9994found="no"
9995
9996	if test $found = "no" ; then
9997		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9998			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9999		fi
10000
10001		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10002			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10003		fi
10004
10005		CFLAGS="$CFLAGS -Wwrite-strings"
10006
10007		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
10008$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
10009		cacheid=xorg_cv_cc_flag__Wwrite_strings
10010		if eval \${$cacheid+:} false; then :
10011  $as_echo_n "(cached) " >&6
10012else
10013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014/* end confdefs.h.  */
10015int i;
10016int
10017main ()
10018{
10019
10020  ;
10021  return 0;
10022}
10023_ACEOF
10024if ac_fn_c_try_link "$LINENO"; then :
10025  eval $cacheid=yes
10026else
10027  eval $cacheid=no
10028fi
10029rm -f core conftest.err conftest.$ac_objext \
10030    conftest$ac_exeext conftest.$ac_ext
10031fi
10032
10033
10034		CFLAGS="$xorg_testset_save_CFLAGS"
10035
10036		eval supported=\$$cacheid
10037		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10038$as_echo "$supported" >&6; }
10039		if test "$supported" = "yes" ; then
10040			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10041			found="yes"
10042		fi
10043	fi
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059xorg_testset_save_CFLAGS="$CFLAGS"
10060
10061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10062	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10063	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10064$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10065if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10066  $as_echo_n "(cached) " >&6
10067else
10068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069/* end confdefs.h.  */
10070int i;
10071_ACEOF
10072if ac_fn_c_try_compile "$LINENO"; then :
10073  xorg_cv_cc_flag_unknown_warning_option=yes
10074else
10075  xorg_cv_cc_flag_unknown_warning_option=no
10076fi
10077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10078fi
10079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10080$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10081	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10082	CFLAGS="$xorg_testset_save_CFLAGS"
10083fi
10084
10085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10086	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10087		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10088	fi
10089	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10090	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10091$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10092if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10093  $as_echo_n "(cached) " >&6
10094else
10095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096/* end confdefs.h.  */
10097int i;
10098_ACEOF
10099if ac_fn_c_try_compile "$LINENO"; then :
10100  xorg_cv_cc_flag_unused_command_line_argument=yes
10101else
10102  xorg_cv_cc_flag_unused_command_line_argument=no
10103fi
10104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10105fi
10106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10107$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10108	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10109	CFLAGS="$xorg_testset_save_CFLAGS"
10110fi
10111
10112found="no"
10113
10114	if test $found = "no" ; then
10115		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10116			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10117		fi
10118
10119		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10120			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10121		fi
10122
10123		CFLAGS="$CFLAGS -Waddress"
10124
10125		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
10126$as_echo_n "checking if $CC supports-Waddress... " >&6; }
10127		cacheid=xorg_cv_cc_flag__Waddress
10128		if eval \${$cacheid+:} false; then :
10129  $as_echo_n "(cached) " >&6
10130else
10131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132/* end confdefs.h.  */
10133int i;
10134int
10135main ()
10136{
10137
10138  ;
10139  return 0;
10140}
10141_ACEOF
10142if ac_fn_c_try_link "$LINENO"; then :
10143  eval $cacheid=yes
10144else
10145  eval $cacheid=no
10146fi
10147rm -f core conftest.err conftest.$ac_objext \
10148    conftest$ac_exeext conftest.$ac_ext
10149fi
10150
10151
10152		CFLAGS="$xorg_testset_save_CFLAGS"
10153
10154		eval supported=\$$cacheid
10155		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10156$as_echo "$supported" >&6; }
10157		if test "$supported" = "yes" ; then
10158			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10159			found="yes"
10160		fi
10161	fi
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177xorg_testset_save_CFLAGS="$CFLAGS"
10178
10179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10180	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10181	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10182$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10183if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10184  $as_echo_n "(cached) " >&6
10185else
10186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187/* end confdefs.h.  */
10188int i;
10189_ACEOF
10190if ac_fn_c_try_compile "$LINENO"; then :
10191  xorg_cv_cc_flag_unknown_warning_option=yes
10192else
10193  xorg_cv_cc_flag_unknown_warning_option=no
10194fi
10195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10196fi
10197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10198$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10199	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10200	CFLAGS="$xorg_testset_save_CFLAGS"
10201fi
10202
10203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10204	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10205		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10206	fi
10207	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10208	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10209$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10210if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10211  $as_echo_n "(cached) " >&6
10212else
10213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214/* end confdefs.h.  */
10215int i;
10216_ACEOF
10217if ac_fn_c_try_compile "$LINENO"; then :
10218  xorg_cv_cc_flag_unused_command_line_argument=yes
10219else
10220  xorg_cv_cc_flag_unused_command_line_argument=no
10221fi
10222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10223fi
10224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10225$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10226	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10227	CFLAGS="$xorg_testset_save_CFLAGS"
10228fi
10229
10230found="no"
10231
10232	if test $found = "no" ; then
10233		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10234			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10235		fi
10236
10237		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10238			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10239		fi
10240
10241		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10242
10243		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
10244$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
10245		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10246		if eval \${$cacheid+:} false; then :
10247  $as_echo_n "(cached) " >&6
10248else
10249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250/* end confdefs.h.  */
10251int i;
10252int
10253main ()
10254{
10255
10256  ;
10257  return 0;
10258}
10259_ACEOF
10260if ac_fn_c_try_link "$LINENO"; then :
10261  eval $cacheid=yes
10262else
10263  eval $cacheid=no
10264fi
10265rm -f core conftest.err conftest.$ac_objext \
10266    conftest$ac_exeext conftest.$ac_ext
10267fi
10268
10269
10270		CFLAGS="$xorg_testset_save_CFLAGS"
10271
10272		eval supported=\$$cacheid
10273		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10274$as_echo "$supported" >&6; }
10275		if test "$supported" = "yes" ; then
10276			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10277			found="yes"
10278		fi
10279	fi
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295xorg_testset_save_CFLAGS="$CFLAGS"
10296
10297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10298	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10299	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10300$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10301if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10302  $as_echo_n "(cached) " >&6
10303else
10304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10305/* end confdefs.h.  */
10306int i;
10307_ACEOF
10308if ac_fn_c_try_compile "$LINENO"; then :
10309  xorg_cv_cc_flag_unknown_warning_option=yes
10310else
10311  xorg_cv_cc_flag_unknown_warning_option=no
10312fi
10313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10314fi
10315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10316$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10317	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10318	CFLAGS="$xorg_testset_save_CFLAGS"
10319fi
10320
10321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10322	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10323		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10324	fi
10325	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10326	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10327$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10328if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10329  $as_echo_n "(cached) " >&6
10330else
10331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332/* end confdefs.h.  */
10333int i;
10334_ACEOF
10335if ac_fn_c_try_compile "$LINENO"; then :
10336  xorg_cv_cc_flag_unused_command_line_argument=yes
10337else
10338  xorg_cv_cc_flag_unused_command_line_argument=no
10339fi
10340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10341fi
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10343$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10344	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10345	CFLAGS="$xorg_testset_save_CFLAGS"
10346fi
10347
10348found="no"
10349
10350	if test $found = "no" ; then
10351		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10352			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10353		fi
10354
10355		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10356			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10357		fi
10358
10359		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10360
10361		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
10362$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
10363		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10364		if eval \${$cacheid+:} false; then :
10365  $as_echo_n "(cached) " >&6
10366else
10367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368/* end confdefs.h.  */
10369int i;
10370int
10371main ()
10372{
10373
10374  ;
10375  return 0;
10376}
10377_ACEOF
10378if ac_fn_c_try_link "$LINENO"; then :
10379  eval $cacheid=yes
10380else
10381  eval $cacheid=no
10382fi
10383rm -f core conftest.err conftest.$ac_objext \
10384    conftest$ac_exeext conftest.$ac_ext
10385fi
10386
10387
10388		CFLAGS="$xorg_testset_save_CFLAGS"
10389
10390		eval supported=\$$cacheid
10391		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10392$as_echo "$supported" >&6; }
10393		if test "$supported" = "yes" ; then
10394			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10395			found="yes"
10396		fi
10397	fi
10398
10399
10400fi
10401
10402
10403
10404
10405
10406
10407
10408		CWARNFLAGS="$BASE_CFLAGS"
10409		if  test "x$GCC" = xyes ; then
10410		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10411		fi
10412
10413
10414
10415
10416
10417
10418
10419
10420# Check whether --enable-strict-compilation was given.
10421if test "${enable_strict_compilation+set}" = set; then :
10422  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10423else
10424  STRICT_COMPILE=no
10425fi
10426
10427
10428
10429
10430
10431
10432STRICT_CFLAGS=""
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446xorg_testset_save_CFLAGS="$CFLAGS"
10447
10448if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10449	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10450	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10451$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10452if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10453  $as_echo_n "(cached) " >&6
10454else
10455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456/* end confdefs.h.  */
10457int i;
10458_ACEOF
10459if ac_fn_c_try_compile "$LINENO"; then :
10460  xorg_cv_cc_flag_unknown_warning_option=yes
10461else
10462  xorg_cv_cc_flag_unknown_warning_option=no
10463fi
10464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10465fi
10466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10467$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10468	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10469	CFLAGS="$xorg_testset_save_CFLAGS"
10470fi
10471
10472if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10473	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10474		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10475	fi
10476	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10477	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10478$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10479if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10480  $as_echo_n "(cached) " >&6
10481else
10482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483/* end confdefs.h.  */
10484int i;
10485_ACEOF
10486if ac_fn_c_try_compile "$LINENO"; then :
10487  xorg_cv_cc_flag_unused_command_line_argument=yes
10488else
10489  xorg_cv_cc_flag_unused_command_line_argument=no
10490fi
10491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10492fi
10493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10494$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10495	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10496	CFLAGS="$xorg_testset_save_CFLAGS"
10497fi
10498
10499found="no"
10500
10501	if test $found = "no" ; then
10502		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10503			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10504		fi
10505
10506		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10507			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10508		fi
10509
10510		CFLAGS="$CFLAGS -pedantic"
10511
10512		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10513$as_echo_n "checking if $CC supports-pedantic... " >&6; }
10514		cacheid=xorg_cv_cc_flag__pedantic
10515		if eval \${$cacheid+:} false; then :
10516  $as_echo_n "(cached) " >&6
10517else
10518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10519/* end confdefs.h.  */
10520int i;
10521int
10522main ()
10523{
10524
10525  ;
10526  return 0;
10527}
10528_ACEOF
10529if ac_fn_c_try_link "$LINENO"; then :
10530  eval $cacheid=yes
10531else
10532  eval $cacheid=no
10533fi
10534rm -f core conftest.err conftest.$ac_objext \
10535    conftest$ac_exeext conftest.$ac_ext
10536fi
10537
10538
10539		CFLAGS="$xorg_testset_save_CFLAGS"
10540
10541		eval supported=\$$cacheid
10542		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10543$as_echo "$supported" >&6; }
10544		if test "$supported" = "yes" ; then
10545			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10546			found="yes"
10547		fi
10548	fi
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564xorg_testset_save_CFLAGS="$CFLAGS"
10565
10566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10567	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10568	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10569$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10570if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10571  $as_echo_n "(cached) " >&6
10572else
10573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10574/* end confdefs.h.  */
10575int i;
10576_ACEOF
10577if ac_fn_c_try_compile "$LINENO"; then :
10578  xorg_cv_cc_flag_unknown_warning_option=yes
10579else
10580  xorg_cv_cc_flag_unknown_warning_option=no
10581fi
10582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10583fi
10584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10585$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10586	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10587	CFLAGS="$xorg_testset_save_CFLAGS"
10588fi
10589
10590if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10591	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10592		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10593	fi
10594	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10595	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10596$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10597if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10598  $as_echo_n "(cached) " >&6
10599else
10600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601/* end confdefs.h.  */
10602int i;
10603_ACEOF
10604if ac_fn_c_try_compile "$LINENO"; then :
10605  xorg_cv_cc_flag_unused_command_line_argument=yes
10606else
10607  xorg_cv_cc_flag_unused_command_line_argument=no
10608fi
10609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10610fi
10611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10612$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10613	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10614	CFLAGS="$xorg_testset_save_CFLAGS"
10615fi
10616
10617found="no"
10618
10619	if test $found = "no" ; then
10620		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10621			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10622		fi
10623
10624		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10625			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10626		fi
10627
10628		CFLAGS="$CFLAGS -Werror"
10629
10630		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10631$as_echo_n "checking if $CC supports-Werror... " >&6; }
10632		cacheid=xorg_cv_cc_flag__Werror
10633		if eval \${$cacheid+:} false; then :
10634  $as_echo_n "(cached) " >&6
10635else
10636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637/* end confdefs.h.  */
10638int i;
10639int
10640main ()
10641{
10642
10643  ;
10644  return 0;
10645}
10646_ACEOF
10647if ac_fn_c_try_link "$LINENO"; then :
10648  eval $cacheid=yes
10649else
10650  eval $cacheid=no
10651fi
10652rm -f core conftest.err conftest.$ac_objext \
10653    conftest$ac_exeext conftest.$ac_ext
10654fi
10655
10656
10657		CFLAGS="$xorg_testset_save_CFLAGS"
10658
10659		eval supported=\$$cacheid
10660		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10661$as_echo "$supported" >&6; }
10662		if test "$supported" = "yes" ; then
10663			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10664			found="yes"
10665		fi
10666	fi
10667
10668	if test $found = "no" ; then
10669		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10670			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10671		fi
10672
10673		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10674			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10675		fi
10676
10677		CFLAGS="$CFLAGS -errwarn"
10678
10679		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10680$as_echo_n "checking if $CC supports-errwarn... " >&6; }
10681		cacheid=xorg_cv_cc_flag__errwarn
10682		if eval \${$cacheid+:} false; then :
10683  $as_echo_n "(cached) " >&6
10684else
10685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686/* end confdefs.h.  */
10687int i;
10688int
10689main ()
10690{
10691
10692  ;
10693  return 0;
10694}
10695_ACEOF
10696if ac_fn_c_try_link "$LINENO"; then :
10697  eval $cacheid=yes
10698else
10699  eval $cacheid=no
10700fi
10701rm -f core conftest.err conftest.$ac_objext \
10702    conftest$ac_exeext conftest.$ac_ext
10703fi
10704
10705
10706		CFLAGS="$xorg_testset_save_CFLAGS"
10707
10708		eval supported=\$$cacheid
10709		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10710$as_echo "$supported" >&6; }
10711		if test "$supported" = "yes" ; then
10712			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10713			found="yes"
10714		fi
10715	fi
10716
10717
10718
10719# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10720# activate it with -Werror, so we add it here explicitly.
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734xorg_testset_save_CFLAGS="$CFLAGS"
10735
10736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10737	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10738	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10739$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10740if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10741  $as_echo_n "(cached) " >&6
10742else
10743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744/* end confdefs.h.  */
10745int i;
10746_ACEOF
10747if ac_fn_c_try_compile "$LINENO"; then :
10748  xorg_cv_cc_flag_unknown_warning_option=yes
10749else
10750  xorg_cv_cc_flag_unknown_warning_option=no
10751fi
10752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10753fi
10754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10755$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10756	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10757	CFLAGS="$xorg_testset_save_CFLAGS"
10758fi
10759
10760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10761	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10762		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10763	fi
10764	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10765	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10766$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10767if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10768  $as_echo_n "(cached) " >&6
10769else
10770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771/* end confdefs.h.  */
10772int i;
10773_ACEOF
10774if ac_fn_c_try_compile "$LINENO"; then :
10775  xorg_cv_cc_flag_unused_command_line_argument=yes
10776else
10777  xorg_cv_cc_flag_unused_command_line_argument=no
10778fi
10779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10780fi
10781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10782$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10783	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10784	CFLAGS="$xorg_testset_save_CFLAGS"
10785fi
10786
10787found="no"
10788
10789	if test $found = "no" ; then
10790		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10791			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10792		fi
10793
10794		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10795			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10796		fi
10797
10798		CFLAGS="$CFLAGS -Werror=attributes"
10799
10800		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10801$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10802		cacheid=xorg_cv_cc_flag__Werror_attributes
10803		if eval \${$cacheid+:} false; then :
10804  $as_echo_n "(cached) " >&6
10805else
10806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807/* end confdefs.h.  */
10808int i;
10809int
10810main ()
10811{
10812
10813  ;
10814  return 0;
10815}
10816_ACEOF
10817if ac_fn_c_try_link "$LINENO"; then :
10818  eval $cacheid=yes
10819else
10820  eval $cacheid=no
10821fi
10822rm -f core conftest.err conftest.$ac_objext \
10823    conftest$ac_exeext conftest.$ac_ext
10824fi
10825
10826
10827		CFLAGS="$xorg_testset_save_CFLAGS"
10828
10829		eval supported=\$$cacheid
10830		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10831$as_echo "$supported" >&6; }
10832		if test "$supported" = "yes" ; then
10833			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10834			found="yes"
10835		fi
10836	fi
10837
10838
10839
10840if test "x$STRICT_COMPILE" = "xyes"; then
10841    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10842    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10843fi
10844
10845
10846
10847
10848
10849
10850cat >>confdefs.h <<_ACEOF
10851#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10852_ACEOF
10853
10854	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10855	if test "x$PVM" = "x"; then
10856		PVM="0"
10857	fi
10858
10859cat >>confdefs.h <<_ACEOF
10860#define PACKAGE_VERSION_MINOR $PVM
10861_ACEOF
10862
10863	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10864	if test "x$PVP" = "x"; then
10865		PVP="0"
10866	fi
10867
10868cat >>confdefs.h <<_ACEOF
10869#define PACKAGE_VERSION_PATCHLEVEL $PVP
10870_ACEOF
10871
10872
10873
10874CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10875mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10876|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10877echo 'git directory not found: installing possibly empty changelog.' >&2)"
10878
10879
10880
10881
10882macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10883INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10884mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10885|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10886echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10887
10888
10889
10890
10891
10892
10893if test x$APP_MAN_SUFFIX = x    ; then
10894    APP_MAN_SUFFIX=1
10895fi
10896if test x$APP_MAN_DIR = x    ; then
10897    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10898fi
10899
10900if test x$LIB_MAN_SUFFIX = x    ; then
10901    LIB_MAN_SUFFIX=3
10902fi
10903if test x$LIB_MAN_DIR = x    ; then
10904    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10905fi
10906
10907if test x$FILE_MAN_SUFFIX = x    ; then
10908    case $host_os in
10909	solaris*)	FILE_MAN_SUFFIX=4  ;;
10910	*)		FILE_MAN_SUFFIX=5  ;;
10911    esac
10912fi
10913if test x$FILE_MAN_DIR = x    ; then
10914    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10915fi
10916
10917if test x$MISC_MAN_SUFFIX = x    ; then
10918    case $host_os in
10919	solaris*)	MISC_MAN_SUFFIX=5  ;;
10920	*)		MISC_MAN_SUFFIX=7  ;;
10921    esac
10922fi
10923if test x$MISC_MAN_DIR = x    ; then
10924    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10925fi
10926
10927if test x$DRIVER_MAN_SUFFIX = x    ; then
10928    case $host_os in
10929	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10930	*)		DRIVER_MAN_SUFFIX=4  ;;
10931    esac
10932fi
10933if test x$DRIVER_MAN_DIR = x    ; then
10934    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10935fi
10936
10937if test x$ADMIN_MAN_SUFFIX = x    ; then
10938    case $host_os in
10939	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10940	*)		ADMIN_MAN_SUFFIX=8  ;;
10941    esac
10942fi
10943if test x$ADMIN_MAN_DIR = x    ; then
10944    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10945fi
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961XORG_MAN_PAGE="X Version 11"
10962
10963MAN_SUBSTS="\
10964	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10965	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10966	-e 's|__xservername__|Xorg|g' \
10967	-e 's|__xconfigfile__|xorg.conf|g' \
10968	-e 's|__projectroot__|\$(prefix)|g' \
10969	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10970	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10971	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10972	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10973	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10974	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10975	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10976
10977
10978
10979# Check whether --enable-silent-rules was given.
10980if test "${enable_silent_rules+set}" = set; then :
10981  enableval=$enable_silent_rules;
10982fi
10983
10984case $enable_silent_rules in # (((
10985  yes) AM_DEFAULT_VERBOSITY=0;;
10986   no) AM_DEFAULT_VERBOSITY=1;;
10987    *) AM_DEFAULT_VERBOSITY=0;;
10988esac
10989am_make=${MAKE-make}
10990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10991$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10992if ${am_cv_make_support_nested_variables+:} false; then :
10993  $as_echo_n "(cached) " >&6
10994else
10995  if $as_echo 'TRUE=$(BAR$(V))
10996BAR0=false
10997BAR1=true
10998V=1
10999am__doit:
11000	@$(TRUE)
11001.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11002  am_cv_make_support_nested_variables=yes
11003else
11004  am_cv_make_support_nested_variables=no
11005fi
11006fi
11007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11008$as_echo "$am_cv_make_support_nested_variables" >&6; }
11009if test $am_cv_make_support_nested_variables = yes; then
11010    AM_V='$(V)'
11011  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11012else
11013  AM_V=$AM_DEFAULT_VERBOSITY
11014  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11015fi
11016AM_BACKSLASH='\'
11017
11018
11019
11020# And disable a few very noisy warnings
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035xorg_testset_save_CFLAGS="$CFLAGS"
11036
11037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11038	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11040$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11041if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11042  $as_echo_n "(cached) " >&6
11043else
11044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045/* end confdefs.h.  */
11046int i;
11047_ACEOF
11048if ac_fn_c_try_compile "$LINENO"; then :
11049  xorg_cv_cc_flag_unknown_warning_option=yes
11050else
11051  xorg_cv_cc_flag_unknown_warning_option=no
11052fi
11053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11054fi
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11056$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11057	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11058	CFLAGS="$xorg_testset_save_CFLAGS"
11059fi
11060
11061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11062	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11063		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11064	fi
11065	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11066	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11067$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11068if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11069  $as_echo_n "(cached) " >&6
11070else
11071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072/* end confdefs.h.  */
11073int i;
11074_ACEOF
11075if ac_fn_c_try_compile "$LINENO"; then :
11076  xorg_cv_cc_flag_unused_command_line_argument=yes
11077else
11078  xorg_cv_cc_flag_unused_command_line_argument=no
11079fi
11080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11081fi
11082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11083$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11084	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11085	CFLAGS="$xorg_testset_save_CFLAGS"
11086fi
11087
11088found="no"
11089
11090	if test $found = "no" ; then
11091		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11092			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11093		fi
11094
11095		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11096			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11097		fi
11098
11099		CFLAGS="$CFLAGS -Wno-cast-qual"
11100
11101		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wno-cast-qual" >&5
11102$as_echo_n "checking if $CC supports-Wno-cast-qual... " >&6; }
11103		cacheid=xorg_cv_cc_flag__Wno_cast_qual
11104		if eval \${$cacheid+:} false; then :
11105  $as_echo_n "(cached) " >&6
11106else
11107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108/* end confdefs.h.  */
11109int i;
11110int
11111main ()
11112{
11113
11114  ;
11115  return 0;
11116}
11117_ACEOF
11118if ac_fn_c_try_link "$LINENO"; then :
11119  eval $cacheid=yes
11120else
11121  eval $cacheid=no
11122fi
11123rm -f core conftest.err conftest.$ac_objext \
11124    conftest$ac_exeext conftest.$ac_ext
11125fi
11126
11127
11128		CFLAGS="$xorg_testset_save_CFLAGS"
11129
11130		eval supported=\$$cacheid
11131		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11132$as_echo "$supported" >&6; }
11133		if test "$supported" = "yes" ; then
11134			NOWARNFLAGS="$NOWARNFLAGS -Wno-cast-qual"
11135			found="yes"
11136		fi
11137	fi
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153xorg_testset_save_CFLAGS="$CFLAGS"
11154
11155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11156	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11158$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11159if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11160  $as_echo_n "(cached) " >&6
11161else
11162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163/* end confdefs.h.  */
11164int i;
11165_ACEOF
11166if ac_fn_c_try_compile "$LINENO"; then :
11167  xorg_cv_cc_flag_unknown_warning_option=yes
11168else
11169  xorg_cv_cc_flag_unknown_warning_option=no
11170fi
11171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11172fi
11173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11174$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11175	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11176	CFLAGS="$xorg_testset_save_CFLAGS"
11177fi
11178
11179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11180	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11181		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11182	fi
11183	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11185$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11186if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11187  $as_echo_n "(cached) " >&6
11188else
11189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190/* end confdefs.h.  */
11191int i;
11192_ACEOF
11193if ac_fn_c_try_compile "$LINENO"; then :
11194  xorg_cv_cc_flag_unused_command_line_argument=yes
11195else
11196  xorg_cv_cc_flag_unused_command_line_argument=no
11197fi
11198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11199fi
11200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11201$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11202	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11203	CFLAGS="$xorg_testset_save_CFLAGS"
11204fi
11205
11206found="no"
11207
11208	if test $found = "no" ; then
11209		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11210			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11211		fi
11212
11213		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11214			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11215		fi
11216
11217		CFLAGS="$CFLAGS -Wno-redundant-decls"
11218
11219		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wno-redundant-decls" >&5
11220$as_echo_n "checking if $CC supports-Wno-redundant-decls... " >&6; }
11221		cacheid=xorg_cv_cc_flag__Wno_redundant_decls
11222		if eval \${$cacheid+:} false; then :
11223  $as_echo_n "(cached) " >&6
11224else
11225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226/* end confdefs.h.  */
11227int i;
11228int
11229main ()
11230{
11231
11232  ;
11233  return 0;
11234}
11235_ACEOF
11236if ac_fn_c_try_link "$LINENO"; then :
11237  eval $cacheid=yes
11238else
11239  eval $cacheid=no
11240fi
11241rm -f core conftest.err conftest.$ac_objext \
11242    conftest$ac_exeext conftest.$ac_ext
11243fi
11244
11245
11246		CFLAGS="$xorg_testset_save_CFLAGS"
11247
11248		eval supported=\$$cacheid
11249		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11250$as_echo "$supported" >&6; }
11251		if test "$supported" = "yes" ; then
11252			NOWARNFLAGS="$NOWARNFLAGS -Wno-redundant-decls"
11253			found="yes"
11254		fi
11255	fi
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271xorg_testset_save_CFLAGS="$CFLAGS"
11272
11273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11274	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11278  $as_echo_n "(cached) " >&6
11279else
11280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281/* end confdefs.h.  */
11282int i;
11283_ACEOF
11284if ac_fn_c_try_compile "$LINENO"; then :
11285  xorg_cv_cc_flag_unknown_warning_option=yes
11286else
11287  xorg_cv_cc_flag_unknown_warning_option=no
11288fi
11289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11290fi
11291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11293	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11294	CFLAGS="$xorg_testset_save_CFLAGS"
11295fi
11296
11297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11298	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11299		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11300	fi
11301	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11305  $as_echo_n "(cached) " >&6
11306else
11307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308/* end confdefs.h.  */
11309int i;
11310_ACEOF
11311if ac_fn_c_try_compile "$LINENO"; then :
11312  xorg_cv_cc_flag_unused_command_line_argument=yes
11313else
11314  xorg_cv_cc_flag_unused_command_line_argument=no
11315fi
11316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11317fi
11318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11320	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11321	CFLAGS="$xorg_testset_save_CFLAGS"
11322fi
11323
11324found="no"
11325
11326	if test $found = "no" ; then
11327		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11328			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11329		fi
11330
11331		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11332			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11333		fi
11334
11335		CFLAGS="$CFLAGS -Wno-maybe-uninitialized"
11336
11337		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wno-maybe-uninitialized" >&5
11338$as_echo_n "checking if $CC supports-Wno-maybe-uninitialized... " >&6; }
11339		cacheid=xorg_cv_cc_flag__Wno_maybe_uninitialized
11340		if eval \${$cacheid+:} false; then :
11341  $as_echo_n "(cached) " >&6
11342else
11343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344/* end confdefs.h.  */
11345int i;
11346int
11347main ()
11348{
11349
11350  ;
11351  return 0;
11352}
11353_ACEOF
11354if ac_fn_c_try_link "$LINENO"; then :
11355  eval $cacheid=yes
11356else
11357  eval $cacheid=no
11358fi
11359rm -f core conftest.err conftest.$ac_objext \
11360    conftest$ac_exeext conftest.$ac_ext
11361fi
11362
11363
11364		CFLAGS="$xorg_testset_save_CFLAGS"
11365
11366		eval supported=\$$cacheid
11367		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11368$as_echo "$supported" >&6; }
11369		if test "$supported" = "yes" ; then
11370			NOWARNFLAGS="$NOWARNFLAGS -Wno-maybe-uninitialized"
11371			found="yes"
11372		fi
11373	fi
11374
11375
11376
11377
11378
11379# Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules
11380
11381
11382# Initialize libtool
11383# Check whether --enable-static was given.
11384if test "${enable_static+set}" = set; then :
11385  enableval=$enable_static; p=${PACKAGE-default}
11386    case $enableval in
11387    yes) enable_static=yes ;;
11388    no) enable_static=no ;;
11389    *)
11390     enable_static=no
11391      # Look at the argument we got.  We use all the common list separators.
11392      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11393      for pkg in $enableval; do
11394	IFS="$lt_save_ifs"
11395	if test "X$pkg" = "X$p"; then
11396	  enable_static=yes
11397	fi
11398      done
11399      IFS="$lt_save_ifs"
11400      ;;
11401    esac
11402else
11403  enable_static=no
11404fi
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414case `pwd` in
11415  *\ * | *\	*)
11416    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11417$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11418esac
11419
11420
11421
11422macro_version='2.4.2'
11423macro_revision='1.3337'
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437ltmain="$ac_aux_dir/ltmain.sh"
11438
11439# Backslashify metacharacters that are still active within
11440# double-quoted strings.
11441sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11442
11443# Same as above, but do not quote variable references.
11444double_quote_subst='s/\(["`\\]\)/\\\1/g'
11445
11446# Sed substitution to delay expansion of an escaped shell variable in a
11447# double_quote_subst'ed string.
11448delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11449
11450# Sed substitution to delay expansion of an escaped single quote.
11451delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11452
11453# Sed substitution to avoid accidental globbing in evaled expressions
11454no_glob_subst='s/\*/\\\*/g'
11455
11456ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11457ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11458ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11459
11460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11461$as_echo_n "checking how to print strings... " >&6; }
11462# Test print first, because it will be a builtin if present.
11463if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11464   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11465  ECHO='print -r --'
11466elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11467  ECHO='printf %s\n'
11468else
11469  # Use this function as a fallback that always works.
11470  func_fallback_echo ()
11471  {
11472    eval 'cat <<_LTECHO_EOF
11473$1
11474_LTECHO_EOF'
11475  }
11476  ECHO='func_fallback_echo'
11477fi
11478
11479# func_echo_all arg...
11480# Invoke $ECHO with all args, space-separated.
11481func_echo_all ()
11482{
11483    $ECHO ""
11484}
11485
11486case "$ECHO" in
11487  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11488$as_echo "printf" >&6; } ;;
11489  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11490$as_echo "print -r" >&6; } ;;
11491  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11492$as_echo "cat" >&6; } ;;
11493esac
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11509$as_echo_n "checking for a sed that does not truncate output... " >&6; }
11510if ${ac_cv_path_SED+:} false; then :
11511  $as_echo_n "(cached) " >&6
11512else
11513            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11514     for ac_i in 1 2 3 4 5 6 7; do
11515       ac_script="$ac_script$as_nl$ac_script"
11516     done
11517     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11518     { ac_script=; unset ac_script;}
11519     if test -z "$SED"; then
11520  ac_path_SED_found=false
11521  # Loop through the user's path and test for each of PROGNAME-LIST
11522  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523for as_dir in $PATH
11524do
11525  IFS=$as_save_IFS
11526  test -z "$as_dir" && as_dir=.
11527    for ac_prog in sed gsed; do
11528    for ac_exec_ext in '' $ac_executable_extensions; do
11529      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11530      as_fn_executable_p "$ac_path_SED" || continue
11531# Check for GNU ac_path_SED and select it if it is found.
11532  # Check for GNU $ac_path_SED
11533case `"$ac_path_SED" --version 2>&1` in
11534*GNU*)
11535  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11536*)
11537  ac_count=0
11538  $as_echo_n 0123456789 >"conftest.in"
11539  while :
11540  do
11541    cat "conftest.in" "conftest.in" >"conftest.tmp"
11542    mv "conftest.tmp" "conftest.in"
11543    cp "conftest.in" "conftest.nl"
11544    $as_echo '' >> "conftest.nl"
11545    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11546    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11547    as_fn_arith $ac_count + 1 && ac_count=$as_val
11548    if test $ac_count -gt ${ac_path_SED_max-0}; then
11549      # Best one so far, save it but keep looking for a better one
11550      ac_cv_path_SED="$ac_path_SED"
11551      ac_path_SED_max=$ac_count
11552    fi
11553    # 10*(2^10) chars as input seems more than enough
11554    test $ac_count -gt 10 && break
11555  done
11556  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11557esac
11558
11559      $ac_path_SED_found && break 3
11560    done
11561  done
11562  done
11563IFS=$as_save_IFS
11564  if test -z "$ac_cv_path_SED"; then
11565    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11566  fi
11567else
11568  ac_cv_path_SED=$SED
11569fi
11570
11571fi
11572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11573$as_echo "$ac_cv_path_SED" >&6; }
11574 SED="$ac_cv_path_SED"
11575  rm -f conftest.sed
11576
11577test -z "$SED" && SED=sed
11578Xsed="$SED -e 1s/^X//"
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11591$as_echo_n "checking for fgrep... " >&6; }
11592if ${ac_cv_path_FGREP+:} false; then :
11593  $as_echo_n "(cached) " >&6
11594else
11595  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11596   then ac_cv_path_FGREP="$GREP -F"
11597   else
11598     if test -z "$FGREP"; then
11599  ac_path_FGREP_found=false
11600  # Loop through the user's path and test for each of PROGNAME-LIST
11601  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11602for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11603do
11604  IFS=$as_save_IFS
11605  test -z "$as_dir" && as_dir=.
11606    for ac_prog in fgrep; do
11607    for ac_exec_ext in '' $ac_executable_extensions; do
11608      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11609      as_fn_executable_p "$ac_path_FGREP" || continue
11610# Check for GNU ac_path_FGREP and select it if it is found.
11611  # Check for GNU $ac_path_FGREP
11612case `"$ac_path_FGREP" --version 2>&1` in
11613*GNU*)
11614  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11615*)
11616  ac_count=0
11617  $as_echo_n 0123456789 >"conftest.in"
11618  while :
11619  do
11620    cat "conftest.in" "conftest.in" >"conftest.tmp"
11621    mv "conftest.tmp" "conftest.in"
11622    cp "conftest.in" "conftest.nl"
11623    $as_echo 'FGREP' >> "conftest.nl"
11624    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11625    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11626    as_fn_arith $ac_count + 1 && ac_count=$as_val
11627    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11628      # Best one so far, save it but keep looking for a better one
11629      ac_cv_path_FGREP="$ac_path_FGREP"
11630      ac_path_FGREP_max=$ac_count
11631    fi
11632    # 10*(2^10) chars as input seems more than enough
11633    test $ac_count -gt 10 && break
11634  done
11635  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11636esac
11637
11638      $ac_path_FGREP_found && break 3
11639    done
11640  done
11641  done
11642IFS=$as_save_IFS
11643  if test -z "$ac_cv_path_FGREP"; then
11644    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11645  fi
11646else
11647  ac_cv_path_FGREP=$FGREP
11648fi
11649
11650   fi
11651fi
11652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11653$as_echo "$ac_cv_path_FGREP" >&6; }
11654 FGREP="$ac_cv_path_FGREP"
11655
11656
11657test -z "$GREP" && GREP=grep
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677# Check whether --with-gnu-ld was given.
11678if test "${with_gnu_ld+set}" = set; then :
11679  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11680else
11681  with_gnu_ld=no
11682fi
11683
11684ac_prog=ld
11685if test "$GCC" = yes; then
11686  # Check if gcc -print-prog-name=ld gives a path.
11687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11688$as_echo_n "checking for ld used by $CC... " >&6; }
11689  case $host in
11690  *-*-mingw*)
11691    # gcc leaves a trailing carriage return which upsets mingw
11692    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11693  *)
11694    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11695  esac
11696  case $ac_prog in
11697    # Accept absolute paths.
11698    [\\/]* | ?:[\\/]*)
11699      re_direlt='/[^/][^/]*/\.\./'
11700      # Canonicalize the pathname of ld
11701      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11702      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11703	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11704      done
11705      test -z "$LD" && LD="$ac_prog"
11706      ;;
11707  "")
11708    # If it fails, then pretend we aren't using GCC.
11709    ac_prog=ld
11710    ;;
11711  *)
11712    # If it is relative, then search for the first ld in PATH.
11713    with_gnu_ld=unknown
11714    ;;
11715  esac
11716elif test "$with_gnu_ld" = yes; then
11717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11718$as_echo_n "checking for GNU ld... " >&6; }
11719else
11720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11721$as_echo_n "checking for non-GNU ld... " >&6; }
11722fi
11723if ${lt_cv_path_LD+:} false; then :
11724  $as_echo_n "(cached) " >&6
11725else
11726  if test -z "$LD"; then
11727  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11728  for ac_dir in $PATH; do
11729    IFS="$lt_save_ifs"
11730    test -z "$ac_dir" && ac_dir=.
11731    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11732      lt_cv_path_LD="$ac_dir/$ac_prog"
11733      # Check to see if the program is GNU ld.  I'd rather use --version,
11734      # but apparently some variants of GNU ld only accept -v.
11735      # Break only if it was the GNU/non-GNU ld that we prefer.
11736      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11737      *GNU* | *'with BFD'*)
11738	test "$with_gnu_ld" != no && break
11739	;;
11740      *)
11741	test "$with_gnu_ld" != yes && break
11742	;;
11743      esac
11744    fi
11745  done
11746  IFS="$lt_save_ifs"
11747else
11748  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11749fi
11750fi
11751
11752LD="$lt_cv_path_LD"
11753if test -n "$LD"; then
11754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11755$as_echo "$LD" >&6; }
11756else
11757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758$as_echo "no" >&6; }
11759fi
11760test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11762$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11763if ${lt_cv_prog_gnu_ld+:} false; then :
11764  $as_echo_n "(cached) " >&6
11765else
11766  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11767case `$LD -v 2>&1 </dev/null` in
11768*GNU* | *'with BFD'*)
11769  lt_cv_prog_gnu_ld=yes
11770  ;;
11771*)
11772  lt_cv_prog_gnu_ld=no
11773  ;;
11774esac
11775fi
11776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11777$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11778with_gnu_ld=$lt_cv_prog_gnu_ld
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11789$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11790if ${lt_cv_path_NM+:} false; then :
11791  $as_echo_n "(cached) " >&6
11792else
11793  if test -n "$NM"; then
11794  # Let the user override the test.
11795  lt_cv_path_NM="$NM"
11796else
11797  lt_nm_to_check="${ac_tool_prefix}nm"
11798  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11799    lt_nm_to_check="$lt_nm_to_check nm"
11800  fi
11801  for lt_tmp_nm in $lt_nm_to_check; do
11802    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11803    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11804      IFS="$lt_save_ifs"
11805      test -z "$ac_dir" && ac_dir=.
11806      tmp_nm="$ac_dir/$lt_tmp_nm"
11807      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11808	# Check to see if the nm accepts a BSD-compat flag.
11809	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11810	#   nm: unknown option "B" ignored
11811	# Tru64's nm complains that /dev/null is an invalid object file
11812	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11813	*/dev/null* | *'Invalid file or object type'*)
11814	  lt_cv_path_NM="$tmp_nm -B"
11815	  break
11816	  ;;
11817	*)
11818	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11819	  */dev/null*)
11820	    lt_cv_path_NM="$tmp_nm -p"
11821	    break
11822	    ;;
11823	  *)
11824	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11825	    continue # so that we can try to find one that supports BSD flags
11826	    ;;
11827	  esac
11828	  ;;
11829	esac
11830      fi
11831    done
11832    IFS="$lt_save_ifs"
11833  done
11834  : ${lt_cv_path_NM=no}
11835fi
11836fi
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11838$as_echo "$lt_cv_path_NM" >&6; }
11839if test "$lt_cv_path_NM" != "no"; then
11840  NM="$lt_cv_path_NM"
11841else
11842  # Didn't find any BSD compatible name lister, look for dumpbin.
11843  if test -n "$DUMPBIN"; then :
11844    # Let the user override the test.
11845  else
11846    if test -n "$ac_tool_prefix"; then
11847  for ac_prog in dumpbin "link -dump"
11848  do
11849    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11850set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11852$as_echo_n "checking for $ac_word... " >&6; }
11853if ${ac_cv_prog_DUMPBIN+:} false; then :
11854  $as_echo_n "(cached) " >&6
11855else
11856  if test -n "$DUMPBIN"; then
11857  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11858else
11859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11860for as_dir in $PATH
11861do
11862  IFS=$as_save_IFS
11863  test -z "$as_dir" && as_dir=.
11864    for ac_exec_ext in '' $ac_executable_extensions; do
11865  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11866    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11868    break 2
11869  fi
11870done
11871  done
11872IFS=$as_save_IFS
11873
11874fi
11875fi
11876DUMPBIN=$ac_cv_prog_DUMPBIN
11877if test -n "$DUMPBIN"; then
11878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11879$as_echo "$DUMPBIN" >&6; }
11880else
11881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882$as_echo "no" >&6; }
11883fi
11884
11885
11886    test -n "$DUMPBIN" && break
11887  done
11888fi
11889if test -z "$DUMPBIN"; then
11890  ac_ct_DUMPBIN=$DUMPBIN
11891  for ac_prog in dumpbin "link -dump"
11892do
11893  # Extract the first word of "$ac_prog", so it can be a program name with args.
11894set dummy $ac_prog; ac_word=$2
11895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896$as_echo_n "checking for $ac_word... " >&6; }
11897if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11898  $as_echo_n "(cached) " >&6
11899else
11900  if test -n "$ac_ct_DUMPBIN"; then
11901  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11902else
11903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904for as_dir in $PATH
11905do
11906  IFS=$as_save_IFS
11907  test -z "$as_dir" && as_dir=.
11908    for ac_exec_ext in '' $ac_executable_extensions; do
11909  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11910    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11911    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11912    break 2
11913  fi
11914done
11915  done
11916IFS=$as_save_IFS
11917
11918fi
11919fi
11920ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11921if test -n "$ac_ct_DUMPBIN"; then
11922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11923$as_echo "$ac_ct_DUMPBIN" >&6; }
11924else
11925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926$as_echo "no" >&6; }
11927fi
11928
11929
11930  test -n "$ac_ct_DUMPBIN" && break
11931done
11932
11933  if test "x$ac_ct_DUMPBIN" = x; then
11934    DUMPBIN=":"
11935  else
11936    case $cross_compiling:$ac_tool_warned in
11937yes:)
11938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11940ac_tool_warned=yes ;;
11941esac
11942    DUMPBIN=$ac_ct_DUMPBIN
11943  fi
11944fi
11945
11946    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11947    *COFF*)
11948      DUMPBIN="$DUMPBIN -symbols"
11949      ;;
11950    *)
11951      DUMPBIN=:
11952      ;;
11953    esac
11954  fi
11955
11956  if test "$DUMPBIN" != ":"; then
11957    NM="$DUMPBIN"
11958  fi
11959fi
11960test -z "$NM" && NM=nm
11961
11962
11963
11964
11965
11966
11967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11968$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11969if ${lt_cv_nm_interface+:} false; then :
11970  $as_echo_n "(cached) " >&6
11971else
11972  lt_cv_nm_interface="BSD nm"
11973  echo "int some_variable = 0;" > conftest.$ac_ext
11974  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11975  (eval "$ac_compile" 2>conftest.err)
11976  cat conftest.err >&5
11977  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11978  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11979  cat conftest.err >&5
11980  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11981  cat conftest.out >&5
11982  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11983    lt_cv_nm_interface="MS dumpbin"
11984  fi
11985  rm -f conftest*
11986fi
11987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11988$as_echo "$lt_cv_nm_interface" >&6; }
11989
11990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11991$as_echo_n "checking whether ln -s works... " >&6; }
11992LN_S=$as_ln_s
11993if test "$LN_S" = "ln -s"; then
11994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11995$as_echo "yes" >&6; }
11996else
11997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11998$as_echo "no, using $LN_S" >&6; }
11999fi
12000
12001# find the maximum length of command line arguments
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12003$as_echo_n "checking the maximum length of command line arguments... " >&6; }
12004if ${lt_cv_sys_max_cmd_len+:} false; then :
12005  $as_echo_n "(cached) " >&6
12006else
12007    i=0
12008  teststring="ABCD"
12009
12010  case $build_os in
12011  msdosdjgpp*)
12012    # On DJGPP, this test can blow up pretty badly due to problems in libc
12013    # (any single argument exceeding 2000 bytes causes a buffer overrun
12014    # during glob expansion).  Even if it were fixed, the result of this
12015    # check would be larger than it should be.
12016    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12017    ;;
12018
12019  gnu*)
12020    # Under GNU Hurd, this test is not required because there is
12021    # no limit to the length of command line arguments.
12022    # Libtool will interpret -1 as no limit whatsoever
12023    lt_cv_sys_max_cmd_len=-1;
12024    ;;
12025
12026  cygwin* | mingw* | cegcc*)
12027    # On Win9x/ME, this test blows up -- it succeeds, but takes
12028    # about 5 minutes as the teststring grows exponentially.
12029    # Worse, since 9x/ME are not pre-emptively multitasking,
12030    # you end up with a "frozen" computer, even though with patience
12031    # the test eventually succeeds (with a max line length of 256k).
12032    # Instead, let's just punt: use the minimum linelength reported by
12033    # all of the supported platforms: 8192 (on NT/2K/XP).
12034    lt_cv_sys_max_cmd_len=8192;
12035    ;;
12036
12037  mint*)
12038    # On MiNT this can take a long time and run out of memory.
12039    lt_cv_sys_max_cmd_len=8192;
12040    ;;
12041
12042  amigaos*)
12043    # On AmigaOS with pdksh, this test takes hours, literally.
12044    # So we just punt and use a minimum line length of 8192.
12045    lt_cv_sys_max_cmd_len=8192;
12046    ;;
12047
12048  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12049    # This has been around since 386BSD, at least.  Likely further.
12050    if test -x /sbin/sysctl; then
12051      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12052    elif test -x /usr/sbin/sysctl; then
12053      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12054    else
12055      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12056    fi
12057    # And add a safety zone
12058    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12059    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12060    ;;
12061
12062  interix*)
12063    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12064    lt_cv_sys_max_cmd_len=196608
12065    ;;
12066
12067  os2*)
12068    # The test takes a long time on OS/2.
12069    lt_cv_sys_max_cmd_len=8192
12070    ;;
12071
12072  osf*)
12073    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12074    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12075    # nice to cause kernel panics so lets avoid the loop below.
12076    # First set a reasonable default.
12077    lt_cv_sys_max_cmd_len=16384
12078    #
12079    if test -x /sbin/sysconfig; then
12080      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12081        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12082      esac
12083    fi
12084    ;;
12085  sco3.2v5*)
12086    lt_cv_sys_max_cmd_len=102400
12087    ;;
12088  sysv5* | sco5v6* | sysv4.2uw2*)
12089    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12090    if test -n "$kargmax"; then
12091      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
12092    else
12093      lt_cv_sys_max_cmd_len=32768
12094    fi
12095    ;;
12096  *)
12097    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12098    if test -n "$lt_cv_sys_max_cmd_len" && \
12099	test undefined != "$lt_cv_sys_max_cmd_len"; then
12100      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12101      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12102    else
12103      # Make teststring a little bigger before we do anything with it.
12104      # a 1K string should be a reasonable start.
12105      for i in 1 2 3 4 5 6 7 8 ; do
12106        teststring=$teststring$teststring
12107      done
12108      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12109      # If test is not a shell built-in, we'll probably end up computing a
12110      # maximum length that is only half of the actual maximum length, but
12111      # we can't tell.
12112      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
12113	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12114	      test $i != 17 # 1/2 MB should be enough
12115      do
12116        i=`expr $i + 1`
12117        teststring=$teststring$teststring
12118      done
12119      # Only check the string length outside the loop.
12120      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12121      teststring=
12122      # Add a significant safety factor because C++ compilers can tack on
12123      # massive amounts of additional arguments before passing them to the
12124      # linker.  It appears as though 1/2 is a usable value.
12125      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12126    fi
12127    ;;
12128  esac
12129
12130fi
12131
12132if test -n $lt_cv_sys_max_cmd_len ; then
12133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12134$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12135else
12136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12137$as_echo "none" >&6; }
12138fi
12139max_cmd_len=$lt_cv_sys_max_cmd_len
12140
12141
12142
12143
12144
12145
12146: ${CP="cp -f"}
12147: ${MV="mv -f"}
12148: ${RM="rm -f"}
12149
12150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12151$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12152# Try some XSI features
12153xsi_shell=no
12154( _lt_dummy="a/b/c"
12155  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
12156      = c,a/b,b/c, \
12157    && eval 'test $(( 1 + 1 )) -eq 2 \
12158    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12159  && xsi_shell=yes
12160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12161$as_echo "$xsi_shell" >&6; }
12162
12163
12164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12165$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12166lt_shell_append=no
12167( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12168    >/dev/null 2>&1 \
12169  && lt_shell_append=yes
12170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12171$as_echo "$lt_shell_append" >&6; }
12172
12173
12174if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12175  lt_unset=unset
12176else
12177  lt_unset=false
12178fi
12179
12180
12181
12182
12183
12184# test EBCDIC or ASCII
12185case `echo X|tr X '\101'` in
12186 A) # ASCII based system
12187    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12188  lt_SP2NL='tr \040 \012'
12189  lt_NL2SP='tr \015\012 \040\040'
12190  ;;
12191 *) # EBCDIC based system
12192  lt_SP2NL='tr \100 \n'
12193  lt_NL2SP='tr \r\n \100\100'
12194  ;;
12195esac
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12206$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
12207if ${lt_cv_to_host_file_cmd+:} false; then :
12208  $as_echo_n "(cached) " >&6
12209else
12210  case $host in
12211  *-*-mingw* )
12212    case $build in
12213      *-*-mingw* ) # actually msys
12214        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12215        ;;
12216      *-*-cygwin* )
12217        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12218        ;;
12219      * ) # otherwise, assume *nix
12220        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12221        ;;
12222    esac
12223    ;;
12224  *-*-cygwin* )
12225    case $build in
12226      *-*-mingw* ) # actually msys
12227        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12228        ;;
12229      *-*-cygwin* )
12230        lt_cv_to_host_file_cmd=func_convert_file_noop
12231        ;;
12232      * ) # otherwise, assume *nix
12233        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12234        ;;
12235    esac
12236    ;;
12237  * ) # unhandled hosts (and "normal" native builds)
12238    lt_cv_to_host_file_cmd=func_convert_file_noop
12239    ;;
12240esac
12241
12242fi
12243
12244to_host_file_cmd=$lt_cv_to_host_file_cmd
12245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12246$as_echo "$lt_cv_to_host_file_cmd" >&6; }
12247
12248
12249
12250
12251
12252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12253$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
12254if ${lt_cv_to_tool_file_cmd+:} false; then :
12255  $as_echo_n "(cached) " >&6
12256else
12257  #assume ordinary cross tools, or native build.
12258lt_cv_to_tool_file_cmd=func_convert_file_noop
12259case $host in
12260  *-*-mingw* )
12261    case $build in
12262      *-*-mingw* ) # actually msys
12263        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12264        ;;
12265    esac
12266    ;;
12267esac
12268
12269fi
12270
12271to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12273$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
12274
12275
12276
12277
12278
12279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12280$as_echo_n "checking for $LD option to reload object files... " >&6; }
12281if ${lt_cv_ld_reload_flag+:} false; then :
12282  $as_echo_n "(cached) " >&6
12283else
12284  lt_cv_ld_reload_flag='-r'
12285fi
12286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12287$as_echo "$lt_cv_ld_reload_flag" >&6; }
12288reload_flag=$lt_cv_ld_reload_flag
12289case $reload_flag in
12290"" | " "*) ;;
12291*) reload_flag=" $reload_flag" ;;
12292esac
12293reload_cmds='$LD$reload_flag -o $output$reload_objs'
12294case $host_os in
12295  cygwin* | mingw* | pw32* | cegcc*)
12296    if test "$GCC" != yes; then
12297      reload_cmds=false
12298    fi
12299    ;;
12300  darwin*)
12301    if test "$GCC" = yes; then
12302      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12303    else
12304      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12305    fi
12306    ;;
12307esac
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317if test -n "$ac_tool_prefix"; then
12318  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12319set dummy ${ac_tool_prefix}objdump; ac_word=$2
12320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321$as_echo_n "checking for $ac_word... " >&6; }
12322if ${ac_cv_prog_OBJDUMP+:} false; then :
12323  $as_echo_n "(cached) " >&6
12324else
12325  if test -n "$OBJDUMP"; then
12326  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12327else
12328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329for as_dir in $PATH
12330do
12331  IFS=$as_save_IFS
12332  test -z "$as_dir" && as_dir=.
12333    for ac_exec_ext in '' $ac_executable_extensions; do
12334  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12335    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337    break 2
12338  fi
12339done
12340  done
12341IFS=$as_save_IFS
12342
12343fi
12344fi
12345OBJDUMP=$ac_cv_prog_OBJDUMP
12346if test -n "$OBJDUMP"; then
12347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12348$as_echo "$OBJDUMP" >&6; }
12349else
12350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351$as_echo "no" >&6; }
12352fi
12353
12354
12355fi
12356if test -z "$ac_cv_prog_OBJDUMP"; then
12357  ac_ct_OBJDUMP=$OBJDUMP
12358  # Extract the first word of "objdump", so it can be a program name with args.
12359set dummy objdump; ac_word=$2
12360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12361$as_echo_n "checking for $ac_word... " >&6; }
12362if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12363  $as_echo_n "(cached) " >&6
12364else
12365  if test -n "$ac_ct_OBJDUMP"; then
12366  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12367else
12368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369for as_dir in $PATH
12370do
12371  IFS=$as_save_IFS
12372  test -z "$as_dir" && as_dir=.
12373    for ac_exec_ext in '' $ac_executable_extensions; do
12374  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12375    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12377    break 2
12378  fi
12379done
12380  done
12381IFS=$as_save_IFS
12382
12383fi
12384fi
12385ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12386if test -n "$ac_ct_OBJDUMP"; then
12387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12388$as_echo "$ac_ct_OBJDUMP" >&6; }
12389else
12390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391$as_echo "no" >&6; }
12392fi
12393
12394  if test "x$ac_ct_OBJDUMP" = x; then
12395    OBJDUMP="false"
12396  else
12397    case $cross_compiling:$ac_tool_warned in
12398yes:)
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12401ac_tool_warned=yes ;;
12402esac
12403    OBJDUMP=$ac_ct_OBJDUMP
12404  fi
12405else
12406  OBJDUMP="$ac_cv_prog_OBJDUMP"
12407fi
12408
12409test -z "$OBJDUMP" && OBJDUMP=objdump
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12420$as_echo_n "checking how to recognize dependent libraries... " >&6; }
12421if ${lt_cv_deplibs_check_method+:} false; then :
12422  $as_echo_n "(cached) " >&6
12423else
12424  lt_cv_file_magic_cmd='$MAGIC_CMD'
12425lt_cv_file_magic_test_file=
12426lt_cv_deplibs_check_method='unknown'
12427# Need to set the preceding variable on all platforms that support
12428# interlibrary dependencies.
12429# 'none' -- dependencies not supported.
12430# `unknown' -- same as none, but documents that we really don't know.
12431# 'pass_all' -- all dependencies passed with no checks.
12432# 'test_compile' -- check by making test program.
12433# 'file_magic [[regex]]' -- check by looking for files in library path
12434# which responds to the $file_magic_cmd with a given extended regex.
12435# If you have `file' or equivalent on your system and you're not sure
12436# whether `pass_all' will *always* work, you probably want this one.
12437
12438case $host_os in
12439aix[4-9]*)
12440  lt_cv_deplibs_check_method=pass_all
12441  ;;
12442
12443beos*)
12444  lt_cv_deplibs_check_method=pass_all
12445  ;;
12446
12447bsdi[45]*)
12448  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12449  lt_cv_file_magic_cmd='/usr/bin/file -L'
12450  lt_cv_file_magic_test_file=/shlib/libc.so
12451  ;;
12452
12453cygwin*)
12454  # func_win32_libid is a shell function defined in ltmain.sh
12455  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12456  lt_cv_file_magic_cmd='func_win32_libid'
12457  ;;
12458
12459mingw* | pw32*)
12460  # Base MSYS/MinGW do not provide the 'file' command needed by
12461  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12462  # unless we find 'file', for example because we are cross-compiling.
12463  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12464  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12465    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12466    lt_cv_file_magic_cmd='func_win32_libid'
12467  else
12468    # Keep this pattern in sync with the one in func_win32_libid.
12469    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12470    lt_cv_file_magic_cmd='$OBJDUMP -f'
12471  fi
12472  ;;
12473
12474cegcc*)
12475  # use the weaker test based on 'objdump'. See mingw*.
12476  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12477  lt_cv_file_magic_cmd='$OBJDUMP -f'
12478  ;;
12479
12480darwin* | rhapsody*)
12481  lt_cv_deplibs_check_method=pass_all
12482  ;;
12483
12484freebsd* | dragonfly*)
12485  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12486    case $host_cpu in
12487    i*86 )
12488      # Not sure whether the presence of OpenBSD here was a mistake.
12489      # Let's accept both of them until this is cleared up.
12490      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12491      lt_cv_file_magic_cmd=/usr/bin/file
12492      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12493      ;;
12494    esac
12495  else
12496    lt_cv_deplibs_check_method=pass_all
12497  fi
12498  ;;
12499
12500haiku*)
12501  lt_cv_deplibs_check_method=pass_all
12502  ;;
12503
12504hpux10.20* | hpux11*)
12505  lt_cv_file_magic_cmd=/usr/bin/file
12506  case $host_cpu in
12507  ia64*)
12508    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12509    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12510    ;;
12511  hppa*64*)
12512    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]'
12513    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12514    ;;
12515  *)
12516    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12517    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12518    ;;
12519  esac
12520  ;;
12521
12522interix[3-9]*)
12523  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12524  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12525  ;;
12526
12527irix5* | irix6* | nonstopux*)
12528  case $LD in
12529  *-32|*"-32 ") libmagic=32-bit;;
12530  *-n32|*"-n32 ") libmagic=N32;;
12531  *-64|*"-64 ") libmagic=64-bit;;
12532  *) libmagic=never-match;;
12533  esac
12534  lt_cv_deplibs_check_method=pass_all
12535  ;;
12536
12537# This must be glibc/ELF.
12538linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12539  lt_cv_deplibs_check_method=pass_all
12540  ;;
12541
12542netbsd* | netbsdelf*-gnu)
12543  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12544    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12545  else
12546    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12547  fi
12548  ;;
12549
12550newos6*)
12551  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12552  lt_cv_file_magic_cmd=/usr/bin/file
12553  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12554  ;;
12555
12556*nto* | *qnx*)
12557  lt_cv_deplibs_check_method=pass_all
12558  ;;
12559
12560openbsd*)
12561  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12562    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12563  else
12564    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12565  fi
12566  ;;
12567
12568osf3* | osf4* | osf5*)
12569  lt_cv_deplibs_check_method=pass_all
12570  ;;
12571
12572rdos*)
12573  lt_cv_deplibs_check_method=pass_all
12574  ;;
12575
12576solaris*)
12577  lt_cv_deplibs_check_method=pass_all
12578  ;;
12579
12580sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12581  lt_cv_deplibs_check_method=pass_all
12582  ;;
12583
12584sysv4 | sysv4.3*)
12585  case $host_vendor in
12586  motorola)
12587    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]'
12588    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12589    ;;
12590  ncr)
12591    lt_cv_deplibs_check_method=pass_all
12592    ;;
12593  sequent)
12594    lt_cv_file_magic_cmd='/bin/file'
12595    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12596    ;;
12597  sni)
12598    lt_cv_file_magic_cmd='/bin/file'
12599    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12600    lt_cv_file_magic_test_file=/lib/libc.so
12601    ;;
12602  siemens)
12603    lt_cv_deplibs_check_method=pass_all
12604    ;;
12605  pc)
12606    lt_cv_deplibs_check_method=pass_all
12607    ;;
12608  esac
12609  ;;
12610
12611tpf*)
12612  lt_cv_deplibs_check_method=pass_all
12613  ;;
12614esac
12615
12616fi
12617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12618$as_echo "$lt_cv_deplibs_check_method" >&6; }
12619
12620file_magic_glob=
12621want_nocaseglob=no
12622if test "$build" = "$host"; then
12623  case $host_os in
12624  mingw* | pw32*)
12625    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12626      want_nocaseglob=yes
12627    else
12628      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12629    fi
12630    ;;
12631  esac
12632fi
12633
12634file_magic_cmd=$lt_cv_file_magic_cmd
12635deplibs_check_method=$lt_cv_deplibs_check_method
12636test -z "$deplibs_check_method" && deplibs_check_method=unknown
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659if test -n "$ac_tool_prefix"; then
12660  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12661set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12663$as_echo_n "checking for $ac_word... " >&6; }
12664if ${ac_cv_prog_DLLTOOL+:} false; then :
12665  $as_echo_n "(cached) " >&6
12666else
12667  if test -n "$DLLTOOL"; then
12668  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12669else
12670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12671for as_dir in $PATH
12672do
12673  IFS=$as_save_IFS
12674  test -z "$as_dir" && as_dir=.
12675    for ac_exec_ext in '' $ac_executable_extensions; do
12676  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12677    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12679    break 2
12680  fi
12681done
12682  done
12683IFS=$as_save_IFS
12684
12685fi
12686fi
12687DLLTOOL=$ac_cv_prog_DLLTOOL
12688if test -n "$DLLTOOL"; then
12689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12690$as_echo "$DLLTOOL" >&6; }
12691else
12692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693$as_echo "no" >&6; }
12694fi
12695
12696
12697fi
12698if test -z "$ac_cv_prog_DLLTOOL"; then
12699  ac_ct_DLLTOOL=$DLLTOOL
12700  # Extract the first word of "dlltool", so it can be a program name with args.
12701set dummy dlltool; ac_word=$2
12702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12703$as_echo_n "checking for $ac_word... " >&6; }
12704if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12705  $as_echo_n "(cached) " >&6
12706else
12707  if test -n "$ac_ct_DLLTOOL"; then
12708  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12709else
12710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711for as_dir in $PATH
12712do
12713  IFS=$as_save_IFS
12714  test -z "$as_dir" && as_dir=.
12715    for ac_exec_ext in '' $ac_executable_extensions; do
12716  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12717    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12719    break 2
12720  fi
12721done
12722  done
12723IFS=$as_save_IFS
12724
12725fi
12726fi
12727ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12728if test -n "$ac_ct_DLLTOOL"; then
12729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12730$as_echo "$ac_ct_DLLTOOL" >&6; }
12731else
12732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733$as_echo "no" >&6; }
12734fi
12735
12736  if test "x$ac_ct_DLLTOOL" = x; then
12737    DLLTOOL="false"
12738  else
12739    case $cross_compiling:$ac_tool_warned in
12740yes:)
12741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12743ac_tool_warned=yes ;;
12744esac
12745    DLLTOOL=$ac_ct_DLLTOOL
12746  fi
12747else
12748  DLLTOOL="$ac_cv_prog_DLLTOOL"
12749fi
12750
12751test -z "$DLLTOOL" && DLLTOOL=dlltool
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12763$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12764if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12765  $as_echo_n "(cached) " >&6
12766else
12767  lt_cv_sharedlib_from_linklib_cmd='unknown'
12768
12769case $host_os in
12770cygwin* | mingw* | pw32* | cegcc*)
12771  # two different shell functions defined in ltmain.sh
12772  # decide which to use based on capabilities of $DLLTOOL
12773  case `$DLLTOOL --help 2>&1` in
12774  *--identify-strict*)
12775    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12776    ;;
12777  *)
12778    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12779    ;;
12780  esac
12781  ;;
12782*)
12783  # fallback: assume linklib IS sharedlib
12784  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12785  ;;
12786esac
12787
12788fi
12789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12790$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12791sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12792test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12793
12794
12795
12796
12797
12798
12799
12800if test -n "$ac_tool_prefix"; then
12801  for ac_prog in ar
12802  do
12803    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12804set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806$as_echo_n "checking for $ac_word... " >&6; }
12807if ${ac_cv_prog_AR+:} false; then :
12808  $as_echo_n "(cached) " >&6
12809else
12810  if test -n "$AR"; then
12811  ac_cv_prog_AR="$AR" # Let the user override the test.
12812else
12813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814for as_dir in $PATH
12815do
12816  IFS=$as_save_IFS
12817  test -z "$as_dir" && as_dir=.
12818    for ac_exec_ext in '' $ac_executable_extensions; do
12819  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12820    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822    break 2
12823  fi
12824done
12825  done
12826IFS=$as_save_IFS
12827
12828fi
12829fi
12830AR=$ac_cv_prog_AR
12831if test -n "$AR"; then
12832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12833$as_echo "$AR" >&6; }
12834else
12835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836$as_echo "no" >&6; }
12837fi
12838
12839
12840    test -n "$AR" && break
12841  done
12842fi
12843if test -z "$AR"; then
12844  ac_ct_AR=$AR
12845  for ac_prog in ar
12846do
12847  # Extract the first word of "$ac_prog", so it can be a program name with args.
12848set dummy $ac_prog; ac_word=$2
12849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12850$as_echo_n "checking for $ac_word... " >&6; }
12851if ${ac_cv_prog_ac_ct_AR+:} false; then :
12852  $as_echo_n "(cached) " >&6
12853else
12854  if test -n "$ac_ct_AR"; then
12855  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12856else
12857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12858for as_dir in $PATH
12859do
12860  IFS=$as_save_IFS
12861  test -z "$as_dir" && as_dir=.
12862    for ac_exec_ext in '' $ac_executable_extensions; do
12863  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12864    ac_cv_prog_ac_ct_AR="$ac_prog"
12865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12866    break 2
12867  fi
12868done
12869  done
12870IFS=$as_save_IFS
12871
12872fi
12873fi
12874ac_ct_AR=$ac_cv_prog_ac_ct_AR
12875if test -n "$ac_ct_AR"; then
12876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12877$as_echo "$ac_ct_AR" >&6; }
12878else
12879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880$as_echo "no" >&6; }
12881fi
12882
12883
12884  test -n "$ac_ct_AR" && break
12885done
12886
12887  if test "x$ac_ct_AR" = x; then
12888    AR="false"
12889  else
12890    case $cross_compiling:$ac_tool_warned in
12891yes:)
12892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12894ac_tool_warned=yes ;;
12895esac
12896    AR=$ac_ct_AR
12897  fi
12898fi
12899
12900: ${AR=ar}
12901: ${AR_FLAGS=cru}
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12914$as_echo_n "checking for archiver @FILE support... " >&6; }
12915if ${lt_cv_ar_at_file+:} false; then :
12916  $as_echo_n "(cached) " >&6
12917else
12918  lt_cv_ar_at_file=no
12919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920/* end confdefs.h.  */
12921
12922int
12923main ()
12924{
12925
12926  ;
12927  return 0;
12928}
12929_ACEOF
12930if ac_fn_c_try_compile "$LINENO"; then :
12931  echo conftest.$ac_objext > conftest.lst
12932      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12933      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12934  (eval $lt_ar_try) 2>&5
12935  ac_status=$?
12936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12937  test $ac_status = 0; }
12938      if test "$ac_status" -eq 0; then
12939	# Ensure the archiver fails upon bogus file names.
12940	rm -f conftest.$ac_objext libconftest.a
12941	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12942  (eval $lt_ar_try) 2>&5
12943  ac_status=$?
12944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12945  test $ac_status = 0; }
12946	if test "$ac_status" -ne 0; then
12947          lt_cv_ar_at_file=@
12948        fi
12949      fi
12950      rm -f conftest.* libconftest.a
12951
12952fi
12953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12954
12955fi
12956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12957$as_echo "$lt_cv_ar_at_file" >&6; }
12958
12959if test "x$lt_cv_ar_at_file" = xno; then
12960  archiver_list_spec=
12961else
12962  archiver_list_spec=$lt_cv_ar_at_file
12963fi
12964
12965
12966
12967
12968
12969
12970
12971if test -n "$ac_tool_prefix"; then
12972  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12973set dummy ${ac_tool_prefix}strip; ac_word=$2
12974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12975$as_echo_n "checking for $ac_word... " >&6; }
12976if ${ac_cv_prog_STRIP+:} false; then :
12977  $as_echo_n "(cached) " >&6
12978else
12979  if test -n "$STRIP"; then
12980  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12981else
12982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12983for as_dir in $PATH
12984do
12985  IFS=$as_save_IFS
12986  test -z "$as_dir" && as_dir=.
12987    for ac_exec_ext in '' $ac_executable_extensions; do
12988  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12989    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12991    break 2
12992  fi
12993done
12994  done
12995IFS=$as_save_IFS
12996
12997fi
12998fi
12999STRIP=$ac_cv_prog_STRIP
13000if test -n "$STRIP"; then
13001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13002$as_echo "$STRIP" >&6; }
13003else
13004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13005$as_echo "no" >&6; }
13006fi
13007
13008
13009fi
13010if test -z "$ac_cv_prog_STRIP"; then
13011  ac_ct_STRIP=$STRIP
13012  # Extract the first word of "strip", so it can be a program name with args.
13013set dummy strip; ac_word=$2
13014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13015$as_echo_n "checking for $ac_word... " >&6; }
13016if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13017  $as_echo_n "(cached) " >&6
13018else
13019  if test -n "$ac_ct_STRIP"; then
13020  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13021else
13022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023for as_dir in $PATH
13024do
13025  IFS=$as_save_IFS
13026  test -z "$as_dir" && as_dir=.
13027    for ac_exec_ext in '' $ac_executable_extensions; do
13028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13029    ac_cv_prog_ac_ct_STRIP="strip"
13030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13031    break 2
13032  fi
13033done
13034  done
13035IFS=$as_save_IFS
13036
13037fi
13038fi
13039ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13040if test -n "$ac_ct_STRIP"; then
13041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13042$as_echo "$ac_ct_STRIP" >&6; }
13043else
13044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045$as_echo "no" >&6; }
13046fi
13047
13048  if test "x$ac_ct_STRIP" = x; then
13049    STRIP=":"
13050  else
13051    case $cross_compiling:$ac_tool_warned in
13052yes:)
13053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13055ac_tool_warned=yes ;;
13056esac
13057    STRIP=$ac_ct_STRIP
13058  fi
13059else
13060  STRIP="$ac_cv_prog_STRIP"
13061fi
13062
13063test -z "$STRIP" && STRIP=:
13064
13065
13066
13067
13068
13069
13070if test -n "$ac_tool_prefix"; then
13071  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13072set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13074$as_echo_n "checking for $ac_word... " >&6; }
13075if ${ac_cv_prog_RANLIB+:} false; then :
13076  $as_echo_n "(cached) " >&6
13077else
13078  if test -n "$RANLIB"; then
13079  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13080else
13081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13082for as_dir in $PATH
13083do
13084  IFS=$as_save_IFS
13085  test -z "$as_dir" && as_dir=.
13086    for ac_exec_ext in '' $ac_executable_extensions; do
13087  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13088    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13090    break 2
13091  fi
13092done
13093  done
13094IFS=$as_save_IFS
13095
13096fi
13097fi
13098RANLIB=$ac_cv_prog_RANLIB
13099if test -n "$RANLIB"; then
13100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13101$as_echo "$RANLIB" >&6; }
13102else
13103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104$as_echo "no" >&6; }
13105fi
13106
13107
13108fi
13109if test -z "$ac_cv_prog_RANLIB"; then
13110  ac_ct_RANLIB=$RANLIB
13111  # Extract the first word of "ranlib", so it can be a program name with args.
13112set dummy ranlib; ac_word=$2
13113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13114$as_echo_n "checking for $ac_word... " >&6; }
13115if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13116  $as_echo_n "(cached) " >&6
13117else
13118  if test -n "$ac_ct_RANLIB"; then
13119  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13120else
13121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13122for as_dir in $PATH
13123do
13124  IFS=$as_save_IFS
13125  test -z "$as_dir" && as_dir=.
13126    for ac_exec_ext in '' $ac_executable_extensions; do
13127  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13128    ac_cv_prog_ac_ct_RANLIB="ranlib"
13129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13130    break 2
13131  fi
13132done
13133  done
13134IFS=$as_save_IFS
13135
13136fi
13137fi
13138ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13139if test -n "$ac_ct_RANLIB"; then
13140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13141$as_echo "$ac_ct_RANLIB" >&6; }
13142else
13143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144$as_echo "no" >&6; }
13145fi
13146
13147  if test "x$ac_ct_RANLIB" = x; then
13148    RANLIB=":"
13149  else
13150    case $cross_compiling:$ac_tool_warned in
13151yes:)
13152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13154ac_tool_warned=yes ;;
13155esac
13156    RANLIB=$ac_ct_RANLIB
13157  fi
13158else
13159  RANLIB="$ac_cv_prog_RANLIB"
13160fi
13161
13162test -z "$RANLIB" && RANLIB=:
13163
13164
13165
13166
13167
13168
13169# Determine commands to create old-style static archives.
13170old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13171old_postinstall_cmds='chmod 644 $oldlib'
13172old_postuninstall_cmds=
13173
13174if test -n "$RANLIB"; then
13175  case $host_os in
13176  openbsd*)
13177    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13178    ;;
13179  *)
13180    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13181    ;;
13182  esac
13183  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13184fi
13185
13186case $host_os in
13187  darwin*)
13188    lock_old_archive_extraction=yes ;;
13189  *)
13190    lock_old_archive_extraction=no ;;
13191esac
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231# If no C compiler was specified, use CC.
13232LTCC=${LTCC-"$CC"}
13233
13234# If no C compiler flags were specified, use CFLAGS.
13235LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13236
13237# Allow CC to be a program name with arguments.
13238compiler=$CC
13239
13240
13241# Check for command to grab the raw symbol name followed by C symbol from nm.
13242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13243$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13244if ${lt_cv_sys_global_symbol_pipe+:} false; then :
13245  $as_echo_n "(cached) " >&6
13246else
13247
13248# These are sane defaults that work on at least a few old systems.
13249# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13250
13251# Character class describing NM global symbol codes.
13252symcode='[BCDEGRST]'
13253
13254# Regexp to match symbols that can be accessed directly from C.
13255sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13256
13257# Define system-specific variables.
13258case $host_os in
13259aix*)
13260  symcode='[BCDT]'
13261  ;;
13262cygwin* | mingw* | pw32* | cegcc*)
13263  symcode='[ABCDGISTW]'
13264  ;;
13265hpux*)
13266  if test "$host_cpu" = ia64; then
13267    symcode='[ABCDEGRST]'
13268  fi
13269  ;;
13270irix* | nonstopux*)
13271  symcode='[BCDEGRST]'
13272  ;;
13273osf*)
13274  symcode='[BCDEGQRST]'
13275  ;;
13276solaris*)
13277  symcode='[BDRT]'
13278  ;;
13279sco3.2v5*)
13280  symcode='[DT]'
13281  ;;
13282sysv4.2uw2*)
13283  symcode='[DT]'
13284  ;;
13285sysv5* | sco5v6* | unixware* | OpenUNIX*)
13286  symcode='[ABDT]'
13287  ;;
13288sysv4)
13289  symcode='[DFNSTU]'
13290  ;;
13291esac
13292
13293# If we're using GNU nm, then use its standard symbol codes.
13294case `$NM -V 2>&1` in
13295*GNU* | *'with BFD'*)
13296  symcode='[ABCDGIRSTW]' ;;
13297esac
13298
13299# Transform an extracted symbol line into a proper C declaration.
13300# Some systems (esp. on ia64) link data and code symbols differently,
13301# so use this general approach.
13302lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13303
13304# Transform an extracted symbol line into symbol name and symbol address
13305lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13306lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
13307
13308# Handle CRLF in mingw tool chain
13309opt_cr=
13310case $build_os in
13311mingw*)
13312  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13313  ;;
13314esac
13315
13316# Try without a prefix underscore, then with it.
13317for ac_symprfx in "" "_"; do
13318
13319  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13320  symxfrm="\\1 $ac_symprfx\\2 \\2"
13321
13322  # Write the raw and C identifiers.
13323  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13324    # Fake it for dumpbin and say T for any non-static function
13325    # and D for any global variable.
13326    # Also find C++ and __fastcall symbols from MSVC++,
13327    # which start with @ or ?.
13328    lt_cv_sys_global_symbol_pipe="$AWK '"\
13329"     {last_section=section; section=\$ 3};"\
13330"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13331"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13332"     \$ 0!~/External *\|/{next};"\
13333"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13334"     {if(hide[section]) next};"\
13335"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13336"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13337"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13338"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13339"     ' prfx=^$ac_symprfx"
13340  else
13341    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13342  fi
13343  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13344
13345  # Check to see that the pipe works correctly.
13346  pipe_works=no
13347
13348  rm -f conftest*
13349  cat > conftest.$ac_ext <<_LT_EOF
13350#ifdef __cplusplus
13351extern "C" {
13352#endif
13353char nm_test_var;
13354void nm_test_func(void);
13355void nm_test_func(void){}
13356#ifdef __cplusplus
13357}
13358#endif
13359int main(){nm_test_var='a';nm_test_func();return(0);}
13360_LT_EOF
13361
13362  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13363  (eval $ac_compile) 2>&5
13364  ac_status=$?
13365  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13366  test $ac_status = 0; }; then
13367    # Now try to grab the symbols.
13368    nlist=conftest.nm
13369    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13370  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13371  ac_status=$?
13372  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13373  test $ac_status = 0; } && test -s "$nlist"; then
13374      # Try sorting and uniquifying the output.
13375      if sort "$nlist" | uniq > "$nlist"T; then
13376	mv -f "$nlist"T "$nlist"
13377      else
13378	rm -f "$nlist"T
13379      fi
13380
13381      # Make sure that we snagged all the symbols we need.
13382      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13383	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13384	  cat <<_LT_EOF > conftest.$ac_ext
13385/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13386#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
13387/* DATA imports from DLLs on WIN32 con't be const, because runtime
13388   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13389# define LT_DLSYM_CONST
13390#elif defined(__osf__)
13391/* This system does not cope well with relocations in const data.  */
13392# define LT_DLSYM_CONST
13393#else
13394# define LT_DLSYM_CONST const
13395#endif
13396
13397#ifdef __cplusplus
13398extern "C" {
13399#endif
13400
13401_LT_EOF
13402	  # Now generate the symbol file.
13403	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13404
13405	  cat <<_LT_EOF >> conftest.$ac_ext
13406
13407/* The mapping between symbol names and symbols.  */
13408LT_DLSYM_CONST struct {
13409  const char *name;
13410  void       *address;
13411}
13412lt__PROGRAM__LTX_preloaded_symbols[] =
13413{
13414  { "@PROGRAM@", (void *) 0 },
13415_LT_EOF
13416	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13417	  cat <<\_LT_EOF >> conftest.$ac_ext
13418  {0, (void *) 0}
13419};
13420
13421/* This works around a problem in FreeBSD linker */
13422#ifdef FREEBSD_WORKAROUND
13423static const void *lt_preloaded_setup() {
13424  return lt__PROGRAM__LTX_preloaded_symbols;
13425}
13426#endif
13427
13428#ifdef __cplusplus
13429}
13430#endif
13431_LT_EOF
13432	  # Now try linking the two files.
13433	  mv conftest.$ac_objext conftstm.$ac_objext
13434	  lt_globsym_save_LIBS=$LIBS
13435	  lt_globsym_save_CFLAGS=$CFLAGS
13436	  LIBS="conftstm.$ac_objext"
13437	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13438	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13439  (eval $ac_link) 2>&5
13440  ac_status=$?
13441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13442  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13443	    pipe_works=yes
13444	  fi
13445	  LIBS=$lt_globsym_save_LIBS
13446	  CFLAGS=$lt_globsym_save_CFLAGS
13447	else
13448	  echo "cannot find nm_test_func in $nlist" >&5
13449	fi
13450      else
13451	echo "cannot find nm_test_var in $nlist" >&5
13452      fi
13453    else
13454      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13455    fi
13456  else
13457    echo "$progname: failed program was:" >&5
13458    cat conftest.$ac_ext >&5
13459  fi
13460  rm -rf conftest* conftst*
13461
13462  # Do not use the global_symbol_pipe unless it works.
13463  if test "$pipe_works" = yes; then
13464    break
13465  else
13466    lt_cv_sys_global_symbol_pipe=
13467  fi
13468done
13469
13470fi
13471
13472if test -z "$lt_cv_sys_global_symbol_pipe"; then
13473  lt_cv_sys_global_symbol_to_cdecl=
13474fi
13475if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13477$as_echo "failed" >&6; }
13478else
13479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13480$as_echo "ok" >&6; }
13481fi
13482
13483# Response file support.
13484if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13485  nm_file_list_spec='@'
13486elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13487  nm_file_list_spec='@'
13488fi
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13517$as_echo_n "checking for sysroot... " >&6; }
13518
13519# Check whether --with-sysroot was given.
13520if test "${with_sysroot+set}" = set; then :
13521  withval=$with_sysroot;
13522else
13523  with_sysroot=no
13524fi
13525
13526
13527lt_sysroot=
13528case ${with_sysroot} in #(
13529 yes)
13530   if test "$GCC" = yes; then
13531     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13532   fi
13533   ;; #(
13534 /*)
13535   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13536   ;; #(
13537 no|'')
13538   ;; #(
13539 *)
13540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13541$as_echo "${with_sysroot}" >&6; }
13542   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13543   ;;
13544esac
13545
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13547$as_echo "${lt_sysroot:-no}" >&6; }
13548
13549
13550
13551
13552
13553# Check whether --enable-libtool-lock was given.
13554if test "${enable_libtool_lock+set}" = set; then :
13555  enableval=$enable_libtool_lock;
13556fi
13557
13558test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13559
13560# Some flags need to be propagated to the compiler or linker for good
13561# libtool support.
13562case $host in
13563ia64-*-hpux*)
13564  # Find out which ABI we are using.
13565  echo 'int i;' > conftest.$ac_ext
13566  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13567  (eval $ac_compile) 2>&5
13568  ac_status=$?
13569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13570  test $ac_status = 0; }; then
13571    case `/usr/bin/file conftest.$ac_objext` in
13572      *ELF-32*)
13573	HPUX_IA64_MODE="32"
13574	;;
13575      *ELF-64*)
13576	HPUX_IA64_MODE="64"
13577	;;
13578    esac
13579  fi
13580  rm -rf conftest*
13581  ;;
13582*-*-irix6*)
13583  # Find out which ABI we are using.
13584  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13585  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13586  (eval $ac_compile) 2>&5
13587  ac_status=$?
13588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13589  test $ac_status = 0; }; then
13590    if test "$lt_cv_prog_gnu_ld" = yes; then
13591      case `/usr/bin/file conftest.$ac_objext` in
13592	*32-bit*)
13593	  LD="${LD-ld} -melf32bsmip"
13594	  ;;
13595	*N32*)
13596	  LD="${LD-ld} -melf32bmipn32"
13597	  ;;
13598	*64-bit*)
13599	  LD="${LD-ld} -melf64bmip"
13600	;;
13601      esac
13602    else
13603      case `/usr/bin/file conftest.$ac_objext` in
13604	*32-bit*)
13605	  LD="${LD-ld} -32"
13606	  ;;
13607	*N32*)
13608	  LD="${LD-ld} -n32"
13609	  ;;
13610	*64-bit*)
13611	  LD="${LD-ld} -64"
13612	  ;;
13613      esac
13614    fi
13615  fi
13616  rm -rf conftest*
13617  ;;
13618
13619x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13620s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13621  # Find out which ABI we are using.
13622  echo 'int i;' > conftest.$ac_ext
13623  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13624  (eval $ac_compile) 2>&5
13625  ac_status=$?
13626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13627  test $ac_status = 0; }; then
13628    case `/usr/bin/file conftest.o` in
13629      *32-bit*)
13630	case $host in
13631	  x86_64-*kfreebsd*-gnu)
13632	    LD="${LD-ld} -m elf_i386_fbsd"
13633	    ;;
13634	  x86_64-*linux*)
13635	    case `/usr/bin/file conftest.o` in
13636	      *x86-64*)
13637		LD="${LD-ld} -m elf32_x86_64"
13638		;;
13639	      *)
13640		LD="${LD-ld} -m elf_i386"
13641		;;
13642	    esac
13643	    ;;
13644	  powerpc64le-*)
13645	    LD="${LD-ld} -m elf32lppclinux"
13646	    ;;
13647	  powerpc64-*)
13648	    LD="${LD-ld} -m elf32ppclinux"
13649	    ;;
13650	  s390x-*linux*)
13651	    LD="${LD-ld} -m elf_s390"
13652	    ;;
13653	  sparc64-*linux*)
13654	    LD="${LD-ld} -m elf32_sparc"
13655	    ;;
13656	esac
13657	;;
13658      *64-bit*)
13659	case $host in
13660	  x86_64-*kfreebsd*-gnu)
13661	    LD="${LD-ld} -m elf_x86_64_fbsd"
13662	    ;;
13663	  x86_64-*linux*)
13664	    LD="${LD-ld} -m elf_x86_64"
13665	    ;;
13666	  powerpcle-*)
13667	    LD="${LD-ld} -m elf64lppc"
13668	    ;;
13669	  powerpc-*)
13670	    LD="${LD-ld} -m elf64ppc"
13671	    ;;
13672	  s390*-*linux*|s390*-*tpf*)
13673	    LD="${LD-ld} -m elf64_s390"
13674	    ;;
13675	  sparc*-*linux*)
13676	    LD="${LD-ld} -m elf64_sparc"
13677	    ;;
13678	esac
13679	;;
13680    esac
13681  fi
13682  rm -rf conftest*
13683  ;;
13684
13685*-*-sco3.2v5*)
13686  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13687  SAVE_CFLAGS="$CFLAGS"
13688  CFLAGS="$CFLAGS -belf"
13689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13690$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13691if ${lt_cv_cc_needs_belf+:} false; then :
13692  $as_echo_n "(cached) " >&6
13693else
13694  ac_ext=c
13695ac_cpp='$CPP $CPPFLAGS'
13696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13698ac_compiler_gnu=$ac_cv_c_compiler_gnu
13699
13700     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13701/* end confdefs.h.  */
13702
13703int
13704main ()
13705{
13706
13707  ;
13708  return 0;
13709}
13710_ACEOF
13711if ac_fn_c_try_link "$LINENO"; then :
13712  lt_cv_cc_needs_belf=yes
13713else
13714  lt_cv_cc_needs_belf=no
13715fi
13716rm -f core conftest.err conftest.$ac_objext \
13717    conftest$ac_exeext conftest.$ac_ext
13718     ac_ext=c
13719ac_cpp='$CPP $CPPFLAGS'
13720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13722ac_compiler_gnu=$ac_cv_c_compiler_gnu
13723
13724fi
13725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13726$as_echo "$lt_cv_cc_needs_belf" >&6; }
13727  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13728    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13729    CFLAGS="$SAVE_CFLAGS"
13730  fi
13731  ;;
13732*-*solaris*)
13733  # Find out which ABI we are using.
13734  echo 'int i;' > conftest.$ac_ext
13735  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13736  (eval $ac_compile) 2>&5
13737  ac_status=$?
13738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13739  test $ac_status = 0; }; then
13740    case `/usr/bin/file conftest.o` in
13741    *64-bit*)
13742      case $lt_cv_prog_gnu_ld in
13743      yes*)
13744        case $host in
13745        i?86-*-solaris*)
13746          LD="${LD-ld} -m elf_x86_64"
13747          ;;
13748        sparc*-*-solaris*)
13749          LD="${LD-ld} -m elf64_sparc"
13750          ;;
13751        esac
13752        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13753        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13754          LD="${LD-ld}_sol2"
13755        fi
13756        ;;
13757      *)
13758	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13759	  LD="${LD-ld} -64"
13760	fi
13761	;;
13762      esac
13763      ;;
13764    esac
13765  fi
13766  rm -rf conftest*
13767  ;;
13768esac
13769
13770need_locks="$enable_libtool_lock"
13771
13772if test -n "$ac_tool_prefix"; then
13773  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13774set dummy ${ac_tool_prefix}mt; ac_word=$2
13775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13776$as_echo_n "checking for $ac_word... " >&6; }
13777if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13778  $as_echo_n "(cached) " >&6
13779else
13780  if test -n "$MANIFEST_TOOL"; then
13781  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13782else
13783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13784for as_dir in $PATH
13785do
13786  IFS=$as_save_IFS
13787  test -z "$as_dir" && as_dir=.
13788    for ac_exec_ext in '' $ac_executable_extensions; do
13789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13790    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13792    break 2
13793  fi
13794done
13795  done
13796IFS=$as_save_IFS
13797
13798fi
13799fi
13800MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13801if test -n "$MANIFEST_TOOL"; then
13802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13803$as_echo "$MANIFEST_TOOL" >&6; }
13804else
13805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13806$as_echo "no" >&6; }
13807fi
13808
13809
13810fi
13811if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13812  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13813  # Extract the first word of "mt", so it can be a program name with args.
13814set dummy mt; ac_word=$2
13815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13816$as_echo_n "checking for $ac_word... " >&6; }
13817if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13818  $as_echo_n "(cached) " >&6
13819else
13820  if test -n "$ac_ct_MANIFEST_TOOL"; then
13821  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13822else
13823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824for as_dir in $PATH
13825do
13826  IFS=$as_save_IFS
13827  test -z "$as_dir" && as_dir=.
13828    for ac_exec_ext in '' $ac_executable_extensions; do
13829  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13830    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13832    break 2
13833  fi
13834done
13835  done
13836IFS=$as_save_IFS
13837
13838fi
13839fi
13840ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13841if test -n "$ac_ct_MANIFEST_TOOL"; then
13842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13843$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13844else
13845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846$as_echo "no" >&6; }
13847fi
13848
13849  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13850    MANIFEST_TOOL=":"
13851  else
13852    case $cross_compiling:$ac_tool_warned in
13853yes:)
13854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13856ac_tool_warned=yes ;;
13857esac
13858    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13859  fi
13860else
13861  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13862fi
13863
13864test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13866$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13867if ${lt_cv_path_mainfest_tool+:} false; then :
13868  $as_echo_n "(cached) " >&6
13869else
13870  lt_cv_path_mainfest_tool=no
13871  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13872  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13873  cat conftest.err >&5
13874  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13875    lt_cv_path_mainfest_tool=yes
13876  fi
13877  rm -f conftest*
13878fi
13879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13880$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13881if test "x$lt_cv_path_mainfest_tool" != xyes; then
13882  MANIFEST_TOOL=:
13883fi
13884
13885
13886
13887
13888
13889
13890  case $host_os in
13891    rhapsody* | darwin*)
13892    if test -n "$ac_tool_prefix"; then
13893  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13894set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13896$as_echo_n "checking for $ac_word... " >&6; }
13897if ${ac_cv_prog_DSYMUTIL+:} false; then :
13898  $as_echo_n "(cached) " >&6
13899else
13900  if test -n "$DSYMUTIL"; then
13901  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13902else
13903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13904for as_dir in $PATH
13905do
13906  IFS=$as_save_IFS
13907  test -z "$as_dir" && as_dir=.
13908    for ac_exec_ext in '' $ac_executable_extensions; do
13909  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13910    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13911    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13912    break 2
13913  fi
13914done
13915  done
13916IFS=$as_save_IFS
13917
13918fi
13919fi
13920DSYMUTIL=$ac_cv_prog_DSYMUTIL
13921if test -n "$DSYMUTIL"; then
13922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13923$as_echo "$DSYMUTIL" >&6; }
13924else
13925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13926$as_echo "no" >&6; }
13927fi
13928
13929
13930fi
13931if test -z "$ac_cv_prog_DSYMUTIL"; then
13932  ac_ct_DSYMUTIL=$DSYMUTIL
13933  # Extract the first word of "dsymutil", so it can be a program name with args.
13934set dummy dsymutil; ac_word=$2
13935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13936$as_echo_n "checking for $ac_word... " >&6; }
13937if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13938  $as_echo_n "(cached) " >&6
13939else
13940  if test -n "$ac_ct_DSYMUTIL"; then
13941  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13942else
13943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13944for as_dir in $PATH
13945do
13946  IFS=$as_save_IFS
13947  test -z "$as_dir" && as_dir=.
13948    for ac_exec_ext in '' $ac_executable_extensions; do
13949  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13950    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13951    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13952    break 2
13953  fi
13954done
13955  done
13956IFS=$as_save_IFS
13957
13958fi
13959fi
13960ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13961if test -n "$ac_ct_DSYMUTIL"; then
13962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13963$as_echo "$ac_ct_DSYMUTIL" >&6; }
13964else
13965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13966$as_echo "no" >&6; }
13967fi
13968
13969  if test "x$ac_ct_DSYMUTIL" = x; then
13970    DSYMUTIL=":"
13971  else
13972    case $cross_compiling:$ac_tool_warned in
13973yes:)
13974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13976ac_tool_warned=yes ;;
13977esac
13978    DSYMUTIL=$ac_ct_DSYMUTIL
13979  fi
13980else
13981  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13982fi
13983
13984    if test -n "$ac_tool_prefix"; then
13985  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13986set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13988$as_echo_n "checking for $ac_word... " >&6; }
13989if ${ac_cv_prog_NMEDIT+:} false; then :
13990  $as_echo_n "(cached) " >&6
13991else
13992  if test -n "$NMEDIT"; then
13993  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13994else
13995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13996for as_dir in $PATH
13997do
13998  IFS=$as_save_IFS
13999  test -z "$as_dir" && as_dir=.
14000    for ac_exec_ext in '' $ac_executable_extensions; do
14001  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14002    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14004    break 2
14005  fi
14006done
14007  done
14008IFS=$as_save_IFS
14009
14010fi
14011fi
14012NMEDIT=$ac_cv_prog_NMEDIT
14013if test -n "$NMEDIT"; then
14014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14015$as_echo "$NMEDIT" >&6; }
14016else
14017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018$as_echo "no" >&6; }
14019fi
14020
14021
14022fi
14023if test -z "$ac_cv_prog_NMEDIT"; then
14024  ac_ct_NMEDIT=$NMEDIT
14025  # Extract the first word of "nmedit", so it can be a program name with args.
14026set dummy nmedit; ac_word=$2
14027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14028$as_echo_n "checking for $ac_word... " >&6; }
14029if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14030  $as_echo_n "(cached) " >&6
14031else
14032  if test -n "$ac_ct_NMEDIT"; then
14033  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14034else
14035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14036for as_dir in $PATH
14037do
14038  IFS=$as_save_IFS
14039  test -z "$as_dir" && as_dir=.
14040    for ac_exec_ext in '' $ac_executable_extensions; do
14041  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14042    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14044    break 2
14045  fi
14046done
14047  done
14048IFS=$as_save_IFS
14049
14050fi
14051fi
14052ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14053if test -n "$ac_ct_NMEDIT"; then
14054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14055$as_echo "$ac_ct_NMEDIT" >&6; }
14056else
14057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14058$as_echo "no" >&6; }
14059fi
14060
14061  if test "x$ac_ct_NMEDIT" = x; then
14062    NMEDIT=":"
14063  else
14064    case $cross_compiling:$ac_tool_warned in
14065yes:)
14066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14068ac_tool_warned=yes ;;
14069esac
14070    NMEDIT=$ac_ct_NMEDIT
14071  fi
14072else
14073  NMEDIT="$ac_cv_prog_NMEDIT"
14074fi
14075
14076    if test -n "$ac_tool_prefix"; then
14077  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14078set dummy ${ac_tool_prefix}lipo; ac_word=$2
14079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14080$as_echo_n "checking for $ac_word... " >&6; }
14081if ${ac_cv_prog_LIPO+:} false; then :
14082  $as_echo_n "(cached) " >&6
14083else
14084  if test -n "$LIPO"; then
14085  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14086else
14087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14088for as_dir in $PATH
14089do
14090  IFS=$as_save_IFS
14091  test -z "$as_dir" && as_dir=.
14092    for ac_exec_ext in '' $ac_executable_extensions; do
14093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14094    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14096    break 2
14097  fi
14098done
14099  done
14100IFS=$as_save_IFS
14101
14102fi
14103fi
14104LIPO=$ac_cv_prog_LIPO
14105if test -n "$LIPO"; then
14106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14107$as_echo "$LIPO" >&6; }
14108else
14109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14110$as_echo "no" >&6; }
14111fi
14112
14113
14114fi
14115if test -z "$ac_cv_prog_LIPO"; then
14116  ac_ct_LIPO=$LIPO
14117  # Extract the first word of "lipo", so it can be a program name with args.
14118set dummy lipo; ac_word=$2
14119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14120$as_echo_n "checking for $ac_word... " >&6; }
14121if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14122  $as_echo_n "(cached) " >&6
14123else
14124  if test -n "$ac_ct_LIPO"; then
14125  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14126else
14127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14128for as_dir in $PATH
14129do
14130  IFS=$as_save_IFS
14131  test -z "$as_dir" && as_dir=.
14132    for ac_exec_ext in '' $ac_executable_extensions; do
14133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14134    ac_cv_prog_ac_ct_LIPO="lipo"
14135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14136    break 2
14137  fi
14138done
14139  done
14140IFS=$as_save_IFS
14141
14142fi
14143fi
14144ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14145if test -n "$ac_ct_LIPO"; then
14146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14147$as_echo "$ac_ct_LIPO" >&6; }
14148else
14149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14150$as_echo "no" >&6; }
14151fi
14152
14153  if test "x$ac_ct_LIPO" = x; then
14154    LIPO=":"
14155  else
14156    case $cross_compiling:$ac_tool_warned in
14157yes:)
14158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14160ac_tool_warned=yes ;;
14161esac
14162    LIPO=$ac_ct_LIPO
14163  fi
14164else
14165  LIPO="$ac_cv_prog_LIPO"
14166fi
14167
14168    if test -n "$ac_tool_prefix"; then
14169  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14170set dummy ${ac_tool_prefix}otool; ac_word=$2
14171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14172$as_echo_n "checking for $ac_word... " >&6; }
14173if ${ac_cv_prog_OTOOL+:} false; then :
14174  $as_echo_n "(cached) " >&6
14175else
14176  if test -n "$OTOOL"; then
14177  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14178else
14179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14180for as_dir in $PATH
14181do
14182  IFS=$as_save_IFS
14183  test -z "$as_dir" && as_dir=.
14184    for ac_exec_ext in '' $ac_executable_extensions; do
14185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14186    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14188    break 2
14189  fi
14190done
14191  done
14192IFS=$as_save_IFS
14193
14194fi
14195fi
14196OTOOL=$ac_cv_prog_OTOOL
14197if test -n "$OTOOL"; then
14198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14199$as_echo "$OTOOL" >&6; }
14200else
14201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14202$as_echo "no" >&6; }
14203fi
14204
14205
14206fi
14207if test -z "$ac_cv_prog_OTOOL"; then
14208  ac_ct_OTOOL=$OTOOL
14209  # Extract the first word of "otool", so it can be a program name with args.
14210set dummy otool; ac_word=$2
14211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14212$as_echo_n "checking for $ac_word... " >&6; }
14213if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14214  $as_echo_n "(cached) " >&6
14215else
14216  if test -n "$ac_ct_OTOOL"; then
14217  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14218else
14219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14220for as_dir in $PATH
14221do
14222  IFS=$as_save_IFS
14223  test -z "$as_dir" && as_dir=.
14224    for ac_exec_ext in '' $ac_executable_extensions; do
14225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14226    ac_cv_prog_ac_ct_OTOOL="otool"
14227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14228    break 2
14229  fi
14230done
14231  done
14232IFS=$as_save_IFS
14233
14234fi
14235fi
14236ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14237if test -n "$ac_ct_OTOOL"; then
14238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14239$as_echo "$ac_ct_OTOOL" >&6; }
14240else
14241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14242$as_echo "no" >&6; }
14243fi
14244
14245  if test "x$ac_ct_OTOOL" = x; then
14246    OTOOL=":"
14247  else
14248    case $cross_compiling:$ac_tool_warned in
14249yes:)
14250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14252ac_tool_warned=yes ;;
14253esac
14254    OTOOL=$ac_ct_OTOOL
14255  fi
14256else
14257  OTOOL="$ac_cv_prog_OTOOL"
14258fi
14259
14260    if test -n "$ac_tool_prefix"; then
14261  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14262set dummy ${ac_tool_prefix}otool64; ac_word=$2
14263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14264$as_echo_n "checking for $ac_word... " >&6; }
14265if ${ac_cv_prog_OTOOL64+:} false; then :
14266  $as_echo_n "(cached) " >&6
14267else
14268  if test -n "$OTOOL64"; then
14269  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14270else
14271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14272for as_dir in $PATH
14273do
14274  IFS=$as_save_IFS
14275  test -z "$as_dir" && as_dir=.
14276    for ac_exec_ext in '' $ac_executable_extensions; do
14277  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14278    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14280    break 2
14281  fi
14282done
14283  done
14284IFS=$as_save_IFS
14285
14286fi
14287fi
14288OTOOL64=$ac_cv_prog_OTOOL64
14289if test -n "$OTOOL64"; then
14290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14291$as_echo "$OTOOL64" >&6; }
14292else
14293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14294$as_echo "no" >&6; }
14295fi
14296
14297
14298fi
14299if test -z "$ac_cv_prog_OTOOL64"; then
14300  ac_ct_OTOOL64=$OTOOL64
14301  # Extract the first word of "otool64", so it can be a program name with args.
14302set dummy otool64; ac_word=$2
14303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14304$as_echo_n "checking for $ac_word... " >&6; }
14305if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14306  $as_echo_n "(cached) " >&6
14307else
14308  if test -n "$ac_ct_OTOOL64"; then
14309  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14310else
14311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14312for as_dir in $PATH
14313do
14314  IFS=$as_save_IFS
14315  test -z "$as_dir" && as_dir=.
14316    for ac_exec_ext in '' $ac_executable_extensions; do
14317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14318    ac_cv_prog_ac_ct_OTOOL64="otool64"
14319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14320    break 2
14321  fi
14322done
14323  done
14324IFS=$as_save_IFS
14325
14326fi
14327fi
14328ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14329if test -n "$ac_ct_OTOOL64"; then
14330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14331$as_echo "$ac_ct_OTOOL64" >&6; }
14332else
14333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14334$as_echo "no" >&6; }
14335fi
14336
14337  if test "x$ac_ct_OTOOL64" = x; then
14338    OTOOL64=":"
14339  else
14340    case $cross_compiling:$ac_tool_warned in
14341yes:)
14342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14344ac_tool_warned=yes ;;
14345esac
14346    OTOOL64=$ac_ct_OTOOL64
14347  fi
14348else
14349  OTOOL64="$ac_cv_prog_OTOOL64"
14350fi
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14379$as_echo_n "checking for -single_module linker flag... " >&6; }
14380if ${lt_cv_apple_cc_single_mod+:} false; then :
14381  $as_echo_n "(cached) " >&6
14382else
14383  lt_cv_apple_cc_single_mod=no
14384      if test -z "${LT_MULTI_MODULE}"; then
14385	# By default we will add the -single_module flag. You can override
14386	# by either setting the environment variable LT_MULTI_MODULE
14387	# non-empty at configure time, or by adding -multi_module to the
14388	# link flags.
14389	rm -rf libconftest.dylib*
14390	echo "int foo(void){return 1;}" > conftest.c
14391	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14392-dynamiclib -Wl,-single_module conftest.c" >&5
14393	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14394	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14395        _lt_result=$?
14396	# If there is a non-empty error log, and "single_module"
14397	# appears in it, assume the flag caused a linker warning
14398        if test -s conftest.err && $GREP single_module conftest.err; then
14399	  cat conftest.err >&5
14400	# Otherwise, if the output was created with a 0 exit code from
14401	# the compiler, it worked.
14402	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
14403	  lt_cv_apple_cc_single_mod=yes
14404	else
14405	  cat conftest.err >&5
14406	fi
14407	rm -rf libconftest.dylib*
14408	rm -f conftest.*
14409      fi
14410fi
14411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14412$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14413
14414    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14415$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14416if ${lt_cv_ld_exported_symbols_list+:} false; then :
14417  $as_echo_n "(cached) " >&6
14418else
14419  lt_cv_ld_exported_symbols_list=no
14420      save_LDFLAGS=$LDFLAGS
14421      echo "_main" > conftest.sym
14422      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14423      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14424/* end confdefs.h.  */
14425
14426int
14427main ()
14428{
14429
14430  ;
14431  return 0;
14432}
14433_ACEOF
14434if ac_fn_c_try_link "$LINENO"; then :
14435  lt_cv_ld_exported_symbols_list=yes
14436else
14437  lt_cv_ld_exported_symbols_list=no
14438fi
14439rm -f core conftest.err conftest.$ac_objext \
14440    conftest$ac_exeext conftest.$ac_ext
14441	LDFLAGS="$save_LDFLAGS"
14442
14443fi
14444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14445$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14446
14447    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14448$as_echo_n "checking for -force_load linker flag... " >&6; }
14449if ${lt_cv_ld_force_load+:} false; then :
14450  $as_echo_n "(cached) " >&6
14451else
14452  lt_cv_ld_force_load=no
14453      cat > conftest.c << _LT_EOF
14454int forced_loaded() { return 2;}
14455_LT_EOF
14456      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14457      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14458      echo "$AR cru libconftest.a conftest.o" >&5
14459      $AR cru libconftest.a conftest.o 2>&5
14460      echo "$RANLIB libconftest.a" >&5
14461      $RANLIB libconftest.a 2>&5
14462      cat > conftest.c << _LT_EOF
14463int main() { return 0;}
14464_LT_EOF
14465      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14466      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14467      _lt_result=$?
14468      if test -s conftest.err && $GREP force_load conftest.err; then
14469	cat conftest.err >&5
14470      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
14471	lt_cv_ld_force_load=yes
14472      else
14473	cat conftest.err >&5
14474      fi
14475        rm -f conftest.err libconftest.a conftest conftest.c
14476        rm -rf conftest.dSYM
14477
14478fi
14479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14480$as_echo "$lt_cv_ld_force_load" >&6; }
14481    case $host_os in
14482    rhapsody* | darwin1.[012])
14483      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14484    darwin1.*)
14485      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14486    darwin*) # darwin 5.x on
14487      # if running on 10.5 or later, the deployment target defaults
14488      # to the OS version, if on x86, and 10.4, the deployment
14489      # target defaults to 10.4. Don't you love it?
14490      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14491	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14492	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14493	10.[012]*)
14494	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14495	10.*)
14496	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14497      esac
14498    ;;
14499  esac
14500    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14501      _lt_dar_single_mod='$single_module'
14502    fi
14503    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14504      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14505    else
14506      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14507    fi
14508    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14509      _lt_dsymutil='~$DSYMUTIL $lib || :'
14510    else
14511      _lt_dsymutil=
14512    fi
14513    ;;
14514  esac
14515
14516for ac_header in dlfcn.h
14517do :
14518  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14519"
14520if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14521  cat >>confdefs.h <<_ACEOF
14522#define HAVE_DLFCN_H 1
14523_ACEOF
14524
14525fi
14526
14527done
14528
14529
14530
14531
14532
14533# Set options
14534
14535
14536
14537        enable_dlopen=no
14538
14539
14540  enable_win32_dll=no
14541
14542
14543            # Check whether --enable-shared was given.
14544if test "${enable_shared+set}" = set; then :
14545  enableval=$enable_shared; p=${PACKAGE-default}
14546    case $enableval in
14547    yes) enable_shared=yes ;;
14548    no) enable_shared=no ;;
14549    *)
14550      enable_shared=no
14551      # Look at the argument we got.  We use all the common list separators.
14552      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14553      for pkg in $enableval; do
14554	IFS="$lt_save_ifs"
14555	if test "X$pkg" = "X$p"; then
14556	  enable_shared=yes
14557	fi
14558      done
14559      IFS="$lt_save_ifs"
14560      ;;
14561    esac
14562else
14563  enable_shared=yes
14564fi
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576# Check whether --with-pic was given.
14577if test "${with_pic+set}" = set; then :
14578  withval=$with_pic; lt_p=${PACKAGE-default}
14579    case $withval in
14580    yes|no) pic_mode=$withval ;;
14581    *)
14582      pic_mode=default
14583      # Look at the argument we got.  We use all the common list separators.
14584      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14585      for lt_pkg in $withval; do
14586	IFS="$lt_save_ifs"
14587	if test "X$lt_pkg" = "X$lt_p"; then
14588	  pic_mode=yes
14589	fi
14590      done
14591      IFS="$lt_save_ifs"
14592      ;;
14593    esac
14594else
14595  pic_mode=default
14596fi
14597
14598
14599test -z "$pic_mode" && pic_mode=default
14600
14601
14602
14603
14604
14605
14606
14607  # Check whether --enable-fast-install was given.
14608if test "${enable_fast_install+set}" = set; then :
14609  enableval=$enable_fast_install; p=${PACKAGE-default}
14610    case $enableval in
14611    yes) enable_fast_install=yes ;;
14612    no) enable_fast_install=no ;;
14613    *)
14614      enable_fast_install=no
14615      # Look at the argument we got.  We use all the common list separators.
14616      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14617      for pkg in $enableval; do
14618	IFS="$lt_save_ifs"
14619	if test "X$pkg" = "X$p"; then
14620	  enable_fast_install=yes
14621	fi
14622      done
14623      IFS="$lt_save_ifs"
14624      ;;
14625    esac
14626else
14627  enable_fast_install=yes
14628fi
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640# This can be used to rebuild libtool when needed
14641LIBTOOL_DEPS="$ltmain"
14642
14643# Always use our own libtool.
14644LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675test -z "$LN_S" && LN_S="ln -s"
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690if test -n "${ZSH_VERSION+set}" ; then
14691   setopt NO_GLOB_SUBST
14692fi
14693
14694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14695$as_echo_n "checking for objdir... " >&6; }
14696if ${lt_cv_objdir+:} false; then :
14697  $as_echo_n "(cached) " >&6
14698else
14699  rm -f .libs 2>/dev/null
14700mkdir .libs 2>/dev/null
14701if test -d .libs; then
14702  lt_cv_objdir=.libs
14703else
14704  # MS-DOS does not allow filenames that begin with a dot.
14705  lt_cv_objdir=_libs
14706fi
14707rmdir .libs 2>/dev/null
14708fi
14709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14710$as_echo "$lt_cv_objdir" >&6; }
14711objdir=$lt_cv_objdir
14712
14713
14714
14715
14716
14717cat >>confdefs.h <<_ACEOF
14718#define LT_OBJDIR "$lt_cv_objdir/"
14719_ACEOF
14720
14721
14722
14723
14724case $host_os in
14725aix3*)
14726  # AIX sometimes has problems with the GCC collect2 program.  For some
14727  # reason, if we set the COLLECT_NAMES environment variable, the problems
14728  # vanish in a puff of smoke.
14729  if test "X${COLLECT_NAMES+set}" != Xset; then
14730    COLLECT_NAMES=
14731    export COLLECT_NAMES
14732  fi
14733  ;;
14734esac
14735
14736# Global variables:
14737ofile=libtool
14738can_build_shared=yes
14739
14740# All known linkers require a `.a' archive for static linking (except MSVC,
14741# which needs '.lib').
14742libext=a
14743
14744with_gnu_ld="$lt_cv_prog_gnu_ld"
14745
14746old_CC="$CC"
14747old_CFLAGS="$CFLAGS"
14748
14749# Set sane defaults for various variables
14750test -z "$CC" && CC=cc
14751test -z "$LTCC" && LTCC=$CC
14752test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14753test -z "$LD" && LD=ld
14754test -z "$ac_objext" && ac_objext=o
14755
14756for cc_temp in $compiler""; do
14757  case $cc_temp in
14758    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14759    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14760    \-*) ;;
14761    *) break;;
14762  esac
14763done
14764cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14765
14766
14767# Only perform the check for file, if the check method requires it
14768test -z "$MAGIC_CMD" && MAGIC_CMD=file
14769case $deplibs_check_method in
14770file_magic*)
14771  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14772    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14773$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14774if ${lt_cv_path_MAGIC_CMD+:} false; then :
14775  $as_echo_n "(cached) " >&6
14776else
14777  case $MAGIC_CMD in
14778[\\/*] |  ?:[\\/]*)
14779  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14780  ;;
14781*)
14782  lt_save_MAGIC_CMD="$MAGIC_CMD"
14783  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14784  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14785  for ac_dir in $ac_dummy; do
14786    IFS="$lt_save_ifs"
14787    test -z "$ac_dir" && ac_dir=.
14788    if test -f $ac_dir/${ac_tool_prefix}file; then
14789      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14790      if test -n "$file_magic_test_file"; then
14791	case $deplibs_check_method in
14792	"file_magic "*)
14793	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14794	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14795	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14796	    $EGREP "$file_magic_regex" > /dev/null; then
14797	    :
14798	  else
14799	    cat <<_LT_EOF 1>&2
14800
14801*** Warning: the command libtool uses to detect shared libraries,
14802*** $file_magic_cmd, produces output that libtool cannot recognize.
14803*** The result is that libtool may fail to recognize shared libraries
14804*** as such.  This will affect the creation of libtool libraries that
14805*** depend on shared libraries, but programs linked with such libtool
14806*** libraries will work regardless of this problem.  Nevertheless, you
14807*** may want to report the problem to your system manager and/or to
14808*** bug-libtool@gnu.org
14809
14810_LT_EOF
14811	  fi ;;
14812	esac
14813      fi
14814      break
14815    fi
14816  done
14817  IFS="$lt_save_ifs"
14818  MAGIC_CMD="$lt_save_MAGIC_CMD"
14819  ;;
14820esac
14821fi
14822
14823MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14824if test -n "$MAGIC_CMD"; then
14825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14826$as_echo "$MAGIC_CMD" >&6; }
14827else
14828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14829$as_echo "no" >&6; }
14830fi
14831
14832
14833
14834
14835
14836if test -z "$lt_cv_path_MAGIC_CMD"; then
14837  if test -n "$ac_tool_prefix"; then
14838    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14839$as_echo_n "checking for file... " >&6; }
14840if ${lt_cv_path_MAGIC_CMD+:} false; then :
14841  $as_echo_n "(cached) " >&6
14842else
14843  case $MAGIC_CMD in
14844[\\/*] |  ?:[\\/]*)
14845  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14846  ;;
14847*)
14848  lt_save_MAGIC_CMD="$MAGIC_CMD"
14849  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14850  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14851  for ac_dir in $ac_dummy; do
14852    IFS="$lt_save_ifs"
14853    test -z "$ac_dir" && ac_dir=.
14854    if test -f $ac_dir/file; then
14855      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14856      if test -n "$file_magic_test_file"; then
14857	case $deplibs_check_method in
14858	"file_magic "*)
14859	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14860	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14861	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14862	    $EGREP "$file_magic_regex" > /dev/null; then
14863	    :
14864	  else
14865	    cat <<_LT_EOF 1>&2
14866
14867*** Warning: the command libtool uses to detect shared libraries,
14868*** $file_magic_cmd, produces output that libtool cannot recognize.
14869*** The result is that libtool may fail to recognize shared libraries
14870*** as such.  This will affect the creation of libtool libraries that
14871*** depend on shared libraries, but programs linked with such libtool
14872*** libraries will work regardless of this problem.  Nevertheless, you
14873*** may want to report the problem to your system manager and/or to
14874*** bug-libtool@gnu.org
14875
14876_LT_EOF
14877	  fi ;;
14878	esac
14879      fi
14880      break
14881    fi
14882  done
14883  IFS="$lt_save_ifs"
14884  MAGIC_CMD="$lt_save_MAGIC_CMD"
14885  ;;
14886esac
14887fi
14888
14889MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14890if test -n "$MAGIC_CMD"; then
14891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14892$as_echo "$MAGIC_CMD" >&6; }
14893else
14894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14895$as_echo "no" >&6; }
14896fi
14897
14898
14899  else
14900    MAGIC_CMD=:
14901  fi
14902fi
14903
14904  fi
14905  ;;
14906esac
14907
14908# Use C for the default configuration in the libtool script
14909
14910lt_save_CC="$CC"
14911ac_ext=c
14912ac_cpp='$CPP $CPPFLAGS'
14913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14915ac_compiler_gnu=$ac_cv_c_compiler_gnu
14916
14917
14918# Source file extension for C test sources.
14919ac_ext=c
14920
14921# Object file extension for compiled C test sources.
14922objext=o
14923objext=$objext
14924
14925# Code to be used in simple compile tests
14926lt_simple_compile_test_code="int some_variable = 0;"
14927
14928# Code to be used in simple link tests
14929lt_simple_link_test_code='int main(){return(0);}'
14930
14931
14932
14933
14934
14935
14936
14937# If no C compiler was specified, use CC.
14938LTCC=${LTCC-"$CC"}
14939
14940# If no C compiler flags were specified, use CFLAGS.
14941LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14942
14943# Allow CC to be a program name with arguments.
14944compiler=$CC
14945
14946# Save the default compiler, since it gets overwritten when the other
14947# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14948compiler_DEFAULT=$CC
14949
14950# save warnings/boilerplate of simple test code
14951ac_outfile=conftest.$ac_objext
14952echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14953eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14954_lt_compiler_boilerplate=`cat conftest.err`
14955$RM conftest*
14956
14957ac_outfile=conftest.$ac_objext
14958echo "$lt_simple_link_test_code" >conftest.$ac_ext
14959eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14960_lt_linker_boilerplate=`cat conftest.err`
14961$RM -r conftest*
14962
14963
14964## CAVEAT EMPTOR:
14965## There is no encapsulation within the following macros, do not change
14966## the running order or otherwise move them around unless you know exactly
14967## what you are doing...
14968if test -n "$compiler"; then
14969
14970lt_prog_compiler_no_builtin_flag=
14971
14972if test "$GCC" = yes; then
14973  case $cc_basename in
14974  nvcc*)
14975    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14976  *)
14977    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14978  esac
14979
14980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14981$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14982if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14983  $as_echo_n "(cached) " >&6
14984else
14985  lt_cv_prog_compiler_rtti_exceptions=no
14986   ac_outfile=conftest.$ac_objext
14987   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14988   lt_compiler_flag="-fno-rtti -fno-exceptions"
14989   # Insert the option either (1) after the last *FLAGS variable, or
14990   # (2) before a word containing "conftest.", or (3) at the end.
14991   # Note that $ac_compile itself does not contain backslashes and begins
14992   # with a dollar sign (not a hyphen), so the echo should work correctly.
14993   # The option is referenced via a variable to avoid confusing sed.
14994   lt_compile=`echo "$ac_compile" | $SED \
14995   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14996   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14997   -e 's:$: $lt_compiler_flag:'`
14998   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14999   (eval "$lt_compile" 2>conftest.err)
15000   ac_status=$?
15001   cat conftest.err >&5
15002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003   if (exit $ac_status) && test -s "$ac_outfile"; then
15004     # The compiler can only warn and ignore the option if not recognized
15005     # So say no if there are warnings other than the usual output.
15006     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15007     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15008     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15009       lt_cv_prog_compiler_rtti_exceptions=yes
15010     fi
15011   fi
15012   $RM conftest*
15013
15014fi
15015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15016$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15017
15018if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15019    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15020else
15021    :
15022fi
15023
15024fi
15025
15026
15027
15028
15029
15030
15031  lt_prog_compiler_wl=
15032lt_prog_compiler_pic=
15033lt_prog_compiler_static=
15034
15035
15036  if test "$GCC" = yes; then
15037    lt_prog_compiler_wl='-Wl,'
15038    lt_prog_compiler_static='-static'
15039
15040    case $host_os in
15041      aix*)
15042      # All AIX code is PIC.
15043      if test "$host_cpu" = ia64; then
15044	# AIX 5 now supports IA64 processor
15045	lt_prog_compiler_static='-Bstatic'
15046      fi
15047      ;;
15048
15049    amigaos*)
15050      case $host_cpu in
15051      powerpc)
15052            # see comment about AmigaOS4 .so support
15053            lt_prog_compiler_pic='-fPIC'
15054        ;;
15055      m68k)
15056            # FIXME: we need at least 68020 code to build shared libraries, but
15057            # adding the `-m68020' flag to GCC prevents building anything better,
15058            # like `-m68040'.
15059            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15060        ;;
15061      esac
15062      ;;
15063
15064    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15065      # PIC is the default for these OSes.
15066      ;;
15067
15068    mingw* | cygwin* | pw32* | os2* | cegcc*)
15069      # This hack is so that the source file can tell whether it is being
15070      # built for inclusion in a dll (and should export symbols for example).
15071      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15072      # (--disable-auto-import) libraries
15073      lt_prog_compiler_pic='-DDLL_EXPORT'
15074      ;;
15075
15076    darwin* | rhapsody*)
15077      # PIC is the default on this platform
15078      # Common symbols not allowed in MH_DYLIB files
15079      lt_prog_compiler_pic='-fno-common'
15080      ;;
15081
15082    haiku*)
15083      # PIC is the default for Haiku.
15084      # The "-static" flag exists, but is broken.
15085      lt_prog_compiler_static=
15086      ;;
15087
15088    hpux*)
15089      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15090      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15091      # sets the default TLS model and affects inlining.
15092      case $host_cpu in
15093      hppa*64*)
15094	# +Z the default
15095	;;
15096      *)
15097	lt_prog_compiler_pic='-fPIC'
15098	;;
15099      esac
15100      ;;
15101
15102    interix[3-9]*)
15103      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15104      # Instead, we relocate shared libraries at runtime.
15105      ;;
15106
15107    msdosdjgpp*)
15108      # Just because we use GCC doesn't mean we suddenly get shared libraries
15109      # on systems that don't support them.
15110      lt_prog_compiler_can_build_shared=no
15111      enable_shared=no
15112      ;;
15113
15114    *nto* | *qnx*)
15115      # QNX uses GNU C++, but need to define -shared option too, otherwise
15116      # it will coredump.
15117      lt_prog_compiler_pic='-fPIC -shared'
15118      ;;
15119
15120    sysv4*MP*)
15121      if test -d /usr/nec; then
15122	lt_prog_compiler_pic=-Kconform_pic
15123      fi
15124      ;;
15125
15126    *)
15127      lt_prog_compiler_pic='-fPIC'
15128      ;;
15129    esac
15130
15131    case $cc_basename in
15132    nvcc*) # Cuda Compiler Driver 2.2
15133      lt_prog_compiler_wl='-Xlinker '
15134      if test -n "$lt_prog_compiler_pic"; then
15135        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15136      fi
15137      ;;
15138    esac
15139  else
15140    # PORTME Check for flag to pass linker flags through the system compiler.
15141    case $host_os in
15142    aix*)
15143      lt_prog_compiler_wl='-Wl,'
15144      if test "$host_cpu" = ia64; then
15145	# AIX 5 now supports IA64 processor
15146	lt_prog_compiler_static='-Bstatic'
15147      else
15148	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15149      fi
15150      ;;
15151
15152    mingw* | cygwin* | pw32* | os2* | cegcc*)
15153      # This hack is so that the source file can tell whether it is being
15154      # built for inclusion in a dll (and should export symbols for example).
15155      lt_prog_compiler_pic='-DDLL_EXPORT'
15156      ;;
15157
15158    hpux9* | hpux10* | hpux11*)
15159      lt_prog_compiler_wl='-Wl,'
15160      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15161      # not for PA HP-UX.
15162      case $host_cpu in
15163      hppa*64*|ia64*)
15164	# +Z the default
15165	;;
15166      *)
15167	lt_prog_compiler_pic='+Z'
15168	;;
15169      esac
15170      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15171      lt_prog_compiler_static='${wl}-a ${wl}archive'
15172      ;;
15173
15174    irix5* | irix6* | nonstopux*)
15175      lt_prog_compiler_wl='-Wl,'
15176      # PIC (with -KPIC) is the default.
15177      lt_prog_compiler_static='-non_shared'
15178      ;;
15179
15180    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15181      case $cc_basename in
15182      # old Intel for x86_64 which still supported -KPIC.
15183      ecc*)
15184	lt_prog_compiler_wl='-Wl,'
15185	lt_prog_compiler_pic='-KPIC'
15186	lt_prog_compiler_static='-static'
15187        ;;
15188      # icc used to be incompatible with GCC.
15189      # ICC 10 doesn't accept -KPIC any more.
15190      icc* | ifort*)
15191	lt_prog_compiler_wl='-Wl,'
15192	lt_prog_compiler_pic='-fPIC'
15193	lt_prog_compiler_static='-static'
15194        ;;
15195      # Lahey Fortran 8.1.
15196      lf95*)
15197	lt_prog_compiler_wl='-Wl,'
15198	lt_prog_compiler_pic='--shared'
15199	lt_prog_compiler_static='--static'
15200	;;
15201      nagfor*)
15202	# NAG Fortran compiler
15203	lt_prog_compiler_wl='-Wl,-Wl,,'
15204	lt_prog_compiler_pic='-PIC'
15205	lt_prog_compiler_static='-Bstatic'
15206	;;
15207      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15208        # Portland Group compilers (*not* the Pentium gcc compiler,
15209	# which looks to be a dead project)
15210	lt_prog_compiler_wl='-Wl,'
15211	lt_prog_compiler_pic='-fpic'
15212	lt_prog_compiler_static='-Bstatic'
15213        ;;
15214      ccc*)
15215        lt_prog_compiler_wl='-Wl,'
15216        # All Alpha code is PIC.
15217        lt_prog_compiler_static='-non_shared'
15218        ;;
15219      xl* | bgxl* | bgf* | mpixl*)
15220	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15221	lt_prog_compiler_wl='-Wl,'
15222	lt_prog_compiler_pic='-qpic'
15223	lt_prog_compiler_static='-qstaticlink'
15224	;;
15225      *)
15226	case `$CC -V 2>&1 | sed 5q` in
15227	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15228	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15229	  lt_prog_compiler_pic='-KPIC'
15230	  lt_prog_compiler_static='-Bstatic'
15231	  lt_prog_compiler_wl=''
15232	  ;;
15233	*Sun\ F* | *Sun*Fortran*)
15234	  lt_prog_compiler_pic='-KPIC'
15235	  lt_prog_compiler_static='-Bstatic'
15236	  lt_prog_compiler_wl='-Qoption ld '
15237	  ;;
15238	*Sun\ C*)
15239	  # Sun C 5.9
15240	  lt_prog_compiler_pic='-KPIC'
15241	  lt_prog_compiler_static='-Bstatic'
15242	  lt_prog_compiler_wl='-Wl,'
15243	  ;;
15244        *Intel*\ [CF]*Compiler*)
15245	  lt_prog_compiler_wl='-Wl,'
15246	  lt_prog_compiler_pic='-fPIC'
15247	  lt_prog_compiler_static='-static'
15248	  ;;
15249	*Portland\ Group*)
15250	  lt_prog_compiler_wl='-Wl,'
15251	  lt_prog_compiler_pic='-fpic'
15252	  lt_prog_compiler_static='-Bstatic'
15253	  ;;
15254	esac
15255	;;
15256      esac
15257      ;;
15258
15259    newsos6)
15260      lt_prog_compiler_pic='-KPIC'
15261      lt_prog_compiler_static='-Bstatic'
15262      ;;
15263
15264    *nto* | *qnx*)
15265      # QNX uses GNU C++, but need to define -shared option too, otherwise
15266      # it will coredump.
15267      lt_prog_compiler_pic='-fPIC -shared'
15268      ;;
15269
15270    osf3* | osf4* | osf5*)
15271      lt_prog_compiler_wl='-Wl,'
15272      # All OSF/1 code is PIC.
15273      lt_prog_compiler_static='-non_shared'
15274      ;;
15275
15276    rdos*)
15277      lt_prog_compiler_static='-non_shared'
15278      ;;
15279
15280    solaris*)
15281      lt_prog_compiler_pic='-KPIC'
15282      lt_prog_compiler_static='-Bstatic'
15283      case $cc_basename in
15284      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15285	lt_prog_compiler_wl='-Qoption ld ';;
15286      *)
15287	lt_prog_compiler_wl='-Wl,';;
15288      esac
15289      ;;
15290
15291    sunos4*)
15292      lt_prog_compiler_wl='-Qoption ld '
15293      lt_prog_compiler_pic='-PIC'
15294      lt_prog_compiler_static='-Bstatic'
15295      ;;
15296
15297    sysv4 | sysv4.2uw2* | sysv4.3*)
15298      lt_prog_compiler_wl='-Wl,'
15299      lt_prog_compiler_pic='-KPIC'
15300      lt_prog_compiler_static='-Bstatic'
15301      ;;
15302
15303    sysv4*MP*)
15304      if test -d /usr/nec ;then
15305	lt_prog_compiler_pic='-Kconform_pic'
15306	lt_prog_compiler_static='-Bstatic'
15307      fi
15308      ;;
15309
15310    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15311      lt_prog_compiler_wl='-Wl,'
15312      lt_prog_compiler_pic='-KPIC'
15313      lt_prog_compiler_static='-Bstatic'
15314      ;;
15315
15316    unicos*)
15317      lt_prog_compiler_wl='-Wl,'
15318      lt_prog_compiler_can_build_shared=no
15319      ;;
15320
15321    uts4*)
15322      lt_prog_compiler_pic='-pic'
15323      lt_prog_compiler_static='-Bstatic'
15324      ;;
15325
15326    *)
15327      lt_prog_compiler_can_build_shared=no
15328      ;;
15329    esac
15330  fi
15331
15332case $host_os in
15333  # For platforms which do not support PIC, -DPIC is meaningless:
15334  *djgpp*)
15335    lt_prog_compiler_pic=
15336    ;;
15337  *)
15338    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15339    ;;
15340esac
15341
15342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15343$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15344if ${lt_cv_prog_compiler_pic+:} false; then :
15345  $as_echo_n "(cached) " >&6
15346else
15347  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15348fi
15349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15350$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15351lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15352
15353#
15354# Check to make sure the PIC flag actually works.
15355#
15356if test -n "$lt_prog_compiler_pic"; then
15357  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15358$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15359if ${lt_cv_prog_compiler_pic_works+:} false; then :
15360  $as_echo_n "(cached) " >&6
15361else
15362  lt_cv_prog_compiler_pic_works=no
15363   ac_outfile=conftest.$ac_objext
15364   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15365   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15366   # Insert the option either (1) after the last *FLAGS variable, or
15367   # (2) before a word containing "conftest.", or (3) at the end.
15368   # Note that $ac_compile itself does not contain backslashes and begins
15369   # with a dollar sign (not a hyphen), so the echo should work correctly.
15370   # The option is referenced via a variable to avoid confusing sed.
15371   lt_compile=`echo "$ac_compile" | $SED \
15372   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15373   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15374   -e 's:$: $lt_compiler_flag:'`
15375   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15376   (eval "$lt_compile" 2>conftest.err)
15377   ac_status=$?
15378   cat conftest.err >&5
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   if (exit $ac_status) && test -s "$ac_outfile"; then
15381     # The compiler can only warn and ignore the option if not recognized
15382     # So say no if there are warnings other than the usual output.
15383     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15384     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15385     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15386       lt_cv_prog_compiler_pic_works=yes
15387     fi
15388   fi
15389   $RM conftest*
15390
15391fi
15392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15393$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15394
15395if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15396    case $lt_prog_compiler_pic in
15397     "" | " "*) ;;
15398     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15399     esac
15400else
15401    lt_prog_compiler_pic=
15402     lt_prog_compiler_can_build_shared=no
15403fi
15404
15405fi
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417#
15418# Check to make sure the static flag actually works.
15419#
15420wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15422$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15423if ${lt_cv_prog_compiler_static_works+:} false; then :
15424  $as_echo_n "(cached) " >&6
15425else
15426  lt_cv_prog_compiler_static_works=no
15427   save_LDFLAGS="$LDFLAGS"
15428   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15429   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15430   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15431     # The linker can only warn and ignore the option if not recognized
15432     # So say no if there are warnings
15433     if test -s conftest.err; then
15434       # Append any errors to the config.log.
15435       cat conftest.err 1>&5
15436       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15437       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15438       if diff conftest.exp conftest.er2 >/dev/null; then
15439         lt_cv_prog_compiler_static_works=yes
15440       fi
15441     else
15442       lt_cv_prog_compiler_static_works=yes
15443     fi
15444   fi
15445   $RM -r conftest*
15446   LDFLAGS="$save_LDFLAGS"
15447
15448fi
15449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15450$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15451
15452if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15453    :
15454else
15455    lt_prog_compiler_static=
15456fi
15457
15458
15459
15460
15461
15462
15463
15464  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15465$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15466if ${lt_cv_prog_compiler_c_o+:} false; then :
15467  $as_echo_n "(cached) " >&6
15468else
15469  lt_cv_prog_compiler_c_o=no
15470   $RM -r conftest 2>/dev/null
15471   mkdir conftest
15472   cd conftest
15473   mkdir out
15474   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15475
15476   lt_compiler_flag="-o out/conftest2.$ac_objext"
15477   # Insert the option either (1) after the last *FLAGS variable, or
15478   # (2) before a word containing "conftest.", or (3) at the end.
15479   # Note that $ac_compile itself does not contain backslashes and begins
15480   # with a dollar sign (not a hyphen), so the echo should work correctly.
15481   lt_compile=`echo "$ac_compile" | $SED \
15482   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15483   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15484   -e 's:$: $lt_compiler_flag:'`
15485   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15486   (eval "$lt_compile" 2>out/conftest.err)
15487   ac_status=$?
15488   cat out/conftest.err >&5
15489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15491   then
15492     # The compiler can only warn and ignore the option if not recognized
15493     # So say no if there are warnings
15494     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15495     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15496     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15497       lt_cv_prog_compiler_c_o=yes
15498     fi
15499   fi
15500   chmod u+w . 2>&5
15501   $RM conftest*
15502   # SGI C++ compiler will create directory out/ii_files/ for
15503   # template instantiation
15504   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15505   $RM out/* && rmdir out
15506   cd ..
15507   $RM -r conftest
15508   $RM conftest*
15509
15510fi
15511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15512$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15513
15514
15515
15516
15517
15518
15519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15520$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15521if ${lt_cv_prog_compiler_c_o+:} false; then :
15522  $as_echo_n "(cached) " >&6
15523else
15524  lt_cv_prog_compiler_c_o=no
15525   $RM -r conftest 2>/dev/null
15526   mkdir conftest
15527   cd conftest
15528   mkdir out
15529   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15530
15531   lt_compiler_flag="-o out/conftest2.$ac_objext"
15532   # Insert the option either (1) after the last *FLAGS variable, or
15533   # (2) before a word containing "conftest.", or (3) at the end.
15534   # Note that $ac_compile itself does not contain backslashes and begins
15535   # with a dollar sign (not a hyphen), so the echo should work correctly.
15536   lt_compile=`echo "$ac_compile" | $SED \
15537   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15538   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15539   -e 's:$: $lt_compiler_flag:'`
15540   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15541   (eval "$lt_compile" 2>out/conftest.err)
15542   ac_status=$?
15543   cat out/conftest.err >&5
15544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15546   then
15547     # The compiler can only warn and ignore the option if not recognized
15548     # So say no if there are warnings
15549     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15550     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15551     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15552       lt_cv_prog_compiler_c_o=yes
15553     fi
15554   fi
15555   chmod u+w . 2>&5
15556   $RM conftest*
15557   # SGI C++ compiler will create directory out/ii_files/ for
15558   # template instantiation
15559   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15560   $RM out/* && rmdir out
15561   cd ..
15562   $RM -r conftest
15563   $RM conftest*
15564
15565fi
15566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15567$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15568
15569
15570
15571
15572hard_links="nottested"
15573if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15574  # do not overwrite the value of need_locks provided by the user
15575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15576$as_echo_n "checking if we can lock with hard links... " >&6; }
15577  hard_links=yes
15578  $RM conftest*
15579  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15580  touch conftest.a
15581  ln conftest.a conftest.b 2>&5 || hard_links=no
15582  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15584$as_echo "$hard_links" >&6; }
15585  if test "$hard_links" = no; then
15586    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15587$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15588    need_locks=warn
15589  fi
15590else
15591  need_locks=no
15592fi
15593
15594
15595
15596
15597
15598
15599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15600$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15601
15602  runpath_var=
15603  allow_undefined_flag=
15604  always_export_symbols=no
15605  archive_cmds=
15606  archive_expsym_cmds=
15607  compiler_needs_object=no
15608  enable_shared_with_static_runtimes=no
15609  export_dynamic_flag_spec=
15610  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15611  hardcode_automatic=no
15612  hardcode_direct=no
15613  hardcode_direct_absolute=no
15614  hardcode_libdir_flag_spec=
15615  hardcode_libdir_separator=
15616  hardcode_minus_L=no
15617  hardcode_shlibpath_var=unsupported
15618  inherit_rpath=no
15619  link_all_deplibs=unknown
15620  module_cmds=
15621  module_expsym_cmds=
15622  old_archive_from_new_cmds=
15623  old_archive_from_expsyms_cmds=
15624  thread_safe_flag_spec=
15625  whole_archive_flag_spec=
15626  # include_expsyms should be a list of space-separated symbols to be *always*
15627  # included in the symbol list
15628  include_expsyms=
15629  # exclude_expsyms can be an extended regexp of symbols to exclude
15630  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15631  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15632  # as well as any symbol that contains `d'.
15633  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15634  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15635  # platforms (ab)use it in PIC code, but their linkers get confused if
15636  # the symbol is explicitly referenced.  Since portable code cannot
15637  # rely on this symbol name, it's probably fine to never include it in
15638  # preloaded symbol tables.
15639  # Exclude shared library initialization/finalization symbols.
15640  extract_expsyms_cmds=
15641
15642  case $host_os in
15643  cygwin* | mingw* | pw32* | cegcc*)
15644    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15645    # When not using gcc, we currently assume that we are using
15646    # Microsoft Visual C++.
15647    if test "$GCC" != yes; then
15648      with_gnu_ld=no
15649    fi
15650    ;;
15651  interix*)
15652    # we just hope/assume this is gcc and not c89 (= MSVC++)
15653    with_gnu_ld=yes
15654    ;;
15655  openbsd*)
15656    with_gnu_ld=no
15657    ;;
15658  linux* | k*bsd*-gnu | gnu*)
15659    link_all_deplibs=no
15660    ;;
15661  esac
15662
15663  ld_shlibs=yes
15664
15665  # On some targets, GNU ld is compatible enough with the native linker
15666  # that we're better off using the native interface for both.
15667  lt_use_gnu_ld_interface=no
15668  if test "$with_gnu_ld" = yes; then
15669    case $host_os in
15670      aix*)
15671	# The AIX port of GNU ld has always aspired to compatibility
15672	# with the native linker.  However, as the warning in the GNU ld
15673	# block says, versions before 2.19.5* couldn't really create working
15674	# shared libraries, regardless of the interface used.
15675	case `$LD -v 2>&1` in
15676	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15677	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15678	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15679	  *)
15680	    lt_use_gnu_ld_interface=yes
15681	    ;;
15682	esac
15683	;;
15684      *)
15685	lt_use_gnu_ld_interface=yes
15686	;;
15687    esac
15688  fi
15689
15690  if test "$lt_use_gnu_ld_interface" = yes; then
15691    # If archive_cmds runs LD, not CC, wlarc should be empty
15692    wlarc='${wl}'
15693
15694    # Set some defaults for GNU ld with shared library support. These
15695    # are reset later if shared libraries are not supported. Putting them
15696    # here allows them to be overridden if necessary.
15697    runpath_var=LD_RUN_PATH
15698    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15699    export_dynamic_flag_spec='${wl}--export-dynamic'
15700    # ancient GNU ld didn't support --whole-archive et. al.
15701    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15702      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15703    else
15704      whole_archive_flag_spec=
15705    fi
15706    supports_anon_versioning=no
15707    case `$LD -v 2>&1` in
15708      *GNU\ gold*) supports_anon_versioning=yes ;;
15709      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15710      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15711      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15712      *\ 2.11.*) ;; # other 2.11 versions
15713      *) supports_anon_versioning=yes ;;
15714    esac
15715
15716    # See if GNU ld supports shared libraries.
15717    case $host_os in
15718    aix[3-9]*)
15719      # On AIX/PPC, the GNU linker is very broken
15720      if test "$host_cpu" != ia64; then
15721	ld_shlibs=no
15722	cat <<_LT_EOF 1>&2
15723
15724*** Warning: the GNU linker, at least up to release 2.19, is reported
15725*** to be unable to reliably create shared libraries on AIX.
15726*** Therefore, libtool is disabling shared libraries support.  If you
15727*** really care for shared libraries, you may want to install binutils
15728*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15729*** You will then need to restart the configuration process.
15730
15731_LT_EOF
15732      fi
15733      ;;
15734
15735    amigaos*)
15736      case $host_cpu in
15737      powerpc)
15738            # see comment about AmigaOS4 .so support
15739            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15740            archive_expsym_cmds=''
15741        ;;
15742      m68k)
15743            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)'
15744            hardcode_libdir_flag_spec='-L$libdir'
15745            hardcode_minus_L=yes
15746        ;;
15747      esac
15748      ;;
15749
15750    beos*)
15751      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15752	allow_undefined_flag=unsupported
15753	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15754	# support --undefined.  This deserves some investigation.  FIXME
15755	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15756      else
15757	ld_shlibs=no
15758      fi
15759      ;;
15760
15761    cygwin* | mingw* | pw32* | cegcc*)
15762      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15763      # as there is no search path for DLLs.
15764      hardcode_libdir_flag_spec='-L$libdir'
15765      export_dynamic_flag_spec='${wl}--export-all-symbols'
15766      allow_undefined_flag=unsupported
15767      always_export_symbols=no
15768      enable_shared_with_static_runtimes=yes
15769      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'
15770      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15771
15772      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15773        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15774	# If the export-symbols file already is a .def file (1st line
15775	# is EXPORTS), use it as is; otherwise, prepend...
15776	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15777	  cp $export_symbols $output_objdir/$soname.def;
15778	else
15779	  echo EXPORTS > $output_objdir/$soname.def;
15780	  cat $export_symbols >> $output_objdir/$soname.def;
15781	fi~
15782	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15783      else
15784	ld_shlibs=no
15785      fi
15786      ;;
15787
15788    haiku*)
15789      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15790      link_all_deplibs=yes
15791      ;;
15792
15793    interix[3-9]*)
15794      hardcode_direct=no
15795      hardcode_shlibpath_var=no
15796      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15797      export_dynamic_flag_spec='${wl}-E'
15798      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15799      # Instead, shared libraries are loaded at an image base (0x10000000 by
15800      # default) and relocated if they conflict, which is a slow very memory
15801      # consuming and fragmenting process.  To avoid this, we pick a random,
15802      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15803      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15804      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15805      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'
15806      ;;
15807
15808    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15809      tmp_diet=no
15810      if test "$host_os" = linux-dietlibc; then
15811	case $cc_basename in
15812	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15813	esac
15814      fi
15815      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15816	 && test "$tmp_diet" = no
15817      then
15818	tmp_addflag=' $pic_flag'
15819	tmp_sharedflag='-shared'
15820	case $cc_basename,$host_cpu in
15821        pgcc*)				# Portland Group C compiler
15822	  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'
15823	  tmp_addflag=' $pic_flag'
15824	  ;;
15825	pgf77* | pgf90* | pgf95* | pgfortran*)
15826					# Portland Group f77 and f90 compilers
15827	  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'
15828	  tmp_addflag=' $pic_flag -Mnomain' ;;
15829	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15830	  tmp_addflag=' -i_dynamic' ;;
15831	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15832	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15833	ifc* | ifort*)			# Intel Fortran compiler
15834	  tmp_addflag=' -nofor_main' ;;
15835	lf95*)				# Lahey Fortran 8.1
15836	  whole_archive_flag_spec=
15837	  tmp_sharedflag='--shared' ;;
15838	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15839	  tmp_sharedflag='-qmkshrobj'
15840	  tmp_addflag= ;;
15841	nvcc*)	# Cuda Compiler Driver 2.2
15842	  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'
15843	  compiler_needs_object=yes
15844	  ;;
15845	esac
15846	case `$CC -V 2>&1 | sed 5q` in
15847	*Sun\ C*)			# Sun C 5.9
15848	  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'
15849	  compiler_needs_object=yes
15850	  tmp_sharedflag='-G' ;;
15851	*Sun\ F*)			# Sun Fortran 8.3
15852	  tmp_sharedflag='-G' ;;
15853	esac
15854	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15855
15856        if test "x$supports_anon_versioning" = xyes; then
15857          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15858	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15859	    echo "local: *; };" >> $output_objdir/$libname.ver~
15860	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15861        fi
15862
15863	case $cc_basename in
15864	xlf* | bgf* | bgxlf* | mpixlf*)
15865	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15866	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15867	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15868	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15869	  if test "x$supports_anon_versioning" = xyes; then
15870	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15871	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15872	      echo "local: *; };" >> $output_objdir/$libname.ver~
15873	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15874	  fi
15875	  ;;
15876	esac
15877      else
15878        ld_shlibs=no
15879      fi
15880      ;;
15881
15882    netbsd* | netbsdelf*-gnu)
15883      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15884	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15885	wlarc=
15886      else
15887	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15888	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15889      fi
15890      ;;
15891
15892    solaris*)
15893      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15894	ld_shlibs=no
15895	cat <<_LT_EOF 1>&2
15896
15897*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15898*** create shared libraries on Solaris systems.  Therefore, libtool
15899*** is disabling shared libraries support.  We urge you to upgrade GNU
15900*** binutils to release 2.9.1 or newer.  Another option is to modify
15901*** your PATH or compiler configuration so that the native linker is
15902*** used, and then restart.
15903
15904_LT_EOF
15905      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15906	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15907	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15908      else
15909	ld_shlibs=no
15910      fi
15911      ;;
15912
15913    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15914      case `$LD -v 2>&1` in
15915        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15916	ld_shlibs=no
15917	cat <<_LT_EOF 1>&2
15918
15919*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15920*** reliably create shared libraries on SCO systems.  Therefore, libtool
15921*** is disabling shared libraries support.  We urge you to upgrade GNU
15922*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15923*** your PATH or compiler configuration so that the native linker is
15924*** used, and then restart.
15925
15926_LT_EOF
15927	;;
15928	*)
15929	  # For security reasons, it is highly recommended that you always
15930	  # use absolute paths for naming shared libraries, and exclude the
15931	  # DT_RUNPATH tag from executables and libraries.  But doing so
15932	  # requires that you compile everything twice, which is a pain.
15933	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15934	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15935	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15936	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15937	  else
15938	    ld_shlibs=no
15939	  fi
15940	;;
15941      esac
15942      ;;
15943
15944    sunos4*)
15945      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15946      wlarc=
15947      hardcode_direct=yes
15948      hardcode_shlibpath_var=no
15949      ;;
15950
15951    *)
15952      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15953	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15954	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15955      else
15956	ld_shlibs=no
15957      fi
15958      ;;
15959    esac
15960
15961    if test "$ld_shlibs" = no; then
15962      runpath_var=
15963      hardcode_libdir_flag_spec=
15964      export_dynamic_flag_spec=
15965      whole_archive_flag_spec=
15966    fi
15967  else
15968    # PORTME fill in a description of your system's linker (not GNU ld)
15969    case $host_os in
15970    aix3*)
15971      allow_undefined_flag=unsupported
15972      always_export_symbols=yes
15973      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'
15974      # Note: this linker hardcodes the directories in LIBPATH if there
15975      # are no directories specified by -L.
15976      hardcode_minus_L=yes
15977      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15978	# Neither direct hardcoding nor static linking is supported with a
15979	# broken collect2.
15980	hardcode_direct=unsupported
15981      fi
15982      ;;
15983
15984    aix[4-9]*)
15985      if test "$host_cpu" = ia64; then
15986	# On IA64, the linker does run time linking by default, so we don't
15987	# have to do anything special.
15988	aix_use_runtimelinking=no
15989	exp_sym_flag='-Bexport'
15990	no_entry_flag=""
15991      else
15992	# If we're using GNU nm, then we don't want the "-C" option.
15993	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15994	# Also, AIX nm treats weak defined symbols like other global
15995	# defined symbols, whereas GNU nm marks them as "W".
15996	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15997	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15998	else
15999	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16000	fi
16001	aix_use_runtimelinking=no
16002
16003	# Test if we are trying to use run time linking or normal
16004	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16005	# need to do runtime linking.
16006	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16007	  for ld_flag in $LDFLAGS; do
16008	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16009	    aix_use_runtimelinking=yes
16010	    break
16011	  fi
16012	  done
16013	  ;;
16014	esac
16015
16016	exp_sym_flag='-bexport'
16017	no_entry_flag='-bnoentry'
16018      fi
16019
16020      # When large executables or shared objects are built, AIX ld can
16021      # have problems creating the table of contents.  If linking a library
16022      # or program results in "error TOC overflow" add -mminimal-toc to
16023      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16024      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16025
16026      archive_cmds=''
16027      hardcode_direct=yes
16028      hardcode_direct_absolute=yes
16029      hardcode_libdir_separator=':'
16030      link_all_deplibs=yes
16031      file_list_spec='${wl}-f,'
16032
16033      if test "$GCC" = yes; then
16034	case $host_os in aix4.[012]|aix4.[012].*)
16035	# We only want to do this on AIX 4.2 and lower, the check
16036	# below for broken collect2 doesn't work under 4.3+
16037	  collect2name=`${CC} -print-prog-name=collect2`
16038	  if test -f "$collect2name" &&
16039	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16040	  then
16041	  # We have reworked collect2
16042	  :
16043	  else
16044	  # We have old collect2
16045	  hardcode_direct=unsupported
16046	  # It fails to find uninstalled libraries when the uninstalled
16047	  # path is not listed in the libpath.  Setting hardcode_minus_L
16048	  # to unsupported forces relinking
16049	  hardcode_minus_L=yes
16050	  hardcode_libdir_flag_spec='-L$libdir'
16051	  hardcode_libdir_separator=
16052	  fi
16053	  ;;
16054	esac
16055	shared_flag='-shared'
16056	if test "$aix_use_runtimelinking" = yes; then
16057	  shared_flag="$shared_flag "'${wl}-G'
16058	fi
16059	link_all_deplibs=no
16060      else
16061	# not using gcc
16062	if test "$host_cpu" = ia64; then
16063	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16064	# chokes on -Wl,-G. The following line is correct:
16065	  shared_flag='-G'
16066	else
16067	  if test "$aix_use_runtimelinking" = yes; then
16068	    shared_flag='${wl}-G'
16069	  else
16070	    shared_flag='${wl}-bM:SRE'
16071	  fi
16072	fi
16073      fi
16074
16075      export_dynamic_flag_spec='${wl}-bexpall'
16076      # It seems that -bexpall does not export symbols beginning with
16077      # underscore (_), so it is better to generate a list of symbols to export.
16078      always_export_symbols=yes
16079      if test "$aix_use_runtimelinking" = yes; then
16080	# Warning - without using the other runtime loading flags (-brtl),
16081	# -berok will link without error, but may produce a broken library.
16082	allow_undefined_flag='-berok'
16083        # Determine the default libpath from the value encoded in an
16084        # empty executable.
16085        if test "${lt_cv_aix_libpath+set}" = set; then
16086  aix_libpath=$lt_cv_aix_libpath
16087else
16088  if ${lt_cv_aix_libpath_+:} false; then :
16089  $as_echo_n "(cached) " >&6
16090else
16091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16092/* end confdefs.h.  */
16093
16094int
16095main ()
16096{
16097
16098  ;
16099  return 0;
16100}
16101_ACEOF
16102if ac_fn_c_try_link "$LINENO"; then :
16103
16104  lt_aix_libpath_sed='
16105      /Import File Strings/,/^$/ {
16106	  /^0/ {
16107	      s/^0  *\([^ ]*\) *$/\1/
16108	      p
16109	  }
16110      }'
16111  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16112  # Check for a 64-bit object if we didn't find anything.
16113  if test -z "$lt_cv_aix_libpath_"; then
16114    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16115  fi
16116fi
16117rm -f core conftest.err conftest.$ac_objext \
16118    conftest$ac_exeext conftest.$ac_ext
16119  if test -z "$lt_cv_aix_libpath_"; then
16120    lt_cv_aix_libpath_="/usr/lib:/lib"
16121  fi
16122
16123fi
16124
16125  aix_libpath=$lt_cv_aix_libpath_
16126fi
16127
16128        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16129        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16130      else
16131	if test "$host_cpu" = ia64; then
16132	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16133	  allow_undefined_flag="-z nodefs"
16134	  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"
16135	else
16136	 # Determine the default libpath from the value encoded in an
16137	 # empty executable.
16138	 if test "${lt_cv_aix_libpath+set}" = set; then
16139  aix_libpath=$lt_cv_aix_libpath
16140else
16141  if ${lt_cv_aix_libpath_+:} false; then :
16142  $as_echo_n "(cached) " >&6
16143else
16144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16145/* end confdefs.h.  */
16146
16147int
16148main ()
16149{
16150
16151  ;
16152  return 0;
16153}
16154_ACEOF
16155if ac_fn_c_try_link "$LINENO"; then :
16156
16157  lt_aix_libpath_sed='
16158      /Import File Strings/,/^$/ {
16159	  /^0/ {
16160	      s/^0  *\([^ ]*\) *$/\1/
16161	      p
16162	  }
16163      }'
16164  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16165  # Check for a 64-bit object if we didn't find anything.
16166  if test -z "$lt_cv_aix_libpath_"; then
16167    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16168  fi
16169fi
16170rm -f core conftest.err conftest.$ac_objext \
16171    conftest$ac_exeext conftest.$ac_ext
16172  if test -z "$lt_cv_aix_libpath_"; then
16173    lt_cv_aix_libpath_="/usr/lib:/lib"
16174  fi
16175
16176fi
16177
16178  aix_libpath=$lt_cv_aix_libpath_
16179fi
16180
16181	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16182	  # Warning - without using the other run time loading flags,
16183	  # -berok will link without error, but may produce a broken library.
16184	  no_undefined_flag=' ${wl}-bernotok'
16185	  allow_undefined_flag=' ${wl}-berok'
16186	  if test "$with_gnu_ld" = yes; then
16187	    # We only use this code for GNU lds that support --whole-archive.
16188	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16189	  else
16190	    # Exported symbols can be pulled into shared objects from archives
16191	    whole_archive_flag_spec='$convenience'
16192	  fi
16193	  archive_cmds_need_lc=yes
16194	  # This is similar to how AIX traditionally builds its shared libraries.
16195	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16196	fi
16197      fi
16198      ;;
16199
16200    amigaos*)
16201      case $host_cpu in
16202      powerpc)
16203            # see comment about AmigaOS4 .so support
16204            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16205            archive_expsym_cmds=''
16206        ;;
16207      m68k)
16208            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)'
16209            hardcode_libdir_flag_spec='-L$libdir'
16210            hardcode_minus_L=yes
16211        ;;
16212      esac
16213      ;;
16214
16215    bsdi[45]*)
16216      export_dynamic_flag_spec=-rdynamic
16217      ;;
16218
16219    cygwin* | mingw* | pw32* | cegcc*)
16220      # When not using gcc, we currently assume that we are using
16221      # Microsoft Visual C++.
16222      # hardcode_libdir_flag_spec is actually meaningless, as there is
16223      # no search path for DLLs.
16224      case $cc_basename in
16225      cl*)
16226	# Native MSVC
16227	hardcode_libdir_flag_spec=' '
16228	allow_undefined_flag=unsupported
16229	always_export_symbols=yes
16230	file_list_spec='@'
16231	# Tell ltmain to make .lib files, not .a files.
16232	libext=lib
16233	# Tell ltmain to make .dll files, not .so files.
16234	shrext_cmds=".dll"
16235	# FIXME: Setting linknames here is a bad hack.
16236	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16237	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16238	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16239	  else
16240	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16241	  fi~
16242	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16243	  linknames='
16244	# The linker will not automatically build a static lib if we build a DLL.
16245	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16246	enable_shared_with_static_runtimes=yes
16247	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16248	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16249	# Don't use ranlib
16250	old_postinstall_cmds='chmod 644 $oldlib'
16251	postlink_cmds='lt_outputfile="@OUTPUT@"~
16252	  lt_tool_outputfile="@TOOL_OUTPUT@"~
16253	  case $lt_outputfile in
16254	    *.exe|*.EXE) ;;
16255	    *)
16256	      lt_outputfile="$lt_outputfile.exe"
16257	      lt_tool_outputfile="$lt_tool_outputfile.exe"
16258	      ;;
16259	  esac~
16260	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16261	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16262	    $RM "$lt_outputfile.manifest";
16263	  fi'
16264	;;
16265      *)
16266	# Assume MSVC wrapper
16267	hardcode_libdir_flag_spec=' '
16268	allow_undefined_flag=unsupported
16269	# Tell ltmain to make .lib files, not .a files.
16270	libext=lib
16271	# Tell ltmain to make .dll files, not .so files.
16272	shrext_cmds=".dll"
16273	# FIXME: Setting linknames here is a bad hack.
16274	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16275	# The linker will automatically build a .lib file if we build a DLL.
16276	old_archive_from_new_cmds='true'
16277	# FIXME: Should let the user specify the lib program.
16278	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16279	enable_shared_with_static_runtimes=yes
16280	;;
16281      esac
16282      ;;
16283
16284    darwin* | rhapsody*)
16285
16286
16287  archive_cmds_need_lc=no
16288  hardcode_direct=no
16289  hardcode_automatic=yes
16290  hardcode_shlibpath_var=unsupported
16291  if test "$lt_cv_ld_force_load" = "yes"; then
16292    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\"`'
16293
16294  else
16295    whole_archive_flag_spec=''
16296  fi
16297  link_all_deplibs=yes
16298  allow_undefined_flag="$_lt_dar_allow_undefined"
16299  case $cc_basename in
16300     ifort*) _lt_dar_can_shared=yes ;;
16301     *) _lt_dar_can_shared=$GCC ;;
16302  esac
16303  if test "$_lt_dar_can_shared" = "yes"; then
16304    output_verbose_link_cmd=func_echo_all
16305    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16306    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16307    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}"
16308    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}"
16309
16310  else
16311  ld_shlibs=no
16312  fi
16313
16314      ;;
16315
16316    dgux*)
16317      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16318      hardcode_libdir_flag_spec='-L$libdir'
16319      hardcode_shlibpath_var=no
16320      ;;
16321
16322    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16323    # support.  Future versions do this automatically, but an explicit c++rt0.o
16324    # does not break anything, and helps significantly (at the cost of a little
16325    # extra space).
16326    freebsd2.2*)
16327      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16328      hardcode_libdir_flag_spec='-R$libdir'
16329      hardcode_direct=yes
16330      hardcode_shlibpath_var=no
16331      ;;
16332
16333    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16334    freebsd2.*)
16335      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16336      hardcode_direct=yes
16337      hardcode_minus_L=yes
16338      hardcode_shlibpath_var=no
16339      ;;
16340
16341    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16342    freebsd* | dragonfly*)
16343      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16344      hardcode_libdir_flag_spec='-R$libdir'
16345      hardcode_direct=yes
16346      hardcode_shlibpath_var=no
16347      ;;
16348
16349    hpux9*)
16350      if test "$GCC" = yes; then
16351	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16352      else
16353	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16354      fi
16355      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16356      hardcode_libdir_separator=:
16357      hardcode_direct=yes
16358
16359      # hardcode_minus_L: Not really in the search PATH,
16360      # but as the default location of the library.
16361      hardcode_minus_L=yes
16362      export_dynamic_flag_spec='${wl}-E'
16363      ;;
16364
16365    hpux10*)
16366      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16367	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16368      else
16369	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16370      fi
16371      if test "$with_gnu_ld" = no; then
16372	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16373	hardcode_libdir_separator=:
16374	hardcode_direct=yes
16375	hardcode_direct_absolute=yes
16376	export_dynamic_flag_spec='${wl}-E'
16377	# hardcode_minus_L: Not really in the search PATH,
16378	# but as the default location of the library.
16379	hardcode_minus_L=yes
16380      fi
16381      ;;
16382
16383    hpux11*)
16384      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16385	case $host_cpu in
16386	hppa*64*)
16387	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16388	  ;;
16389	ia64*)
16390	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16391	  ;;
16392	*)
16393	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16394	  ;;
16395	esac
16396      else
16397	case $host_cpu in
16398	hppa*64*)
16399	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16400	  ;;
16401	ia64*)
16402	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16403	  ;;
16404	*)
16405
16406	  # Older versions of the 11.00 compiler do not understand -b yet
16407	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16408	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16409$as_echo_n "checking if $CC understands -b... " >&6; }
16410if ${lt_cv_prog_compiler__b+:} false; then :
16411  $as_echo_n "(cached) " >&6
16412else
16413  lt_cv_prog_compiler__b=no
16414   save_LDFLAGS="$LDFLAGS"
16415   LDFLAGS="$LDFLAGS -b"
16416   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16417   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16418     # The linker can only warn and ignore the option if not recognized
16419     # So say no if there are warnings
16420     if test -s conftest.err; then
16421       # Append any errors to the config.log.
16422       cat conftest.err 1>&5
16423       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16424       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16425       if diff conftest.exp conftest.er2 >/dev/null; then
16426         lt_cv_prog_compiler__b=yes
16427       fi
16428     else
16429       lt_cv_prog_compiler__b=yes
16430     fi
16431   fi
16432   $RM -r conftest*
16433   LDFLAGS="$save_LDFLAGS"
16434
16435fi
16436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16437$as_echo "$lt_cv_prog_compiler__b" >&6; }
16438
16439if test x"$lt_cv_prog_compiler__b" = xyes; then
16440    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16441else
16442    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16443fi
16444
16445	  ;;
16446	esac
16447      fi
16448      if test "$with_gnu_ld" = no; then
16449	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16450	hardcode_libdir_separator=:
16451
16452	case $host_cpu in
16453	hppa*64*|ia64*)
16454	  hardcode_direct=no
16455	  hardcode_shlibpath_var=no
16456	  ;;
16457	*)
16458	  hardcode_direct=yes
16459	  hardcode_direct_absolute=yes
16460	  export_dynamic_flag_spec='${wl}-E'
16461
16462	  # hardcode_minus_L: Not really in the search PATH,
16463	  # but as the default location of the library.
16464	  hardcode_minus_L=yes
16465	  ;;
16466	esac
16467      fi
16468      ;;
16469
16470    irix5* | irix6* | nonstopux*)
16471      if test "$GCC" = yes; then
16472	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'
16473	# Try to use the -exported_symbol ld option, if it does not
16474	# work, assume that -exports_file does not work either and
16475	# implicitly export all symbols.
16476	# This should be the same for all languages, so no per-tag cache variable.
16477	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16478$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16479if ${lt_cv_irix_exported_symbol+:} false; then :
16480  $as_echo_n "(cached) " >&6
16481else
16482  save_LDFLAGS="$LDFLAGS"
16483	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16484	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16485/* end confdefs.h.  */
16486int foo (void) { return 0; }
16487_ACEOF
16488if ac_fn_c_try_link "$LINENO"; then :
16489  lt_cv_irix_exported_symbol=yes
16490else
16491  lt_cv_irix_exported_symbol=no
16492fi
16493rm -f core conftest.err conftest.$ac_objext \
16494    conftest$ac_exeext conftest.$ac_ext
16495           LDFLAGS="$save_LDFLAGS"
16496fi
16497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16498$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16499	if test "$lt_cv_irix_exported_symbol" = yes; then
16500          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'
16501	fi
16502      else
16503	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'
16504	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'
16505      fi
16506      archive_cmds_need_lc='no'
16507      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16508      hardcode_libdir_separator=:
16509      inherit_rpath=yes
16510      link_all_deplibs=yes
16511      ;;
16512
16513    netbsd* | netbsdelf*-gnu)
16514      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16515	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16516      else
16517	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16518      fi
16519      hardcode_libdir_flag_spec='-R$libdir'
16520      hardcode_direct=yes
16521      hardcode_shlibpath_var=no
16522      ;;
16523
16524    newsos6)
16525      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16526      hardcode_direct=yes
16527      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16528      hardcode_libdir_separator=:
16529      hardcode_shlibpath_var=no
16530      ;;
16531
16532    *nto* | *qnx*)
16533      ;;
16534
16535    openbsd*)
16536      if test -f /usr/libexec/ld.so; then
16537	hardcode_direct=yes
16538	hardcode_shlibpath_var=no
16539	hardcode_direct_absolute=yes
16540	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16541	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16542	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16543	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16544	  export_dynamic_flag_spec='${wl}-E'
16545	else
16546	  case $host_os in
16547	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16548	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16549	     hardcode_libdir_flag_spec='-R$libdir'
16550	     ;;
16551	   *)
16552	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16553	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16554	     ;;
16555	  esac
16556	fi
16557      else
16558	ld_shlibs=no
16559      fi
16560      ;;
16561
16562    os2*)
16563      hardcode_libdir_flag_spec='-L$libdir'
16564      hardcode_minus_L=yes
16565      allow_undefined_flag=unsupported
16566      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16567      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16568      ;;
16569
16570    osf3*)
16571      if test "$GCC" = yes; then
16572	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16573	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'
16574      else
16575	allow_undefined_flag=' -expect_unresolved \*'
16576	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'
16577      fi
16578      archive_cmds_need_lc='no'
16579      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16580      hardcode_libdir_separator=:
16581      ;;
16582
16583    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16584      if test "$GCC" = yes; then
16585	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16586	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'
16587	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16588      else
16589	allow_undefined_flag=' -expect_unresolved \*'
16590	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'
16591	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~
16592	$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'
16593
16594	# Both c and cxx compiler support -rpath directly
16595	hardcode_libdir_flag_spec='-rpath $libdir'
16596      fi
16597      archive_cmds_need_lc='no'
16598      hardcode_libdir_separator=:
16599      ;;
16600
16601    solaris*)
16602      no_undefined_flag=' -z defs'
16603      if test "$GCC" = yes; then
16604	wlarc='${wl}'
16605	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16606	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16607	  $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'
16608      else
16609	case `$CC -V 2>&1` in
16610	*"Compilers 5.0"*)
16611	  wlarc=''
16612	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16613	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16614	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16615	  ;;
16616	*)
16617	  wlarc='${wl}'
16618	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16619	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16620	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16621	  ;;
16622	esac
16623      fi
16624      hardcode_libdir_flag_spec='-R$libdir'
16625      hardcode_shlibpath_var=no
16626      case $host_os in
16627      solaris2.[0-5] | solaris2.[0-5].*) ;;
16628      *)
16629	# The compiler driver will combine and reorder linker options,
16630	# but understands `-z linker_flag'.  GCC discards it without `$wl',
16631	# but is careful enough not to reorder.
16632	# Supported since Solaris 2.6 (maybe 2.5.1?)
16633	if test "$GCC" = yes; then
16634	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16635	else
16636	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16637	fi
16638	;;
16639      esac
16640      link_all_deplibs=yes
16641      ;;
16642
16643    sunos4*)
16644      if test "x$host_vendor" = xsequent; then
16645	# Use $CC to link under sequent, because it throws in some extra .o
16646	# files that make .init and .fini sections work.
16647	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16648      else
16649	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16650      fi
16651      hardcode_libdir_flag_spec='-L$libdir'
16652      hardcode_direct=yes
16653      hardcode_minus_L=yes
16654      hardcode_shlibpath_var=no
16655      ;;
16656
16657    sysv4)
16658      case $host_vendor in
16659	sni)
16660	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16661	  hardcode_direct=yes # is this really true???
16662	;;
16663	siemens)
16664	  ## LD is ld it makes a PLAMLIB
16665	  ## CC just makes a GrossModule.
16666	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16667	  reload_cmds='$CC -r -o $output$reload_objs'
16668	  hardcode_direct=no
16669        ;;
16670	motorola)
16671	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16672	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16673	;;
16674      esac
16675      runpath_var='LD_RUN_PATH'
16676      hardcode_shlibpath_var=no
16677      ;;
16678
16679    sysv4.3*)
16680      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16681      hardcode_shlibpath_var=no
16682      export_dynamic_flag_spec='-Bexport'
16683      ;;
16684
16685    sysv4*MP*)
16686      if test -d /usr/nec; then
16687	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16688	hardcode_shlibpath_var=no
16689	runpath_var=LD_RUN_PATH
16690	hardcode_runpath_var=yes
16691	ld_shlibs=yes
16692      fi
16693      ;;
16694
16695    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16696      no_undefined_flag='${wl}-z,text'
16697      archive_cmds_need_lc=no
16698      hardcode_shlibpath_var=no
16699      runpath_var='LD_RUN_PATH'
16700
16701      if test "$GCC" = yes; then
16702	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16703	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16704      else
16705	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16706	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16707      fi
16708      ;;
16709
16710    sysv5* | sco3.2v5* | sco5v6*)
16711      # Note: We can NOT use -z defs as we might desire, because we do not
16712      # link with -lc, and that would cause any symbols used from libc to
16713      # always be unresolved, which means just about no library would
16714      # ever link correctly.  If we're not using GNU ld we use -z text
16715      # though, which does catch some bad symbols but isn't as heavy-handed
16716      # as -z defs.
16717      no_undefined_flag='${wl}-z,text'
16718      allow_undefined_flag='${wl}-z,nodefs'
16719      archive_cmds_need_lc=no
16720      hardcode_shlibpath_var=no
16721      hardcode_libdir_flag_spec='${wl}-R,$libdir'
16722      hardcode_libdir_separator=':'
16723      link_all_deplibs=yes
16724      export_dynamic_flag_spec='${wl}-Bexport'
16725      runpath_var='LD_RUN_PATH'
16726
16727      if test "$GCC" = yes; then
16728	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16729	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16730      else
16731	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16732	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16733      fi
16734      ;;
16735
16736    uts4*)
16737      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16738      hardcode_libdir_flag_spec='-L$libdir'
16739      hardcode_shlibpath_var=no
16740      ;;
16741
16742    *)
16743      ld_shlibs=no
16744      ;;
16745    esac
16746
16747    if test x$host_vendor = xsni; then
16748      case $host in
16749      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16750	export_dynamic_flag_spec='${wl}-Blargedynsym'
16751	;;
16752      esac
16753    fi
16754  fi
16755
16756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16757$as_echo "$ld_shlibs" >&6; }
16758test "$ld_shlibs" = no && can_build_shared=no
16759
16760with_gnu_ld=$with_gnu_ld
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776#
16777# Do we need to explicitly link libc?
16778#
16779case "x$archive_cmds_need_lc" in
16780x|xyes)
16781  # Assume -lc should be added
16782  archive_cmds_need_lc=yes
16783
16784  if test "$enable_shared" = yes && test "$GCC" = yes; then
16785    case $archive_cmds in
16786    *'~'*)
16787      # FIXME: we may have to deal with multi-command sequences.
16788      ;;
16789    '$CC '*)
16790      # Test whether the compiler implicitly links with -lc since on some
16791      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16792      # to ld, don't add -lc before -lgcc.
16793      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16794$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16795if ${lt_cv_archive_cmds_need_lc+:} false; then :
16796  $as_echo_n "(cached) " >&6
16797else
16798  $RM conftest*
16799	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16800
16801	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16802  (eval $ac_compile) 2>&5
16803  ac_status=$?
16804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16805  test $ac_status = 0; } 2>conftest.err; then
16806	  soname=conftest
16807	  lib=conftest
16808	  libobjs=conftest.$ac_objext
16809	  deplibs=
16810	  wl=$lt_prog_compiler_wl
16811	  pic_flag=$lt_prog_compiler_pic
16812	  compiler_flags=-v
16813	  linker_flags=-v
16814	  verstring=
16815	  output_objdir=.
16816	  libname=conftest
16817	  lt_save_allow_undefined_flag=$allow_undefined_flag
16818	  allow_undefined_flag=
16819	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16820  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16821  ac_status=$?
16822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16823  test $ac_status = 0; }
16824	  then
16825	    lt_cv_archive_cmds_need_lc=no
16826	  else
16827	    lt_cv_archive_cmds_need_lc=yes
16828	  fi
16829	  allow_undefined_flag=$lt_save_allow_undefined_flag
16830	else
16831	  cat conftest.err 1>&5
16832	fi
16833	$RM conftest*
16834
16835fi
16836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16837$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16838      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16839      ;;
16840    esac
16841  fi
16842  ;;
16843esac
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16997$as_echo_n "checking dynamic linker characteristics... " >&6; }
16998
16999if test "$GCC" = yes; then
17000  case $host_os in
17001    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17002    *) lt_awk_arg="/^libraries:/" ;;
17003  esac
17004  case $host_os in
17005    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17006    *) lt_sed_strip_eq="s,=/,/,g" ;;
17007  esac
17008  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17009  case $lt_search_path_spec in
17010  *\;*)
17011    # if the path contains ";" then we assume it to be the separator
17012    # otherwise default to the standard path separator (i.e. ":") - it is
17013    # assumed that no part of a normal pathname contains ";" but that should
17014    # okay in the real world where ";" in dirpaths is itself problematic.
17015    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17016    ;;
17017  *)
17018    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17019    ;;
17020  esac
17021  # Ok, now we have the path, separated by spaces, we can step through it
17022  # and add multilib dir if necessary.
17023  lt_tmp_lt_search_path_spec=
17024  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17025  for lt_sys_path in $lt_search_path_spec; do
17026    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17027      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17028    else
17029      test -d "$lt_sys_path" && \
17030	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17031    fi
17032  done
17033  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17034BEGIN {RS=" "; FS="/|\n";} {
17035  lt_foo="";
17036  lt_count=0;
17037  for (lt_i = NF; lt_i > 0; lt_i--) {
17038    if ($lt_i != "" && $lt_i != ".") {
17039      if ($lt_i == "..") {
17040        lt_count++;
17041      } else {
17042        if (lt_count == 0) {
17043          lt_foo="/" $lt_i lt_foo;
17044        } else {
17045          lt_count--;
17046        }
17047      }
17048    }
17049  }
17050  if (lt_foo != "") { lt_freq[lt_foo]++; }
17051  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17052}'`
17053  # AWK program above erroneously prepends '/' to C:/dos/paths
17054  # for these hosts.
17055  case $host_os in
17056    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17057      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17058  esac
17059  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17060else
17061  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17062fi
17063library_names_spec=
17064libname_spec='lib$name'
17065soname_spec=
17066shrext_cmds=".so"
17067postinstall_cmds=
17068postuninstall_cmds=
17069finish_cmds=
17070finish_eval=
17071shlibpath_var=
17072shlibpath_overrides_runpath=unknown
17073version_type=none
17074dynamic_linker="$host_os ld.so"
17075sys_lib_dlsearch_path_spec="/lib /usr/lib"
17076need_lib_prefix=unknown
17077hardcode_into_libs=no
17078
17079# when you set need_version to no, make sure it does not cause -set_version
17080# flags to be left without arguments
17081need_version=unknown
17082
17083case $host_os in
17084aix3*)
17085  version_type=linux # correct to gnu/linux during the next big refactor
17086  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17087  shlibpath_var=LIBPATH
17088
17089  # AIX 3 has no versioning support, so we append a major version to the name.
17090  soname_spec='${libname}${release}${shared_ext}$major'
17091  ;;
17092
17093aix[4-9]*)
17094  version_type=linux # correct to gnu/linux during the next big refactor
17095  need_lib_prefix=no
17096  need_version=no
17097  hardcode_into_libs=yes
17098  if test "$host_cpu" = ia64; then
17099    # AIX 5 supports IA64
17100    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17101    shlibpath_var=LD_LIBRARY_PATH
17102  else
17103    # With GCC up to 2.95.x, collect2 would create an import file
17104    # for dependence libraries.  The import file would start with
17105    # the line `#! .'.  This would cause the generated library to
17106    # depend on `.', always an invalid library.  This was fixed in
17107    # development snapshots of GCC prior to 3.0.
17108    case $host_os in
17109      aix4 | aix4.[01] | aix4.[01].*)
17110      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17111	   echo ' yes '
17112	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17113	:
17114      else
17115	can_build_shared=no
17116      fi
17117      ;;
17118    esac
17119    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17120    # soname into executable. Probably we can add versioning support to
17121    # collect2, so additional links can be useful in future.
17122    if test "$aix_use_runtimelinking" = yes; then
17123      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17124      # instead of lib<name>.a to let people know that these are not
17125      # typical AIX shared libraries.
17126      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17127    else
17128      # We preserve .a as extension for shared libraries through AIX4.2
17129      # and later when we are not doing run time linking.
17130      library_names_spec='${libname}${release}.a $libname.a'
17131      soname_spec='${libname}${release}${shared_ext}$major'
17132    fi
17133    shlibpath_var=LIBPATH
17134  fi
17135  ;;
17136
17137amigaos*)
17138  case $host_cpu in
17139  powerpc)
17140    # Since July 2007 AmigaOS4 officially supports .so libraries.
17141    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17142    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17143    ;;
17144  m68k)
17145    library_names_spec='$libname.ixlibrary $libname.a'
17146    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17147    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17148    ;;
17149  esac
17150  ;;
17151
17152beos*)
17153  library_names_spec='${libname}${shared_ext}'
17154  dynamic_linker="$host_os ld.so"
17155  shlibpath_var=LIBRARY_PATH
17156  ;;
17157
17158bsdi[45]*)
17159  version_type=linux # correct to gnu/linux during the next big refactor
17160  need_version=no
17161  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17162  soname_spec='${libname}${release}${shared_ext}$major'
17163  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17164  shlibpath_var=LD_LIBRARY_PATH
17165  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17166  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17167  # the default ld.so.conf also contains /usr/contrib/lib and
17168  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17169  # libtool to hard-code these into programs
17170  ;;
17171
17172cygwin* | mingw* | pw32* | cegcc*)
17173  version_type=windows
17174  shrext_cmds=".dll"
17175  need_version=no
17176  need_lib_prefix=no
17177
17178  case $GCC,$cc_basename in
17179  yes,*)
17180    # gcc
17181    library_names_spec='$libname.dll.a'
17182    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17183    postinstall_cmds='base_file=`basename \${file}`~
17184      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17185      dldir=$destdir/`dirname \$dlpath`~
17186      test -d \$dldir || mkdir -p \$dldir~
17187      $install_prog $dir/$dlname \$dldir/$dlname~
17188      chmod a+x \$dldir/$dlname~
17189      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17190        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17191      fi'
17192    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17193      dlpath=$dir/\$dldll~
17194       $RM \$dlpath'
17195    shlibpath_overrides_runpath=yes
17196
17197    case $host_os in
17198    cygwin*)
17199      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17200      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17201
17202      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17203      ;;
17204    mingw* | cegcc*)
17205      # MinGW DLLs use traditional 'lib' prefix
17206      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17207      ;;
17208    pw32*)
17209      # pw32 DLLs use 'pw' prefix rather than 'lib'
17210      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17211      ;;
17212    esac
17213    dynamic_linker='Win32 ld.exe'
17214    ;;
17215
17216  *,cl*)
17217    # Native MSVC
17218    libname_spec='$name'
17219    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17220    library_names_spec='${libname}.dll.lib'
17221
17222    case $build_os in
17223    mingw*)
17224      sys_lib_search_path_spec=
17225      lt_save_ifs=$IFS
17226      IFS=';'
17227      for lt_path in $LIB
17228      do
17229        IFS=$lt_save_ifs
17230        # Let DOS variable expansion print the short 8.3 style file name.
17231        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17232        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17233      done
17234      IFS=$lt_save_ifs
17235      # Convert to MSYS style.
17236      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17237      ;;
17238    cygwin*)
17239      # Convert to unix form, then to dos form, then back to unix form
17240      # but this time dos style (no spaces!) so that the unix form looks
17241      # like /cygdrive/c/PROGRA~1:/cygdr...
17242      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17243      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17244      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17245      ;;
17246    *)
17247      sys_lib_search_path_spec="$LIB"
17248      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17249        # It is most probably a Windows format PATH.
17250        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17251      else
17252        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17253      fi
17254      # FIXME: find the short name or the path components, as spaces are
17255      # common. (e.g. "Program Files" -> "PROGRA~1")
17256      ;;
17257    esac
17258
17259    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17260    postinstall_cmds='base_file=`basename \${file}`~
17261      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17262      dldir=$destdir/`dirname \$dlpath`~
17263      test -d \$dldir || mkdir -p \$dldir~
17264      $install_prog $dir/$dlname \$dldir/$dlname'
17265    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17266      dlpath=$dir/\$dldll~
17267       $RM \$dlpath'
17268    shlibpath_overrides_runpath=yes
17269    dynamic_linker='Win32 link.exe'
17270    ;;
17271
17272  *)
17273    # Assume MSVC wrapper
17274    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17275    dynamic_linker='Win32 ld.exe'
17276    ;;
17277  esac
17278  # FIXME: first we should search . and the directory the executable is in
17279  shlibpath_var=PATH
17280  ;;
17281
17282darwin* | rhapsody*)
17283  dynamic_linker="$host_os dyld"
17284  version_type=darwin
17285  need_lib_prefix=no
17286  need_version=no
17287  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17288  soname_spec='${libname}${release}${major}$shared_ext'
17289  shlibpath_overrides_runpath=yes
17290  shlibpath_var=DYLD_LIBRARY_PATH
17291  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17292
17293  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17294  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17295  ;;
17296
17297dgux*)
17298  version_type=linux # correct to gnu/linux during the next big refactor
17299  need_lib_prefix=no
17300  need_version=no
17301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17302  soname_spec='${libname}${release}${shared_ext}$major'
17303  shlibpath_var=LD_LIBRARY_PATH
17304  ;;
17305
17306freebsd* | dragonfly*)
17307  # DragonFly does not have aout.  When/if they implement a new
17308  # versioning mechanism, adjust this.
17309  if test -x /usr/bin/objformat; then
17310    objformat=`/usr/bin/objformat`
17311  else
17312    case $host_os in
17313    freebsd[23].*) objformat=aout ;;
17314    *) objformat=elf ;;
17315    esac
17316  fi
17317  version_type=freebsd-$objformat
17318  case $version_type in
17319    freebsd-elf*)
17320      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17321      need_version=no
17322      need_lib_prefix=no
17323      ;;
17324    freebsd-*)
17325      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17326      need_version=yes
17327      ;;
17328  esac
17329  shlibpath_var=LD_LIBRARY_PATH
17330  case $host_os in
17331  freebsd2.*)
17332    shlibpath_overrides_runpath=yes
17333    ;;
17334  freebsd3.[01]* | freebsdelf3.[01]*)
17335    shlibpath_overrides_runpath=yes
17336    hardcode_into_libs=yes
17337    ;;
17338  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17339  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17340    shlibpath_overrides_runpath=no
17341    hardcode_into_libs=yes
17342    ;;
17343  *) # from 4.6 on, and DragonFly
17344    shlibpath_overrides_runpath=yes
17345    hardcode_into_libs=yes
17346    ;;
17347  esac
17348  ;;
17349
17350haiku*)
17351  version_type=linux # correct to gnu/linux during the next big refactor
17352  need_lib_prefix=no
17353  need_version=no
17354  dynamic_linker="$host_os runtime_loader"
17355  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17356  soname_spec='${libname}${release}${shared_ext}$major'
17357  shlibpath_var=LIBRARY_PATH
17358  shlibpath_overrides_runpath=yes
17359  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17360  hardcode_into_libs=yes
17361  ;;
17362
17363hpux9* | hpux10* | hpux11*)
17364  # Give a soname corresponding to the major version so that dld.sl refuses to
17365  # link against other versions.
17366  version_type=sunos
17367  need_lib_prefix=no
17368  need_version=no
17369  case $host_cpu in
17370  ia64*)
17371    shrext_cmds='.so'
17372    hardcode_into_libs=yes
17373    dynamic_linker="$host_os dld.so"
17374    shlibpath_var=LD_LIBRARY_PATH
17375    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17376    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377    soname_spec='${libname}${release}${shared_ext}$major'
17378    if test "X$HPUX_IA64_MODE" = X32; then
17379      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17380    else
17381      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17382    fi
17383    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17384    ;;
17385  hppa*64*)
17386    shrext_cmds='.sl'
17387    hardcode_into_libs=yes
17388    dynamic_linker="$host_os dld.sl"
17389    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17390    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17391    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17392    soname_spec='${libname}${release}${shared_ext}$major'
17393    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17394    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17395    ;;
17396  *)
17397    shrext_cmds='.sl'
17398    dynamic_linker="$host_os dld.sl"
17399    shlibpath_var=SHLIB_PATH
17400    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17401    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17402    soname_spec='${libname}${release}${shared_ext}$major'
17403    ;;
17404  esac
17405  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17406  postinstall_cmds='chmod 555 $lib'
17407  # or fails outright, so override atomically:
17408  install_override_mode=555
17409  ;;
17410
17411interix[3-9]*)
17412  version_type=linux # correct to gnu/linux during the next big refactor
17413  need_lib_prefix=no
17414  need_version=no
17415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17416  soname_spec='${libname}${release}${shared_ext}$major'
17417  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17418  shlibpath_var=LD_LIBRARY_PATH
17419  shlibpath_overrides_runpath=no
17420  hardcode_into_libs=yes
17421  ;;
17422
17423irix5* | irix6* | nonstopux*)
17424  case $host_os in
17425    nonstopux*) version_type=nonstopux ;;
17426    *)
17427	if test "$lt_cv_prog_gnu_ld" = yes; then
17428		version_type=linux # correct to gnu/linux during the next big refactor
17429	else
17430		version_type=irix
17431	fi ;;
17432  esac
17433  need_lib_prefix=no
17434  need_version=no
17435  soname_spec='${libname}${release}${shared_ext}$major'
17436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17437  case $host_os in
17438  irix5* | nonstopux*)
17439    libsuff= shlibsuff=
17440    ;;
17441  *)
17442    case $LD in # libtool.m4 will add one of these switches to LD
17443    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17444      libsuff= shlibsuff= libmagic=32-bit;;
17445    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17446      libsuff=32 shlibsuff=N32 libmagic=N32;;
17447    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17448      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17449    *) libsuff= shlibsuff= libmagic=never-match;;
17450    esac
17451    ;;
17452  esac
17453  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17454  shlibpath_overrides_runpath=no
17455  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17456  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17457  hardcode_into_libs=yes
17458  ;;
17459
17460# No shared lib support for Linux oldld, aout, or coff.
17461linux*oldld* | linux*aout* | linux*coff*)
17462  dynamic_linker=no
17463  ;;
17464
17465# This must be glibc/ELF.
17466linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17467  version_type=linux # correct to gnu/linux during the next big refactor
17468  need_lib_prefix=no
17469  need_version=no
17470  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471  soname_spec='${libname}${release}${shared_ext}$major'
17472  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17473  shlibpath_var=LD_LIBRARY_PATH
17474  shlibpath_overrides_runpath=no
17475
17476  # Some binutils ld are patched to set DT_RUNPATH
17477  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17478  $as_echo_n "(cached) " >&6
17479else
17480  lt_cv_shlibpath_overrides_runpath=no
17481    save_LDFLAGS=$LDFLAGS
17482    save_libdir=$libdir
17483    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17484	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17485    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486/* end confdefs.h.  */
17487
17488int
17489main ()
17490{
17491
17492  ;
17493  return 0;
17494}
17495_ACEOF
17496if ac_fn_c_try_link "$LINENO"; then :
17497  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17498  lt_cv_shlibpath_overrides_runpath=yes
17499fi
17500fi
17501rm -f core conftest.err conftest.$ac_objext \
17502    conftest$ac_exeext conftest.$ac_ext
17503    LDFLAGS=$save_LDFLAGS
17504    libdir=$save_libdir
17505
17506fi
17507
17508  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17509
17510  # This implies no fast_install, which is unacceptable.
17511  # Some rework will be needed to allow for fast_install
17512  # before this can be enabled.
17513  hardcode_into_libs=yes
17514
17515  # Append ld.so.conf contents to the search path
17516  if test -f /etc/ld.so.conf; then
17517    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' ' '`
17518    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17519  fi
17520
17521  # We used to test for /lib/ld.so.1 and disable shared libraries on
17522  # powerpc, because MkLinux only supported shared libraries with the
17523  # GNU dynamic linker.  Since this was broken with cross compilers,
17524  # most powerpc-linux boxes support dynamic linking these days and
17525  # people can always --disable-shared, the test was removed, and we
17526  # assume the GNU/Linux dynamic linker is in use.
17527  dynamic_linker='GNU/Linux ld.so'
17528  ;;
17529
17530netbsdelf*-gnu)
17531  version_type=linux
17532  need_lib_prefix=no
17533  need_version=no
17534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17535  soname_spec='${libname}${release}${shared_ext}$major'
17536  shlibpath_var=LD_LIBRARY_PATH
17537  shlibpath_overrides_runpath=no
17538  hardcode_into_libs=yes
17539  dynamic_linker='NetBSD ld.elf_so'
17540  ;;
17541
17542netbsd*)
17543  version_type=sunos
17544  need_lib_prefix=no
17545  need_version=no
17546  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17547    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17548    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17549    dynamic_linker='NetBSD (a.out) ld.so'
17550  else
17551    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17552    soname_spec='${libname}${release}${shared_ext}$major'
17553    dynamic_linker='NetBSD ld.elf_so'
17554  fi
17555  shlibpath_var=LD_LIBRARY_PATH
17556  shlibpath_overrides_runpath=yes
17557  hardcode_into_libs=yes
17558  ;;
17559
17560newsos6)
17561  version_type=linux # correct to gnu/linux during the next big refactor
17562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17563  shlibpath_var=LD_LIBRARY_PATH
17564  shlibpath_overrides_runpath=yes
17565  ;;
17566
17567*nto* | *qnx*)
17568  version_type=qnx
17569  need_lib_prefix=no
17570  need_version=no
17571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17572  soname_spec='${libname}${release}${shared_ext}$major'
17573  shlibpath_var=LD_LIBRARY_PATH
17574  shlibpath_overrides_runpath=no
17575  hardcode_into_libs=yes
17576  dynamic_linker='ldqnx.so'
17577  ;;
17578
17579openbsd*)
17580  version_type=sunos
17581  sys_lib_dlsearch_path_spec="/usr/lib"
17582  need_lib_prefix=no
17583  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17584  case $host_os in
17585    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
17586    *)				need_version=no  ;;
17587  esac
17588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17589  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17590  shlibpath_var=LD_LIBRARY_PATH
17591  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17592    case $host_os in
17593      openbsd2.[89] | openbsd2.[89].*)
17594	shlibpath_overrides_runpath=no
17595	;;
17596      *)
17597	shlibpath_overrides_runpath=yes
17598	;;
17599      esac
17600  else
17601    shlibpath_overrides_runpath=yes
17602  fi
17603  ;;
17604
17605os2*)
17606  libname_spec='$name'
17607  shrext_cmds=".dll"
17608  need_lib_prefix=no
17609  library_names_spec='$libname${shared_ext} $libname.a'
17610  dynamic_linker='OS/2 ld.exe'
17611  shlibpath_var=LIBPATH
17612  ;;
17613
17614osf3* | osf4* | osf5*)
17615  version_type=osf
17616  need_lib_prefix=no
17617  need_version=no
17618  soname_spec='${libname}${release}${shared_ext}$major'
17619  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17620  shlibpath_var=LD_LIBRARY_PATH
17621  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17622  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17623  ;;
17624
17625rdos*)
17626  dynamic_linker=no
17627  ;;
17628
17629solaris*)
17630  version_type=linux # correct to gnu/linux during the next big refactor
17631  need_lib_prefix=no
17632  need_version=no
17633  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17634  soname_spec='${libname}${release}${shared_ext}$major'
17635  shlibpath_var=LD_LIBRARY_PATH
17636  shlibpath_overrides_runpath=yes
17637  hardcode_into_libs=yes
17638  # ldd complains unless libraries are executable
17639  postinstall_cmds='chmod +x $lib'
17640  ;;
17641
17642sunos4*)
17643  version_type=sunos
17644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17645  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17646  shlibpath_var=LD_LIBRARY_PATH
17647  shlibpath_overrides_runpath=yes
17648  if test "$with_gnu_ld" = yes; then
17649    need_lib_prefix=no
17650  fi
17651  need_version=yes
17652  ;;
17653
17654sysv4 | sysv4.3*)
17655  version_type=linux # correct to gnu/linux during the next big refactor
17656  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17657  soname_spec='${libname}${release}${shared_ext}$major'
17658  shlibpath_var=LD_LIBRARY_PATH
17659  case $host_vendor in
17660    sni)
17661      shlibpath_overrides_runpath=no
17662      need_lib_prefix=no
17663      runpath_var=LD_RUN_PATH
17664      ;;
17665    siemens)
17666      need_lib_prefix=no
17667      ;;
17668    motorola)
17669      need_lib_prefix=no
17670      need_version=no
17671      shlibpath_overrides_runpath=no
17672      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17673      ;;
17674  esac
17675  ;;
17676
17677sysv4*MP*)
17678  if test -d /usr/nec ;then
17679    version_type=linux # correct to gnu/linux during the next big refactor
17680    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17681    soname_spec='$libname${shared_ext}.$major'
17682    shlibpath_var=LD_LIBRARY_PATH
17683  fi
17684  ;;
17685
17686sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17687  version_type=freebsd-elf
17688  need_lib_prefix=no
17689  need_version=no
17690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17691  soname_spec='${libname}${release}${shared_ext}$major'
17692  shlibpath_var=LD_LIBRARY_PATH
17693  shlibpath_overrides_runpath=yes
17694  hardcode_into_libs=yes
17695  if test "$with_gnu_ld" = yes; then
17696    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17697  else
17698    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17699    case $host_os in
17700      sco3.2v5*)
17701        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17702	;;
17703    esac
17704  fi
17705  sys_lib_dlsearch_path_spec='/usr/lib'
17706  ;;
17707
17708tpf*)
17709  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17710  version_type=linux # correct to gnu/linux during the next big refactor
17711  need_lib_prefix=no
17712  need_version=no
17713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17714  shlibpath_var=LD_LIBRARY_PATH
17715  shlibpath_overrides_runpath=no
17716  hardcode_into_libs=yes
17717  ;;
17718
17719uts4*)
17720  version_type=linux # correct to gnu/linux during the next big refactor
17721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17722  soname_spec='${libname}${release}${shared_ext}$major'
17723  shlibpath_var=LD_LIBRARY_PATH
17724  ;;
17725
17726*)
17727  dynamic_linker=no
17728  ;;
17729esac
17730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17731$as_echo "$dynamic_linker" >&6; }
17732test "$dynamic_linker" = no && can_build_shared=no
17733
17734variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17735if test "$GCC" = yes; then
17736  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17737fi
17738
17739if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17740  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17741fi
17742if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17743  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17744fi
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17838$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17839hardcode_action=
17840if test -n "$hardcode_libdir_flag_spec" ||
17841   test -n "$runpath_var" ||
17842   test "X$hardcode_automatic" = "Xyes" ; then
17843
17844  # We can hardcode non-existent directories.
17845  if test "$hardcode_direct" != no &&
17846     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17847     # have to relink, otherwise we might link with an installed library
17848     # when we should be linking with a yet-to-be-installed one
17849     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17850     test "$hardcode_minus_L" != no; then
17851    # Linking always hardcodes the temporary library directory.
17852    hardcode_action=relink
17853  else
17854    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17855    hardcode_action=immediate
17856  fi
17857else
17858  # We cannot hardcode anything, or else we can only hardcode existing
17859  # directories.
17860  hardcode_action=unsupported
17861fi
17862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17863$as_echo "$hardcode_action" >&6; }
17864
17865if test "$hardcode_action" = relink ||
17866   test "$inherit_rpath" = yes; then
17867  # Fast installation is not supported
17868  enable_fast_install=no
17869elif test "$shlibpath_overrides_runpath" = yes ||
17870     test "$enable_shared" = no; then
17871  # Fast installation is not necessary
17872  enable_fast_install=needless
17873fi
17874
17875
17876
17877
17878
17879
17880  if test "x$enable_dlopen" != xyes; then
17881  enable_dlopen=unknown
17882  enable_dlopen_self=unknown
17883  enable_dlopen_self_static=unknown
17884else
17885  lt_cv_dlopen=no
17886  lt_cv_dlopen_libs=
17887
17888  case $host_os in
17889  beos*)
17890    lt_cv_dlopen="load_add_on"
17891    lt_cv_dlopen_libs=
17892    lt_cv_dlopen_self=yes
17893    ;;
17894
17895  mingw* | pw32* | cegcc*)
17896    lt_cv_dlopen="LoadLibrary"
17897    lt_cv_dlopen_libs=
17898    ;;
17899
17900  cygwin*)
17901    lt_cv_dlopen="dlopen"
17902    lt_cv_dlopen_libs=
17903    ;;
17904
17905  darwin*)
17906  # if libdl is installed we need to link against it
17907    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17908$as_echo_n "checking for dlopen in -ldl... " >&6; }
17909if ${ac_cv_lib_dl_dlopen+:} false; then :
17910  $as_echo_n "(cached) " >&6
17911else
17912  ac_check_lib_save_LIBS=$LIBS
17913LIBS="-ldl  $LIBS"
17914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915/* end confdefs.h.  */
17916
17917/* Override any GCC internal prototype to avoid an error.
17918   Use char because int might match the return type of a GCC
17919   builtin and then its argument prototype would still apply.  */
17920#ifdef __cplusplus
17921extern "C"
17922#endif
17923char dlopen ();
17924int
17925main ()
17926{
17927return dlopen ();
17928  ;
17929  return 0;
17930}
17931_ACEOF
17932if ac_fn_c_try_link "$LINENO"; then :
17933  ac_cv_lib_dl_dlopen=yes
17934else
17935  ac_cv_lib_dl_dlopen=no
17936fi
17937rm -f core conftest.err conftest.$ac_objext \
17938    conftest$ac_exeext conftest.$ac_ext
17939LIBS=$ac_check_lib_save_LIBS
17940fi
17941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17942$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17943if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17944  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17945else
17946
17947    lt_cv_dlopen="dyld"
17948    lt_cv_dlopen_libs=
17949    lt_cv_dlopen_self=yes
17950
17951fi
17952
17953    ;;
17954
17955  *)
17956    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17957if test "x$ac_cv_func_shl_load" = xyes; then :
17958  lt_cv_dlopen="shl_load"
17959else
17960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17961$as_echo_n "checking for shl_load in -ldld... " >&6; }
17962if ${ac_cv_lib_dld_shl_load+:} false; then :
17963  $as_echo_n "(cached) " >&6
17964else
17965  ac_check_lib_save_LIBS=$LIBS
17966LIBS="-ldld  $LIBS"
17967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17968/* end confdefs.h.  */
17969
17970/* Override any GCC internal prototype to avoid an error.
17971   Use char because int might match the return type of a GCC
17972   builtin and then its argument prototype would still apply.  */
17973#ifdef __cplusplus
17974extern "C"
17975#endif
17976char shl_load ();
17977int
17978main ()
17979{
17980return shl_load ();
17981  ;
17982  return 0;
17983}
17984_ACEOF
17985if ac_fn_c_try_link "$LINENO"; then :
17986  ac_cv_lib_dld_shl_load=yes
17987else
17988  ac_cv_lib_dld_shl_load=no
17989fi
17990rm -f core conftest.err conftest.$ac_objext \
17991    conftest$ac_exeext conftest.$ac_ext
17992LIBS=$ac_check_lib_save_LIBS
17993fi
17994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17995$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17996if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17997  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17998else
17999  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18000if test "x$ac_cv_func_dlopen" = xyes; then :
18001  lt_cv_dlopen="dlopen"
18002else
18003  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18004$as_echo_n "checking for dlopen in -ldl... " >&6; }
18005if ${ac_cv_lib_dl_dlopen+:} false; then :
18006  $as_echo_n "(cached) " >&6
18007else
18008  ac_check_lib_save_LIBS=$LIBS
18009LIBS="-ldl  $LIBS"
18010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18011/* end confdefs.h.  */
18012
18013/* Override any GCC internal prototype to avoid an error.
18014   Use char because int might match the return type of a GCC
18015   builtin and then its argument prototype would still apply.  */
18016#ifdef __cplusplus
18017extern "C"
18018#endif
18019char dlopen ();
18020int
18021main ()
18022{
18023return dlopen ();
18024  ;
18025  return 0;
18026}
18027_ACEOF
18028if ac_fn_c_try_link "$LINENO"; then :
18029  ac_cv_lib_dl_dlopen=yes
18030else
18031  ac_cv_lib_dl_dlopen=no
18032fi
18033rm -f core conftest.err conftest.$ac_objext \
18034    conftest$ac_exeext conftest.$ac_ext
18035LIBS=$ac_check_lib_save_LIBS
18036fi
18037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18038$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18039if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18040  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18041else
18042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18043$as_echo_n "checking for dlopen in -lsvld... " >&6; }
18044if ${ac_cv_lib_svld_dlopen+:} false; then :
18045  $as_echo_n "(cached) " >&6
18046else
18047  ac_check_lib_save_LIBS=$LIBS
18048LIBS="-lsvld  $LIBS"
18049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18050/* end confdefs.h.  */
18051
18052/* Override any GCC internal prototype to avoid an error.
18053   Use char because int might match the return type of a GCC
18054   builtin and then its argument prototype would still apply.  */
18055#ifdef __cplusplus
18056extern "C"
18057#endif
18058char dlopen ();
18059int
18060main ()
18061{
18062return dlopen ();
18063  ;
18064  return 0;
18065}
18066_ACEOF
18067if ac_fn_c_try_link "$LINENO"; then :
18068  ac_cv_lib_svld_dlopen=yes
18069else
18070  ac_cv_lib_svld_dlopen=no
18071fi
18072rm -f core conftest.err conftest.$ac_objext \
18073    conftest$ac_exeext conftest.$ac_ext
18074LIBS=$ac_check_lib_save_LIBS
18075fi
18076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18077$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18078if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18079  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18080else
18081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18082$as_echo_n "checking for dld_link in -ldld... " >&6; }
18083if ${ac_cv_lib_dld_dld_link+:} false; then :
18084  $as_echo_n "(cached) " >&6
18085else
18086  ac_check_lib_save_LIBS=$LIBS
18087LIBS="-ldld  $LIBS"
18088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18089/* end confdefs.h.  */
18090
18091/* Override any GCC internal prototype to avoid an error.
18092   Use char because int might match the return type of a GCC
18093   builtin and then its argument prototype would still apply.  */
18094#ifdef __cplusplus
18095extern "C"
18096#endif
18097char dld_link ();
18098int
18099main ()
18100{
18101return dld_link ();
18102  ;
18103  return 0;
18104}
18105_ACEOF
18106if ac_fn_c_try_link "$LINENO"; then :
18107  ac_cv_lib_dld_dld_link=yes
18108else
18109  ac_cv_lib_dld_dld_link=no
18110fi
18111rm -f core conftest.err conftest.$ac_objext \
18112    conftest$ac_exeext conftest.$ac_ext
18113LIBS=$ac_check_lib_save_LIBS
18114fi
18115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18116$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18117if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18118  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18119fi
18120
18121
18122fi
18123
18124
18125fi
18126
18127
18128fi
18129
18130
18131fi
18132
18133
18134fi
18135
18136    ;;
18137  esac
18138
18139  if test "x$lt_cv_dlopen" != xno; then
18140    enable_dlopen=yes
18141  else
18142    enable_dlopen=no
18143  fi
18144
18145  case $lt_cv_dlopen in
18146  dlopen)
18147    save_CPPFLAGS="$CPPFLAGS"
18148    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18149
18150    save_LDFLAGS="$LDFLAGS"
18151    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18152
18153    save_LIBS="$LIBS"
18154    LIBS="$lt_cv_dlopen_libs $LIBS"
18155
18156    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18157$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18158if ${lt_cv_dlopen_self+:} false; then :
18159  $as_echo_n "(cached) " >&6
18160else
18161  	  if test "$cross_compiling" = yes; then :
18162  lt_cv_dlopen_self=cross
18163else
18164  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18165  lt_status=$lt_dlunknown
18166  cat > conftest.$ac_ext <<_LT_EOF
18167#line $LINENO "configure"
18168#include "confdefs.h"
18169
18170#if HAVE_DLFCN_H
18171#include <dlfcn.h>
18172#endif
18173
18174#include <stdio.h>
18175
18176#ifdef RTLD_GLOBAL
18177#  define LT_DLGLOBAL		RTLD_GLOBAL
18178#else
18179#  ifdef DL_GLOBAL
18180#    define LT_DLGLOBAL		DL_GLOBAL
18181#  else
18182#    define LT_DLGLOBAL		0
18183#  endif
18184#endif
18185
18186/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18187   find out it does not work in some platform. */
18188#ifndef LT_DLLAZY_OR_NOW
18189#  ifdef RTLD_LAZY
18190#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18191#  else
18192#    ifdef DL_LAZY
18193#      define LT_DLLAZY_OR_NOW		DL_LAZY
18194#    else
18195#      ifdef RTLD_NOW
18196#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18197#      else
18198#        ifdef DL_NOW
18199#          define LT_DLLAZY_OR_NOW	DL_NOW
18200#        else
18201#          define LT_DLLAZY_OR_NOW	0
18202#        endif
18203#      endif
18204#    endif
18205#  endif
18206#endif
18207
18208/* When -fvisbility=hidden is used, assume the code has been annotated
18209   correspondingly for the symbols needed.  */
18210#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18211int fnord () __attribute__((visibility("default")));
18212#endif
18213
18214int fnord () { return 42; }
18215int main ()
18216{
18217  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18218  int status = $lt_dlunknown;
18219
18220  if (self)
18221    {
18222      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18223      else
18224        {
18225	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18226          else puts (dlerror ());
18227	}
18228      /* dlclose (self); */
18229    }
18230  else
18231    puts (dlerror ());
18232
18233  return status;
18234}
18235_LT_EOF
18236  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18237  (eval $ac_link) 2>&5
18238  ac_status=$?
18239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18240  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18241    (./conftest; exit; ) >&5 2>/dev/null
18242    lt_status=$?
18243    case x$lt_status in
18244      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18245      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18246      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18247    esac
18248  else :
18249    # compilation failed
18250    lt_cv_dlopen_self=no
18251  fi
18252fi
18253rm -fr conftest*
18254
18255
18256fi
18257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18258$as_echo "$lt_cv_dlopen_self" >&6; }
18259
18260    if test "x$lt_cv_dlopen_self" = xyes; then
18261      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18262      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18263$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18264if ${lt_cv_dlopen_self_static+:} false; then :
18265  $as_echo_n "(cached) " >&6
18266else
18267  	  if test "$cross_compiling" = yes; then :
18268  lt_cv_dlopen_self_static=cross
18269else
18270  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18271  lt_status=$lt_dlunknown
18272  cat > conftest.$ac_ext <<_LT_EOF
18273#line $LINENO "configure"
18274#include "confdefs.h"
18275
18276#if HAVE_DLFCN_H
18277#include <dlfcn.h>
18278#endif
18279
18280#include <stdio.h>
18281
18282#ifdef RTLD_GLOBAL
18283#  define LT_DLGLOBAL		RTLD_GLOBAL
18284#else
18285#  ifdef DL_GLOBAL
18286#    define LT_DLGLOBAL		DL_GLOBAL
18287#  else
18288#    define LT_DLGLOBAL		0
18289#  endif
18290#endif
18291
18292/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18293   find out it does not work in some platform. */
18294#ifndef LT_DLLAZY_OR_NOW
18295#  ifdef RTLD_LAZY
18296#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18297#  else
18298#    ifdef DL_LAZY
18299#      define LT_DLLAZY_OR_NOW		DL_LAZY
18300#    else
18301#      ifdef RTLD_NOW
18302#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18303#      else
18304#        ifdef DL_NOW
18305#          define LT_DLLAZY_OR_NOW	DL_NOW
18306#        else
18307#          define LT_DLLAZY_OR_NOW	0
18308#        endif
18309#      endif
18310#    endif
18311#  endif
18312#endif
18313
18314/* When -fvisbility=hidden is used, assume the code has been annotated
18315   correspondingly for the symbols needed.  */
18316#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18317int fnord () __attribute__((visibility("default")));
18318#endif
18319
18320int fnord () { return 42; }
18321int main ()
18322{
18323  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18324  int status = $lt_dlunknown;
18325
18326  if (self)
18327    {
18328      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18329      else
18330        {
18331	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18332          else puts (dlerror ());
18333	}
18334      /* dlclose (self); */
18335    }
18336  else
18337    puts (dlerror ());
18338
18339  return status;
18340}
18341_LT_EOF
18342  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18343  (eval $ac_link) 2>&5
18344  ac_status=$?
18345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18346  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18347    (./conftest; exit; ) >&5 2>/dev/null
18348    lt_status=$?
18349    case x$lt_status in
18350      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18351      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18352      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18353    esac
18354  else :
18355    # compilation failed
18356    lt_cv_dlopen_self_static=no
18357  fi
18358fi
18359rm -fr conftest*
18360
18361
18362fi
18363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18364$as_echo "$lt_cv_dlopen_self_static" >&6; }
18365    fi
18366
18367    CPPFLAGS="$save_CPPFLAGS"
18368    LDFLAGS="$save_LDFLAGS"
18369    LIBS="$save_LIBS"
18370    ;;
18371  esac
18372
18373  case $lt_cv_dlopen_self in
18374  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18375  *) enable_dlopen_self=unknown ;;
18376  esac
18377
18378  case $lt_cv_dlopen_self_static in
18379  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18380  *) enable_dlopen_self_static=unknown ;;
18381  esac
18382fi
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400striplib=
18401old_striplib=
18402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18403$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18404if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18405  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18406  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18408$as_echo "yes" >&6; }
18409else
18410# FIXME - insert some real tests, host_os isn't really good enough
18411  case $host_os in
18412  darwin*)
18413    if test -n "$STRIP" ; then
18414      striplib="$STRIP -x"
18415      old_striplib="$STRIP -S"
18416      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18417$as_echo "yes" >&6; }
18418    else
18419      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18420$as_echo "no" >&6; }
18421    fi
18422    ;;
18423  *)
18424    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18425$as_echo "no" >&6; }
18426    ;;
18427  esac
18428fi
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441  # Report which library types will actually be built
18442  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18443$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18445$as_echo "$can_build_shared" >&6; }
18446
18447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18448$as_echo_n "checking whether to build shared libraries... " >&6; }
18449  test "$can_build_shared" = "no" && enable_shared=no
18450
18451  # On AIX, shared libraries and static libraries use the same namespace, and
18452  # are all built from PIC.
18453  case $host_os in
18454  aix3*)
18455    test "$enable_shared" = yes && enable_static=no
18456    if test -n "$RANLIB"; then
18457      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18458      postinstall_cmds='$RANLIB $lib'
18459    fi
18460    ;;
18461
18462  aix[4-9]*)
18463    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18464      test "$enable_shared" = yes && enable_static=no
18465    fi
18466    ;;
18467  esac
18468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18469$as_echo "$enable_shared" >&6; }
18470
18471  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18472$as_echo_n "checking whether to build static libraries... " >&6; }
18473  # Make sure either enable_shared or enable_static is yes.
18474  test "$enable_shared" = yes || enable_static=yes
18475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18476$as_echo "$enable_static" >&6; }
18477
18478
18479
18480
18481fi
18482ac_ext=c
18483ac_cpp='$CPP $CPPFLAGS'
18484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18486ac_compiler_gnu=$ac_cv_c_compiler_gnu
18487
18488CC="$lt_save_CC"
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504        ac_config_commands="$ac_config_commands libtool"
18505
18506
18507
18508
18509# Only expand once:
18510
18511
18512# Check whether --enable-largefile was given.
18513if test "${enable_largefile+set}" = set; then :
18514  enableval=$enable_largefile;
18515fi
18516
18517if test "$enable_largefile" != no; then
18518
18519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18520$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18521if ${ac_cv_sys_largefile_CC+:} false; then :
18522  $as_echo_n "(cached) " >&6
18523else
18524  ac_cv_sys_largefile_CC=no
18525     if test "$GCC" != yes; then
18526       ac_save_CC=$CC
18527       while :; do
18528	 # IRIX 6.2 and later do not support large files by default,
18529	 # so use the C compiler's -n32 option if that helps.
18530	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18531/* end confdefs.h.  */
18532#include <sys/types.h>
18533 /* Check that off_t can represent 2**63 - 1 correctly.
18534    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18535    since some C++ compilers masquerading as C compilers
18536    incorrectly reject 9223372036854775807.  */
18537#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18538  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18539		       && LARGE_OFF_T % 2147483647 == 1)
18540		      ? 1 : -1];
18541int
18542main ()
18543{
18544
18545  ;
18546  return 0;
18547}
18548_ACEOF
18549	 if ac_fn_c_try_compile "$LINENO"; then :
18550  break
18551fi
18552rm -f core conftest.err conftest.$ac_objext
18553	 CC="$CC -n32"
18554	 if ac_fn_c_try_compile "$LINENO"; then :
18555  ac_cv_sys_largefile_CC=' -n32'; break
18556fi
18557rm -f core conftest.err conftest.$ac_objext
18558	 break
18559       done
18560       CC=$ac_save_CC
18561       rm -f conftest.$ac_ext
18562    fi
18563fi
18564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18565$as_echo "$ac_cv_sys_largefile_CC" >&6; }
18566  if test "$ac_cv_sys_largefile_CC" != no; then
18567    CC=$CC$ac_cv_sys_largefile_CC
18568  fi
18569
18570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18571$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18572if ${ac_cv_sys_file_offset_bits+:} false; then :
18573  $as_echo_n "(cached) " >&6
18574else
18575  while :; do
18576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18577/* end confdefs.h.  */
18578#include <sys/types.h>
18579 /* Check that off_t can represent 2**63 - 1 correctly.
18580    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18581    since some C++ compilers masquerading as C compilers
18582    incorrectly reject 9223372036854775807.  */
18583#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18584  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18585		       && LARGE_OFF_T % 2147483647 == 1)
18586		      ? 1 : -1];
18587int
18588main ()
18589{
18590
18591  ;
18592  return 0;
18593}
18594_ACEOF
18595if ac_fn_c_try_compile "$LINENO"; then :
18596  ac_cv_sys_file_offset_bits=no; break
18597fi
18598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18600/* end confdefs.h.  */
18601#define _FILE_OFFSET_BITS 64
18602#include <sys/types.h>
18603 /* Check that off_t can represent 2**63 - 1 correctly.
18604    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18605    since some C++ compilers masquerading as C compilers
18606    incorrectly reject 9223372036854775807.  */
18607#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18608  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18609		       && LARGE_OFF_T % 2147483647 == 1)
18610		      ? 1 : -1];
18611int
18612main ()
18613{
18614
18615  ;
18616  return 0;
18617}
18618_ACEOF
18619if ac_fn_c_try_compile "$LINENO"; then :
18620  ac_cv_sys_file_offset_bits=64; break
18621fi
18622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18623  ac_cv_sys_file_offset_bits=unknown
18624  break
18625done
18626fi
18627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18628$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18629case $ac_cv_sys_file_offset_bits in #(
18630  no | unknown) ;;
18631  *)
18632cat >>confdefs.h <<_ACEOF
18633#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18634_ACEOF
18635;;
18636esac
18637rm -rf conftest*
18638  if test $ac_cv_sys_file_offset_bits = unknown; then
18639    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18640$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18641if ${ac_cv_sys_large_files+:} false; then :
18642  $as_echo_n "(cached) " >&6
18643else
18644  while :; do
18645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18646/* end confdefs.h.  */
18647#include <sys/types.h>
18648 /* Check that off_t can represent 2**63 - 1 correctly.
18649    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18650    since some C++ compilers masquerading as C compilers
18651    incorrectly reject 9223372036854775807.  */
18652#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18653  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18654		       && LARGE_OFF_T % 2147483647 == 1)
18655		      ? 1 : -1];
18656int
18657main ()
18658{
18659
18660  ;
18661  return 0;
18662}
18663_ACEOF
18664if ac_fn_c_try_compile "$LINENO"; then :
18665  ac_cv_sys_large_files=no; break
18666fi
18667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18669/* end confdefs.h.  */
18670#define _LARGE_FILES 1
18671#include <sys/types.h>
18672 /* Check that off_t can represent 2**63 - 1 correctly.
18673    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18674    since some C++ compilers masquerading as C compilers
18675    incorrectly reject 9223372036854775807.  */
18676#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18677  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18678		       && LARGE_OFF_T % 2147483647 == 1)
18679		      ? 1 : -1];
18680int
18681main ()
18682{
18683
18684  ;
18685  return 0;
18686}
18687_ACEOF
18688if ac_fn_c_try_compile "$LINENO"; then :
18689  ac_cv_sys_large_files=1; break
18690fi
18691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18692  ac_cv_sys_large_files=unknown
18693  break
18694done
18695fi
18696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18697$as_echo "$ac_cv_sys_large_files" >&6; }
18698case $ac_cv_sys_large_files in #(
18699  no | unknown) ;;
18700  *)
18701cat >>confdefs.h <<_ACEOF
18702#define _LARGE_FILES $ac_cv_sys_large_files
18703_ACEOF
18704;;
18705esac
18706rm -rf conftest*
18707  fi
18708
18709
18710fi
18711
18712
18713# Check for common libc routines redefined by os.h
18714for ac_func in strlcpy strlcat strndup
18715do :
18716  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18717ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18718if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18719  cat >>confdefs.h <<_ACEOF
18720#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18721_ACEOF
18722
18723fi
18724done
18725
18726
18727# Platform specific settings
18728case $host_os in
18729  *linux*)
18730    backlight_helper=yes
18731    ;;
18732esac
18733
18734# Check whether --enable-backlight was given.
18735if test "${enable_backlight+set}" = set; then :
18736  enableval=$enable_backlight; backlight="$enableval"
18737else
18738  backlight="yes"
18739fi
18740
18741if test "x$backlight" = "xyes"; then
18742
18743$as_echo "#define USE_BACKLIGHT 1" >>confdefs.h
18744
18745fi
18746
18747# Check whether --enable-backlight-helper was given.
18748if test "${enable_backlight_helper+set}" = set; then :
18749  enableval=$enable_backlight_helper; backlight_helper="$enableval"
18750fi
18751
18752 if test "x$backlight" = "xyes" -a "x$backlight_helper" = "xyes"; then
18753  BUILD_BACKLIGHT_HELPER_TRUE=
18754  BUILD_BACKLIGHT_HELPER_FALSE='#'
18755else
18756  BUILD_BACKLIGHT_HELPER_TRUE='#'
18757  BUILD_BACKLIGHT_HELPER_FALSE=
18758fi
18759
18760if test "x$backlight_helper" = "xyes"; then
18761	tools_msg="$tools_msg xf86-video-intel-backlight-helper"
18762
18763$as_echo "#define USE_BACKLIGHT_HELPER 1" >>confdefs.h
18764
18765fi
18766
18767# Are we in a git checkout?
18768dot_git=no
18769if test -e .git; then
18770
18771$as_echo "#define HAVE_DOT_GIT 1" >>confdefs.h
18772
18773	dot_git=yes
18774fi
18775 if test "x$dot_git" = "xyes"; then
18776  HAVE_DOT_GIT_TRUE=
18777  HAVE_DOT_GIT_FALSE='#'
18778else
18779  HAVE_DOT_GIT_TRUE='#'
18780  HAVE_DOT_GIT_FALSE=
18781fi
18782
18783
18784# If so, we include the git description in our logs for sanity checking.
18785#
18786# However, for people not running their own drivers this is just noise.
18787# So we copy the xserver's builderstring idiom to allow for this to be
18788# overridden and perhaps replaced with something more useful.
18789
18790# Check whether --with-builderstring was given.
18791if test "${with_builderstring+set}" = set; then :
18792  withval=$with_builderstring; BUILDERSTRING="$withval"
18793else
18794  BUILDERSTRING="x-magic-git-describe"
18795fi
18796
18797
18798if test "x$BUILDERSTRING" = "xx-magic-git-describe" -a "x$dot_git" = "xyes"; then
18799
18800$as_echo "#define USE_GIT_DESCRIBE 1" >>confdefs.h
18801
18802else
18803  if test "x$BUILDERSTRING" != x -a "x$BUILDERSTRING" != "xno" -a "x$BUILDERSTRING" != xx-magic-git-describe; then
18804
18805cat >>confdefs.h <<_ACEOF
18806#define BUILDER_DESCRIPTION "$BUILDERSTRING"
18807_ACEOF
18808
18809  fi
18810fi
18811
18812# Check whether --enable-gen4asm was given.
18813if test "${enable_gen4asm+set}" = set; then :
18814  enableval=$enable_gen4asm; ASM="$enableval"
18815else
18816  ASM="no"
18817fi
18818
18819
18820gen4asm=no
18821if test "x$ASM" != "xno"; then
18822
18823# Check whether --with-gen4asm was given.
18824if test "${with_gen4asm+set}" = set; then :
18825  withval=$with_gen4asm; path="$withval"
18826else
18827  path=""
18828fi
18829
18830	if test -n "$path" ; then
18831		gen4asm=yes
18832	else
18833
18834pkg_failed=no
18835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEN4ASM" >&5
18836$as_echo_n "checking for GEN4ASM... " >&6; }
18837
18838if test -n "$GEN4ASM_CFLAGS"; then
18839    pkg_cv_GEN4ASM_CFLAGS="$GEN4ASM_CFLAGS"
18840 elif test -n "$PKG_CONFIG"; then
18841    if test -n "$PKG_CONFIG" && \
18842    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.2\""; } >&5
18843  ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.2") 2>&5
18844  ac_status=$?
18845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18846  test $ac_status = 0; }; then
18847  pkg_cv_GEN4ASM_CFLAGS=`$PKG_CONFIG --cflags "intel-gen4asm >= 1.2" 2>/dev/null`
18848		      test "x$?" != "x0" && pkg_failed=yes
18849else
18850  pkg_failed=yes
18851fi
18852 else
18853    pkg_failed=untried
18854fi
18855if test -n "$GEN4ASM_LIBS"; then
18856    pkg_cv_GEN4ASM_LIBS="$GEN4ASM_LIBS"
18857 elif test -n "$PKG_CONFIG"; then
18858    if test -n "$PKG_CONFIG" && \
18859    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.2\""; } >&5
18860  ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.2") 2>&5
18861  ac_status=$?
18862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18863  test $ac_status = 0; }; then
18864  pkg_cv_GEN4ASM_LIBS=`$PKG_CONFIG --libs "intel-gen4asm >= 1.2" 2>/dev/null`
18865		      test "x$?" != "x0" && pkg_failed=yes
18866else
18867  pkg_failed=yes
18868fi
18869 else
18870    pkg_failed=untried
18871fi
18872
18873
18874
18875if test $pkg_failed = yes; then
18876   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18877$as_echo "no" >&6; }
18878
18879if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18880        _pkg_short_errors_supported=yes
18881else
18882        _pkg_short_errors_supported=no
18883fi
18884        if test $_pkg_short_errors_supported = yes; then
18885	        GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "intel-gen4asm >= 1.2" 2>&1`
18886        else
18887	        GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "intel-gen4asm >= 1.2" 2>&1`
18888        fi
18889	# Put the nasty error message in config.log where it belongs
18890	echo "$GEN4ASM_PKG_ERRORS" >&5
18891
18892	gen4asm=no
18893elif test $pkg_failed = untried; then
18894     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18895$as_echo "no" >&6; }
18896	gen4asm=no
18897else
18898	GEN4ASM_CFLAGS=$pkg_cv_GEN4ASM_CFLAGS
18899	GEN4ASM_LIBS=$pkg_cv_GEN4ASM_LIBS
18900        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18901$as_echo "yes" >&6; }
18902	gen4asm=yes
18903fi
18904		if test "x$ASM" = "xyes" -a "x$gen4asm" != "xyes"; then
18905			as_fn_error $? "intel-gen4asm support requested but not found" "$LINENO" 5
18906		fi
18907	fi
18908	if test "x$gen4asm" = "xyes"; then
18909		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking path to use for intel-gen4asm" >&5
18910$as_echo_n "checking path to use for intel-gen4asm... " >&6; }
18911		if test -n "$path" ; then
18912			INTEL_GEN4ASM="$path"
18913		else
18914			INTEL_GEN4ASM="`pkg-config intel-gen4asm --variable=exec_prefix`/bin/intel-gen4asm"
18915		fi
18916		if ! test -e "$INTEL_GEN4ASM"; then
18917			as_fn_error $? "intel-gen4asm enabled, but not found. Tried '$INTEL_GEN4ASM'." "$LINENO" 5
18918		fi
18919		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTEL_GEN4ASM" >&5
18920$as_echo "$INTEL_GEN4ASM" >&6; }
18921
18922	fi
18923fi
18924 if test "x$gen4asm" = "xyes"; then
18925  HAVE_GEN4ASM_TRUE=
18926  HAVE_GEN4ASM_FALSE='#'
18927else
18928  HAVE_GEN4ASM_TRUE='#'
18929  HAVE_GEN4ASM_FALSE=
18930fi
18931
18932
18933# Check for atomic intrinsics
18934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native atomic primitives" >&5
18935$as_echo_n "checking for native atomic primitives... " >&6; }
18936if ${intel_cv_atomic_primitives+:} false; then :
18937  $as_echo_n "(cached) " >&6
18938else
18939
18940    intel_cv_atomic_primitives="none"
18941
18942    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18943/* end confdefs.h.  */
18944
18945int atomic_add(int i) { return __sync_fetch_and_add (&i, 1); }
18946int atomic_cmpxchg(int i, int j, int k) { return __sync_val_compare_and_swap (&i, j, k); }
18947
18948int
18949main ()
18950{
18951
18952  ;
18953  return 0;
18954}
18955_ACEOF
18956if ac_fn_c_try_link "$LINENO"; then :
18957  intel_cv_atomic_primitives="Intel"
18958fi
18959rm -f core conftest.err conftest.$ac_objext \
18960    conftest$ac_exeext conftest.$ac_ext
18961
18962    if test "x$intel_cv_atomic_primitives" = "xnone"; then
18963	    ac_fn_c_check_header_mongrel "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default"
18964if test "x$ac_cv_header_atomic_ops_h" = xyes; then :
18965  intel_cv_atomic_primitives="libatomic-ops"
18966fi
18967
18968
18969    fi
18970
18971    # atomic functions defined in <atomic.h> & libc on Solaris
18972    if test "x$intel_cv_atomic_primitives" = "xnone"; then
18973	    ac_fn_c_check_func "$LINENO" "atomic_cas_uint" "ac_cv_func_atomic_cas_uint"
18974if test "x$ac_cv_func_atomic_cas_uint" = xyes; then :
18975  intel_cv_atomic_primitives="Solaris"
18976fi
18977
18978    fi
18979
18980
18981fi
18982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $intel_cv_atomic_primitives" >&5
18983$as_echo "$intel_cv_atomic_primitives" >&6; }
18984if test "x$intel_cv_atomic_primitives" = "xIntel"; then
18985
18986$as_echo "#define HAVE_ATOMIC_PRIMITIVES 1" >>confdefs.h
18987
18988fi
18989if test "x$intel_cv_atomic_primitives" = "xlibatomic-ops"; then
18990
18991$as_echo "#define HAVE_LIB_ATOMIC_OPS 1" >>confdefs.h
18992
18993fi
18994
18995if test "x$intel_cv_atomic_primitives" = "xnone"; then
18996		as_fn_error $? "xf86-video-intel depends upon atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package." "$LINENO" 5
18997fi
18998
18999# Check whether --enable-udev was given.
19000if test "${enable_udev+set}" = set; then :
19001  enableval=$enable_udev; UDEV="$enableval"
19002else
19003  UDEV=auto
19004fi
19005
19006
19007if test "x$UDEV" != "xno"; then
19008
19009pkg_failed=no
19010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
19011$as_echo_n "checking for UDEV... " >&6; }
19012
19013if test -n "$UDEV_CFLAGS"; then
19014    pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
19015 elif test -n "$PKG_CONFIG"; then
19016    if test -n "$PKG_CONFIG" && \
19017    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19018  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19019  ac_status=$?
19020  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19021  test $ac_status = 0; }; then
19022  pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
19023		      test "x$?" != "x0" && pkg_failed=yes
19024else
19025  pkg_failed=yes
19026fi
19027 else
19028    pkg_failed=untried
19029fi
19030if test -n "$UDEV_LIBS"; then
19031    pkg_cv_UDEV_LIBS="$UDEV_LIBS"
19032 elif test -n "$PKG_CONFIG"; then
19033    if test -n "$PKG_CONFIG" && \
19034    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19035  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19036  ac_status=$?
19037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19038  test $ac_status = 0; }; then
19039  pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
19040		      test "x$?" != "x0" && pkg_failed=yes
19041else
19042  pkg_failed=yes
19043fi
19044 else
19045    pkg_failed=untried
19046fi
19047
19048
19049
19050if test $pkg_failed = yes; then
19051   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19052$as_echo "no" >&6; }
19053
19054if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19055        _pkg_short_errors_supported=yes
19056else
19057        _pkg_short_errors_supported=no
19058fi
19059        if test $_pkg_short_errors_supported = yes; then
19060	        UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
19061        else
19062	        UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
19063        fi
19064	# Put the nasty error message in config.log where it belongs
19065	echo "$UDEV_PKG_ERRORS" >&5
19066
19067	udev="no"
19068elif test $pkg_failed = untried; then
19069     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19070$as_echo "no" >&6; }
19071	udev="no"
19072else
19073	UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
19074	UDEV_LIBS=$pkg_cv_UDEV_LIBS
19075        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19076$as_echo "yes" >&6; }
19077	udev="yes"
19078fi
19079	if test "x$UDEV" = "xyes" -a "x$udev" != "xyes"; then
19080		as_fn_error $? "udev support requested but not found (libudev)" "$LINENO" 5
19081	fi
19082	if test "x$udev" = "xyes"; then
19083
19084$as_echo "#define HAVE_UDEV 1" >>confdefs.h
19085
19086	fi
19087fi
19088
19089
19090pkg_failed=no
19091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
19092$as_echo_n "checking for X11... " >&6; }
19093
19094if test -n "$X11_CFLAGS"; then
19095    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
19096 elif test -n "$PKG_CONFIG"; then
19097    if test -n "$PKG_CONFIG" && \
19098    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng\""; } >&5
19099  ($PKG_CONFIG --exists --print-errors "x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng") 2>&5
19100  ac_status=$?
19101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19102  test $ac_status = 0; }; then
19103  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>/dev/null`
19104		      test "x$?" != "x0" && pkg_failed=yes
19105else
19106  pkg_failed=yes
19107fi
19108 else
19109    pkg_failed=untried
19110fi
19111if test -n "$X11_LIBS"; then
19112    pkg_cv_X11_LIBS="$X11_LIBS"
19113 elif test -n "$PKG_CONFIG"; then
19114    if test -n "$PKG_CONFIG" && \
19115    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng\""; } >&5
19116  ($PKG_CONFIG --exists --print-errors "x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng") 2>&5
19117  ac_status=$?
19118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19119  test $ac_status = 0; }; then
19120  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>/dev/null`
19121		      test "x$?" != "x0" && pkg_failed=yes
19122else
19123  pkg_failed=yes
19124fi
19125 else
19126    pkg_failed=untried
19127fi
19128
19129
19130
19131if test $pkg_failed = yes; then
19132   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19133$as_echo "no" >&6; }
19134
19135if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19136        _pkg_short_errors_supported=yes
19137else
19138        _pkg_short_errors_supported=no
19139fi
19140        if test $_pkg_short_errors_supported = yes; then
19141	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>&1`
19142        else
19143	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>&1`
19144        fi
19145	# Put the nasty error message in config.log where it belongs
19146	echo "$X11_PKG_ERRORS" >&5
19147
19148	x11="no"
19149elif test $pkg_failed = untried; then
19150     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19151$as_echo "no" >&6; }
19152	x11="no"
19153else
19154	X11_CFLAGS=$pkg_cv_X11_CFLAGS
19155	X11_LIBS=$pkg_cv_X11_LIBS
19156        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19157$as_echo "yes" >&6; }
19158	x11="yes"
19159fi
19160 if test "x$x11" = "xyes"; then
19161  HAVE_X11_TRUE=
19162  HAVE_X11_FALSE='#'
19163else
19164  HAVE_X11_TRUE='#'
19165  HAVE_X11_FALSE=
19166fi
19167
19168
19169cpuid="yes"
19170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19171/* end confdefs.h.  */
19172
19173	#include <cpuid.h>
19174	#include <stddef.h>
19175
19176int
19177main ()
19178{
19179
19180	int eax, ebx, ecx, edx;
19181	if (__get_cpuid_max(0, NULL) < 4)
19182		return 0;
19183	__cpuid_count(4, 0, eax, ebx, ecx, edx);
19184
19185  ;
19186  return 0;
19187}
19188_ACEOF
19189if ac_fn_c_try_link "$LINENO"; then :
19190  cpuid="yes"
19191else
19192  cpuid="no"
19193
19194fi
19195rm -f core conftest.err conftest.$ac_objext \
19196    conftest$ac_exeext conftest.$ac_ext
19197if test "x$cpuid" = "xyes"; then
19198
19199$as_echo "#define HAVE_CPUID_H 1" >>confdefs.h
19200
19201fi
19202
19203shm=yes
19204for ac_header in sys/ipc.h sys/ipc.h
19205do :
19206  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19207ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19208if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19209  cat >>confdefs.h <<_ACEOF
19210#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19211_ACEOF
19212
19213else
19214  shm="no"
19215fi
19216
19217done
19218
19219for ac_header in X11/extensions/XShm.h
19220do :
19221  ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XShm.h" "ac_cv_header_X11_extensions_XShm_h" "
19222#include <X11/Xlibint.h>
19223#include <X11/Xproto.h>
19224
19225"
19226if test "x$ac_cv_header_X11_extensions_XShm_h" = xyes; then :
19227  cat >>confdefs.h <<_ACEOF
19228#define HAVE_X11_EXTENSIONS_XSHM_H 1
19229_ACEOF
19230
19231else
19232  shm="no"
19233fi
19234
19235done
19236
19237for ac_header in X11/extensions/shmproto.h X11/extensions/shmstr.h
19238do :
19239  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19240ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
19241#include <X11/Xlibint.h>
19242#include <X11/Xproto.h>
19243
19244"
19245if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19246  cat >>confdefs.h <<_ACEOF
19247#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19248_ACEOF
19249
19250fi
19251
19252done
19253
19254if test "x$ac_cv_header_X11_extensions_shmproto_h" != "xyes" -a "x$ac_cv_header_X11_extensions_shmstr_h" != "xyes"; then
19255	shm="no"
19256fi
19257
19258if test "x$shm" = "xyes"; then
19259	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shmctl IPC_RMID allows subsequent attaches" >&5
19260$as_echo_n "checking whether shmctl IPC_RMID allows subsequent attaches... " >&6; }
19261	if test "$cross_compiling" = yes; then :
19262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5
19263$as_echo "assuming no" >&6; }
19264else
19265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19266/* end confdefs.h.  */
19267
19268		  #include <sys/types.h>
19269		  #include <sys/ipc.h>
19270		  #include <sys/shm.h>
19271		  int main()
19272		  {
19273		      char *shmaddr;
19274		      int id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
19275		      if (id == -1) return 2;
19276		      shmaddr = shmat (id, 0, 0);
19277		      shmctl (id, IPC_RMID, 0);
19278		      if ((char*) shmat (id, 0, 0) == (char*) -1) {
19279			  shmdt (shmaddr);
19280			  return 1;
19281		      }
19282		      shmdt (shmaddr);
19283		      shmdt (shmaddr);
19284		      return 0;
19285		  }
19286
19287_ACEOF
19288if ac_fn_c_try_run "$LINENO"; then :
19289
19290$as_echo "#define IPC_RMID_DEFERRED_RELEASE 1" >>confdefs.h
19291
19292		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19293$as_echo "yes" >&6; }
19294else
19295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19296$as_echo "no" >&6; }
19297fi
19298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19299  conftest.$ac_objext conftest.beam conftest.$ac_ext
19300fi
19301
19302
19303$as_echo "#define HAVE_MIT_SHM 1" >>confdefs.h
19304
19305fi
19306
19307
19308pkg_failed=no
19309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11_DRI3" >&5
19310$as_echo_n "checking for X11_DRI3... " >&6; }
19311
19312if test -n "$X11_DRI3_CFLAGS"; then
19313    pkg_cv_X11_DRI3_CFLAGS="$X11_DRI3_CFLAGS"
19314 elif test -n "$PKG_CONFIG"; then
19315    if test -n "$PKG_CONFIG" && \
19316    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm\""; } >&5
19317  ($PKG_CONFIG --exists --print-errors "xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm") 2>&5
19318  ac_status=$?
19319  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19320  test $ac_status = 0; }; then
19321  pkg_cv_X11_DRI3_CFLAGS=`$PKG_CONFIG --cflags "xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm" 2>/dev/null`
19322		      test "x$?" != "x0" && pkg_failed=yes
19323else
19324  pkg_failed=yes
19325fi
19326 else
19327    pkg_failed=untried
19328fi
19329if test -n "$X11_DRI3_LIBS"; then
19330    pkg_cv_X11_DRI3_LIBS="$X11_DRI3_LIBS"
19331 elif test -n "$PKG_CONFIG"; then
19332    if test -n "$PKG_CONFIG" && \
19333    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm\""; } >&5
19334  ($PKG_CONFIG --exists --print-errors "xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm") 2>&5
19335  ac_status=$?
19336  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19337  test $ac_status = 0; }; then
19338  pkg_cv_X11_DRI3_LIBS=`$PKG_CONFIG --libs "xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm" 2>/dev/null`
19339		      test "x$?" != "x0" && pkg_failed=yes
19340else
19341  pkg_failed=yes
19342fi
19343 else
19344    pkg_failed=untried
19345fi
19346
19347
19348
19349if test $pkg_failed = yes; then
19350   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19351$as_echo "no" >&6; }
19352
19353if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19354        _pkg_short_errors_supported=yes
19355else
19356        _pkg_short_errors_supported=no
19357fi
19358        if test $_pkg_short_errors_supported = yes; then
19359	        X11_DRI3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm" 2>&1`
19360        else
19361	        X11_DRI3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm" 2>&1`
19362        fi
19363	# Put the nasty error message in config.log where it belongs
19364	echo "$X11_DRI3_PKG_ERRORS" >&5
19365
19366	x11_dri3="no"
19367elif test $pkg_failed = untried; then
19368     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19369$as_echo "no" >&6; }
19370	x11_dri3="no"
19371else
19372	X11_DRI3_CFLAGS=$pkg_cv_X11_DRI3_CFLAGS
19373	X11_DRI3_LIBS=$pkg_cv_X11_DRI3_LIBS
19374        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19375$as_echo "yes" >&6; }
19376	x11_dri3="yes"
19377fi
19378 if test "x$x11_dri3" = "xyes" -a "x$shm" = "xyes"; then
19379  X11_DRI3_TRUE=
19380  X11_DRI3_FALSE='#'
19381else
19382  X11_DRI3_TRUE='#'
19383  X11_DRI3_FALSE=
19384fi
19385
19386 if test "x$shm" = "xyes"; then
19387  X11_SHM_TRUE=
19388  X11_SHM_FALSE='#'
19389else
19390  X11_SHM_TRUE='#'
19391  X11_SHM_FALSE=
19392fi
19393
19394
19395# Check whether --enable-tools was given.
19396if test "${enable_tools+set}" = set; then :
19397  enableval=$enable_tools; tools="$enableval"
19398else
19399  tools="auto"
19400fi
19401
19402if test "x$shm" != "xyes"; then
19403	if test "x$tools" = "xyes"; then
19404		as_fn_error $? "Incomplete requirements for extra tools, X11 MIT-SHM extension required" "$LINENO" 5
19405	fi
19406	tools="no"
19407fi
19408if test "x$tools" != "xno"; then
19409	ivo_requires="xrandr xdamage xfixes xcursor xtst xrender xext x11 pixman-1"
19410	extra_cflags=""
19411
19412	ignore="xinerama"
19413
19414pkg_failed=no
19415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IVO_EXTRA" >&5
19416$as_echo_n "checking for IVO_EXTRA... " >&6; }
19417
19418if test -n "$IVO_EXTRA_CFLAGS"; then
19419    pkg_cv_IVO_EXTRA_CFLAGS="$IVO_EXTRA_CFLAGS"
19420 elif test -n "$PKG_CONFIG"; then
19421    if test -n "$PKG_CONFIG" && \
19422    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5
19423  ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5
19424  ac_status=$?
19425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19426  test $ac_status = 0; }; then
19427  pkg_cv_IVO_EXTRA_CFLAGS=`$PKG_CONFIG --cflags "$ignore" 2>/dev/null`
19428		      test "x$?" != "x0" && pkg_failed=yes
19429else
19430  pkg_failed=yes
19431fi
19432 else
19433    pkg_failed=untried
19434fi
19435if test -n "$IVO_EXTRA_LIBS"; then
19436    pkg_cv_IVO_EXTRA_LIBS="$IVO_EXTRA_LIBS"
19437 elif test -n "$PKG_CONFIG"; then
19438    if test -n "$PKG_CONFIG" && \
19439    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5
19440  ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5
19441  ac_status=$?
19442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19443  test $ac_status = 0; }; then
19444  pkg_cv_IVO_EXTRA_LIBS=`$PKG_CONFIG --libs "$ignore" 2>/dev/null`
19445		      test "x$?" != "x0" && pkg_failed=yes
19446else
19447  pkg_failed=yes
19448fi
19449 else
19450    pkg_failed=untried
19451fi
19452
19453
19454
19455if test $pkg_failed = yes; then
19456   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19457$as_echo "no" >&6; }
19458
19459if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19460        _pkg_short_errors_supported=yes
19461else
19462        _pkg_short_errors_supported=no
19463fi
19464        if test $_pkg_short_errors_supported = yes; then
19465	        IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$ignore" 2>&1`
19466        else
19467	        IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$ignore" 2>&1`
19468        fi
19469	# Put the nasty error message in config.log where it belongs
19470	echo "$IVO_EXTRA_PKG_ERRORS" >&5
19471
19472	ignore=""
19473elif test $pkg_failed = untried; then
19474     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19475$as_echo "no" >&6; }
19476	ignore=""
19477else
19478	IVO_EXTRA_CFLAGS=$pkg_cv_IVO_EXTRA_CFLAGS
19479	IVO_EXTRA_LIBS=$pkg_cv_IVO_EXTRA_LIBS
19480        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19481$as_echo "yes" >&6; }
19482	for ac_header in X11/extensions/Xinerama.h
19483do :
19484  ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlibint.h>
19485					     #include <X11/Xproto.h>
19486
19487"
19488if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
19489  cat >>confdefs.h <<_ACEOF
19490#define HAVE_X11_EXTENSIONS_XINERAMA_H 1
19491_ACEOF
19492 ivo_requires="$ignore $ivo_requires"
19493fi
19494
19495done
19496
19497fi
19498
19499	ignore="xcb-dri3 xcb-sync x11-xcb xshmfence x11"
19500
19501pkg_failed=no
19502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IVO_EXTRA" >&5
19503$as_echo_n "checking for IVO_EXTRA... " >&6; }
19504
19505if test -n "$IVO_EXTRA_CFLAGS"; then
19506    pkg_cv_IVO_EXTRA_CFLAGS="$IVO_EXTRA_CFLAGS"
19507 elif test -n "$PKG_CONFIG"; then
19508    if test -n "$PKG_CONFIG" && \
19509    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5
19510  ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5
19511  ac_status=$?
19512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19513  test $ac_status = 0; }; then
19514  pkg_cv_IVO_EXTRA_CFLAGS=`$PKG_CONFIG --cflags "$ignore" 2>/dev/null`
19515		      test "x$?" != "x0" && pkg_failed=yes
19516else
19517  pkg_failed=yes
19518fi
19519 else
19520    pkg_failed=untried
19521fi
19522if test -n "$IVO_EXTRA_LIBS"; then
19523    pkg_cv_IVO_EXTRA_LIBS="$IVO_EXTRA_LIBS"
19524 elif test -n "$PKG_CONFIG"; then
19525    if test -n "$PKG_CONFIG" && \
19526    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5
19527  ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5
19528  ac_status=$?
19529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19530  test $ac_status = 0; }; then
19531  pkg_cv_IVO_EXTRA_LIBS=`$PKG_CONFIG --libs "$ignore" 2>/dev/null`
19532		      test "x$?" != "x0" && pkg_failed=yes
19533else
19534  pkg_failed=yes
19535fi
19536 else
19537    pkg_failed=untried
19538fi
19539
19540
19541
19542if test $pkg_failed = yes; then
19543   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19544$as_echo "no" >&6; }
19545
19546if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19547        _pkg_short_errors_supported=yes
19548else
19549        _pkg_short_errors_supported=no
19550fi
19551        if test $_pkg_short_errors_supported = yes; then
19552	        IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$ignore" 2>&1`
19553        else
19554	        IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$ignore" 2>&1`
19555        fi
19556	# Put the nasty error message in config.log where it belongs
19557	echo "$IVO_EXTRA_PKG_ERRORS" >&5
19558
19559	ignore=""
19560elif test $pkg_failed = untried; then
19561     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19562$as_echo "no" >&6; }
19563	ignore=""
19564else
19565	IVO_EXTRA_CFLAGS=$pkg_cv_IVO_EXTRA_CFLAGS
19566	IVO_EXTRA_LIBS=$pkg_cv_IVO_EXTRA_LIBS
19567        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19568$as_echo "yes" >&6; }
19569	ivo_requires="$ivo_requires $ignore"; extra_cflags="-DDRI3"
19570fi
19571
19572
19573pkg_failed=no
19574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IVO" >&5
19575$as_echo_n "checking for IVO... " >&6; }
19576
19577if test -n "$IVO_CFLAGS"; then
19578    pkg_cv_IVO_CFLAGS="$IVO_CFLAGS"
19579 elif test -n "$PKG_CONFIG"; then
19580    if test -n "$PKG_CONFIG" && \
19581    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ivo_requires\""; } >&5
19582  ($PKG_CONFIG --exists --print-errors "$ivo_requires") 2>&5
19583  ac_status=$?
19584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19585  test $ac_status = 0; }; then
19586  pkg_cv_IVO_CFLAGS=`$PKG_CONFIG --cflags "$ivo_requires" 2>/dev/null`
19587		      test "x$?" != "x0" && pkg_failed=yes
19588else
19589  pkg_failed=yes
19590fi
19591 else
19592    pkg_failed=untried
19593fi
19594if test -n "$IVO_LIBS"; then
19595    pkg_cv_IVO_LIBS="$IVO_LIBS"
19596 elif test -n "$PKG_CONFIG"; then
19597    if test -n "$PKG_CONFIG" && \
19598    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ivo_requires\""; } >&5
19599  ($PKG_CONFIG --exists --print-errors "$ivo_requires") 2>&5
19600  ac_status=$?
19601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19602  test $ac_status = 0; }; then
19603  pkg_cv_IVO_LIBS=`$PKG_CONFIG --libs "$ivo_requires" 2>/dev/null`
19604		      test "x$?" != "x0" && pkg_failed=yes
19605else
19606  pkg_failed=yes
19607fi
19608 else
19609    pkg_failed=untried
19610fi
19611
19612
19613
19614if test $pkg_failed = yes; then
19615   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19616$as_echo "no" >&6; }
19617
19618if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19619        _pkg_short_errors_supported=yes
19620else
19621        _pkg_short_errors_supported=no
19622fi
19623        if test $_pkg_short_errors_supported = yes; then
19624	        IVO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$ivo_requires" 2>&1`
19625        else
19626	        IVO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$ivo_requires" 2>&1`
19627        fi
19628	# Put the nasty error message in config.log where it belongs
19629	echo "$IVO_PKG_ERRORS" >&5
19630
19631	ivo="no"
19632elif test $pkg_failed = untried; then
19633     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19634$as_echo "no" >&6; }
19635	ivo="no"
19636else
19637	IVO_CFLAGS=$pkg_cv_IVO_CFLAGS
19638	IVO_LIBS=$pkg_cv_IVO_LIBS
19639        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19640$as_echo "yes" >&6; }
19641	ivo="yes"
19642fi
19643	ac_fn_c_check_header_mongrel "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
19644if test "x$ac_cv_header_sys_timerfd_h" = xyes; then :
19645
19646else
19647  ivo="no"
19648fi
19649
19650
19651	if test "x$ivo" = "xno"; then
19652		if test "x$tools" = "xyes"; then
19653			as_fn_error $? "Incomplete requirements for intel-virtual-output, requires $ivo_requires" "$LINENO" 5
19654		fi
19655		tools="no"
19656	fi
19657
19658	IVO_CFLAGS="$IVO_CFLAGS $extra_cflags"
19659fi
19660if test "x$tools" != "xno"; then
19661      tools_msg="$tools_msg intel-virtual-output"
19662fi
19663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build additional tools" >&5
19664$as_echo_n "checking whether to build additional tools... " >&6; }
19665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tools" >&5
19666$as_echo "$tools" >&6; }
19667 if test "x$tools" != "xno"; then
19668  BUILD_TOOLS_TRUE=
19669  BUILD_TOOLS_FALSE='#'
19670else
19671  BUILD_TOOLS_TRUE='#'
19672  BUILD_TOOLS_FALSE=
19673fi
19674
19675
19676# Define a configure option for an alternate module directory
19677
19678# Check whether --with-xorg-module-dir was given.
19679if test "${with_xorg_module_dir+set}" = set; then :
19680  withval=$with_xorg_module_dir; moduledir="$withval"
19681else
19682  moduledir="$libdir/xorg/modules"
19683fi
19684
19685
19686# Check whether --enable-dri was given.
19687if test "${enable_dri+set}" = set; then :
19688  enableval=$enable_dri; DRI=$enableval
19689else
19690  DRI=auto
19691fi
19692
19693# Check whether --enable-dri1 was given.
19694if test "${enable_dri1+set}" = set; then :
19695  enableval=$enable_dri1; DRI1=$enableval
19696else
19697  DRI1=yes
19698fi
19699
19700# Check whether --enable-dri2 was given.
19701if test "${enable_dri2+set}" = set; then :
19702  enableval=$enable_dri2; DRI2=$enableval
19703else
19704  DRI2=yes
19705fi
19706
19707# Check whether --enable-dri3 was given.
19708if test "${enable_dri3+set}" = set; then :
19709  enableval=$enable_dri3; DRI3=$enableval
19710else
19711  DRI3=yes
19712fi
19713
19714
19715# Check whether --enable-xvmc was given.
19716if test "${enable_xvmc+set}" = set; then :
19717  enableval=$enable_xvmc; XVMC="$enableval"
19718else
19719  XVMC="yes"
19720fi
19721
19722
19723# Check whether --enable-kms was given.
19724if test "${enable_kms+set}" = set; then :
19725  enableval=$enable_kms; KMS="$enableval"
19726else
19727  KMS="yes"
19728fi
19729
19730# Check whether --enable-ums was given.
19731if test "${enable_ums+set}" = set; then :
19732  enableval=$enable_ums; UMS="$enableval"
19733else
19734  UMS="auto"
19735fi
19736
19737
19738# Check whether --enable-kms-only was given.
19739if test "${enable_kms_only+set}" = set; then :
19740  enableval=$enable_kms_only; ONLY_KMS="$enableval"
19741else
19742  ONLY_KMS="no"
19743fi
19744
19745
19746# Check whether --enable-ums-only was given.
19747if test "${enable_ums_only+set}" = set; then :
19748  enableval=$enable_ums_only; ONLY_UMS="$enableval"
19749else
19750  ONLY_UMS="no"
19751fi
19752
19753
19754required_xorg_server_version=1.6
19755required_pixman_version=0.16
19756
19757if pkg-config --exists 'pixman-1 >= 0.27.1'; then
19758
19759$as_echo "#define HAS_PIXMAN_GLYPHS 1" >>confdefs.h
19760
19761fi
19762
19763if pkg-config --exists 'pixman-1 >= 0.24.0'; then
19764
19765$as_echo "#define HAS_PIXMAN_TRIANGLES 1" >>confdefs.h
19766
19767fi
19768
19769# Store the list of server defined optional extensions in REQUIRED_MODULES
19770
19771
19772	SAVE_CFLAGS="$CFLAGS"
19773	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19774	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19775/* end confdefs.h.  */
19776
19777#include "xorg-server.h"
19778#if !defined RANDR
19779#error RANDR not defined
19780#endif
19781
19782int
19783main ()
19784{
19785
19786  ;
19787  return 0;
19788}
19789_ACEOF
19790if ac_fn_c_try_compile "$LINENO"; then :
19791  _EXT_CHECK=yes
19792else
19793  _EXT_CHECK=no
19794fi
19795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19796	CFLAGS="$SAVE_CFLAGS"
19797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19798$as_echo_n "checking if RANDR is defined... " >&6; }
19799	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19800$as_echo "$_EXT_CHECK" >&6; }
19801	if test "$_EXT_CHECK" != no; then
19802		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19803	fi
19804
19805
19806
19807	SAVE_CFLAGS="$CFLAGS"
19808	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19809	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19810/* end confdefs.h.  */
19811
19812#include "xorg-server.h"
19813#if !defined RENDER
19814#error RENDER not defined
19815#endif
19816
19817int
19818main ()
19819{
19820
19821  ;
19822  return 0;
19823}
19824_ACEOF
19825if ac_fn_c_try_compile "$LINENO"; then :
19826  _EXT_CHECK=yes
19827else
19828  _EXT_CHECK=no
19829fi
19830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19831	CFLAGS="$SAVE_CFLAGS"
19832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19833$as_echo_n "checking if RENDER is defined... " >&6; }
19834	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19835$as_echo "$_EXT_CHECK" >&6; }
19836	if test "$_EXT_CHECK" != no; then
19837		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19838	fi
19839
19840
19841
19842	SAVE_CFLAGS="$CFLAGS"
19843	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19844	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19845/* end confdefs.h.  */
19846
19847#include "xorg-server.h"
19848#if !defined DPMSExtension
19849#error DPMSExtension not defined
19850#endif
19851
19852int
19853main ()
19854{
19855
19856  ;
19857  return 0;
19858}
19859_ACEOF
19860if ac_fn_c_try_compile "$LINENO"; then :
19861  _EXT_CHECK=yes
19862else
19863  _EXT_CHECK=no
19864fi
19865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19866	CFLAGS="$SAVE_CFLAGS"
19867	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19868$as_echo_n "checking if DPMSExtension is defined... " >&6; }
19869	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19870$as_echo "$_EXT_CHECK" >&6; }
19871	if test "$_EXT_CHECK" != no; then
19872		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19873	fi
19874
19875
19876# Obtain compiler/linker options for the driver dependencies
19877
19878pkg_failed=no
19879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5
19880$as_echo_n "checking for DRM... " >&6; }
19881
19882if test -n "$DRM_CFLAGS"; then
19883    pkg_cv_DRM_CFLAGS="$DRM_CFLAGS"
19884 elif test -n "$PKG_CONFIG"; then
19885    if test -n "$PKG_CONFIG" && \
19886    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.20\""; } >&5
19887  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.20") 2>&5
19888  ac_status=$?
19889  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19890  test $ac_status = 0; }; then
19891  pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.20" 2>/dev/null`
19892		      test "x$?" != "x0" && pkg_failed=yes
19893else
19894  pkg_failed=yes
19895fi
19896 else
19897    pkg_failed=untried
19898fi
19899if test -n "$DRM_LIBS"; then
19900    pkg_cv_DRM_LIBS="$DRM_LIBS"
19901 elif test -n "$PKG_CONFIG"; then
19902    if test -n "$PKG_CONFIG" && \
19903    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.20\""; } >&5
19904  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.20") 2>&5
19905  ac_status=$?
19906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19907  test $ac_status = 0; }; then
19908  pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.20" 2>/dev/null`
19909		      test "x$?" != "x0" && pkg_failed=yes
19910else
19911  pkg_failed=yes
19912fi
19913 else
19914    pkg_failed=untried
19915fi
19916
19917
19918
19919if test $pkg_failed = yes; then
19920   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19921$as_echo "no" >&6; }
19922
19923if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19924        _pkg_short_errors_supported=yes
19925else
19926        _pkg_short_errors_supported=no
19927fi
19928        if test $_pkg_short_errors_supported = yes; then
19929	        DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.20" 2>&1`
19930        else
19931	        DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.20" 2>&1`
19932        fi
19933	# Put the nasty error message in config.log where it belongs
19934	echo "$DRM_PKG_ERRORS" >&5
19935
19936	as_fn_error $? "Package requirements (libdrm >= 2.4.20) were not met:
19937
19938$DRM_PKG_ERRORS
19939
19940Consider adjusting the PKG_CONFIG_PATH environment variable if you
19941installed software in a non-standard prefix.
19942
19943Alternatively, you may set the environment variables DRM_CFLAGS
19944and DRM_LIBS to avoid the need to call pkg-config.
19945See the pkg-config man page for more details." "$LINENO" 5
19946elif test $pkg_failed = untried; then
19947     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19948$as_echo "no" >&6; }
19949	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19951as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19952is in your PATH or set the PKG_CONFIG environment variable to the full
19953path to pkg-config.
19954
19955Alternatively, you may set the environment variables DRM_CFLAGS
19956and DRM_LIBS to avoid the need to call pkg-config.
19957See the pkg-config man page for more details.
19958
19959To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19960See \`config.log' for more details" "$LINENO" 5; }
19961else
19962	DRM_CFLAGS=$pkg_cv_DRM_CFLAGS
19963	DRM_LIBS=$pkg_cv_DRM_LIBS
19964        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19965$as_echo "yes" >&6; }
19966
19967fi # libdrm_intel is checked separately
19968
19969pkg_failed=no
19970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19971$as_echo_n "checking for PCIACCESS... " >&6; }
19972
19973if test -n "$PCIACCESS_CFLAGS"; then
19974    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19975 elif test -n "$PKG_CONFIG"; then
19976    if test -n "$PKG_CONFIG" && \
19977    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19978  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19979  ac_status=$?
19980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19981  test $ac_status = 0; }; then
19982  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
19983		      test "x$?" != "x0" && pkg_failed=yes
19984else
19985  pkg_failed=yes
19986fi
19987 else
19988    pkg_failed=untried
19989fi
19990if test -n "$PCIACCESS_LIBS"; then
19991    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19992 elif test -n "$PKG_CONFIG"; then
19993    if test -n "$PKG_CONFIG" && \
19994    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19995  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19996  ac_status=$?
19997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19998  test $ac_status = 0; }; then
19999  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
20000		      test "x$?" != "x0" && pkg_failed=yes
20001else
20002  pkg_failed=yes
20003fi
20004 else
20005    pkg_failed=untried
20006fi
20007
20008
20009
20010if test $pkg_failed = yes; then
20011   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20012$as_echo "no" >&6; }
20013
20014if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20015        _pkg_short_errors_supported=yes
20016else
20017        _pkg_short_errors_supported=no
20018fi
20019        if test $_pkg_short_errors_supported = yes; then
20020	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
20021        else
20022	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
20023        fi
20024	# Put the nasty error message in config.log where it belongs
20025	echo "$PCIACCESS_PKG_ERRORS" >&5
20026
20027	as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
20028
20029$PCIACCESS_PKG_ERRORS
20030
20031Consider adjusting the PKG_CONFIG_PATH environment variable if you
20032installed software in a non-standard prefix.
20033
20034Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20035and PCIACCESS_LIBS to avoid the need to call pkg-config.
20036See the pkg-config man page for more details." "$LINENO" 5
20037elif test $pkg_failed = untried; then
20038     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20039$as_echo "no" >&6; }
20040	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20042as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20043is in your PATH or set the PKG_CONFIG environment variable to the full
20044path to pkg-config.
20045
20046Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20047and PCIACCESS_LIBS to avoid the need to call pkg-config.
20048See the pkg-config man page for more details.
20049
20050To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20051See \`config.log' for more details" "$LINENO" 5; }
20052else
20053	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
20054	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
20055        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20056$as_echo "yes" >&6; }
20057
20058fi
20059
20060# Check whether --enable-sna was given.
20061if test "${enable_sna+set}" = set; then :
20062  enableval=$enable_sna; SNA="$enableval"
20063else
20064  SNA=auto
20065fi
20066
20067
20068if test "x$SNA" != "xno"; then
20069
20070$as_echo "#define USE_SNA 1" >>confdefs.h
20071
20072	for ac_header in sys/sysinfo.h
20073do :
20074  ac_fn_c_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
20075if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :
20076  cat >>confdefs.h <<_ACEOF
20077#define HAVE_SYS_SYSINFO_H 1
20078_ACEOF
20079
20080# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
20081# ----------------------------------------------------
20082# Tries to find if the field MEMBER exists in type AGGR, after including
20083# INCLUDES, setting cache variable VAR accordingly.
20084ac_fn_c_check_member ()
20085{
20086  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
20088$as_echo_n "checking for $2.$3... " >&6; }
20089if eval \${$4+:} false; then :
20090  $as_echo_n "(cached) " >&6
20091else
20092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20093/* end confdefs.h.  */
20094$5
20095int
20096main ()
20097{
20098static $2 ac_aggr;
20099if (ac_aggr.$3)
20100return 0;
20101  ;
20102  return 0;
20103}
20104_ACEOF
20105if ac_fn_c_try_compile "$LINENO"; then :
20106  eval "$4=yes"
20107else
20108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20109/* end confdefs.h.  */
20110$5
20111int
20112main ()
20113{
20114static $2 ac_aggr;
20115if (sizeof ac_aggr.$3)
20116return 0;
20117  ;
20118  return 0;
20119}
20120_ACEOF
20121if ac_fn_c_try_compile "$LINENO"; then :
20122  eval "$4=yes"
20123else
20124  eval "$4=no"
20125fi
20126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20127fi
20128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129fi
20130eval ac_res=\$$4
20131	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20132$as_echo "$ac_res" >&6; }
20133  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
20134
20135} # ac_fn_c_check_member
20136ac_fn_c_check_member "$LINENO" "struct sysinfo" "totalram" "ac_cv_member_struct_sysinfo_totalram" "#include <sys/sysinfo.h>
20137"
20138if test "x$ac_cv_member_struct_sysinfo_totalram" = xyes; then :
20139
20140cat >>confdefs.h <<_ACEOF
20141#define HAVE_STRUCT_SYSINFO_TOTALRAM 1
20142_ACEOF
20143
20144
20145fi
20146
20147fi
20148
20149done
20150
20151fi
20152
20153uxa_requires_libdrm=2.4.52
20154# Check whether --enable-uxa was given.
20155if test "${enable_uxa+set}" = set; then :
20156  enableval=$enable_uxa; UXA="$enableval"
20157else
20158  UXA=auto
20159fi
20160
20161if test "x$UXA" = "xauto"; then
20162	if ! pkg-config --exists "libdrm_intel >= $uxa_requires_libdrm"; then
20163		UXA=no
20164	fi
20165	if ! pkg-config --exists 'pixman-1 >= 0.24.0'; then
20166		UXA=no
20167	fi
20168fi
20169if test "x$UXA" != "xno"; then
20170
20171$as_echo "#define USE_UXA 1" >>confdefs.h
20172
20173
20174pkg_failed=no
20175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRMINTEL" >&5
20176$as_echo_n "checking for DRMINTEL... " >&6; }
20177
20178if test -n "$DRMINTEL_CFLAGS"; then
20179    pkg_cv_DRMINTEL_CFLAGS="$DRMINTEL_CFLAGS"
20180 elif test -n "$PKG_CONFIG"; then
20181    if test -n "$PKG_CONFIG" && \
20182    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$uxa_requires_libdrm\""; } >&5
20183  ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $uxa_requires_libdrm") 2>&5
20184  ac_status=$?
20185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20186  test $ac_status = 0; }; then
20187  pkg_cv_DRMINTEL_CFLAGS=`$PKG_CONFIG --cflags "libdrm_intel >= $uxa_requires_libdrm" 2>/dev/null`
20188		      test "x$?" != "x0" && pkg_failed=yes
20189else
20190  pkg_failed=yes
20191fi
20192 else
20193    pkg_failed=untried
20194fi
20195if test -n "$DRMINTEL_LIBS"; then
20196    pkg_cv_DRMINTEL_LIBS="$DRMINTEL_LIBS"
20197 elif test -n "$PKG_CONFIG"; then
20198    if test -n "$PKG_CONFIG" && \
20199    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$uxa_requires_libdrm\""; } >&5
20200  ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $uxa_requires_libdrm") 2>&5
20201  ac_status=$?
20202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20203  test $ac_status = 0; }; then
20204  pkg_cv_DRMINTEL_LIBS=`$PKG_CONFIG --libs "libdrm_intel >= $uxa_requires_libdrm" 2>/dev/null`
20205		      test "x$?" != "x0" && pkg_failed=yes
20206else
20207  pkg_failed=yes
20208fi
20209 else
20210    pkg_failed=untried
20211fi
20212
20213
20214
20215if test $pkg_failed = yes; then
20216   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20217$as_echo "no" >&6; }
20218
20219if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20220        _pkg_short_errors_supported=yes
20221else
20222        _pkg_short_errors_supported=no
20223fi
20224        if test $_pkg_short_errors_supported = yes; then
20225	        DRMINTEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_intel >= $uxa_requires_libdrm" 2>&1`
20226        else
20227	        DRMINTEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_intel >= $uxa_requires_libdrm" 2>&1`
20228        fi
20229	# Put the nasty error message in config.log where it belongs
20230	echo "$DRMINTEL_PKG_ERRORS" >&5
20231
20232	as_fn_error $? "Package requirements (libdrm_intel >= $uxa_requires_libdrm) were not met:
20233
20234$DRMINTEL_PKG_ERRORS
20235
20236Consider adjusting the PKG_CONFIG_PATH environment variable if you
20237installed software in a non-standard prefix.
20238
20239Alternatively, you may set the environment variables DRMINTEL_CFLAGS
20240and DRMINTEL_LIBS to avoid the need to call pkg-config.
20241See the pkg-config man page for more details." "$LINENO" 5
20242elif test $pkg_failed = untried; then
20243     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20244$as_echo "no" >&6; }
20245	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20247as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20248is in your PATH or set the PKG_CONFIG environment variable to the full
20249path to pkg-config.
20250
20251Alternatively, you may set the environment variables DRMINTEL_CFLAGS
20252and DRMINTEL_LIBS to avoid the need to call pkg-config.
20253See the pkg-config man page for more details.
20254
20255To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20256See \`config.log' for more details" "$LINENO" 5; }
20257else
20258	DRMINTEL_CFLAGS=$pkg_cv_DRMINTEL_CFLAGS
20259	DRMINTEL_LIBS=$pkg_cv_DRMINTEL_LIBS
20260        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20261$as_echo "yes" >&6; }
20262
20263fi
20264	required_pixman_version=0.24
20265	UXA=yes
20266fi
20267
20268# Check whether --enable-glamor was given.
20269if test "${enable_glamor+set}" = set; then :
20270  enableval=$enable_glamor; GLAMOR="$enableval"
20271else
20272  GLAMOR="no"
20273fi
20274
20275if test "x$GLAMOR" != "xno"; then
20276	if test "x$UXA" != "xyes"; then
20277		as_fn_error $? "Glamor acceleration requested but UXA is not enabled" "$LINENO" 5
20278	fi
20279	if pkg-config --exists "xorg-server >= 1.15.99.901"; then
20280		GLAMOR="yes (using Xorg glamor module)"
20281	else
20282
20283pkg_failed=no
20284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR" >&5
20285$as_echo_n "checking for LIBGLAMOR... " >&6; }
20286
20287if test -n "$LIBGLAMOR_CFLAGS"; then
20288    pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_CFLAGS"
20289 elif test -n "$PKG_CONFIG"; then
20290    if test -n "$PKG_CONFIG" && \
20291    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
20292  ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
20293  ac_status=$?
20294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20295  test $ac_status = 0; }; then
20296  pkg_cv_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.6.0" 2>/dev/null`
20297		      test "x$?" != "x0" && pkg_failed=yes
20298else
20299  pkg_failed=yes
20300fi
20301 else
20302    pkg_failed=untried
20303fi
20304if test -n "$LIBGLAMOR_LIBS"; then
20305    pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_LIBS"
20306 elif test -n "$PKG_CONFIG"; then
20307    if test -n "$PKG_CONFIG" && \
20308    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
20309  ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
20310  ac_status=$?
20311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20312  test $ac_status = 0; }; then
20313  pkg_cv_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.6.0" 2>/dev/null`
20314		      test "x$?" != "x0" && pkg_failed=yes
20315else
20316  pkg_failed=yes
20317fi
20318 else
20319    pkg_failed=untried
20320fi
20321
20322
20323
20324if test $pkg_failed = yes; then
20325   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20326$as_echo "no" >&6; }
20327
20328if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20329        _pkg_short_errors_supported=yes
20330else
20331        _pkg_short_errors_supported=no
20332fi
20333        if test $_pkg_short_errors_supported = yes; then
20334	        LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
20335        else
20336	        LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
20337        fi
20338	# Put the nasty error message in config.log where it belongs
20339	echo "$LIBGLAMOR_PKG_ERRORS" >&5
20340
20341	as_fn_error $? "Package requirements (glamor >= 0.6.0) were not met:
20342
20343$LIBGLAMOR_PKG_ERRORS
20344
20345Consider adjusting the PKG_CONFIG_PATH environment variable if you
20346installed software in a non-standard prefix.
20347
20348Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
20349and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
20350See the pkg-config man page for more details." "$LINENO" 5
20351elif test $pkg_failed = untried; then
20352     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20353$as_echo "no" >&6; }
20354	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20356as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20357is in your PATH or set the PKG_CONFIG environment variable to the full
20358path to pkg-config.
20359
20360Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
20361and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
20362See the pkg-config man page for more details.
20363
20364To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20365See \`config.log' for more details" "$LINENO" 5; }
20366else
20367	LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS
20368	LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_LIBS
20369        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20370$as_echo "yes" >&6; }
20371
20372fi
20373
20374pkg_failed=no
20375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR_EGL" >&5
20376$as_echo_n "checking for LIBGLAMOR_EGL... " >&6; }
20377
20378if test -n "$LIBGLAMOR_EGL_CFLAGS"; then
20379    pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_CFLAGS"
20380 elif test -n "$PKG_CONFIG"; then
20381    if test -n "$PKG_CONFIG" && \
20382    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
20383  ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
20384  ac_status=$?
20385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20386  test $ac_status = 0; }; then
20387  pkg_cv_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 2>/dev/null`
20388		      test "x$?" != "x0" && pkg_failed=yes
20389else
20390  pkg_failed=yes
20391fi
20392 else
20393    pkg_failed=untried
20394fi
20395if test -n "$LIBGLAMOR_EGL_LIBS"; then
20396    pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_LIBS"
20397 elif test -n "$PKG_CONFIG"; then
20398    if test -n "$PKG_CONFIG" && \
20399    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
20400  ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
20401  ac_status=$?
20402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20403  test $ac_status = 0; }; then
20404  pkg_cv_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 2>/dev/null`
20405		      test "x$?" != "x0" && pkg_failed=yes
20406else
20407  pkg_failed=yes
20408fi
20409 else
20410    pkg_failed=untried
20411fi
20412
20413
20414
20415if test $pkg_failed = yes; then
20416   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20417$as_echo "no" >&6; }
20418
20419if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20420        _pkg_short_errors_supported=yes
20421else
20422        _pkg_short_errors_supported=no
20423fi
20424        if test $_pkg_short_errors_supported = yes; then
20425	        LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1`
20426        else
20427	        LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1`
20428        fi
20429	# Put the nasty error message in config.log where it belongs
20430	echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5
20431
20432	as_fn_error $? "Package requirements (glamor-egl) were not met:
20433
20434$LIBGLAMOR_EGL_PKG_ERRORS
20435
20436Consider adjusting the PKG_CONFIG_PATH environment variable if you
20437installed software in a non-standard prefix.
20438
20439Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
20440and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
20441See the pkg-config man page for more details." "$LINENO" 5
20442elif test $pkg_failed = untried; then
20443     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20444$as_echo "no" >&6; }
20445	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20447as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20448is in your PATH or set the PKG_CONFIG environment variable to the full
20449path to pkg-config.
20450
20451Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
20452and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
20453See the pkg-config man page for more details.
20454
20455To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20456See \`config.log' for more details" "$LINENO" 5; }
20457else
20458	LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS
20459	LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS
20460        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20461$as_echo "yes" >&6; }
20462
20463fi
20464		GLAMOR="yes (using libglamor)"
20465	fi
20466
20467$as_echo "#define USE_GLAMOR 1" >>confdefs.h
20468
20469fi
20470
20471
20472pkg_failed=no
20473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
20474$as_echo_n "checking for XORG... " >&6; }
20475
20476if test -n "$XORG_CFLAGS"; then
20477    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
20478 elif test -n "$PKG_CONFIG"; then
20479    if test -n "$PKG_CONFIG" && \
20480    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= \$required_xorg_server_version xproto fontsproto pixman-1 >= \$required_pixman_version \$REQUIRED_MODULES\""; } >&5
20481  ($PKG_CONFIG --exists --print-errors "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES") 2>&5
20482  ac_status=$?
20483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20484  test $ac_status = 0; }; then
20485  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>/dev/null`
20486		      test "x$?" != "x0" && pkg_failed=yes
20487else
20488  pkg_failed=yes
20489fi
20490 else
20491    pkg_failed=untried
20492fi
20493if test -n "$XORG_LIBS"; then
20494    pkg_cv_XORG_LIBS="$XORG_LIBS"
20495 elif test -n "$PKG_CONFIG"; then
20496    if test -n "$PKG_CONFIG" && \
20497    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= \$required_xorg_server_version xproto fontsproto pixman-1 >= \$required_pixman_version \$REQUIRED_MODULES\""; } >&5
20498  ($PKG_CONFIG --exists --print-errors "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES") 2>&5
20499  ac_status=$?
20500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20501  test $ac_status = 0; }; then
20502  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>/dev/null`
20503		      test "x$?" != "x0" && pkg_failed=yes
20504else
20505  pkg_failed=yes
20506fi
20507 else
20508    pkg_failed=untried
20509fi
20510
20511
20512
20513if test $pkg_failed = yes; then
20514   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20515$as_echo "no" >&6; }
20516
20517if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20518        _pkg_short_errors_supported=yes
20519else
20520        _pkg_short_errors_supported=no
20521fi
20522        if test $_pkg_short_errors_supported = yes; then
20523	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>&1`
20524        else
20525	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>&1`
20526        fi
20527	# Put the nasty error message in config.log where it belongs
20528	echo "$XORG_PKG_ERRORS" >&5
20529
20530	as_fn_error $? "Package requirements (xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES) were not met:
20531
20532$XORG_PKG_ERRORS
20533
20534Consider adjusting the PKG_CONFIG_PATH environment variable if you
20535installed software in a non-standard prefix.
20536
20537Alternatively, you may set the environment variables XORG_CFLAGS
20538and XORG_LIBS to avoid the need to call pkg-config.
20539See the pkg-config man page for more details." "$LINENO" 5
20540elif test $pkg_failed = untried; then
20541     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20542$as_echo "no" >&6; }
20543	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20545as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20546is in your PATH or set the PKG_CONFIG environment variable to the full
20547path to pkg-config.
20548
20549Alternatively, you may set the environment variables XORG_CFLAGS
20550and XORG_LIBS to avoid the need to call pkg-config.
20551See the pkg-config man page for more details.
20552
20553To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20554See \`config.log' for more details" "$LINENO" 5; }
20555else
20556	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20557	XORG_LIBS=$pkg_cv_XORG_LIBS
20558        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20559$as_echo "yes" >&6; }
20560
20561fi
20562ABI_VERSION=`$PKG_CONFIG --variable=abi_videodrv xorg-server`
20563
20564if test "x$ONLY_UMS" = "xyes"; then
20565	UMS="yes"
20566	KMS="no"
20567fi
20568
20569if test "x$ONLY_KMS" = "xyes"; then
20570	UMS="no"
20571	KMS="yes"
20572fi
20573
20574save_CPPFLAGS=$CPPFLAGS
20575CPPFLAGS=$XORG_CFLAGS
20576for ac_header in vgaHW.h
20577do :
20578  ac_fn_c_check_header_mongrel "$LINENO" "vgaHW.h" "ac_cv_header_vgaHW_h" "$ac_includes_default"
20579if test "x$ac_cv_header_vgaHW_h" = xyes; then :
20580  cat >>confdefs.h <<_ACEOF
20581#define HAVE_VGAHW_H 1
20582_ACEOF
20583 legacy="yes"
20584else
20585  legacy="no"
20586fi
20587
20588done
20589
20590CPPFLAGS=$save_CPPFLAGS
20591if test "x$UMS" = "xauto"; then
20592	UMS="$legacy"
20593fi
20594if test "x$UMS" = "xyes" -a "x$legacy" = "xno"; then
20595	as_fn_error $? "vgaHW support required for UMS (i810) driver" "$LINENO" 5
20596fi
20597
20598if test "x$UMS" = "xyes"; then
20599	# Check whether --enable-xaa was given.
20600if test "${enable_xaa+set}" = set; then :
20601  enableval=$enable_xaa; XAA="$enableval"
20602else
20603  XAA="auto"
20604fi
20605
20606	if test "x$XAA" != "xno"; then
20607		save_CPPFLAGS=$CPPFLAGS
20608		CPPFLAGS=$XORG_CFLAGS
20609		for ac_header in xaa.h
20610do :
20611  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
20612if test "x$ac_cv_header_xaa_h" = xyes; then :
20613  cat >>confdefs.h <<_ACEOF
20614#define HAVE_XAA_H 1
20615_ACEOF
20616 XAA="yes"
20617else
20618  XAA="no"
20619fi
20620
20621done
20622
20623		CPPFLAGS=$save_CPPFLAGS
20624	fi
20625	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
20626$as_echo_n "checking whether to include XAA support... " >&6; }
20627	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
20628$as_echo "$XAA" >&6; }
20629
20630	# Check whether --enable-dga was given.
20631if test "${enable_dga+set}" = set; then :
20632  enableval=$enable_dga; DGA="$enableval"
20633else
20634  DGA="auto"
20635fi
20636
20637	if test "x$DGA" != "xno"; then
20638		save_CFLAGS=$CFLAGS
20639		CFLAGS=$XORG_CFLAGS
20640		for ac_header in dgaproc.h
20641do :
20642  ac_fn_c_check_header_compile "$LINENO" "dgaproc.h" "ac_cv_header_dgaproc_h" "#include <dixstruct.h>
20643"
20644if test "x$ac_cv_header_dgaproc_h" = xyes; then :
20645  cat >>confdefs.h <<_ACEOF
20646#define HAVE_DGAPROC_H 1
20647_ACEOF
20648 DGA="yes"
20649else
20650  DGA="no"
20651fi
20652
20653done
20654
20655		CFLAGS=$save_CFLAGS
20656	fi
20657	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DGA support" >&5
20658$as_echo_n "checking whether to include DGA support... " >&6; }
20659	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DGA" >&5
20660$as_echo "$DGA" >&6; }
20661fi
20662 if test "x$DGA" = "xyes"; then
20663  DGA_TRUE=
20664  DGA_FALSE='#'
20665else
20666  DGA_TRUE='#'
20667  DGA_FALSE=
20668fi
20669
20670 if test "x$XAA" = "xyes"; then
20671  XAA_TRUE=
20672  XAA_FALSE='#'
20673else
20674  XAA_TRUE='#'
20675  XAA_FALSE=
20676fi
20677
20678
20679 if test "x$KMS" = "xyes"; then
20680  KMS_TRUE=
20681  KMS_FALSE='#'
20682else
20683  KMS_TRUE='#'
20684  KMS_FALSE=
20685fi
20686
20687if test "x$KMS" = "xyes"; then
20688
20689$as_echo "#define KMS 1" >>confdefs.h
20690
20691fi
20692 if test "x$UMS" = "xyes"; then
20693  UMS_TRUE=
20694  UMS_FALSE='#'
20695else
20696  UMS_TRUE='#'
20697  UMS_FALSE=
20698fi
20699
20700if test "x$UMS" = "xyes"; then
20701
20702$as_echo "#define UMS 1" >>confdefs.h
20703
20704fi
20705
20706have_dri1=no
20707
20708
20709	SAVE_CFLAGS="$CFLAGS"
20710	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
20711	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20712/* end confdefs.h.  */
20713
20714#include "xorg-server.h"
20715#if !defined XF86DRI
20716#error XF86DRI not defined
20717#endif
20718
20719int
20720main ()
20721{
20722
20723  ;
20724  return 0;
20725}
20726_ACEOF
20727if ac_fn_c_try_compile "$LINENO"; then :
20728  _EXT_CHECK=yes
20729else
20730  _EXT_CHECK=no
20731fi
20732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20733	CFLAGS="$SAVE_CFLAGS"
20734	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86DRI is defined" >&5
20735$as_echo_n "checking if XF86DRI is defined... " >&6; }
20736	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
20737$as_echo "$_EXT_CHECK" >&6; }
20738	if test "$_EXT_CHECK" != no; then
20739		REQUIRED_MODULES="$REQUIRED_MODULES xf86driproto"
20740	fi
20741
20742if test "x$_EXT_CHECK" != "xno" -a "x$DRI" != "xno" -a "x$DRI1" != "xno" -a "x$UMS" = "xyes"; then
20743
20744pkg_failed=no
20745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI1" >&5
20746$as_echo_n "checking for DRI1... " >&6; }
20747
20748if test -n "$DRI1_CFLAGS"; then
20749    pkg_cv_DRI1_CFLAGS="$DRI1_CFLAGS"
20750 elif test -n "$PKG_CONFIG"; then
20751    if test -n "$PKG_CONFIG" && \
20752    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5
20753  ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
20754  ac_status=$?
20755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20756  test $ac_status = 0; }; then
20757  pkg_cv_DRI1_CFLAGS=`$PKG_CONFIG --cflags "xf86driproto" 2>/dev/null`
20758		      test "x$?" != "x0" && pkg_failed=yes
20759else
20760  pkg_failed=yes
20761fi
20762 else
20763    pkg_failed=untried
20764fi
20765if test -n "$DRI1_LIBS"; then
20766    pkg_cv_DRI1_LIBS="$DRI1_LIBS"
20767 elif test -n "$PKG_CONFIG"; then
20768    if test -n "$PKG_CONFIG" && \
20769    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5
20770  ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
20771  ac_status=$?
20772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20773  test $ac_status = 0; }; then
20774  pkg_cv_DRI1_LIBS=`$PKG_CONFIG --libs "xf86driproto" 2>/dev/null`
20775		      test "x$?" != "x0" && pkg_failed=yes
20776else
20777  pkg_failed=yes
20778fi
20779 else
20780    pkg_failed=untried
20781fi
20782
20783
20784
20785if test $pkg_failed = yes; then
20786   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20787$as_echo "no" >&6; }
20788
20789if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20790        _pkg_short_errors_supported=yes
20791else
20792        _pkg_short_errors_supported=no
20793fi
20794        if test $_pkg_short_errors_supported = yes; then
20795	        DRI1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86driproto" 2>&1`
20796        else
20797	        DRI1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86driproto" 2>&1`
20798        fi
20799	# Put the nasty error message in config.log where it belongs
20800	echo "$DRI1_PKG_ERRORS" >&5
20801
20802	have_dri1=no
20803elif test $pkg_failed = untried; then
20804     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20805$as_echo "no" >&6; }
20806	have_dri1=no
20807else
20808	DRI1_CFLAGS=$pkg_cv_DRI1_CFLAGS
20809	DRI1_LIBS=$pkg_cv_DRI1_LIBS
20810        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20811$as_echo "yes" >&6; }
20812	have_dri1=$DRI
20813fi
20814        save_CFLAGS="$CFLAGS"
20815        save_CPPFLAGS="$CPPFLAGS"
20816        CFLAGS="$CFLAGS $XORG_CFLAGS $DRI1_CFLAGS $DRM_CFLAGS"
20817        CPPFLAGS="$CPPFLAGS $XORG_CFLAGS $DRI1_CFLAGS $DRM_CFLAGS"
20818        for ac_header in dri.h sarea.h dristruct.h
20819do :
20820  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20821ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "/* for dri.h */
20822                 #include <xf86str.h>
20823                 /* for dristruct.h */
20824                 #include <xorg-server.h>
20825                 #ifdef HAVE_DRI_H
20826                 # include <dri.h>
20827                 #endif
20828                 #ifdef HAVE_SAREA_H
20829                 # include <sarea.h>
20830                 #endif
20831
20832"
20833if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20834  cat >>confdefs.h <<_ACEOF
20835#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20836_ACEOF
20837
20838else
20839  have_dri1=no
20840fi
20841
20842done
20843
20844        CFLAGS="$save_CFLAGS"
20845        CPPFLAGS="$save_CPPFLAGS"
20846fi
20847
20848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI1 support" >&5
20849$as_echo_n "checking whether to include DRI1 support... " >&6; }
20850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dri1" >&5
20851$as_echo "$have_dri1" >&6; }
20852
20853 if test "x$have_dri1" != "xno"; then
20854  DRI1_TRUE=
20855  DRI1_FALSE='#'
20856else
20857  DRI1_TRUE='#'
20858  DRI1_FALSE=
20859fi
20860
20861if test "x$have_dri1" != "xno"; then
20862
20863$as_echo "#define HAVE_DRI1 1" >>confdefs.h
20864
20865	dri_msg="$dri_msg DRI1"
20866else
20867        DRI1_CFLAGS=""
20868        DRI1_LIBS=""
20869
20870        if test "x$DRI" = "xyes" -a "x$UMS" = "xyes" -a "x$DRI1" != "xno"; then
20871                as_fn_error $? "DRI1 requested but prerequisites not found" "$LINENO" 5
20872        fi
20873fi
20874
20875have_dri2=no
20876have_dri3=no
20877if test "x$DRI" != "xno"; then
20878	if test "x$DRI2" != "xno"; then
20879
20880pkg_failed=no
20881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2" >&5
20882$as_echo_n "checking for DRI2... " >&6; }
20883
20884if test -n "$DRI2_CFLAGS"; then
20885    pkg_cv_DRI2_CFLAGS="$DRI2_CFLAGS"
20886 elif test -n "$PKG_CONFIG"; then
20887    if test -n "$PKG_CONFIG" && \
20888    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.6\""; } >&5
20889  ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.6") 2>&5
20890  ac_status=$?
20891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20892  test $ac_status = 0; }; then
20893  pkg_cv_DRI2_CFLAGS=`$PKG_CONFIG --cflags "dri2proto >= 2.6" 2>/dev/null`
20894		      test "x$?" != "x0" && pkg_failed=yes
20895else
20896  pkg_failed=yes
20897fi
20898 else
20899    pkg_failed=untried
20900fi
20901if test -n "$DRI2_LIBS"; then
20902    pkg_cv_DRI2_LIBS="$DRI2_LIBS"
20903 elif test -n "$PKG_CONFIG"; then
20904    if test -n "$PKG_CONFIG" && \
20905    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.6\""; } >&5
20906  ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.6") 2>&5
20907  ac_status=$?
20908  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20909  test $ac_status = 0; }; then
20910  pkg_cv_DRI2_LIBS=`$PKG_CONFIG --libs "dri2proto >= 2.6" 2>/dev/null`
20911		      test "x$?" != "x0" && pkg_failed=yes
20912else
20913  pkg_failed=yes
20914fi
20915 else
20916    pkg_failed=untried
20917fi
20918
20919
20920
20921if test $pkg_failed = yes; then
20922   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20923$as_echo "no" >&6; }
20924
20925if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20926        _pkg_short_errors_supported=yes
20927else
20928        _pkg_short_errors_supported=no
20929fi
20930        if test $_pkg_short_errors_supported = yes; then
20931	        DRI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dri2proto >= 2.6" 2>&1`
20932        else
20933	        DRI2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dri2proto >= 2.6" 2>&1`
20934        fi
20935	# Put the nasty error message in config.log where it belongs
20936	echo "$DRI2_PKG_ERRORS" >&5
20937
20938	have_dri2=no
20939elif test $pkg_failed = untried; then
20940     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20941$as_echo "no" >&6; }
20942	have_dri2=no
20943else
20944	DRI2_CFLAGS=$pkg_cv_DRI2_CFLAGS
20945	DRI2_LIBS=$pkg_cv_DRI2_LIBS
20946        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20947$as_echo "yes" >&6; }
20948	have_dri2=$DRI
20949fi
20950	fi
20951	if test "x$have_dri2" != "xno"; then
20952		save_CFLAGS=$CFLAGS
20953		CFLAGS="$XORG_CFLAGS $DRM_CFLAGS $DRI1_CFLAGS $DRI2_CFLAGS"
20954		for ac_header in dri2.h
20955do :
20956  ac_fn_c_check_header_compile "$LINENO" "dri2.h" "ac_cv_header_dri2_h" "
20957#include <dixstruct.h>
20958#include <drm.h>
20959
20960"
20961if test "x$ac_cv_header_dri2_h" = xyes; then :
20962  cat >>confdefs.h <<_ACEOF
20963#define HAVE_DRI2_H 1
20964_ACEOF
20965
20966else
20967  have_dri2=no
20968fi
20969
20970done
20971
20972		CFLAGS=$save_CFLAGS
20973	fi
20974	if test "x$have_dri2" != "xno"; then
20975		dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri`
20976		if test "x$dridriverdir" = "x"; then
20977			dridriverdir="$libdir/dri"
20978		fi
20979
20980  prefix_NONE=
20981  exec_prefix_NONE=
20982  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20983  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20984  eval ac_define_dir="\"$dridriverdir\""
20985  eval ac_define_dir="\"$ac_define_dir\""
20986  DRI_DRIVER_PATH="$ac_define_dir"
20987
20988
20989cat >>confdefs.h <<_ACEOF
20990#define DRI_DRIVER_PATH "$ac_define_dir"
20991_ACEOF
20992
20993  test "$prefix_NONE" && prefix=NONE
20994  test "$exec_prefix_NONE" && exec_prefix=NONE
20995
20996	fi
20997
20998	if test "x$DRI3" != "xno"; then
20999
21000
21001	SAVE_CFLAGS="$CFLAGS"
21002	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
21003	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21004/* end confdefs.h.  */
21005
21006#include "xorg-server.h"
21007#if !defined DRI3
21008#error DRI3 not defined
21009#endif
21010
21011int
21012main ()
21013{
21014
21015  ;
21016  return 0;
21017}
21018_ACEOF
21019if ac_fn_c_try_compile "$LINENO"; then :
21020  _EXT_CHECK=yes
21021else
21022  _EXT_CHECK=no
21023fi
21024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21025	CFLAGS="$SAVE_CFLAGS"
21026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DRI3 is defined" >&5
21027$as_echo_n "checking if DRI3 is defined... " >&6; }
21028	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
21029$as_echo "$_EXT_CHECK" >&6; }
21030	if test "$_EXT_CHECK" != no; then
21031		REQUIRED_MODULES="$REQUIRED_MODULES dri3proto"
21032	fi
21033
21034		if test "x$_EXT_CHECK" != "xno"; then
21035
21036pkg_failed=no
21037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI3" >&5
21038$as_echo_n "checking for DRI3... " >&6; }
21039
21040if test -n "$DRI3_CFLAGS"; then
21041    pkg_cv_DRI3_CFLAGS="$DRI3_CFLAGS"
21042 elif test -n "$PKG_CONFIG"; then
21043    if test -n "$PKG_CONFIG" && \
21044    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri3proto\""; } >&5
21045  ($PKG_CONFIG --exists --print-errors "dri3proto") 2>&5
21046  ac_status=$?
21047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21048  test $ac_status = 0; }; then
21049  pkg_cv_DRI3_CFLAGS=`$PKG_CONFIG --cflags "dri3proto" 2>/dev/null`
21050		      test "x$?" != "x0" && pkg_failed=yes
21051else
21052  pkg_failed=yes
21053fi
21054 else
21055    pkg_failed=untried
21056fi
21057if test -n "$DRI3_LIBS"; then
21058    pkg_cv_DRI3_LIBS="$DRI3_LIBS"
21059 elif test -n "$PKG_CONFIG"; then
21060    if test -n "$PKG_CONFIG" && \
21061    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri3proto\""; } >&5
21062  ($PKG_CONFIG --exists --print-errors "dri3proto") 2>&5
21063  ac_status=$?
21064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21065  test $ac_status = 0; }; then
21066  pkg_cv_DRI3_LIBS=`$PKG_CONFIG --libs "dri3proto" 2>/dev/null`
21067		      test "x$?" != "x0" && pkg_failed=yes
21068else
21069  pkg_failed=yes
21070fi
21071 else
21072    pkg_failed=untried
21073fi
21074
21075
21076
21077if test $pkg_failed = yes; then
21078   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21079$as_echo "no" >&6; }
21080
21081if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21082        _pkg_short_errors_supported=yes
21083else
21084        _pkg_short_errors_supported=no
21085fi
21086        if test $_pkg_short_errors_supported = yes; then
21087	        DRI3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dri3proto" 2>&1`
21088        else
21089	        DRI3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dri3proto" 2>&1`
21090        fi
21091	# Put the nasty error message in config.log where it belongs
21092	echo "$DRI3_PKG_ERRORS" >&5
21093
21094	as_fn_error $? "Package requirements (dri3proto) were not met:
21095
21096$DRI3_PKG_ERRORS
21097
21098Consider adjusting the PKG_CONFIG_PATH environment variable if you
21099installed software in a non-standard prefix.
21100
21101Alternatively, you may set the environment variables DRI3_CFLAGS
21102and DRI3_LIBS to avoid the need to call pkg-config.
21103See the pkg-config man page for more details." "$LINENO" 5
21104elif test $pkg_failed = untried; then
21105     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21106$as_echo "no" >&6; }
21107	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21109as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21110is in your PATH or set the PKG_CONFIG environment variable to the full
21111path to pkg-config.
21112
21113Alternatively, you may set the environment variables DRI3_CFLAGS
21114and DRI3_LIBS to avoid the need to call pkg-config.
21115See the pkg-config man page for more details.
21116
21117To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21118See \`config.log' for more details" "$LINENO" 5; }
21119else
21120	DRI3_CFLAGS=$pkg_cv_DRI3_CFLAGS
21121	DRI3_LIBS=$pkg_cv_DRI3_LIBS
21122        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21123$as_echo "yes" >&6; }
21124	have_dri3=$DRI
21125fi
21126		fi
21127	fi
21128	if test "x$have_dri3" != "xno"; then
21129		save_CFLAGS=$CFLAGS
21130		CFLAGS="$XORG_CFLAGS $DRI3_CFLAGS"
21131		ac_fn_c_check_decl "$LINENO" "DRI3" "ac_cv_have_decl_DRI3" "#include <xorg-server.h>
21132"
21133if test "x$ac_cv_have_decl_DRI3" = xyes; then :
21134
21135else
21136  have_dri3=no
21137fi
21138
21139		for ac_header in misyncstr.h misyncshm.h
21140do :
21141  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21142ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21143#include <xorg-server.h>
21144#include <xf86str.h>
21145#include <misync.h>
21146
21147"
21148if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21149  cat >>confdefs.h <<_ACEOF
21150#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21151_ACEOF
21152
21153else
21154  have_dri3=no
21155fi
21156
21157done
21158
21159		CFLAGS=$save_CFLAGS
21160	fi
21161fi
21162
21163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI2 support" >&5
21164$as_echo_n "checking whether to include DRI2 support... " >&6; }
21165 if test "x$have_dri2" != "xno"; then
21166  DRI2_TRUE=
21167  DRI2_FALSE='#'
21168else
21169  DRI2_TRUE='#'
21170  DRI2_FALSE=
21171fi
21172
21173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dri2" >&5
21174$as_echo "$have_dri2" >&6; }
21175if test "x$have_dri2" != "xno"; then
21176
21177$as_echo "#define HAVE_DRI2 1" >>confdefs.h
21178
21179	dri_msg="$dri_msg DRI2"
21180else
21181	if test "x$DRI" = "xyes" -a "x$DRI2" != "xno" -a "x$KMS" = "xyes"; then
21182		as_fn_error $? "DRI2 requested but prerequisites not found" "$LINENO" 5
21183	fi
21184
21185	# UXA doesn't build without DRI2 headers, too late to fix
21186	UXA=no
21187fi
21188
21189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI3 support" >&5
21190$as_echo_n "checking whether to include DRI3 support... " >&6; }
21191 if test "x$have_dri3" != "xno"; then
21192  DRI3_TRUE=
21193  DRI3_FALSE='#'
21194else
21195  DRI3_TRUE='#'
21196  DRI3_FALSE=
21197fi
21198
21199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dri3" >&5
21200$as_echo "$have_dri3" >&6; }
21201if test "x$have_dri3" != "xno"; then
21202
21203$as_echo "#define HAVE_DRI3 1" >>confdefs.h
21204
21205	dri_msg="$dri_msg DRI3"
21206else
21207	if test "x$DRI" = "xyes" -a "x$DRI3" != "xno" -a "x$KMS" = "xyes"; then
21208		as_fn_error $? "DRI3 requested but prerequisites not found" "$LINENO" 5
21209	fi
21210fi
21211
21212for ac_header in X11/extensions/dpmsconst.h
21213do :
21214  ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/dpmsconst.h" "ac_cv_header_X11_extensions_dpmsconst_h" "$ac_includes_default"
21215if test "x$ac_cv_header_X11_extensions_dpmsconst_h" = xyes; then :
21216  cat >>confdefs.h <<_ACEOF
21217#define HAVE_X11_EXTENSIONS_DPMSCONST_H 1
21218_ACEOF
21219
21220fi
21221
21222done
21223
21224
21225PRESENT="no"
21226
21227
21228	SAVE_CFLAGS="$CFLAGS"
21229	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
21230	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21231/* end confdefs.h.  */
21232
21233#include "xorg-server.h"
21234#if !defined PRESENT
21235#error PRESENT not defined
21236#endif
21237
21238int
21239main ()
21240{
21241
21242  ;
21243  return 0;
21244}
21245_ACEOF
21246if ac_fn_c_try_compile "$LINENO"; then :
21247  _EXT_CHECK=yes
21248else
21249  _EXT_CHECK=no
21250fi
21251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21252	CFLAGS="$SAVE_CFLAGS"
21253	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if PRESENT is defined" >&5
21254$as_echo_n "checking if PRESENT is defined... " >&6; }
21255	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
21256$as_echo "$_EXT_CHECK" >&6; }
21257	if test "$_EXT_CHECK" != no; then
21258		REQUIRED_MODULES="$REQUIRED_MODULES presentproto"
21259	fi
21260
21261if test "x$_EXT_CHECK" != "xno"; then
21262
21263pkg_failed=no
21264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRESENT" >&5
21265$as_echo_n "checking for PRESENT... " >&6; }
21266
21267if test -n "$PRESENT_CFLAGS"; then
21268    pkg_cv_PRESENT_CFLAGS="$PRESENT_CFLAGS"
21269 elif test -n "$PKG_CONFIG"; then
21270    if test -n "$PKG_CONFIG" && \
21271    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"presentproto\""; } >&5
21272  ($PKG_CONFIG --exists --print-errors "presentproto") 2>&5
21273  ac_status=$?
21274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21275  test $ac_status = 0; }; then
21276  pkg_cv_PRESENT_CFLAGS=`$PKG_CONFIG --cflags "presentproto" 2>/dev/null`
21277		      test "x$?" != "x0" && pkg_failed=yes
21278else
21279  pkg_failed=yes
21280fi
21281 else
21282    pkg_failed=untried
21283fi
21284if test -n "$PRESENT_LIBS"; then
21285    pkg_cv_PRESENT_LIBS="$PRESENT_LIBS"
21286 elif test -n "$PKG_CONFIG"; then
21287    if test -n "$PKG_CONFIG" && \
21288    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"presentproto\""; } >&5
21289  ($PKG_CONFIG --exists --print-errors "presentproto") 2>&5
21290  ac_status=$?
21291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21292  test $ac_status = 0; }; then
21293  pkg_cv_PRESENT_LIBS=`$PKG_CONFIG --libs "presentproto" 2>/dev/null`
21294		      test "x$?" != "x0" && pkg_failed=yes
21295else
21296  pkg_failed=yes
21297fi
21298 else
21299    pkg_failed=untried
21300fi
21301
21302
21303
21304if test $pkg_failed = yes; then
21305   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21306$as_echo "no" >&6; }
21307
21308if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21309        _pkg_short_errors_supported=yes
21310else
21311        _pkg_short_errors_supported=no
21312fi
21313        if test $_pkg_short_errors_supported = yes; then
21314	        PRESENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "presentproto" 2>&1`
21315        else
21316	        PRESENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "presentproto" 2>&1`
21317        fi
21318	# Put the nasty error message in config.log where it belongs
21319	echo "$PRESENT_PKG_ERRORS" >&5
21320
21321	as_fn_error $? "Package requirements (presentproto) were not met:
21322
21323$PRESENT_PKG_ERRORS
21324
21325Consider adjusting the PKG_CONFIG_PATH environment variable if you
21326installed software in a non-standard prefix.
21327
21328Alternatively, you may set the environment variables PRESENT_CFLAGS
21329and PRESENT_LIBS to avoid the need to call pkg-config.
21330See the pkg-config man page for more details." "$LINENO" 5
21331elif test $pkg_failed = untried; then
21332     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21333$as_echo "no" >&6; }
21334	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21336as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21337is in your PATH or set the PKG_CONFIG environment variable to the full
21338path to pkg-config.
21339
21340Alternatively, you may set the environment variables PRESENT_CFLAGS
21341and PRESENT_LIBS to avoid the need to call pkg-config.
21342See the pkg-config man page for more details.
21343
21344To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21345See \`config.log' for more details" "$LINENO" 5; }
21346else
21347	PRESENT_CFLAGS=$pkg_cv_PRESENT_CFLAGS
21348	PRESENT_LIBS=$pkg_cv_PRESENT_LIBS
21349        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21350$as_echo "yes" >&6; }
21351	PRESENT="yes"
21352fi
21353fi
21354if test "x$PRESENT" != "xno"; then
21355	save_CFLAGS=$CFLAGS
21356	CFLAGS="$XORG_CFLAGS $PRESENT_CFLAGS"
21357	for ac_header in present.h
21358do :
21359  ac_fn_c_check_header_compile "$LINENO" "present.h" "ac_cv_header_present_h" "
21360#include <xorg-server.h>
21361#include <xf86str.h>
21362
21363"
21364if test "x$ac_cv_header_present_h" = xyes; then :
21365  cat >>confdefs.h <<_ACEOF
21366#define HAVE_PRESENT_H 1
21367_ACEOF
21368
21369else
21370  PRESENT="no"
21371fi
21372
21373done
21374
21375	CFLAGS=$save_CFLAGS
21376fi
21377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include PRESENT support" >&5
21378$as_echo_n "checking whether to include PRESENT support... " >&6; }
21379 if test "x$PRESENT" != "xno"; then
21380  PRESENT_TRUE=
21381  PRESENT_FALSE='#'
21382else
21383  PRESENT_TRUE='#'
21384  PRESENT_FALSE=
21385fi
21386
21387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRESENT" >&5
21388$as_echo "$PRESENT" >&6; }
21389if test "x$PRESENT" != "xno"; then
21390
21391$as_echo "#define HAVE_PRESENT 1" >>confdefs.h
21392
21393	dri_msg="$dri_msg Present"
21394fi
21395
21396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include UXA support" >&5
21397$as_echo_n "checking whether to include UXA support... " >&6; }
21398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UXA" >&5
21399$as_echo "$UXA" >&6; }
21400 if test "x$UXA" != "xno"; then
21401  UXA_TRUE=
21402  UXA_FALSE='#'
21403else
21404  UXA_TRUE='#'
21405  UXA_FALSE=
21406fi
21407
21408
21409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5
21410$as_echo_n "checking whether to include GLAMOR support... " >&6; }
21411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5
21412$as_echo "$GLAMOR" >&6; }
21413 if test "x$GLAMOR" != "xno"; then
21414  GLAMOR_TRUE=
21415  GLAMOR_FALSE='#'
21416else
21417  GLAMOR_TRUE='#'
21418  GLAMOR_FALSE=
21419fi
21420
21421
21422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include SNA support" >&5
21423$as_echo_n "checking whether to include SNA support... " >&6; }
21424 if test "x$SNA" != "xno"; then
21425  SNA_TRUE=
21426  SNA_FALSE='#'
21427else
21428  SNA_TRUE='#'
21429  SNA_FALSE=
21430fi
21431
21432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNA" >&5
21433$as_echo "$SNA" >&6; }
21434
21435if test "$XVMC" = "yes"; then
21436
21437pkg_failed=no
21438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMCLIB" >&5
21439$as_echo_n "checking for XVMCLIB... " >&6; }
21440
21441if test -n "$XVMCLIB_CFLAGS"; then
21442    pkg_cv_XVMCLIB_CFLAGS="$XVMCLIB_CFLAGS"
21443 elif test -n "$PKG_CONFIG"; then
21444    if test -n "$PKG_CONFIG" && \
21445    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel\""; } >&5
21446  ($PKG_CONFIG --exists --print-errors "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel") 2>&5
21447  ac_status=$?
21448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21449  test $ac_status = 0; }; then
21450  pkg_cv_XVMCLIB_CFLAGS=`$PKG_CONFIG --cflags "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>/dev/null`
21451		      test "x$?" != "x0" && pkg_failed=yes
21452else
21453  pkg_failed=yes
21454fi
21455 else
21456    pkg_failed=untried
21457fi
21458if test -n "$XVMCLIB_LIBS"; then
21459    pkg_cv_XVMCLIB_LIBS="$XVMCLIB_LIBS"
21460 elif test -n "$PKG_CONFIG"; then
21461    if test -n "$PKG_CONFIG" && \
21462    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel\""; } >&5
21463  ($PKG_CONFIG --exists --print-errors "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel") 2>&5
21464  ac_status=$?
21465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21466  test $ac_status = 0; }; then
21467  pkg_cv_XVMCLIB_LIBS=`$PKG_CONFIG --libs "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>/dev/null`
21468		      test "x$?" != "x0" && pkg_failed=yes
21469else
21470  pkg_failed=yes
21471fi
21472 else
21473    pkg_failed=untried
21474fi
21475
21476
21477
21478if test $pkg_failed = yes; then
21479   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21480$as_echo "no" >&6; }
21481
21482if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21483        _pkg_short_errors_supported=yes
21484else
21485        _pkg_short_errors_supported=no
21486fi
21487        if test $_pkg_short_errors_supported = yes; then
21488	        XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>&1`
21489        else
21490	        XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>&1`
21491        fi
21492	# Put the nasty error message in config.log where it belongs
21493	echo "$XVMCLIB_PKG_ERRORS" >&5
21494
21495	XVMC="no"
21496elif test $pkg_failed = untried; then
21497     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21498$as_echo "no" >&6; }
21499	XVMC="no"
21500else
21501	XVMCLIB_CFLAGS=$pkg_cv_XVMCLIB_CFLAGS
21502	XVMCLIB_LIBS=$pkg_cv_XVMCLIB_LIBS
21503        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21504$as_echo "yes" >&6; }
21505
21506fi
21507fi
21508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XvMC support" >&5
21509$as_echo_n "checking whether to include XvMC support... " >&6; }
21510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVMC" >&5
21511$as_echo "$XVMC" >&6; }
21512 if test "x$XVMC" = "xyes"; then
21513  XVMC_TRUE=
21514  XVMC_FALSE='#'
21515else
21516  XVMC_TRUE='#'
21517  XVMC_FALSE=
21518fi
21519
21520if test "x$XVMC" = "xyes"; then
21521
21522$as_echo "#define ENABLE_XVMC 1" >>confdefs.h
21523
21524	xvmc_msg=" yes"
21525else
21526	xvmc_msg=" no"
21527fi
21528
21529
21530
21531# Check whether --with-default-accel was given.
21532if test "${with_default_accel+set}" = set; then :
21533  withval=$with_default_accel; accel="$withval"
21534else
21535  accel="auto"
21536fi
21537
21538if test "x$accel" = "xyes"; then
21539	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No default acceleration specified, choosing automatic selection" >&5
21540$as_echo "$as_me: WARNING: No default acceleration specified, choosing automatic selection" >&2;}
21541	accel="auto"
21542fi
21543
21544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which acceleration method to use by default" >&5
21545$as_echo_n "checking which acceleration method to use by default... " >&6; }
21546if test "x$accel" = "xauto"; then
21547	if test "x$SNA" != "xno"; then
21548		accel="sna"
21549	else
21550		if test "x$UXA" != "xno"; then
21551			accel="uxa"
21552		fi
21553	fi
21554	if test "x$accel" = "xauto" -a "x$KMS" = "xyes"; then
21555		as_fn_error $? "No default acceleration option" "$LINENO" 5
21556	fi
21557fi
21558
21559have_accel="none"
21560if test "x$accel" = "xsna"; then
21561	if test "x$SNA" != "xno"; then
21562
21563$as_echo "#define DEFAULT_ACCEL_METHOD SNA" >>confdefs.h
21564
21565		have_accel="yes"
21566	else
21567		as_fn_error $? "SNA requested as default, but is not enabled" "$LINENO" 5
21568	fi
21569fi
21570
21571if test "x$accel" = "xuxa"; then
21572	if test "x$UXA" != "xno"; then
21573
21574$as_echo "#define DEFAULT_ACCEL_METHOD UXA" >>confdefs.h
21575
21576		have_accel="yes"
21577	else
21578		as_fn_error $? "UXA requested as default, but is not enabled" "$LINENO" 5
21579	fi
21580fi
21581
21582if test "x$accel" = "xglamor"; then
21583	if test "x$GLAMOR" != "xno"; then
21584
21585$as_echo "#define DEFAULT_ACCEL_METHOD GLAMOR" >>confdefs.h
21586
21587		have_accel="yes"
21588	else
21589		as_fn_error $? "glamor acceleration requested as default, but is not enabled" "$LINENO" 5
21590	fi
21591fi
21592
21593if test "x$have_accel" = "xnone"; then
21594	if test "x$KMS" = "xyes"; then
21595		if test "x$SNA" != "xno" -o "x$UXA" != "xno"; then
21596
21597$as_echo "#define DEFAULT_ACCEL_METHOD NOACCEL" >>confdefs.h
21598
21599		else
21600			as_fn_error $? "Invalid default acceleration option" "$LINENO" 5
21601		fi
21602	fi
21603	accel="none"
21604fi
21605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $accel" >&5
21606$as_echo "$accel" >&6; }
21607
21608xp_msg=""
21609
21610# Check whether --enable-tear-free was given.
21611if test "${enable_tear_free+set}" = set; then :
21612  enableval=$enable_tear_free; TEARFREE="$enableval"
21613else
21614  TEARFREE="no"
21615fi
21616
21617if test "x$TEARFREE" = "xyes"; then
21618
21619$as_echo "#define TEARFREE 1" >>confdefs.h
21620
21621	xp_msg="$xp_msg TearFree"
21622fi
21623
21624# Check whether --enable-rendernode was given.
21625if test "${enable_rendernode+set}" = set; then :
21626  enableval=$enable_rendernode; RENDERNODE="$enableval"
21627else
21628  RENDERNODE="no"
21629fi
21630
21631 if test "x$RENDERNODE" = "xyes"; then
21632  USE_RENDERNODE_TRUE=
21633  USE_RENDERNODE_FALSE='#'
21634else
21635  USE_RENDERNODE_TRUE='#'
21636  USE_RENDERNODE_FALSE=
21637fi
21638
21639if test "x$RENDERNODE" = "xyes"; then
21640
21641$as_echo "#define USE_RENDERNODE 1" >>confdefs.h
21642
21643	xp_msg="$xp_msg rendernode"
21644fi
21645
21646# Check whether --enable-create2 was given.
21647if test "${enable_create2+set}" = set; then :
21648  enableval=$enable_create2; CREATE2="$enableval"
21649else
21650  CREATE2="no"
21651fi
21652
21653 if test "x$CREATE2" = "xyes"; then
21654  USE_CREATE2_TRUE=
21655  USE_CREATE2_FALSE='#'
21656else
21657  USE_CREATE2_TRUE='#'
21658  USE_CREATE2_FALSE=
21659fi
21660
21661if test "x$CREATE2" = "xyes"; then
21662
21663$as_echo "#define USE_CREATE2 1" >>confdefs.h
21664
21665	xp_msg="$xp_msg create2"
21666fi
21667
21668# Check whether --enable-async-swap was given.
21669if test "${enable_async_swap+set}" = set; then :
21670  enableval=$enable_async_swap; ASYNC_SWAP="$enableval"
21671else
21672  ASYNC_SWAP="no"
21673fi
21674
21675 if test "x$ASYNC_SWAP" = "xyes"; then
21676  USE_ASYNC_SWAP_TRUE=
21677  USE_ASYNC_SWAP_FALSE='#'
21678else
21679  USE_ASYNC_SWAP_TRUE='#'
21680  USE_ASYNC_SWAP_FALSE=
21681fi
21682
21683if test "x$ASYNC_SWAP" = "xyes"; then
21684
21685$as_echo "#define USE_ASYNC_SWAP 1" >>confdefs.h
21686
21687	xp_msg="$xp_msg async-swap"
21688fi
21689
21690# Check whether --enable-debug was given.
21691if test "${enable_debug+set}" = set; then :
21692  enableval=$enable_debug; DEBUG="$enableval"
21693else
21694  DEBUG="no"
21695fi
21696
21697# Check whether --enable-valgrind was given.
21698if test "${enable_valgrind+set}" = set; then :
21699  enableval=$enable_valgrind; VG="$enableval"
21700else
21701  VG="no"
21702fi
21703
21704
21705LIBS=""
21706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21707$as_echo_n "checking for library containing clock_gettime... " >&6; }
21708if ${ac_cv_search_clock_gettime+:} false; then :
21709  $as_echo_n "(cached) " >&6
21710else
21711  ac_func_search_save_LIBS=$LIBS
21712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21713/* end confdefs.h.  */
21714
21715/* Override any GCC internal prototype to avoid an error.
21716   Use char because int might match the return type of a GCC
21717   builtin and then its argument prototype would still apply.  */
21718#ifdef __cplusplus
21719extern "C"
21720#endif
21721char clock_gettime ();
21722int
21723main ()
21724{
21725return clock_gettime ();
21726  ;
21727  return 0;
21728}
21729_ACEOF
21730for ac_lib in '' rt; do
21731  if test -z "$ac_lib"; then
21732    ac_res="none required"
21733  else
21734    ac_res=-l$ac_lib
21735    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21736  fi
21737  if ac_fn_c_try_link "$LINENO"; then :
21738  ac_cv_search_clock_gettime=$ac_res
21739fi
21740rm -f core conftest.err conftest.$ac_objext \
21741    conftest$ac_exeext
21742  if ${ac_cv_search_clock_gettime+:} false; then :
21743  break
21744fi
21745done
21746if ${ac_cv_search_clock_gettime+:} false; then :
21747
21748else
21749  ac_cv_search_clock_gettime=no
21750fi
21751rm conftest.$ac_ext
21752LIBS=$ac_func_search_save_LIBS
21753fi
21754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21755$as_echo "$ac_cv_search_clock_gettime" >&6; }
21756ac_res=$ac_cv_search_clock_gettime
21757if test "$ac_res" != no; then :
21758  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21759  CLOCK_GETTIME_LIBS=$LIBS
21760fi
21761
21762
21763
21764sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
21765
21766 if test "x$DEBUG" != "xno"; then
21767  DEBUG_TRUE=
21768  DEBUG_FALSE='#'
21769else
21770  DEBUG_TRUE='#'
21771  DEBUG_FALSE=
21772fi
21773
21774 if test "x$DEBUG" = "xfull"; then
21775  FULL_DEBUG_TRUE=
21776  FULL_DEBUG_FALSE='#'
21777else
21778  FULL_DEBUG_TRUE='#'
21779  FULL_DEBUG_FALSE=
21780fi
21781
21782if test "x$DEBUG" = "xno"; then
21783
21784$as_echo "#define NDEBUG 1" >>confdefs.h
21785
21786else
21787	if test "x$VG" != "xyes"; then
21788		VG=auto
21789	fi
21790fi
21791debug_msg=""
21792have_valgrind="no"
21793if test "x$VG" != "xno"; then
21794
21795pkg_failed=no
21796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
21797$as_echo_n "checking for VALGRIND... " >&6; }
21798
21799if test -n "$VALGRIND_CFLAGS"; then
21800    pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
21801 elif test -n "$PKG_CONFIG"; then
21802    if test -n "$PKG_CONFIG" && \
21803    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
21804  ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
21805  ac_status=$?
21806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21807  test $ac_status = 0; }; then
21808  pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
21809		      test "x$?" != "x0" && pkg_failed=yes
21810else
21811  pkg_failed=yes
21812fi
21813 else
21814    pkg_failed=untried
21815fi
21816if test -n "$VALGRIND_LIBS"; then
21817    pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
21818 elif test -n "$PKG_CONFIG"; then
21819    if test -n "$PKG_CONFIG" && \
21820    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
21821  ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
21822  ac_status=$?
21823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21824  test $ac_status = 0; }; then
21825  pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
21826		      test "x$?" != "x0" && pkg_failed=yes
21827else
21828  pkg_failed=yes
21829fi
21830 else
21831    pkg_failed=untried
21832fi
21833
21834
21835
21836if test $pkg_failed = yes; then
21837   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21838$as_echo "no" >&6; }
21839
21840if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21841        _pkg_short_errors_supported=yes
21842else
21843        _pkg_short_errors_supported=no
21844fi
21845        if test $_pkg_short_errors_supported = yes; then
21846	        VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
21847        else
21848	        VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
21849        fi
21850	# Put the nasty error message in config.log where it belongs
21851	echo "$VALGRIND_PKG_ERRORS" >&5
21852
21853	have_valgrind="no"
21854elif test $pkg_failed = untried; then
21855     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21856$as_echo "no" >&6; }
21857	have_valgrind="no"
21858else
21859	VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
21860	VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
21861        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21862$as_echo "yes" >&6; }
21863	have_valgrind="yes"
21864fi
21865	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include valgrind support" >&5
21866$as_echo_n "checking whether to include valgrind support... " >&6; }
21867	if test "x$have_valgrind" = "xyes"; then
21868
21869$as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
21870
21871	else
21872		if test "x$VG" = "xyes"; then
21873			as_fn_error $? "valgrind support requested, but valgrind-dev headers not found" "$LINENO" 5
21874		fi
21875	fi
21876	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_valgrind ($VG)" >&5
21877$as_echo "$have_valgrind ($VG)" >&6; }
21878fi
21879 if test "x$have_valgrind" = "xyes"; then
21880  VALGRIND_TRUE=
21881  VALGRIND_FALSE='#'
21882else
21883  VALGRIND_TRUE='#'
21884  VALGRIND_FALSE=
21885fi
21886
21887if test "x$have_valgrind" = "xyes"; then
21888	debug_msg="$debug_msg valgrind"
21889fi
21890if test "x$DEBUG" = "xsync"; then
21891
21892$as_echo "#define DEBUG_SYNC 1" >>confdefs.h
21893
21894	debug_msg="$debug_msg sync"
21895fi
21896if test "x$DEBUG" = "xmemory"; then
21897
21898$as_echo "#define DEBUG_MEMORY 1" >>confdefs.h
21899
21900	debug_msg="$debug_msg memory"
21901fi
21902if test "x$DEBUG" = "xpixmap"; then
21903
21904$as_echo "#define DEBUG_PIXMAP 1" >>confdefs.h
21905
21906	debug_msg="$debug_msg pixmaps"
21907fi
21908if test "x$DEBUG" = "xfull"; then
21909
21910$as_echo "#define DEBUG_MEMORY 1" >>confdefs.h
21911
21912
21913$as_echo "#define DEBUG_PIXMAP 1" >>confdefs.h
21914
21915
21916$as_echo "#define HAS_DEBUG_FULL 1" >>confdefs.h
21917
21918        CFLAGS="$CFLAGS -O0 -ggdb3"
21919	debug_msg=" full"
21920fi
21921if test "x$debug_msg" = "x"; then
21922	debug_msg=" none"
21923fi
21924
21925
21926ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
21927if test "x$ac_cv_func_getline" = xyes; then :
21928  $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
21929
21930else
21931  case " $LIBOBJS " in
21932  *" getline.$ac_objext "* ) ;;
21933  *) LIBOBJS="$LIBOBJS getline.$ac_objext"
21934 ;;
21935esac
21936
21937fi
21938
21939
21940
21941DRIVER_NAME="intel"
21942
21943
21944
21945  prefix_NONE=
21946  exec_prefix_NONE=
21947  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21948  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21949  eval ac_define_dir="\"$prefix\""
21950  eval ac_define_dir="\"$ac_define_dir\""
21951  PREFIX_PATH="$ac_define_dir"
21952
21953
21954cat >>confdefs.h <<_ACEOF
21955#define PREFIX_PATH "$ac_define_dir"
21956_ACEOF
21957
21958  test "$prefix_NONE" && prefix=NONE
21959  test "$exec_prefix_NONE" && exec_prefix=NONE
21960
21961
21962  prefix_NONE=
21963  exec_prefix_NONE=
21964  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21965  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21966  eval ac_define_dir="\"$libexecdir\""
21967  eval ac_define_dir="\"$ac_define_dir\""
21968  LIBEXEC_PATH="$ac_define_dir"
21969
21970
21971cat >>confdefs.h <<_ACEOF
21972#define LIBEXEC_PATH "$ac_define_dir"
21973_ACEOF
21974
21975  test "$prefix_NONE" && prefix=NONE
21976  test "$exec_prefix_NONE" && exec_prefix=NONE
21977
21978
21979ac_config_files="$ac_config_files Makefile man/Makefile libobj/Makefile src/Makefile src/legacy/Makefile src/legacy/i810/Makefile src/legacy/i810/xvmc/Makefile src/render_program/Makefile src/sna/Makefile src/sna/brw/Makefile src/sna/fb/Makefile src/uxa/Makefile xvmc/Makefile xvmc/shader/Makefile xvmc/shader/mc/Makefile xvmc/shader/vld/Makefile test/Makefile tools/Makefile tools/org.x.xf86-video-intel.backlight-helper.policy"
21980
21981cat >confcache <<\_ACEOF
21982# This file is a shell script that caches the results of configure
21983# tests run on this system so they can be shared between configure
21984# scripts and configure runs, see configure's option --config-cache.
21985# It is not useful on other systems.  If it contains results you don't
21986# want to keep, you may remove or edit it.
21987#
21988# config.status only pays attention to the cache file if you give it
21989# the --recheck option to rerun configure.
21990#
21991# `ac_cv_env_foo' variables (set or unset) will be overridden when
21992# loading this file, other *unset* `ac_cv_foo' will be assigned the
21993# following values.
21994
21995_ACEOF
21996
21997# The following way of writing the cache mishandles newlines in values,
21998# but we know of no workaround that is simple, portable, and efficient.
21999# So, we kill variables containing newlines.
22000# Ultrix sh set writes to stderr and can't be redirected directly,
22001# and sets the high bit in the cache file unless we assign to the vars.
22002(
22003  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22004    eval ac_val=\$$ac_var
22005    case $ac_val in #(
22006    *${as_nl}*)
22007      case $ac_var in #(
22008      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22009$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22010      esac
22011      case $ac_var in #(
22012      _ | IFS | as_nl) ;; #(
22013      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22014      *) { eval $ac_var=; unset $ac_var;} ;;
22015      esac ;;
22016    esac
22017  done
22018
22019  (set) 2>&1 |
22020    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22021    *${as_nl}ac_space=\ *)
22022      # `set' does not quote correctly, so add quotes: double-quote
22023      # substitution turns \\\\ into \\, and sed turns \\ into \.
22024      sed -n \
22025	"s/'/'\\\\''/g;
22026	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22027      ;; #(
22028    *)
22029      # `set' quotes correctly as required by POSIX, so do not add quotes.
22030      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22031      ;;
22032    esac |
22033    sort
22034) |
22035  sed '
22036     /^ac_cv_env_/b end
22037     t clear
22038     :clear
22039     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22040     t end
22041     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22042     :end' >>confcache
22043if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22044  if test -w "$cache_file"; then
22045    if test "x$cache_file" != "x/dev/null"; then
22046      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22047$as_echo "$as_me: updating cache $cache_file" >&6;}
22048      if test ! -f "$cache_file" || test -h "$cache_file"; then
22049	cat confcache >"$cache_file"
22050      else
22051        case $cache_file in #(
22052        */* | ?:*)
22053	  mv -f confcache "$cache_file"$$ &&
22054	  mv -f "$cache_file"$$ "$cache_file" ;; #(
22055        *)
22056	  mv -f confcache "$cache_file" ;;
22057	esac
22058      fi
22059    fi
22060  else
22061    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22062$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22063  fi
22064fi
22065rm -f confcache
22066
22067test "x$prefix" = xNONE && prefix=$ac_default_prefix
22068# Let make expand exec_prefix.
22069test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22070
22071DEFS=-DHAVE_CONFIG_H
22072
22073ac_libobjs=
22074ac_ltlibobjs=
22075U=
22076for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22077  # 1. Remove the extension, and $U if already installed.
22078  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22079  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22080  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22081  #    will be set to the directory where LIBOBJS objects are built.
22082  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22083  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22084done
22085LIBOBJS=$ac_libobjs
22086
22087LTLIBOBJS=$ac_ltlibobjs
22088
22089
22090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22091$as_echo_n "checking that generated files are newer than configure... " >&6; }
22092   if test -n "$am_sleep_pid"; then
22093     # Hide warnings about reused PIDs.
22094     wait $am_sleep_pid 2>/dev/null
22095   fi
22096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22097$as_echo "done" >&6; }
22098 if test -n "$EXEEXT"; then
22099  am__EXEEXT_TRUE=
22100  am__EXEEXT_FALSE='#'
22101else
22102  am__EXEEXT_TRUE='#'
22103  am__EXEEXT_FALSE=
22104fi
22105
22106if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22107  as_fn_error $? "conditional \"AMDEP\" was never defined.
22108Usually this means the macro was only invoked conditionally." "$LINENO" 5
22109fi
22110if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22111  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22112Usually this means the macro was only invoked conditionally." "$LINENO" 5
22113fi
22114if test -z "${BUILD_BACKLIGHT_HELPER_TRUE}" && test -z "${BUILD_BACKLIGHT_HELPER_FALSE}"; then
22115  as_fn_error $? "conditional \"BUILD_BACKLIGHT_HELPER\" was never defined.
22116Usually this means the macro was only invoked conditionally." "$LINENO" 5
22117fi
22118if test -z "${HAVE_DOT_GIT_TRUE}" && test -z "${HAVE_DOT_GIT_FALSE}"; then
22119  as_fn_error $? "conditional \"HAVE_DOT_GIT\" was never defined.
22120Usually this means the macro was only invoked conditionally." "$LINENO" 5
22121fi
22122if test -z "${HAVE_GEN4ASM_TRUE}" && test -z "${HAVE_GEN4ASM_FALSE}"; then
22123  as_fn_error $? "conditional \"HAVE_GEN4ASM\" was never defined.
22124Usually this means the macro was only invoked conditionally." "$LINENO" 5
22125fi
22126if test -z "${HAVE_X11_TRUE}" && test -z "${HAVE_X11_FALSE}"; then
22127  as_fn_error $? "conditional \"HAVE_X11\" was never defined.
22128Usually this means the macro was only invoked conditionally." "$LINENO" 5
22129fi
22130if test -z "${X11_DRI3_TRUE}" && test -z "${X11_DRI3_FALSE}"; then
22131  as_fn_error $? "conditional \"X11_DRI3\" was never defined.
22132Usually this means the macro was only invoked conditionally." "$LINENO" 5
22133fi
22134if test -z "${X11_SHM_TRUE}" && test -z "${X11_SHM_FALSE}"; then
22135  as_fn_error $? "conditional \"X11_SHM\" was never defined.
22136Usually this means the macro was only invoked conditionally." "$LINENO" 5
22137fi
22138if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
22139  as_fn_error $? "conditional \"BUILD_TOOLS\" was never defined.
22140Usually this means the macro was only invoked conditionally." "$LINENO" 5
22141fi
22142if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
22143  as_fn_error $? "conditional \"DGA\" was never defined.
22144Usually this means the macro was only invoked conditionally." "$LINENO" 5
22145fi
22146if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
22147  as_fn_error $? "conditional \"XAA\" was never defined.
22148Usually this means the macro was only invoked conditionally." "$LINENO" 5
22149fi
22150if test -z "${KMS_TRUE}" && test -z "${KMS_FALSE}"; then
22151  as_fn_error $? "conditional \"KMS\" was never defined.
22152Usually this means the macro was only invoked conditionally." "$LINENO" 5
22153fi
22154if test -z "${UMS_TRUE}" && test -z "${UMS_FALSE}"; then
22155  as_fn_error $? "conditional \"UMS\" was never defined.
22156Usually this means the macro was only invoked conditionally." "$LINENO" 5
22157fi
22158if test -z "${DRI1_TRUE}" && test -z "${DRI1_FALSE}"; then
22159  as_fn_error $? "conditional \"DRI1\" was never defined.
22160Usually this means the macro was only invoked conditionally." "$LINENO" 5
22161fi
22162if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
22163  as_fn_error $? "conditional \"DRI2\" was never defined.
22164Usually this means the macro was only invoked conditionally." "$LINENO" 5
22165fi
22166if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then
22167  as_fn_error $? "conditional \"DRI3\" was never defined.
22168Usually this means the macro was only invoked conditionally." "$LINENO" 5
22169fi
22170if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then
22171  as_fn_error $? "conditional \"PRESENT\" was never defined.
22172Usually this means the macro was only invoked conditionally." "$LINENO" 5
22173fi
22174if test -z "${UXA_TRUE}" && test -z "${UXA_FALSE}"; then
22175  as_fn_error $? "conditional \"UXA\" was never defined.
22176Usually this means the macro was only invoked conditionally." "$LINENO" 5
22177fi
22178if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
22179  as_fn_error $? "conditional \"GLAMOR\" was never defined.
22180Usually this means the macro was only invoked conditionally." "$LINENO" 5
22181fi
22182if test -z "${SNA_TRUE}" && test -z "${SNA_FALSE}"; then
22183  as_fn_error $? "conditional \"SNA\" was never defined.
22184Usually this means the macro was only invoked conditionally." "$LINENO" 5
22185fi
22186if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
22187  as_fn_error $? "conditional \"XVMC\" was never defined.
22188Usually this means the macro was only invoked conditionally." "$LINENO" 5
22189fi
22190if test -z "${USE_RENDERNODE_TRUE}" && test -z "${USE_RENDERNODE_FALSE}"; then
22191  as_fn_error $? "conditional \"USE_RENDERNODE\" was never defined.
22192Usually this means the macro was only invoked conditionally." "$LINENO" 5
22193fi
22194if test -z "${USE_CREATE2_TRUE}" && test -z "${USE_CREATE2_FALSE}"; then
22195  as_fn_error $? "conditional \"USE_CREATE2\" was never defined.
22196Usually this means the macro was only invoked conditionally." "$LINENO" 5
22197fi
22198if test -z "${USE_ASYNC_SWAP_TRUE}" && test -z "${USE_ASYNC_SWAP_FALSE}"; then
22199  as_fn_error $? "conditional \"USE_ASYNC_SWAP\" was never defined.
22200Usually this means the macro was only invoked conditionally." "$LINENO" 5
22201fi
22202if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
22203  as_fn_error $? "conditional \"DEBUG\" was never defined.
22204Usually this means the macro was only invoked conditionally." "$LINENO" 5
22205fi
22206if test -z "${FULL_DEBUG_TRUE}" && test -z "${FULL_DEBUG_FALSE}"; then
22207  as_fn_error $? "conditional \"FULL_DEBUG\" was never defined.
22208Usually this means the macro was only invoked conditionally." "$LINENO" 5
22209fi
22210if test -z "${VALGRIND_TRUE}" && test -z "${VALGRIND_FALSE}"; then
22211  as_fn_error $? "conditional \"VALGRIND\" was never defined.
22212Usually this means the macro was only invoked conditionally." "$LINENO" 5
22213fi
22214
22215: "${CONFIG_STATUS=./config.status}"
22216ac_write_fail=0
22217ac_clean_files_save=$ac_clean_files
22218ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22219{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22220$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22221as_write_fail=0
22222cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22223#! $SHELL
22224# Generated by $as_me.
22225# Run this file to recreate the current configuration.
22226# Compiler output produced by configure, useful for debugging
22227# configure, is in config.log if it exists.
22228
22229debug=false
22230ac_cs_recheck=false
22231ac_cs_silent=false
22232
22233SHELL=\${CONFIG_SHELL-$SHELL}
22234export SHELL
22235_ASEOF
22236cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22237## -------------------- ##
22238## M4sh Initialization. ##
22239## -------------------- ##
22240
22241# Be more Bourne compatible
22242DUALCASE=1; export DUALCASE # for MKS sh
22243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22244  emulate sh
22245  NULLCMD=:
22246  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22247  # is contrary to our usage.  Disable this feature.
22248  alias -g '${1+"$@"}'='"$@"'
22249  setopt NO_GLOB_SUBST
22250else
22251  case `(set -o) 2>/dev/null` in #(
22252  *posix*) :
22253    set -o posix ;; #(
22254  *) :
22255     ;;
22256esac
22257fi
22258
22259
22260as_nl='
22261'
22262export as_nl
22263# Printing a long string crashes Solaris 7 /usr/bin/printf.
22264as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22265as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22266as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22267# Prefer a ksh shell builtin over an external printf program on Solaris,
22268# but without wasting forks for bash or zsh.
22269if test -z "$BASH_VERSION$ZSH_VERSION" \
22270    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22271  as_echo='print -r --'
22272  as_echo_n='print -rn --'
22273elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22274  as_echo='printf %s\n'
22275  as_echo_n='printf %s'
22276else
22277  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22278    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22279    as_echo_n='/usr/ucb/echo -n'
22280  else
22281    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22282    as_echo_n_body='eval
22283      arg=$1;
22284      case $arg in #(
22285      *"$as_nl"*)
22286	expr "X$arg" : "X\\(.*\\)$as_nl";
22287	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22288      esac;
22289      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22290    '
22291    export as_echo_n_body
22292    as_echo_n='sh -c $as_echo_n_body as_echo'
22293  fi
22294  export as_echo_body
22295  as_echo='sh -c $as_echo_body as_echo'
22296fi
22297
22298# The user is always right.
22299if test "${PATH_SEPARATOR+set}" != set; then
22300  PATH_SEPARATOR=:
22301  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22302    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22303      PATH_SEPARATOR=';'
22304  }
22305fi
22306
22307
22308# IFS
22309# We need space, tab and new line, in precisely that order.  Quoting is
22310# there to prevent editors from complaining about space-tab.
22311# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22312# splitting by setting IFS to empty value.)
22313IFS=" ""	$as_nl"
22314
22315# Find who we are.  Look in the path if we contain no directory separator.
22316as_myself=
22317case $0 in #((
22318  *[\\/]* ) as_myself=$0 ;;
22319  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22320for as_dir in $PATH
22321do
22322  IFS=$as_save_IFS
22323  test -z "$as_dir" && as_dir=.
22324    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22325  done
22326IFS=$as_save_IFS
22327
22328     ;;
22329esac
22330# We did not find ourselves, most probably we were run as `sh COMMAND'
22331# in which case we are not to be found in the path.
22332if test "x$as_myself" = x; then
22333  as_myself=$0
22334fi
22335if test ! -f "$as_myself"; then
22336  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22337  exit 1
22338fi
22339
22340# Unset variables that we do not need and which cause bugs (e.g. in
22341# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22342# suppresses any "Segmentation fault" message there.  '((' could
22343# trigger a bug in pdksh 5.2.14.
22344for as_var in BASH_ENV ENV MAIL MAILPATH
22345do eval test x\${$as_var+set} = xset \
22346  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22347done
22348PS1='$ '
22349PS2='> '
22350PS4='+ '
22351
22352# NLS nuisances.
22353LC_ALL=C
22354export LC_ALL
22355LANGUAGE=C
22356export LANGUAGE
22357
22358# CDPATH.
22359(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22360
22361
22362# as_fn_error STATUS ERROR [LINENO LOG_FD]
22363# ----------------------------------------
22364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22366# script with STATUS, using 1 if that was 0.
22367as_fn_error ()
22368{
22369  as_status=$1; test $as_status -eq 0 && as_status=1
22370  if test "$4"; then
22371    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22372    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22373  fi
22374  $as_echo "$as_me: error: $2" >&2
22375  as_fn_exit $as_status
22376} # as_fn_error
22377
22378
22379# as_fn_set_status STATUS
22380# -----------------------
22381# Set $? to STATUS, without forking.
22382as_fn_set_status ()
22383{
22384  return $1
22385} # as_fn_set_status
22386
22387# as_fn_exit STATUS
22388# -----------------
22389# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22390as_fn_exit ()
22391{
22392  set +e
22393  as_fn_set_status $1
22394  exit $1
22395} # as_fn_exit
22396
22397# as_fn_unset VAR
22398# ---------------
22399# Portably unset VAR.
22400as_fn_unset ()
22401{
22402  { eval $1=; unset $1;}
22403}
22404as_unset=as_fn_unset
22405# as_fn_append VAR VALUE
22406# ----------------------
22407# Append the text in VALUE to the end of the definition contained in VAR. Take
22408# advantage of any shell optimizations that allow amortized linear growth over
22409# repeated appends, instead of the typical quadratic growth present in naive
22410# implementations.
22411if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22412  eval 'as_fn_append ()
22413  {
22414    eval $1+=\$2
22415  }'
22416else
22417  as_fn_append ()
22418  {
22419    eval $1=\$$1\$2
22420  }
22421fi # as_fn_append
22422
22423# as_fn_arith ARG...
22424# ------------------
22425# Perform arithmetic evaluation on the ARGs, and store the result in the
22426# global $as_val. Take advantage of shells that can avoid forks. The arguments
22427# must be portable across $(()) and expr.
22428if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22429  eval 'as_fn_arith ()
22430  {
22431    as_val=$(( $* ))
22432  }'
22433else
22434  as_fn_arith ()
22435  {
22436    as_val=`expr "$@" || test $? -eq 1`
22437  }
22438fi # as_fn_arith
22439
22440
22441if expr a : '\(a\)' >/dev/null 2>&1 &&
22442   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22443  as_expr=expr
22444else
22445  as_expr=false
22446fi
22447
22448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22449  as_basename=basename
22450else
22451  as_basename=false
22452fi
22453
22454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22455  as_dirname=dirname
22456else
22457  as_dirname=false
22458fi
22459
22460as_me=`$as_basename -- "$0" ||
22461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22462	 X"$0" : 'X\(//\)$' \| \
22463	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22464$as_echo X/"$0" |
22465    sed '/^.*\/\([^/][^/]*\)\/*$/{
22466	    s//\1/
22467	    q
22468	  }
22469	  /^X\/\(\/\/\)$/{
22470	    s//\1/
22471	    q
22472	  }
22473	  /^X\/\(\/\).*/{
22474	    s//\1/
22475	    q
22476	  }
22477	  s/.*/./; q'`
22478
22479# Avoid depending upon Character Ranges.
22480as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22482as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22483as_cr_digits='0123456789'
22484as_cr_alnum=$as_cr_Letters$as_cr_digits
22485
22486ECHO_C= ECHO_N= ECHO_T=
22487case `echo -n x` in #(((((
22488-n*)
22489  case `echo 'xy\c'` in
22490  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22491  xy)  ECHO_C='\c';;
22492  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22493       ECHO_T='	';;
22494  esac;;
22495*)
22496  ECHO_N='-n';;
22497esac
22498
22499rm -f conf$$ conf$$.exe conf$$.file
22500if test -d conf$$.dir; then
22501  rm -f conf$$.dir/conf$$.file
22502else
22503  rm -f conf$$.dir
22504  mkdir conf$$.dir 2>/dev/null
22505fi
22506if (echo >conf$$.file) 2>/dev/null; then
22507  if ln -s conf$$.file conf$$ 2>/dev/null; then
22508    as_ln_s='ln -s'
22509    # ... but there are two gotchas:
22510    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22511    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22512    # In both cases, we have to default to `cp -pR'.
22513    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22514      as_ln_s='cp -pR'
22515  elif ln conf$$.file conf$$ 2>/dev/null; then
22516    as_ln_s=ln
22517  else
22518    as_ln_s='cp -pR'
22519  fi
22520else
22521  as_ln_s='cp -pR'
22522fi
22523rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22524rmdir conf$$.dir 2>/dev/null
22525
22526
22527# as_fn_mkdir_p
22528# -------------
22529# Create "$as_dir" as a directory, including parents if necessary.
22530as_fn_mkdir_p ()
22531{
22532
22533  case $as_dir in #(
22534  -*) as_dir=./$as_dir;;
22535  esac
22536  test -d "$as_dir" || eval $as_mkdir_p || {
22537    as_dirs=
22538    while :; do
22539      case $as_dir in #(
22540      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22541      *) as_qdir=$as_dir;;
22542      esac
22543      as_dirs="'$as_qdir' $as_dirs"
22544      as_dir=`$as_dirname -- "$as_dir" ||
22545$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22546	 X"$as_dir" : 'X\(//\)[^/]' \| \
22547	 X"$as_dir" : 'X\(//\)$' \| \
22548	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22549$as_echo X"$as_dir" |
22550    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22551	    s//\1/
22552	    q
22553	  }
22554	  /^X\(\/\/\)[^/].*/{
22555	    s//\1/
22556	    q
22557	  }
22558	  /^X\(\/\/\)$/{
22559	    s//\1/
22560	    q
22561	  }
22562	  /^X\(\/\).*/{
22563	    s//\1/
22564	    q
22565	  }
22566	  s/.*/./; q'`
22567      test -d "$as_dir" && break
22568    done
22569    test -z "$as_dirs" || eval "mkdir $as_dirs"
22570  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22571
22572
22573} # as_fn_mkdir_p
22574if mkdir -p . 2>/dev/null; then
22575  as_mkdir_p='mkdir -p "$as_dir"'
22576else
22577  test -d ./-p && rmdir ./-p
22578  as_mkdir_p=false
22579fi
22580
22581
22582# as_fn_executable_p FILE
22583# -----------------------
22584# Test if FILE is an executable regular file.
22585as_fn_executable_p ()
22586{
22587  test -f "$1" && test -x "$1"
22588} # as_fn_executable_p
22589as_test_x='test -x'
22590as_executable_p=as_fn_executable_p
22591
22592# Sed expression to map a string onto a valid CPP name.
22593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22594
22595# Sed expression to map a string onto a valid variable name.
22596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22597
22598
22599exec 6>&1
22600## ----------------------------------- ##
22601## Main body of $CONFIG_STATUS script. ##
22602## ----------------------------------- ##
22603_ASEOF
22604test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22605
22606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22607# Save the log message, to keep $0 and so on meaningful, and to
22608# report actual input values of CONFIG_FILES etc. instead of their
22609# values after options handling.
22610ac_log="
22611This file was extended by xf86-video-intel $as_me 2.99.916, which was
22612generated by GNU Autoconf 2.69.  Invocation command line was
22613
22614  CONFIG_FILES    = $CONFIG_FILES
22615  CONFIG_HEADERS  = $CONFIG_HEADERS
22616  CONFIG_LINKS    = $CONFIG_LINKS
22617  CONFIG_COMMANDS = $CONFIG_COMMANDS
22618  $ $0 $@
22619
22620on `(hostname || uname -n) 2>/dev/null | sed 1q`
22621"
22622
22623_ACEOF
22624
22625case $ac_config_files in *"
22626"*) set x $ac_config_files; shift; ac_config_files=$*;;
22627esac
22628
22629case $ac_config_headers in *"
22630"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22631esac
22632
22633
22634cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22635# Files that config.status was made for.
22636config_files="$ac_config_files"
22637config_headers="$ac_config_headers"
22638config_commands="$ac_config_commands"
22639
22640_ACEOF
22641
22642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22643ac_cs_usage="\
22644\`$as_me' instantiates files and other configuration actions
22645from templates according to the current configuration.  Unless the files
22646and actions are specified as TAGs, all are instantiated by default.
22647
22648Usage: $0 [OPTION]... [TAG]...
22649
22650  -h, --help       print this help, then exit
22651  -V, --version    print version number and configuration settings, then exit
22652      --config     print configuration, then exit
22653  -q, --quiet, --silent
22654                   do not print progress messages
22655  -d, --debug      don't remove temporary files
22656      --recheck    update $as_me by reconfiguring in the same conditions
22657      --file=FILE[:TEMPLATE]
22658                   instantiate the configuration file FILE
22659      --header=FILE[:TEMPLATE]
22660                   instantiate the configuration header FILE
22661
22662Configuration files:
22663$config_files
22664
22665Configuration headers:
22666$config_headers
22667
22668Configuration commands:
22669$config_commands
22670
22671Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
22672
22673_ACEOF
22674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22675ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22676ac_cs_version="\\
22677xf86-video-intel config.status 2.99.916
22678configured by $0, generated by GNU Autoconf 2.69,
22679  with options \\"\$ac_cs_config\\"
22680
22681Copyright (C) 2012 Free Software Foundation, Inc.
22682This config.status script is free software; the Free Software Foundation
22683gives unlimited permission to copy, distribute and modify it."
22684
22685ac_pwd='$ac_pwd'
22686srcdir='$srcdir'
22687INSTALL='$INSTALL'
22688MKDIR_P='$MKDIR_P'
22689AWK='$AWK'
22690test -n "\$AWK" || AWK=awk
22691_ACEOF
22692
22693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22694# The default lists apply if the user does not specify any file.
22695ac_need_defaults=:
22696while test $# != 0
22697do
22698  case $1 in
22699  --*=?*)
22700    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22701    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22702    ac_shift=:
22703    ;;
22704  --*=)
22705    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22706    ac_optarg=
22707    ac_shift=:
22708    ;;
22709  *)
22710    ac_option=$1
22711    ac_optarg=$2
22712    ac_shift=shift
22713    ;;
22714  esac
22715
22716  case $ac_option in
22717  # Handling of the options.
22718  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22719    ac_cs_recheck=: ;;
22720  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22721    $as_echo "$ac_cs_version"; exit ;;
22722  --config | --confi | --conf | --con | --co | --c )
22723    $as_echo "$ac_cs_config"; exit ;;
22724  --debug | --debu | --deb | --de | --d | -d )
22725    debug=: ;;
22726  --file | --fil | --fi | --f )
22727    $ac_shift
22728    case $ac_optarg in
22729    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22730    '') as_fn_error $? "missing file argument" ;;
22731    esac
22732    as_fn_append CONFIG_FILES " '$ac_optarg'"
22733    ac_need_defaults=false;;
22734  --header | --heade | --head | --hea )
22735    $ac_shift
22736    case $ac_optarg in
22737    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22738    esac
22739    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22740    ac_need_defaults=false;;
22741  --he | --h)
22742    # Conflict between --help and --header
22743    as_fn_error $? "ambiguous option: \`$1'
22744Try \`$0 --help' for more information.";;
22745  --help | --hel | -h )
22746    $as_echo "$ac_cs_usage"; exit ;;
22747  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22748  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22749    ac_cs_silent=: ;;
22750
22751  # This is an error.
22752  -*) as_fn_error $? "unrecognized option: \`$1'
22753Try \`$0 --help' for more information." ;;
22754
22755  *) as_fn_append ac_config_targets " $1"
22756     ac_need_defaults=false ;;
22757
22758  esac
22759  shift
22760done
22761
22762ac_configure_extra_args=
22763
22764if $ac_cs_silent; then
22765  exec 6>/dev/null
22766  ac_configure_extra_args="$ac_configure_extra_args --silent"
22767fi
22768
22769_ACEOF
22770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22771if \$ac_cs_recheck; then
22772  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22773  shift
22774  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22775  CONFIG_SHELL='$SHELL'
22776  export CONFIG_SHELL
22777  exec "\$@"
22778fi
22779
22780_ACEOF
22781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22782exec 5>>config.log
22783{
22784  echo
22785  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22786## Running $as_me. ##
22787_ASBOX
22788  $as_echo "$ac_log"
22789} >&5
22790
22791_ACEOF
22792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22793#
22794# INIT-COMMANDS
22795#
22796AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22797
22798
22799# The HP-UX ksh and POSIX shell print the target directory to stdout
22800# if CDPATH is set.
22801(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22802
22803sed_quote_subst='$sed_quote_subst'
22804double_quote_subst='$double_quote_subst'
22805delay_variable_subst='$delay_variable_subst'
22806enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22807macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22808macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22809enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22810pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22811enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22812SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22813ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22814PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22815host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22816host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22817host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22818build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22819build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22820build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22821SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22822Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22823GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22824EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22825FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22826LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22827NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22828LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22829max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22830ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22831exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22832lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22833lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22834lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22835lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22836lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22837reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22838reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22839OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22840deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22841file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22842file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22843want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22844DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22845sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22846AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22847AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22848archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22849STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22850RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22851old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22852old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22853old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22854lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22855CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22856CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22857compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22858GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22859lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22860lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22861lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22862lt_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"`'
22863nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22864lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22865objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22866MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22867lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22868lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22869lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22870lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22871lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22872need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22873MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22874DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22875NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22876LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22877OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22878OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22879libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22880shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22881extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22882archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22883enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22884export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22885whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22886compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22887old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22888old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22889archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22890archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22891module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22892module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22893with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22894allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22895no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22896hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22897hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22898hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22899hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22900hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22901hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22902hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22903inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22904link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22905always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22906export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22907exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22908include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22909prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22910postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22911file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22912variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22913need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22914need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22915version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22916runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22917shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22918shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22919libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22920library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22921soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22922install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22923postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22924postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22925finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22926finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22927hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22928sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22929sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22930hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22931enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22932enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22933enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22934old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22935striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22936
22937LTCC='$LTCC'
22938LTCFLAGS='$LTCFLAGS'
22939compiler='$compiler_DEFAULT'
22940
22941# A function that is used when there is no print builtin or printf.
22942func_fallback_echo ()
22943{
22944  eval 'cat <<_LTECHO_EOF
22945\$1
22946_LTECHO_EOF'
22947}
22948
22949# Quote evaled strings.
22950for var in SHELL \
22951ECHO \
22952PATH_SEPARATOR \
22953SED \
22954GREP \
22955EGREP \
22956FGREP \
22957LD \
22958NM \
22959LN_S \
22960lt_SP2NL \
22961lt_NL2SP \
22962reload_flag \
22963OBJDUMP \
22964deplibs_check_method \
22965file_magic_cmd \
22966file_magic_glob \
22967want_nocaseglob \
22968DLLTOOL \
22969sharedlib_from_linklib_cmd \
22970AR \
22971AR_FLAGS \
22972archiver_list_spec \
22973STRIP \
22974RANLIB \
22975CC \
22976CFLAGS \
22977compiler \
22978lt_cv_sys_global_symbol_pipe \
22979lt_cv_sys_global_symbol_to_cdecl \
22980lt_cv_sys_global_symbol_to_c_name_address \
22981lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22982nm_file_list_spec \
22983lt_prog_compiler_no_builtin_flag \
22984lt_prog_compiler_pic \
22985lt_prog_compiler_wl \
22986lt_prog_compiler_static \
22987lt_cv_prog_compiler_c_o \
22988need_locks \
22989MANIFEST_TOOL \
22990DSYMUTIL \
22991NMEDIT \
22992LIPO \
22993OTOOL \
22994OTOOL64 \
22995shrext_cmds \
22996export_dynamic_flag_spec \
22997whole_archive_flag_spec \
22998compiler_needs_object \
22999with_gnu_ld \
23000allow_undefined_flag \
23001no_undefined_flag \
23002hardcode_libdir_flag_spec \
23003hardcode_libdir_separator \
23004exclude_expsyms \
23005include_expsyms \
23006file_list_spec \
23007variables_saved_for_relink \
23008libname_spec \
23009library_names_spec \
23010soname_spec \
23011install_override_mode \
23012finish_eval \
23013old_striplib \
23014striplib; do
23015    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23016    *[\\\\\\\`\\"\\\$]*)
23017      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23018      ;;
23019    *)
23020      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23021      ;;
23022    esac
23023done
23024
23025# Double-quote double-evaled strings.
23026for var in reload_cmds \
23027old_postinstall_cmds \
23028old_postuninstall_cmds \
23029old_archive_cmds \
23030extract_expsyms_cmds \
23031old_archive_from_new_cmds \
23032old_archive_from_expsyms_cmds \
23033archive_cmds \
23034archive_expsym_cmds \
23035module_cmds \
23036module_expsym_cmds \
23037export_symbols_cmds \
23038prelink_cmds \
23039postlink_cmds \
23040postinstall_cmds \
23041postuninstall_cmds \
23042finish_cmds \
23043sys_lib_search_path_spec \
23044sys_lib_dlsearch_path_spec; do
23045    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23046    *[\\\\\\\`\\"\\\$]*)
23047      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23048      ;;
23049    *)
23050      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23051      ;;
23052    esac
23053done
23054
23055ac_aux_dir='$ac_aux_dir'
23056xsi_shell='$xsi_shell'
23057lt_shell_append='$lt_shell_append'
23058
23059# See if we are running on zsh, and set the options which allow our
23060# commands through without removal of \ escapes INIT.
23061if test -n "\${ZSH_VERSION+set}" ; then
23062   setopt NO_GLOB_SUBST
23063fi
23064
23065
23066    PACKAGE='$PACKAGE'
23067    VERSION='$VERSION'
23068    TIMESTAMP='$TIMESTAMP'
23069    RM='$RM'
23070    ofile='$ofile'
23071
23072
23073
23074
23075_ACEOF
23076
23077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23078
23079# Handling of arguments.
23080for ac_config_target in $ac_config_targets
23081do
23082  case $ac_config_target in
23083    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23084    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23085    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23086    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23087    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23088    "libobj/Makefile") CONFIG_FILES="$CONFIG_FILES libobj/Makefile" ;;
23089    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23090    "src/legacy/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/Makefile" ;;
23091    "src/legacy/i810/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/Makefile" ;;
23092    "src/legacy/i810/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/xvmc/Makefile" ;;
23093    "src/render_program/Makefile") CONFIG_FILES="$CONFIG_FILES src/render_program/Makefile" ;;
23094    "src/sna/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/Makefile" ;;
23095    "src/sna/brw/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/brw/Makefile" ;;
23096    "src/sna/fb/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/fb/Makefile" ;;
23097    "src/uxa/Makefile") CONFIG_FILES="$CONFIG_FILES src/uxa/Makefile" ;;
23098    "xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/Makefile" ;;
23099    "xvmc/shader/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/shader/Makefile" ;;
23100    "xvmc/shader/mc/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/shader/mc/Makefile" ;;
23101    "xvmc/shader/vld/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/shader/vld/Makefile" ;;
23102    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23103    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
23104    "tools/org.x.xf86-video-intel.backlight-helper.policy") CONFIG_FILES="$CONFIG_FILES tools/org.x.xf86-video-intel.backlight-helper.policy" ;;
23105
23106  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23107  esac
23108done
23109
23110
23111# If the user did not use the arguments to specify the items to instantiate,
23112# then the envvar interface is used.  Set only those that are not.
23113# We use the long form for the default assignment because of an extremely
23114# bizarre bug on SunOS 4.1.3.
23115if $ac_need_defaults; then
23116  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23117  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23118  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23119fi
23120
23121# Have a temporary directory for convenience.  Make it in the build tree
23122# simply because there is no reason against having it here, and in addition,
23123# creating and moving files from /tmp can sometimes cause problems.
23124# Hook for its removal unless debugging.
23125# Note that there is a small window in which the directory will not be cleaned:
23126# after its creation but before its name has been assigned to `$tmp'.
23127$debug ||
23128{
23129  tmp= ac_tmp=
23130  trap 'exit_status=$?
23131  : "${ac_tmp:=$tmp}"
23132  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23133' 0
23134  trap 'as_fn_exit 1' 1 2 13 15
23135}
23136# Create a (secure) tmp directory for tmp files.
23137
23138{
23139  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23140  test -d "$tmp"
23141}  ||
23142{
23143  tmp=./conf$$-$RANDOM
23144  (umask 077 && mkdir "$tmp")
23145} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23146ac_tmp=$tmp
23147
23148# Set up the scripts for CONFIG_FILES section.
23149# No need to generate them if there are no CONFIG_FILES.
23150# This happens for instance with `./config.status config.h'.
23151if test -n "$CONFIG_FILES"; then
23152
23153
23154ac_cr=`echo X | tr X '\015'`
23155# On cygwin, bash can eat \r inside `` if the user requested igncr.
23156# But we know of no other shell where ac_cr would be empty at this
23157# point, so we can use a bashism as a fallback.
23158if test "x$ac_cr" = x; then
23159  eval ac_cr=\$\'\\r\'
23160fi
23161ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23162if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23163  ac_cs_awk_cr='\\r'
23164else
23165  ac_cs_awk_cr=$ac_cr
23166fi
23167
23168echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23169_ACEOF
23170
23171
23172{
23173  echo "cat >conf$$subs.awk <<_ACEOF" &&
23174  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23175  echo "_ACEOF"
23176} >conf$$subs.sh ||
23177  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23178ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23179ac_delim='%!_!# '
23180for ac_last_try in false false false false false :; do
23181  . ./conf$$subs.sh ||
23182    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23183
23184  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23185  if test $ac_delim_n = $ac_delim_num; then
23186    break
23187  elif $ac_last_try; then
23188    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23189  else
23190    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23191  fi
23192done
23193rm -f conf$$subs.sh
23194
23195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23196cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23197_ACEOF
23198sed -n '
23199h
23200s/^/S["/; s/!.*/"]=/
23201p
23202g
23203s/^[^!]*!//
23204:repl
23205t repl
23206s/'"$ac_delim"'$//
23207t delim
23208:nl
23209h
23210s/\(.\{148\}\)..*/\1/
23211t more1
23212s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23213p
23214n
23215b repl
23216:more1
23217s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23218p
23219g
23220s/.\{148\}//
23221t nl
23222:delim
23223h
23224s/\(.\{148\}\)..*/\1/
23225t more2
23226s/["\\]/\\&/g; s/^/"/; s/$/"/
23227p
23228b
23229:more2
23230s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23231p
23232g
23233s/.\{148\}//
23234t delim
23235' <conf$$subs.awk | sed '
23236/^[^""]/{
23237  N
23238  s/\n//
23239}
23240' >>$CONFIG_STATUS || ac_write_fail=1
23241rm -f conf$$subs.awk
23242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23243_ACAWK
23244cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23245  for (key in S) S_is_set[key] = 1
23246  FS = ""
23247
23248}
23249{
23250  line = $ 0
23251  nfields = split(line, field, "@")
23252  substed = 0
23253  len = length(field[1])
23254  for (i = 2; i < nfields; i++) {
23255    key = field[i]
23256    keylen = length(key)
23257    if (S_is_set[key]) {
23258      value = S[key]
23259      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23260      len += length(value) + length(field[++i])
23261      substed = 1
23262    } else
23263      len += 1 + keylen
23264  }
23265
23266  print line
23267}
23268
23269_ACAWK
23270_ACEOF
23271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23272if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23273  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23274else
23275  cat
23276fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23277  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23278_ACEOF
23279
23280# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23281# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23282# trailing colons and then remove the whole line if VPATH becomes empty
23283# (actually we leave an empty line to preserve line numbers).
23284if test "x$srcdir" = x.; then
23285  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
23286h
23287s///
23288s/^/:/
23289s/[	 ]*$/:/
23290s/:\$(srcdir):/:/g
23291s/:\${srcdir}:/:/g
23292s/:@srcdir@:/:/g
23293s/^:*//
23294s/:*$//
23295x
23296s/\(=[	 ]*\).*/\1/
23297G
23298s/\n//
23299s/^[^=]*=[	 ]*$//
23300}'
23301fi
23302
23303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23304fi # test -n "$CONFIG_FILES"
23305
23306# Set up the scripts for CONFIG_HEADERS section.
23307# No need to generate them if there are no CONFIG_HEADERS.
23308# This happens for instance with `./config.status Makefile'.
23309if test -n "$CONFIG_HEADERS"; then
23310cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23311BEGIN {
23312_ACEOF
23313
23314# Transform confdefs.h into an awk script `defines.awk', embedded as
23315# here-document in config.status, that substitutes the proper values into
23316# config.h.in to produce config.h.
23317
23318# Create a delimiter string that does not exist in confdefs.h, to ease
23319# handling of long lines.
23320ac_delim='%!_!# '
23321for ac_last_try in false false :; do
23322  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23323  if test -z "$ac_tt"; then
23324    break
23325  elif $ac_last_try; then
23326    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23327  else
23328    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23329  fi
23330done
23331
23332# For the awk script, D is an array of macro values keyed by name,
23333# likewise P contains macro parameters if any.  Preserve backslash
23334# newline sequences.
23335
23336ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23337sed -n '
23338s/.\{148\}/&'"$ac_delim"'/g
23339t rset
23340:rset
23341s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23342t def
23343d
23344:def
23345s/\\$//
23346t bsnl
23347s/["\\]/\\&/g
23348s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23349D["\1"]=" \3"/p
23350s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23351d
23352:bsnl
23353s/["\\]/\\&/g
23354s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23355D["\1"]=" \3\\\\\\n"\\/p
23356t cont
23357s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23358t cont
23359d
23360:cont
23361n
23362s/.\{148\}/&'"$ac_delim"'/g
23363t clear
23364:clear
23365s/\\$//
23366t bsnlc
23367s/["\\]/\\&/g; s/^/"/; s/$/"/p
23368d
23369:bsnlc
23370s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23371b cont
23372' <confdefs.h | sed '
23373s/'"$ac_delim"'/"\\\
23374"/g' >>$CONFIG_STATUS || ac_write_fail=1
23375
23376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23377  for (key in D) D_is_set[key] = 1
23378  FS = ""
23379}
23380/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23381  line = \$ 0
23382  split(line, arg, " ")
23383  if (arg[1] == "#") {
23384    defundef = arg[2]
23385    mac1 = arg[3]
23386  } else {
23387    defundef = substr(arg[1], 2)
23388    mac1 = arg[2]
23389  }
23390  split(mac1, mac2, "(") #)
23391  macro = mac2[1]
23392  prefix = substr(line, 1, index(line, defundef) - 1)
23393  if (D_is_set[macro]) {
23394    # Preserve the white space surrounding the "#".
23395    print prefix "define", macro P[macro] D[macro]
23396    next
23397  } else {
23398    # Replace #undef with comments.  This is necessary, for example,
23399    # in the case of _POSIX_SOURCE, which is predefined and required
23400    # on some systems where configure will not decide to define it.
23401    if (defundef == "undef") {
23402      print "/*", prefix defundef, macro, "*/"
23403      next
23404    }
23405  }
23406}
23407{ print }
23408_ACAWK
23409_ACEOF
23410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23411  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23412fi # test -n "$CONFIG_HEADERS"
23413
23414
23415eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23416shift
23417for ac_tag
23418do
23419  case $ac_tag in
23420  :[FHLC]) ac_mode=$ac_tag; continue;;
23421  esac
23422  case $ac_mode$ac_tag in
23423  :[FHL]*:*);;
23424  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23425  :[FH]-) ac_tag=-:-;;
23426  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23427  esac
23428  ac_save_IFS=$IFS
23429  IFS=:
23430  set x $ac_tag
23431  IFS=$ac_save_IFS
23432  shift
23433  ac_file=$1
23434  shift
23435
23436  case $ac_mode in
23437  :L) ac_source=$1;;
23438  :[FH])
23439    ac_file_inputs=
23440    for ac_f
23441    do
23442      case $ac_f in
23443      -) ac_f="$ac_tmp/stdin";;
23444      *) # Look for the file first in the build tree, then in the source tree
23445	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23446	 # because $ac_f cannot contain `:'.
23447	 test -f "$ac_f" ||
23448	   case $ac_f in
23449	   [\\/$]*) false;;
23450	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23451	   esac ||
23452	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23453      esac
23454      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23455      as_fn_append ac_file_inputs " '$ac_f'"
23456    done
23457
23458    # Let's still pretend it is `configure' which instantiates (i.e., don't
23459    # use $as_me), people would be surprised to read:
23460    #    /* config.h.  Generated by config.status.  */
23461    configure_input='Generated from '`
23462	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23463	`' by configure.'
23464    if test x"$ac_file" != x-; then
23465      configure_input="$ac_file.  $configure_input"
23466      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23467$as_echo "$as_me: creating $ac_file" >&6;}
23468    fi
23469    # Neutralize special characters interpreted by sed in replacement strings.
23470    case $configure_input in #(
23471    *\&* | *\|* | *\\* )
23472       ac_sed_conf_input=`$as_echo "$configure_input" |
23473       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23474    *) ac_sed_conf_input=$configure_input;;
23475    esac
23476
23477    case $ac_tag in
23478    *:-:* | *:-) cat >"$ac_tmp/stdin" \
23479      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23480    esac
23481    ;;
23482  esac
23483
23484  ac_dir=`$as_dirname -- "$ac_file" ||
23485$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23486	 X"$ac_file" : 'X\(//\)[^/]' \| \
23487	 X"$ac_file" : 'X\(//\)$' \| \
23488	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23489$as_echo X"$ac_file" |
23490    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23491	    s//\1/
23492	    q
23493	  }
23494	  /^X\(\/\/\)[^/].*/{
23495	    s//\1/
23496	    q
23497	  }
23498	  /^X\(\/\/\)$/{
23499	    s//\1/
23500	    q
23501	  }
23502	  /^X\(\/\).*/{
23503	    s//\1/
23504	    q
23505	  }
23506	  s/.*/./; q'`
23507  as_dir="$ac_dir"; as_fn_mkdir_p
23508  ac_builddir=.
23509
23510case "$ac_dir" in
23511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23512*)
23513  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23514  # A ".." for each directory in $ac_dir_suffix.
23515  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23516  case $ac_top_builddir_sub in
23517  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23518  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23519  esac ;;
23520esac
23521ac_abs_top_builddir=$ac_pwd
23522ac_abs_builddir=$ac_pwd$ac_dir_suffix
23523# for backward compatibility:
23524ac_top_builddir=$ac_top_build_prefix
23525
23526case $srcdir in
23527  .)  # We are building in place.
23528    ac_srcdir=.
23529    ac_top_srcdir=$ac_top_builddir_sub
23530    ac_abs_top_srcdir=$ac_pwd ;;
23531  [\\/]* | ?:[\\/]* )  # Absolute name.
23532    ac_srcdir=$srcdir$ac_dir_suffix;
23533    ac_top_srcdir=$srcdir
23534    ac_abs_top_srcdir=$srcdir ;;
23535  *) # Relative name.
23536    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23537    ac_top_srcdir=$ac_top_build_prefix$srcdir
23538    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23539esac
23540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23541
23542
23543  case $ac_mode in
23544  :F)
23545  #
23546  # CONFIG_FILE
23547  #
23548
23549  case $INSTALL in
23550  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23551  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23552  esac
23553  ac_MKDIR_P=$MKDIR_P
23554  case $MKDIR_P in
23555  [\\/$]* | ?:[\\/]* ) ;;
23556  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23557  esac
23558_ACEOF
23559
23560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23561# If the template does not know about datarootdir, expand it.
23562# FIXME: This hack should be removed a few years after 2.60.
23563ac_datarootdir_hack=; ac_datarootdir_seen=
23564ac_sed_dataroot='
23565/datarootdir/ {
23566  p
23567  q
23568}
23569/@datadir@/p
23570/@docdir@/p
23571/@infodir@/p
23572/@localedir@/p
23573/@mandir@/p'
23574case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23575*datarootdir*) ac_datarootdir_seen=yes;;
23576*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23577  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23578$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23579_ACEOF
23580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23581  ac_datarootdir_hack='
23582  s&@datadir@&$datadir&g
23583  s&@docdir@&$docdir&g
23584  s&@infodir@&$infodir&g
23585  s&@localedir@&$localedir&g
23586  s&@mandir@&$mandir&g
23587  s&\\\${datarootdir}&$datarootdir&g' ;;
23588esac
23589_ACEOF
23590
23591# Neutralize VPATH when `$srcdir' = `.'.
23592# Shell code in configure.ac might set extrasub.
23593# FIXME: do we really want to maintain this feature?
23594cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23595ac_sed_extra="$ac_vpsub
23596$extrasub
23597_ACEOF
23598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23599:t
23600/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23601s|@configure_input@|$ac_sed_conf_input|;t t
23602s&@top_builddir@&$ac_top_builddir_sub&;t t
23603s&@top_build_prefix@&$ac_top_build_prefix&;t t
23604s&@srcdir@&$ac_srcdir&;t t
23605s&@abs_srcdir@&$ac_abs_srcdir&;t t
23606s&@top_srcdir@&$ac_top_srcdir&;t t
23607s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23608s&@builddir@&$ac_builddir&;t t
23609s&@abs_builddir@&$ac_abs_builddir&;t t
23610s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23611s&@INSTALL@&$ac_INSTALL&;t t
23612s&@MKDIR_P@&$ac_MKDIR_P&;t t
23613$ac_datarootdir_hack
23614"
23615eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23616  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23617
23618test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23619  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23620  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
23621      "$ac_tmp/out"`; test -z "$ac_out"; } &&
23622  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23623which seems to be undefined.  Please make sure it is defined" >&5
23624$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23625which seems to be undefined.  Please make sure it is defined" >&2;}
23626
23627  rm -f "$ac_tmp/stdin"
23628  case $ac_file in
23629  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23630  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23631  esac \
23632  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23633 ;;
23634  :H)
23635  #
23636  # CONFIG_HEADER
23637  #
23638  if test x"$ac_file" != x-; then
23639    {
23640      $as_echo "/* $configure_input  */" \
23641      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23642    } >"$ac_tmp/config.h" \
23643      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23644    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23645      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23646$as_echo "$as_me: $ac_file is unchanged" >&6;}
23647    else
23648      rm -f "$ac_file"
23649      mv "$ac_tmp/config.h" "$ac_file" \
23650	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23651    fi
23652  else
23653    $as_echo "/* $configure_input  */" \
23654      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23655      || as_fn_error $? "could not create -" "$LINENO" 5
23656  fi
23657# Compute "$ac_file"'s index in $config_headers.
23658_am_arg="$ac_file"
23659_am_stamp_count=1
23660for _am_header in $config_headers :; do
23661  case $_am_header in
23662    $_am_arg | $_am_arg:* )
23663      break ;;
23664    * )
23665      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23666  esac
23667done
23668echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23669$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23670	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23671	 X"$_am_arg" : 'X\(//\)$' \| \
23672	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23673$as_echo X"$_am_arg" |
23674    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23675	    s//\1/
23676	    q
23677	  }
23678	  /^X\(\/\/\)[^/].*/{
23679	    s//\1/
23680	    q
23681	  }
23682	  /^X\(\/\/\)$/{
23683	    s//\1/
23684	    q
23685	  }
23686	  /^X\(\/\).*/{
23687	    s//\1/
23688	    q
23689	  }
23690	  s/.*/./; q'`/stamp-h$_am_stamp_count
23691 ;;
23692
23693  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23694$as_echo "$as_me: executing $ac_file commands" >&6;}
23695 ;;
23696  esac
23697
23698
23699  case $ac_file$ac_mode in
23700    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23701  # Older Autoconf quotes --file arguments for eval, but not when files
23702  # are listed without --file.  Let's play safe and only enable the eval
23703  # if we detect the quoting.
23704  case $CONFIG_FILES in
23705  *\'*) eval set x "$CONFIG_FILES" ;;
23706  *)   set x $CONFIG_FILES ;;
23707  esac
23708  shift
23709  for mf
23710  do
23711    # Strip MF so we end up with the name of the file.
23712    mf=`echo "$mf" | sed -e 's/:.*$//'`
23713    # Check whether this is an Automake generated Makefile or not.
23714    # We used to match only the files named 'Makefile.in', but
23715    # some people rename them; so instead we look at the file content.
23716    # Grep'ing the first line is not enough: some people post-process
23717    # each Makefile.in and add a new line on top of each file to say so.
23718    # Grep'ing the whole file is not good either: AIX grep has a line
23719    # limit of 2048, but all sed's we know have understand at least 4000.
23720    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23721      dirpart=`$as_dirname -- "$mf" ||
23722$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23723	 X"$mf" : 'X\(//\)[^/]' \| \
23724	 X"$mf" : 'X\(//\)$' \| \
23725	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23726$as_echo X"$mf" |
23727    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23728	    s//\1/
23729	    q
23730	  }
23731	  /^X\(\/\/\)[^/].*/{
23732	    s//\1/
23733	    q
23734	  }
23735	  /^X\(\/\/\)$/{
23736	    s//\1/
23737	    q
23738	  }
23739	  /^X\(\/\).*/{
23740	    s//\1/
23741	    q
23742	  }
23743	  s/.*/./; q'`
23744    else
23745      continue
23746    fi
23747    # Extract the definition of DEPDIR, am__include, and am__quote
23748    # from the Makefile without running 'make'.
23749    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23750    test -z "$DEPDIR" && continue
23751    am__include=`sed -n 's/^am__include = //p' < "$mf"`
23752    test -z "$am__include" && continue
23753    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23754    # Find all dependency output files, they are included files with
23755    # $(DEPDIR) in their names.  We invoke sed twice because it is the
23756    # simplest approach to changing $(DEPDIR) to its actual value in the
23757    # expansion.
23758    for file in `sed -n "
23759      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23760	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23761      # Make sure the directory exists.
23762      test -f "$dirpart/$file" && continue
23763      fdir=`$as_dirname -- "$file" ||
23764$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23765	 X"$file" : 'X\(//\)[^/]' \| \
23766	 X"$file" : 'X\(//\)$' \| \
23767	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23768$as_echo X"$file" |
23769    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23770	    s//\1/
23771	    q
23772	  }
23773	  /^X\(\/\/\)[^/].*/{
23774	    s//\1/
23775	    q
23776	  }
23777	  /^X\(\/\/\)$/{
23778	    s//\1/
23779	    q
23780	  }
23781	  /^X\(\/\).*/{
23782	    s//\1/
23783	    q
23784	  }
23785	  s/.*/./; q'`
23786      as_dir=$dirpart/$fdir; as_fn_mkdir_p
23787      # echo "creating $dirpart/$file"
23788      echo '# dummy' > "$dirpart/$file"
23789    done
23790  done
23791}
23792 ;;
23793    "libtool":C)
23794
23795    # See if we are running on zsh, and set the options which allow our
23796    # commands through without removal of \ escapes.
23797    if test -n "${ZSH_VERSION+set}" ; then
23798      setopt NO_GLOB_SUBST
23799    fi
23800
23801    cfgfile="${ofile}T"
23802    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23803    $RM "$cfgfile"
23804
23805    cat <<_LT_EOF >> "$cfgfile"
23806#! $SHELL
23807
23808# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23809# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23810# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23811# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23812#
23813#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23814#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23815#                 Foundation, Inc.
23816#   Written by Gordon Matzigkeit, 1996
23817#
23818#   This file is part of GNU Libtool.
23819#
23820# GNU Libtool is free software; you can redistribute it and/or
23821# modify it under the terms of the GNU General Public License as
23822# published by the Free Software Foundation; either version 2 of
23823# the License, or (at your option) any later version.
23824#
23825# As a special exception to the GNU General Public License,
23826# if you distribute this file as part of a program or library that
23827# is built using GNU Libtool, you may include this file under the
23828# same distribution terms that you use for the rest of that program.
23829#
23830# GNU Libtool is distributed in the hope that it will be useful,
23831# but WITHOUT ANY WARRANTY; without even the implied warranty of
23832# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23833# GNU General Public License for more details.
23834#
23835# You should have received a copy of the GNU General Public License
23836# along with GNU Libtool; see the file COPYING.  If not, a copy
23837# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23838# obtained by writing to the Free Software Foundation, Inc.,
23839# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23840
23841
23842# The names of the tagged configurations supported by this script.
23843available_tags=""
23844
23845# ### BEGIN LIBTOOL CONFIG
23846
23847# Whether or not to build static libraries.
23848build_old_libs=$enable_static
23849
23850# Which release of libtool.m4 was used?
23851macro_version=$macro_version
23852macro_revision=$macro_revision
23853
23854# Whether or not to build shared libraries.
23855build_libtool_libs=$enable_shared
23856
23857# What type of objects to build.
23858pic_mode=$pic_mode
23859
23860# Whether or not to optimize for fast installation.
23861fast_install=$enable_fast_install
23862
23863# Shell to use when invoking shell scripts.
23864SHELL=$lt_SHELL
23865
23866# An echo program that protects backslashes.
23867ECHO=$lt_ECHO
23868
23869# The PATH separator for the build system.
23870PATH_SEPARATOR=$lt_PATH_SEPARATOR
23871
23872# The host system.
23873host_alias=$host_alias
23874host=$host
23875host_os=$host_os
23876
23877# The build system.
23878build_alias=$build_alias
23879build=$build
23880build_os=$build_os
23881
23882# A sed program that does not truncate output.
23883SED=$lt_SED
23884
23885# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23886Xsed="\$SED -e 1s/^X//"
23887
23888# A grep program that handles long lines.
23889GREP=$lt_GREP
23890
23891# An ERE matcher.
23892EGREP=$lt_EGREP
23893
23894# A literal string matcher.
23895FGREP=$lt_FGREP
23896
23897# A BSD- or MS-compatible name lister.
23898NM=$lt_NM
23899
23900# Whether we need soft or hard links.
23901LN_S=$lt_LN_S
23902
23903# What is the maximum length of a command?
23904max_cmd_len=$max_cmd_len
23905
23906# Object file suffix (normally "o").
23907objext=$ac_objext
23908
23909# Executable file suffix (normally "").
23910exeext=$exeext
23911
23912# whether the shell understands "unset".
23913lt_unset=$lt_unset
23914
23915# turn spaces into newlines.
23916SP2NL=$lt_lt_SP2NL
23917
23918# turn newlines into spaces.
23919NL2SP=$lt_lt_NL2SP
23920
23921# convert \$build file names to \$host format.
23922to_host_file_cmd=$lt_cv_to_host_file_cmd
23923
23924# convert \$build files to toolchain format.
23925to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23926
23927# An object symbol dumper.
23928OBJDUMP=$lt_OBJDUMP
23929
23930# Method to check whether dependent libraries are shared objects.
23931deplibs_check_method=$lt_deplibs_check_method
23932
23933# Command to use when deplibs_check_method = "file_magic".
23934file_magic_cmd=$lt_file_magic_cmd
23935
23936# How to find potential files when deplibs_check_method = "file_magic".
23937file_magic_glob=$lt_file_magic_glob
23938
23939# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23940want_nocaseglob=$lt_want_nocaseglob
23941
23942# DLL creation program.
23943DLLTOOL=$lt_DLLTOOL
23944
23945# Command to associate shared and link libraries.
23946sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23947
23948# The archiver.
23949AR=$lt_AR
23950
23951# Flags to create an archive.
23952AR_FLAGS=$lt_AR_FLAGS
23953
23954# How to feed a file listing to the archiver.
23955archiver_list_spec=$lt_archiver_list_spec
23956
23957# A symbol stripping program.
23958STRIP=$lt_STRIP
23959
23960# Commands used to install an old-style archive.
23961RANLIB=$lt_RANLIB
23962old_postinstall_cmds=$lt_old_postinstall_cmds
23963old_postuninstall_cmds=$lt_old_postuninstall_cmds
23964
23965# Whether to use a lock for old archive extraction.
23966lock_old_archive_extraction=$lock_old_archive_extraction
23967
23968# A C compiler.
23969LTCC=$lt_CC
23970
23971# LTCC compiler flags.
23972LTCFLAGS=$lt_CFLAGS
23973
23974# Take the output of nm and produce a listing of raw symbols and C names.
23975global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23976
23977# Transform the output of nm in a proper C declaration.
23978global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23979
23980# Transform the output of nm in a C name address pair.
23981global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23982
23983# Transform the output of nm in a C name address pair when lib prefix is needed.
23984global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23985
23986# Specify filename containing input files for \$NM.
23987nm_file_list_spec=$lt_nm_file_list_spec
23988
23989# The root where to search for dependent libraries,and in which our libraries should be installed.
23990lt_sysroot=$lt_sysroot
23991
23992# The name of the directory that contains temporary libtool files.
23993objdir=$objdir
23994
23995# Used to examine libraries when file_magic_cmd begins with "file".
23996MAGIC_CMD=$MAGIC_CMD
23997
23998# Must we lock files when doing compilation?
23999need_locks=$lt_need_locks
24000
24001# Manifest tool.
24002MANIFEST_TOOL=$lt_MANIFEST_TOOL
24003
24004# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24005DSYMUTIL=$lt_DSYMUTIL
24006
24007# Tool to change global to local symbols on Mac OS X.
24008NMEDIT=$lt_NMEDIT
24009
24010# Tool to manipulate fat objects and archives on Mac OS X.
24011LIPO=$lt_LIPO
24012
24013# ldd/readelf like tool for Mach-O binaries on Mac OS X.
24014OTOOL=$lt_OTOOL
24015
24016# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24017OTOOL64=$lt_OTOOL64
24018
24019# Old archive suffix (normally "a").
24020libext=$libext
24021
24022# Shared library suffix (normally ".so").
24023shrext_cmds=$lt_shrext_cmds
24024
24025# The commands to extract the exported symbol list from a shared archive.
24026extract_expsyms_cmds=$lt_extract_expsyms_cmds
24027
24028# Variables whose values should be saved in libtool wrapper scripts and
24029# restored at link time.
24030variables_saved_for_relink=$lt_variables_saved_for_relink
24031
24032# Do we need the "lib" prefix for modules?
24033need_lib_prefix=$need_lib_prefix
24034
24035# Do we need a version for libraries?
24036need_version=$need_version
24037
24038# Library versioning type.
24039version_type=$version_type
24040
24041# Shared library runtime path variable.
24042runpath_var=$runpath_var
24043
24044# Shared library path variable.
24045shlibpath_var=$shlibpath_var
24046
24047# Is shlibpath searched before the hard-coded library search path?
24048shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24049
24050# Format of library name prefix.
24051libname_spec=$lt_libname_spec
24052
24053# List of archive names.  First name is the real one, the rest are links.
24054# The last name is the one that the linker finds with -lNAME
24055library_names_spec=$lt_library_names_spec
24056
24057# The coded name of the library, if different from the real name.
24058soname_spec=$lt_soname_spec
24059
24060# Permission mode override for installation of shared libraries.
24061install_override_mode=$lt_install_override_mode
24062
24063# Command to use after installation of a shared archive.
24064postinstall_cmds=$lt_postinstall_cmds
24065
24066# Command to use after uninstallation of a shared archive.
24067postuninstall_cmds=$lt_postuninstall_cmds
24068
24069# Commands used to finish a libtool library installation in a directory.
24070finish_cmds=$lt_finish_cmds
24071
24072# As "finish_cmds", except a single script fragment to be evaled but
24073# not shown.
24074finish_eval=$lt_finish_eval
24075
24076# Whether we should hardcode library paths into libraries.
24077hardcode_into_libs=$hardcode_into_libs
24078
24079# Compile-time system search path for libraries.
24080sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24081
24082# Run-time system search path for libraries.
24083sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24084
24085# Whether dlopen is supported.
24086dlopen_support=$enable_dlopen
24087
24088# Whether dlopen of programs is supported.
24089dlopen_self=$enable_dlopen_self
24090
24091# Whether dlopen of statically linked programs is supported.
24092dlopen_self_static=$enable_dlopen_self_static
24093
24094# Commands to strip libraries.
24095old_striplib=$lt_old_striplib
24096striplib=$lt_striplib
24097
24098
24099# The linker used to build libraries.
24100LD=$lt_LD
24101
24102# How to create reloadable object files.
24103reload_flag=$lt_reload_flag
24104reload_cmds=$lt_reload_cmds
24105
24106# Commands used to build an old-style archive.
24107old_archive_cmds=$lt_old_archive_cmds
24108
24109# A language specific compiler.
24110CC=$lt_compiler
24111
24112# Is the compiler the GNU compiler?
24113with_gcc=$GCC
24114
24115# Compiler flag to turn off builtin functions.
24116no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24117
24118# Additional compiler flags for building library objects.
24119pic_flag=$lt_lt_prog_compiler_pic
24120
24121# How to pass a linker flag through the compiler.
24122wl=$lt_lt_prog_compiler_wl
24123
24124# Compiler flag to prevent dynamic linking.
24125link_static_flag=$lt_lt_prog_compiler_static
24126
24127# Does compiler simultaneously support -c and -o options?
24128compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24129
24130# Whether or not to add -lc for building shared libraries.
24131build_libtool_need_lc=$archive_cmds_need_lc
24132
24133# Whether or not to disallow shared libs when runtime libs are static.
24134allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24135
24136# Compiler flag to allow reflexive dlopens.
24137export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24138
24139# Compiler flag to generate shared objects directly from archives.
24140whole_archive_flag_spec=$lt_whole_archive_flag_spec
24141
24142# Whether the compiler copes with passing no objects directly.
24143compiler_needs_object=$lt_compiler_needs_object
24144
24145# Create an old-style archive from a shared archive.
24146old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24147
24148# Create a temporary old-style archive to link instead of a shared archive.
24149old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24150
24151# Commands used to build a shared archive.
24152archive_cmds=$lt_archive_cmds
24153archive_expsym_cmds=$lt_archive_expsym_cmds
24154
24155# Commands used to build a loadable module if different from building
24156# a shared archive.
24157module_cmds=$lt_module_cmds
24158module_expsym_cmds=$lt_module_expsym_cmds
24159
24160# Whether we are building with GNU ld or not.
24161with_gnu_ld=$lt_with_gnu_ld
24162
24163# Flag that allows shared libraries with undefined symbols to be built.
24164allow_undefined_flag=$lt_allow_undefined_flag
24165
24166# Flag that enforces no undefined symbols.
24167no_undefined_flag=$lt_no_undefined_flag
24168
24169# Flag to hardcode \$libdir into a binary during linking.
24170# This must work even if \$libdir does not exist
24171hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24172
24173# Whether we need a single "-rpath" flag with a separated argument.
24174hardcode_libdir_separator=$lt_hardcode_libdir_separator
24175
24176# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24177# DIR into the resulting binary.
24178hardcode_direct=$hardcode_direct
24179
24180# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24181# DIR into the resulting binary and the resulting library dependency is
24182# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24183# library is relocated.
24184hardcode_direct_absolute=$hardcode_direct_absolute
24185
24186# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24187# into the resulting binary.
24188hardcode_minus_L=$hardcode_minus_L
24189
24190# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24191# into the resulting binary.
24192hardcode_shlibpath_var=$hardcode_shlibpath_var
24193
24194# Set to "yes" if building a shared library automatically hardcodes DIR
24195# into the library and all subsequent libraries and executables linked
24196# against it.
24197hardcode_automatic=$hardcode_automatic
24198
24199# Set to yes if linker adds runtime paths of dependent libraries
24200# to runtime path list.
24201inherit_rpath=$inherit_rpath
24202
24203# Whether libtool must link a program against all its dependency libraries.
24204link_all_deplibs=$link_all_deplibs
24205
24206# Set to "yes" if exported symbols are required.
24207always_export_symbols=$always_export_symbols
24208
24209# The commands to list exported symbols.
24210export_symbols_cmds=$lt_export_symbols_cmds
24211
24212# Symbols that should not be listed in the preloaded symbols.
24213exclude_expsyms=$lt_exclude_expsyms
24214
24215# Symbols that must always be exported.
24216include_expsyms=$lt_include_expsyms
24217
24218# Commands necessary for linking programs (against libraries) with templates.
24219prelink_cmds=$lt_prelink_cmds
24220
24221# Commands necessary for finishing linking programs.
24222postlink_cmds=$lt_postlink_cmds
24223
24224# Specify filename containing input files.
24225file_list_spec=$lt_file_list_spec
24226
24227# How to hardcode a shared library path into an executable.
24228hardcode_action=$hardcode_action
24229
24230# ### END LIBTOOL CONFIG
24231
24232_LT_EOF
24233
24234  case $host_os in
24235  aix3*)
24236    cat <<\_LT_EOF >> "$cfgfile"
24237# AIX sometimes has problems with the GCC collect2 program.  For some
24238# reason, if we set the COLLECT_NAMES environment variable, the problems
24239# vanish in a puff of smoke.
24240if test "X${COLLECT_NAMES+set}" != Xset; then
24241  COLLECT_NAMES=
24242  export COLLECT_NAMES
24243fi
24244_LT_EOF
24245    ;;
24246  esac
24247
24248
24249ltmain="$ac_aux_dir/ltmain.sh"
24250
24251
24252  # We use sed instead of cat because bash on DJGPP gets confused if
24253  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24254  # text mode, it properly converts lines to CR/LF.  This bash problem
24255  # is reportedly fixed, but why not run on old versions too?
24256  sed '$q' "$ltmain" >> "$cfgfile" \
24257     || (rm -f "$cfgfile"; exit 1)
24258
24259  if test x"$xsi_shell" = xyes; then
24260  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
24261func_dirname ()\
24262{\
24263\    case ${1} in\
24264\      */*) func_dirname_result="${1%/*}${2}" ;;\
24265\      *  ) func_dirname_result="${3}" ;;\
24266\    esac\
24267} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
24268  && mv -f "$cfgfile.tmp" "$cfgfile" \
24269    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24270test 0 -eq $? || _lt_function_replace_fail=:
24271
24272
24273  sed -e '/^func_basename ()$/,/^} # func_basename /c\
24274func_basename ()\
24275{\
24276\    func_basename_result="${1##*/}"\
24277} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
24278  && mv -f "$cfgfile.tmp" "$cfgfile" \
24279    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24280test 0 -eq $? || _lt_function_replace_fail=:
24281
24282
24283  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
24284func_dirname_and_basename ()\
24285{\
24286\    case ${1} in\
24287\      */*) func_dirname_result="${1%/*}${2}" ;;\
24288\      *  ) func_dirname_result="${3}" ;;\
24289\    esac\
24290\    func_basename_result="${1##*/}"\
24291} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
24292  && mv -f "$cfgfile.tmp" "$cfgfile" \
24293    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24294test 0 -eq $? || _lt_function_replace_fail=:
24295
24296
24297  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
24298func_stripname ()\
24299{\
24300\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
24301\    # positional parameters, so assign one to ordinary parameter first.\
24302\    func_stripname_result=${3}\
24303\    func_stripname_result=${func_stripname_result#"${1}"}\
24304\    func_stripname_result=${func_stripname_result%"${2}"}\
24305} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
24306  && mv -f "$cfgfile.tmp" "$cfgfile" \
24307    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24308test 0 -eq $? || _lt_function_replace_fail=:
24309
24310
24311  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
24312func_split_long_opt ()\
24313{\
24314\    func_split_long_opt_name=${1%%=*}\
24315\    func_split_long_opt_arg=${1#*=}\
24316} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
24317  && mv -f "$cfgfile.tmp" "$cfgfile" \
24318    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24319test 0 -eq $? || _lt_function_replace_fail=:
24320
24321
24322  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
24323func_split_short_opt ()\
24324{\
24325\    func_split_short_opt_arg=${1#??}\
24326\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
24327} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
24328  && mv -f "$cfgfile.tmp" "$cfgfile" \
24329    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24330test 0 -eq $? || _lt_function_replace_fail=:
24331
24332
24333  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
24334func_lo2o ()\
24335{\
24336\    case ${1} in\
24337\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
24338\      *)    func_lo2o_result=${1} ;;\
24339\    esac\
24340} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
24341  && mv -f "$cfgfile.tmp" "$cfgfile" \
24342    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24343test 0 -eq $? || _lt_function_replace_fail=:
24344
24345
24346  sed -e '/^func_xform ()$/,/^} # func_xform /c\
24347func_xform ()\
24348{\
24349    func_xform_result=${1%.*}.lo\
24350} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
24351  && mv -f "$cfgfile.tmp" "$cfgfile" \
24352    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24353test 0 -eq $? || _lt_function_replace_fail=:
24354
24355
24356  sed -e '/^func_arith ()$/,/^} # func_arith /c\
24357func_arith ()\
24358{\
24359    func_arith_result=$(( $* ))\
24360} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
24361  && mv -f "$cfgfile.tmp" "$cfgfile" \
24362    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24363test 0 -eq $? || _lt_function_replace_fail=:
24364
24365
24366  sed -e '/^func_len ()$/,/^} # func_len /c\
24367func_len ()\
24368{\
24369    func_len_result=${#1}\
24370} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
24371  && mv -f "$cfgfile.tmp" "$cfgfile" \
24372    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24373test 0 -eq $? || _lt_function_replace_fail=:
24374
24375fi
24376
24377if test x"$lt_shell_append" = xyes; then
24378  sed -e '/^func_append ()$/,/^} # func_append /c\
24379func_append ()\
24380{\
24381    eval "${1}+=\\${2}"\
24382} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
24383  && mv -f "$cfgfile.tmp" "$cfgfile" \
24384    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24385test 0 -eq $? || _lt_function_replace_fail=:
24386
24387
24388  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
24389func_append_quoted ()\
24390{\
24391\    func_quote_for_eval "${2}"\
24392\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
24393} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
24394  && mv -f "$cfgfile.tmp" "$cfgfile" \
24395    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24396test 0 -eq $? || _lt_function_replace_fail=:
24397
24398
24399  # Save a `func_append' function call where possible by direct use of '+='
24400  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
24401    && mv -f "$cfgfile.tmp" "$cfgfile" \
24402      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24403  test 0 -eq $? || _lt_function_replace_fail=:
24404else
24405  # Save a `func_append' function call even when '+=' is not available
24406  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
24407    && mv -f "$cfgfile.tmp" "$cfgfile" \
24408      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24409  test 0 -eq $? || _lt_function_replace_fail=:
24410fi
24411
24412if test x"$_lt_function_replace_fail" = x":"; then
24413  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
24414$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
24415fi
24416
24417
24418   mv -f "$cfgfile" "$ofile" ||
24419    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24420  chmod +x "$ofile"
24421
24422 ;;
24423
24424  esac
24425done # for ac_tag
24426
24427
24428as_fn_exit 0
24429_ACEOF
24430ac_clean_files=$ac_clean_files_save
24431
24432test $ac_write_fail = 0 ||
24433  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24434
24435
24436# configure is writing to config.log, and then calls config.status.
24437# config.status does its own redirection, appending to config.log.
24438# Unfortunately, on DOS this fails, as config.log is still kept open
24439# by configure, so config.status won't be able to write to it; its
24440# output is simply discarded.  So we exec the FD to /dev/null,
24441# effectively closing config.log, so it can be properly (re)opened and
24442# appended to by config.status.  When coming back to configure, we
24443# need to make the FD available again.
24444if test "$no_create" != yes; then
24445  ac_cs_success=:
24446  ac_config_status_args=
24447  test "$silent" = yes &&
24448    ac_config_status_args="$ac_config_status_args --quiet"
24449  exec 5>/dev/null
24450  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24451  exec 5>>config.log
24452  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24453  # would make configure fail if this is the last instruction.
24454  $ac_cs_success || as_fn_exit 1
24455fi
24456if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24457  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24458$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24459fi
24460
24461
24462echo ""
24463echo ""
24464test -e `pwd $0`/README && cat `pwd $0`/README
24465
24466accel_msg=""
24467if test "x$SNA" != "xno"; then
24468	if test "$accel" = "none"; then
24469		accel_msg="$accel_msg *none"
24470	else
24471		accel_msg="$accel_msg none"
24472	fi
24473	if test "$accel" = "sna"; then
24474		accel_msg="$accel_msg *sna"
24475	else
24476		accel_msg="$accel_msg sna"
24477	fi
24478fi
24479if test "x$UXA" != "xno"; then
24480	if test "x$SNA" = "xno"; then
24481		if test "$accel" = "none"; then
24482			accel_msg="$accel_msg *none"
24483		else
24484			accel_msg="$accel_msg none"
24485		fi
24486	fi
24487	if test "$accel" = "uxa"; then
24488		accel_msg="$accel_msg *uxa"
24489	else
24490		accel_msg="$accel_msg uxa"
24491	fi
24492fi
24493if test "x$GLAMOR" != "xno"; then
24494	if test "$accel" = "glamor"; then
24495		accel_msg="$accel_msg *glamor"
24496	else
24497		accel_msg="$accel_msg glamor"
24498	fi
24499fi
24500
24501if test "x$dri_msg" = "x"; then
24502	dri_msg=" none"
24503fi
24504
24505if test "x$tools_msg" = "x"; then
24506	tools_msg=" none"
24507fi
24508
24509echo ""
24510echo "xf86-video-intel 2.99.916 will be compiled with:"
24511echo "  Xorg Video ABI version: $ABI_VERSION"
24512echo "  Acceleration backends:$accel_msg"
24513echo "  Additional debugging support?$debug_msg"
24514echo "  Support for Kernel Mode Setting? $KMS"
24515echo "  Support for legacy User Mode Setting (for i810)? $UMS"
24516echo "  Support for Direct Rendering Infrastructure:$dri_msg"
24517echo "  Support for Xv motion compensation (XvMC and libXvMC):$xvmc_msg"
24518echo "  Build additional tools and utilities?$tools_msg"
24519if test -n "$xp_msg"; then
24520echo "  Experimental support:$xp_msg"
24521fi
24522echo ""
24523