configure revision 89c04b6c
11.1Szuntum#! /bin/sh
21.1Szuntum# Guess values for system-dependent variables and create Makefiles.
31.1Szuntum# Generated by GNU Autoconf 2.68 for libXrender 0.9.8.
41.1Szuntum#
51.1Szuntum# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
61.1Szuntum#
71.1Szuntum#
81.1Szuntum# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
91.1Szuntum# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
101.1Szuntum# Foundation, Inc.
111.1Szuntum#
121.1Szuntum#
131.1Szuntum# This configure script is free software; the Free Software Foundation
141.1Szuntum# gives unlimited permission to copy, distribute and modify it.
151.1Szuntum## -------------------- ##
161.1Szuntum## M4sh Initialization. ##
171.1Szuntum## -------------------- ##
181.1Szuntum
191.1Szuntum# Be more Bourne compatible
201.1SzuntumDUALCASE=1; export DUALCASE # for MKS sh
211.1Szuntumif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
221.1Szuntum  emulate sh
231.1Szuntum  NULLCMD=:
241.1Szuntum  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
251.1Szuntum  # is contrary to our usage.  Disable this feature.
261.1Szuntum  alias -g '${1+"$@"}'='"$@"'
271.1Szuntum  setopt NO_GLOB_SUBST
281.1Szuntumelse
291.1Szuntum  case `(set -o) 2>/dev/null` in #(
301.1Szuntum  *posix*) :
311.1Szuntum    set -o posix ;; #(
321.1Szuntum  *) :
331.1Szuntum     ;;
341.1Szuntumesac
351.1Szuntumfi
361.1Szuntum
371.1Szuntum
381.1Szuntumas_nl='
391.1Szuntum'
401.1Szuntumexport as_nl
411.1Szuntum# Printing a long string crashes Solaris 7 /usr/bin/printf.
421.1Szuntumas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
431.1Szuntumas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
441.1Szuntumas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
451.1Szuntum# Prefer a ksh shell builtin over an external printf program on Solaris,
461.1Szuntum# but without wasting forks for bash or zsh.
471.1Szuntumif test -z "$BASH_VERSION$ZSH_VERSION" \
481.1Szuntum    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
491.1Szuntum  as_echo='print -r --'
501.1Szuntum  as_echo_n='print -rn --'
511.1Szuntumelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
521.1Szuntum  as_echo='printf %s\n'
531.1Szuntum  as_echo_n='printf %s'
541.1Szuntumelse
551.1Szuntum  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
561.1Szuntum    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
571.1Szuntum    as_echo_n='/usr/ucb/echo -n'
581.1Szuntum  else
591.1Szuntum    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
601.1Szuntum    as_echo_n_body='eval
611.1Szuntum      arg=$1;
621.1Szuntum      case $arg in #(
631.1Szuntum      *"$as_nl"*)
641.1Szuntum	expr "X$arg" : "X\\(.*\\)$as_nl";
651.1Szuntum	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
661.1Szuntum      esac;
671.1Szuntum      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
681.1Szuntum    '
691.1Szuntum    export as_echo_n_body
701.1Szuntum    as_echo_n='sh -c $as_echo_n_body as_echo'
711.1Szuntum  fi
721.1Szuntum  export as_echo_body
731.1Szuntum  as_echo='sh -c $as_echo_body as_echo'
741.1Szuntumfi
751.1Szuntum
761.1Szuntum# The user is always right.
771.1Szuntumif test "${PATH_SEPARATOR+set}" != set; then
781.1Szuntum  PATH_SEPARATOR=:
791.1Szuntum  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
801.1Szuntum    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
811.1Szuntum      PATH_SEPARATOR=';'
821.1Szuntum  }
831.1Szuntumfi
841.1Szuntum
851.1Szuntum
861.1Szuntum# IFS
871.1Szuntum# We need space, tab and new line, in precisely that order.  Quoting is
881.1Szuntum# there to prevent editors from complaining about space-tab.
891.1Szuntum# (If _AS_PATH_WALK were called with IFS unset, it would disable word
901.1Szuntum# splitting by setting IFS to empty value.)
911.1SzuntumIFS=" ""	$as_nl"
921.1Szuntum
931.1Szuntum# Find who we are.  Look in the path if we contain no directory separator.
941.1Szuntumas_myself=
951.1Szuntumcase $0 in #((
961.1Szuntum  *[\\/]* ) as_myself=$0 ;;
971.1Szuntum  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981.1Szuntumfor as_dir in $PATH
991.1Szuntumdo
1001.1Szuntum  IFS=$as_save_IFS
1011.1Szuntum  test -z "$as_dir" && as_dir=.
1021.1Szuntum    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1031.1Szuntum  done
1041.1SzuntumIFS=$as_save_IFS
1051.1Szuntum
1061.1Szuntum     ;;
1071.1Szuntumesac
1081.1Szuntum# We did not find ourselves, most probably we were run as `sh COMMAND'
1091.1Szuntum# in which case we are not to be found in the path.
1101.1Szuntumif test "x$as_myself" = x; then
1111.1Szuntum  as_myself=$0
1121.1Szuntumfi
1131.1Szuntumif test ! -f "$as_myself"; then
1141.1Szuntum  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1151.1Szuntum  exit 1
1161.1Szuntumfi
1171.1Szuntum
1181.1Szuntum# Unset variables that we do not need and which cause bugs (e.g. in
1191.1Szuntum# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1201.1Szuntum# suppresses any "Segmentation fault" message there.  '((' could
1211.1Szuntum# trigger a bug in pdksh 5.2.14.
1221.1Szuntumfor as_var in BASH_ENV ENV MAIL MAILPATH
1231.1Szuntumdo eval test x\${$as_var+set} = xset \
1241.1Szuntum  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1251.1Szuntumdone
1261.1SzuntumPS1='$ '
1271.1SzuntumPS2='> '
1281.1SzuntumPS4='+ '
1291.1Szuntum
1301.1Szuntum# NLS nuisances.
1311.1SzuntumLC_ALL=C
1321.1Szuntumexport LC_ALL
1331.1SzuntumLANGUAGE=C
1341.1Szuntumexport LANGUAGE
1351.1Szuntum
1361.1Szuntum# CDPATH.
1371.1Szuntum(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1381.1Szuntum
1391.1Szuntumif test "x$CONFIG_SHELL" = x; then
1401.1Szuntum  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1411.1Szuntum  emulate sh
1421.1Szuntum  NULLCMD=:
1431.1Szuntum  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1441.1Szuntum  # is contrary to our usage.  Disable this feature.
1451.1Szuntum  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1461.1Szuntum  setopt NO_GLOB_SUBST
1471.1Szuntumelse
1481.1Szuntum  case \`(set -o) 2>/dev/null\` in #(
1491.1Szuntum  *posix*) :
1501.1Szuntum    set -o posix ;; #(
1511.1Szuntum  *) :
1521.1Szuntum     ;;
1531.1Szuntumesac
1541.1Szuntumfi
1551.1Szuntum"
1561.1Szuntum  as_required="as_fn_return () { (exit \$1); }
1571.1Szuntumas_fn_success () { as_fn_return 0; }
1581.1Szuntumas_fn_failure () { as_fn_return 1; }
1591.1Szuntumas_fn_ret_success () { return 0; }
1601.1Szuntumas_fn_ret_failure () { return 1; }
1611.1Szuntum
1621.1Szuntumexitcode=0
1631.1Szuntumas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1641.1Szuntumas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1651.1Szuntumas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1661.1Szuntumas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1671.1Szuntumif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1681.1Szuntum
1691.1Szuntumelse
1701.1Szuntum  exitcode=1; echo positional parameters were not saved.
1711.1Szuntumfi
1721.1Szuntumtest x\$exitcode = x0 || exit 1"
1731.1Szuntum  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1741.1Szuntum  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1751.1Szuntum  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1761.1Szuntum  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1771.1Szuntum
1781.1Szuntum  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
1791.1Szuntum    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1801.1Szuntum    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
1811.1Szuntum    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
1821.1Szuntum    PATH=/empty FPATH=/empty; export PATH FPATH
1831.1Szuntum    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
1841.1Szuntum      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
1851.1Szuntumtest \$(( 1 + 1 )) = 2 || exit 1"
1861.1Szuntum  if (eval "$as_required") 2>/dev/null; then :
1871.1Szuntum  as_have_required=yes
1881.1Szuntumelse
1891.1Szuntum  as_have_required=no
1901.1Szuntumfi
1911.1Szuntum  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1921.1Szuntum
1931.1Szuntumelse
1941.1Szuntum  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951.1Szuntumas_found=false
1961.1Szuntumfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1971.1Szuntumdo
1981.1Szuntum  IFS=$as_save_IFS
1991.1Szuntum  test -z "$as_dir" && as_dir=.
2001.1Szuntum  as_found=:
2011.1Szuntum  case $as_dir in #(
2021.1Szuntum	 /*)
2031.1Szuntum	   for as_base in sh bash ksh sh5; do
2041.1Szuntum	     # Try only shells that exist, to save several forks.
2051.1Szuntum	     as_shell=$as_dir/$as_base
2061.1Szuntum	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2071.1Szuntum		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2081.1Szuntum  CONFIG_SHELL=$as_shell as_have_required=yes
2091.1Szuntum		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2101.1Szuntum  break 2
2111.1Szuntumfi
2121.1Szuntumfi
2131.1Szuntum	   done;;
2141.1Szuntum       esac
2151.1Szuntum  as_found=false
2161.1Szuntumdone
2171.1Szuntum$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2181.1Szuntum	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2191.1Szuntum  CONFIG_SHELL=$SHELL as_have_required=yes
2201.1Szuntumfi; }
2211.1SzuntumIFS=$as_save_IFS
2221.1Szuntum
2231.1Szuntum
2241.1Szuntum      if test "x$CONFIG_SHELL" != x; then :
2251.1Szuntum  # We cannot yet assume a decent shell, so we have to provide a
2261.1Szuntum	# neutralization value for shells without unset; and this also
2271.1Szuntum	# works around shells that cannot unset nonexistent variables.
2281.1Szuntum	# Preserve -v and -x to the replacement shell.
2291.1Szuntum	BASH_ENV=/dev/null
2301.1Szuntum	ENV=/dev/null
2311.1Szuntum	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2321.1Szuntum	export CONFIG_SHELL
2331.1Szuntum	case $- in # ((((
2341.1Szuntum	  *v*x* | *x*v* ) as_opts=-vx ;;
2351.1Szuntum	  *v* ) as_opts=-v ;;
2361.1Szuntum	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570
571# Identity of this package.
572PACKAGE_NAME='libXrender'
573PACKAGE_TARNAME='libXrender'
574PACKAGE_VERSION='0.9.8'
575PACKAGE_STRING='libXrender 0.9.8'
576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577PACKAGE_URL=''
578
579ac_unique_file="Makefile.am"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594#  include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599#  include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='am__EXEEXT_FALSE
617am__EXEEXT_TRUE
618LTLIBOBJS
619LIBOBJS
620RENDER_LIBS
621RENDER_CFLAGS
622RENDER_VERSION
623XTMALLOC_ZERO_CFLAGS
624XMALLOC_ZERO_CFLAGS
625MALLOC_ZERO_CFLAGS
626MAN_SUBSTS
627XORG_MAN_PAGE
628ADMIN_MAN_DIR
629DRIVER_MAN_DIR
630MISC_MAN_DIR
631FILE_MAN_DIR
632LIB_MAN_DIR
633APP_MAN_DIR
634ADMIN_MAN_SUFFIX
635DRIVER_MAN_SUFFIX
636MISC_MAN_SUFFIX
637FILE_MAN_SUFFIX
638LIB_MAN_SUFFIX
639APP_MAN_SUFFIX
640INSTALL_CMD
641PKG_CONFIG
642CHANGELOG_CMD
643STRICT_CFLAGS
644CWARNFLAGS
645BASE_CFLAGS
646CPP
647OTOOL64
648OTOOL
649LIPO
650NMEDIT
651DSYMUTIL
652MANIFEST_TOOL
653RANLIB
654ac_ct_AR
655AR
656DLLTOOL
657OBJDUMP
658LN_S
659NM
660ac_ct_DUMPBIN
661DUMPBIN
662LD
663FGREP
664EGREP
665GREP
666SED
667am__fastdepCC_FALSE
668am__fastdepCC_TRUE
669CCDEPMODE
670am__nodep
671AMDEPBACKSLASH
672AMDEP_FALSE
673AMDEP_TRUE
674am__quote
675am__include
676DEPDIR
677OBJEXT
678EXEEXT
679ac_ct_CC
680CPPFLAGS
681LDFLAGS
682CFLAGS
683CC
684host_os
685host_vendor
686host_cpu
687host
688build_os
689build_vendor
690build_cpu
691build
692LIBTOOL
693AM_BACKSLASH
694AM_DEFAULT_VERBOSITY
695AM_DEFAULT_V
696AM_V
697am__untar
698am__tar
699AMTAR
700am__leading_dot
701SET_MAKE
702AWK
703mkdir_p
704MKDIR_P
705INSTALL_STRIP_PROGRAM
706STRIP
707install_sh
708MAKEINFO
709AUTOHEADER
710AUTOMAKE
711AUTOCONF
712ACLOCAL
713VERSION
714PACKAGE
715CYGPATH_W
716am__isrc
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720target_alias
721host_alias
722build_alias
723LIBS
724ECHO_T
725ECHO_N
726ECHO_C
727DEFS
728mandir
729localedir
730libdir
731psdir
732pdfdir
733dvidir
734htmldir
735infodir
736docdir
737oldincludedir
738includedir
739localstatedir
740sharedstatedir
741sysconfdir
742datadir
743datarootdir
744libexecdir
745sbindir
746bindir
747program_transform_name
748prefix
749exec_prefix
750PACKAGE_URL
751PACKAGE_BUGREPORT
752PACKAGE_STRING
753PACKAGE_VERSION
754PACKAGE_TARNAME
755PACKAGE_NAME
756PATH_SEPARATOR
757SHELL'
758ac_subst_files=''
759ac_user_opts='
760enable_option_checking
761enable_silent_rules
762enable_shared
763enable_static
764with_pic
765enable_fast_install
766enable_dependency_tracking
767with_gnu_ld
768with_sysroot
769enable_libtool_lock
770enable_selective_werror
771enable_strict_compilation
772enable_malloc0returnsnull
773'
774      ac_precious_vars='build_alias
775host_alias
776target_alias
777CC
778CFLAGS
779LDFLAGS
780LIBS
781CPPFLAGS
782CPP
783PKG_CONFIG
784RENDER_CFLAGS
785RENDER_LIBS'
786
787
788# Initialize some variables set by options.
789ac_init_help=
790ac_init_version=false
791ac_unrecognized_opts=
792ac_unrecognized_sep=
793# The variables have the same names as the options, with
794# dashes changed to underlines.
795cache_file=/dev/null
796exec_prefix=NONE
797no_create=
798no_recursion=
799prefix=NONE
800program_prefix=NONE
801program_suffix=NONE
802program_transform_name=s,x,x,
803silent=
804site=
805srcdir=
806verbose=
807x_includes=NONE
808x_libraries=NONE
809
810# Installation directory options.
811# These are left unexpanded so users can "make install exec_prefix=/foo"
812# and all the variables that are supposed to be based on exec_prefix
813# by default will actually change.
814# Use braces instead of parens because sh, perl, etc. also accept them.
815# (The list follows the same order as the GNU Coding Standards.)
816bindir='${exec_prefix}/bin'
817sbindir='${exec_prefix}/sbin'
818libexecdir='${exec_prefix}/libexec'
819datarootdir='${prefix}/share'
820datadir='${datarootdir}'
821sysconfdir='${prefix}/etc'
822sharedstatedir='${prefix}/com'
823localstatedir='${prefix}/var'
824includedir='${prefix}/include'
825oldincludedir='/usr/include'
826docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827infodir='${datarootdir}/info'
828htmldir='${docdir}'
829dvidir='${docdir}'
830pdfdir='${docdir}'
831psdir='${docdir}'
832libdir='${exec_prefix}/lib'
833localedir='${datarootdir}/locale'
834mandir='${datarootdir}/man'
835
836ac_prev=
837ac_dashdash=
838for ac_option
839do
840  # If the previous option needs an argument, assign it.
841  if test -n "$ac_prev"; then
842    eval $ac_prev=\$ac_option
843    ac_prev=
844    continue
845  fi
846
847  case $ac_option in
848  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849  *=)   ac_optarg= ;;
850  *)    ac_optarg=yes ;;
851  esac
852
853  # Accept the important Cygnus configure options, so we can diagnose typos.
854
855  case $ac_dashdash$ac_option in
856  --)
857    ac_dashdash=yes ;;
858
859  -bindir | --bindir | --bindi | --bind | --bin | --bi)
860    ac_prev=bindir ;;
861  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862    bindir=$ac_optarg ;;
863
864  -build | --build | --buil | --bui | --bu)
865    ac_prev=build_alias ;;
866  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867    build_alias=$ac_optarg ;;
868
869  -cache-file | --cache-file | --cache-fil | --cache-fi \
870  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871    ac_prev=cache_file ;;
872  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874    cache_file=$ac_optarg ;;
875
876  --config-cache | -C)
877    cache_file=config.cache ;;
878
879  -datadir | --datadir | --datadi | --datad)
880    ac_prev=datadir ;;
881  -datadir=* | --datadir=* | --datadi=* | --datad=*)
882    datadir=$ac_optarg ;;
883
884  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885  | --dataroo | --dataro | --datar)
886    ac_prev=datarootdir ;;
887  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889    datarootdir=$ac_optarg ;;
890
891  -disable-* | --disable-*)
892    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893    # Reject names that are not valid shell variable names.
894    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895      as_fn_error $? "invalid feature name: $ac_useropt"
896    ac_useropt_orig=$ac_useropt
897    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898    case $ac_user_opts in
899      *"
900"enable_$ac_useropt"
901"*) ;;
902      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903	 ac_unrecognized_sep=', ';;
904    esac
905    eval enable_$ac_useropt=no ;;
906
907  -docdir | --docdir | --docdi | --doc | --do)
908    ac_prev=docdir ;;
909  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910    docdir=$ac_optarg ;;
911
912  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913    ac_prev=dvidir ;;
914  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915    dvidir=$ac_optarg ;;
916
917  -enable-* | --enable-*)
918    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919    # Reject names that are not valid shell variable names.
920    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921      as_fn_error $? "invalid feature name: $ac_useropt"
922    ac_useropt_orig=$ac_useropt
923    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924    case $ac_user_opts in
925      *"
926"enable_$ac_useropt"
927"*) ;;
928      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929	 ac_unrecognized_sep=', ';;
930    esac
931    eval enable_$ac_useropt=\$ac_optarg ;;
932
933  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935  | --exec | --exe | --ex)
936    ac_prev=exec_prefix ;;
937  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939  | --exec=* | --exe=* | --ex=*)
940    exec_prefix=$ac_optarg ;;
941
942  -gas | --gas | --ga | --g)
943    # Obsolete; use --with-gas.
944    with_gas=yes ;;
945
946  -help | --help | --hel | --he | -h)
947    ac_init_help=long ;;
948  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949    ac_init_help=recursive ;;
950  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951    ac_init_help=short ;;
952
953  -host | --host | --hos | --ho)
954    ac_prev=host_alias ;;
955  -host=* | --host=* | --hos=* | --ho=*)
956    host_alias=$ac_optarg ;;
957
958  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959    ac_prev=htmldir ;;
960  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961  | --ht=*)
962    htmldir=$ac_optarg ;;
963
964  -includedir | --includedir | --includedi | --included | --include \
965  | --includ | --inclu | --incl | --inc)
966    ac_prev=includedir ;;
967  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968  | --includ=* | --inclu=* | --incl=* | --inc=*)
969    includedir=$ac_optarg ;;
970
971  -infodir | --infodir | --infodi | --infod | --info | --inf)
972    ac_prev=infodir ;;
973  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974    infodir=$ac_optarg ;;
975
976  -libdir | --libdir | --libdi | --libd)
977    ac_prev=libdir ;;
978  -libdir=* | --libdir=* | --libdi=* | --libd=*)
979    libdir=$ac_optarg ;;
980
981  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982  | --libexe | --libex | --libe)
983    ac_prev=libexecdir ;;
984  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985  | --libexe=* | --libex=* | --libe=*)
986    libexecdir=$ac_optarg ;;
987
988  -localedir | --localedir | --localedi | --localed | --locale)
989    ac_prev=localedir ;;
990  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991    localedir=$ac_optarg ;;
992
993  -localstatedir | --localstatedir | --localstatedi | --localstated \
994  | --localstate | --localstat | --localsta | --localst | --locals)
995    ac_prev=localstatedir ;;
996  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998    localstatedir=$ac_optarg ;;
999
1000  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001    ac_prev=mandir ;;
1002  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003    mandir=$ac_optarg ;;
1004
1005  -nfp | --nfp | --nf)
1006    # Obsolete; use --without-fp.
1007    with_fp=no ;;
1008
1009  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010  | --no-cr | --no-c | -n)
1011    no_create=yes ;;
1012
1013  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015    no_recursion=yes ;;
1016
1017  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019  | --oldin | --oldi | --old | --ol | --o)
1020    ac_prev=oldincludedir ;;
1021  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024    oldincludedir=$ac_optarg ;;
1025
1026  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027    ac_prev=prefix ;;
1028  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029    prefix=$ac_optarg ;;
1030
1031  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032  | --program-pre | --program-pr | --program-p)
1033    ac_prev=program_prefix ;;
1034  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036    program_prefix=$ac_optarg ;;
1037
1038  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039  | --program-suf | --program-su | --program-s)
1040    ac_prev=program_suffix ;;
1041  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043    program_suffix=$ac_optarg ;;
1044
1045  -program-transform-name | --program-transform-name \
1046  | --program-transform-nam | --program-transform-na \
1047  | --program-transform-n | --program-transform- \
1048  | --program-transform | --program-transfor \
1049  | --program-transfo | --program-transf \
1050  | --program-trans | --program-tran \
1051  | --progr-tra | --program-tr | --program-t)
1052    ac_prev=program_transform_name ;;
1053  -program-transform-name=* | --program-transform-name=* \
1054  | --program-transform-nam=* | --program-transform-na=* \
1055  | --program-transform-n=* | --program-transform-=* \
1056  | --program-transform=* | --program-transfor=* \
1057  | --program-transfo=* | --program-transf=* \
1058  | --program-trans=* | --program-tran=* \
1059  | --progr-tra=* | --program-tr=* | --program-t=*)
1060    program_transform_name=$ac_optarg ;;
1061
1062  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063    ac_prev=pdfdir ;;
1064  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065    pdfdir=$ac_optarg ;;
1066
1067  -psdir | --psdir | --psdi | --psd | --ps)
1068    ac_prev=psdir ;;
1069  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070    psdir=$ac_optarg ;;
1071
1072  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073  | -silent | --silent | --silen | --sile | --sil)
1074    silent=yes ;;
1075
1076  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077    ac_prev=sbindir ;;
1078  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079  | --sbi=* | --sb=*)
1080    sbindir=$ac_optarg ;;
1081
1082  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084  | --sharedst | --shareds | --shared | --share | --shar \
1085  | --sha | --sh)
1086    ac_prev=sharedstatedir ;;
1087  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090  | --sha=* | --sh=*)
1091    sharedstatedir=$ac_optarg ;;
1092
1093  -site | --site | --sit)
1094    ac_prev=site ;;
1095  -site=* | --site=* | --sit=*)
1096    site=$ac_optarg ;;
1097
1098  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099    ac_prev=srcdir ;;
1100  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101    srcdir=$ac_optarg ;;
1102
1103  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104  | --syscon | --sysco | --sysc | --sys | --sy)
1105    ac_prev=sysconfdir ;;
1106  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108    sysconfdir=$ac_optarg ;;
1109
1110  -target | --target | --targe | --targ | --tar | --ta | --t)
1111    ac_prev=target_alias ;;
1112  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113    target_alias=$ac_optarg ;;
1114
1115  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116    verbose=yes ;;
1117
1118  -version | --version | --versio | --versi | --vers | -V)
1119    ac_init_version=: ;;
1120
1121  -with-* | --with-*)
1122    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123    # Reject names that are not valid shell variable names.
1124    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125      as_fn_error $? "invalid package name: $ac_useropt"
1126    ac_useropt_orig=$ac_useropt
1127    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128    case $ac_user_opts in
1129      *"
1130"with_$ac_useropt"
1131"*) ;;
1132      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133	 ac_unrecognized_sep=', ';;
1134    esac
1135    eval with_$ac_useropt=\$ac_optarg ;;
1136
1137  -without-* | --without-*)
1138    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139    # Reject names that are not valid shell variable names.
1140    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141      as_fn_error $? "invalid package name: $ac_useropt"
1142    ac_useropt_orig=$ac_useropt
1143    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144    case $ac_user_opts in
1145      *"
1146"with_$ac_useropt"
1147"*) ;;
1148      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149	 ac_unrecognized_sep=', ';;
1150    esac
1151    eval with_$ac_useropt=no ;;
1152
1153  --x)
1154    # Obsolete; use --with-x.
1155    with_x=yes ;;
1156
1157  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158  | --x-incl | --x-inc | --x-in | --x-i)
1159    ac_prev=x_includes ;;
1160  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162    x_includes=$ac_optarg ;;
1163
1164  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166    ac_prev=x_libraries ;;
1167  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169    x_libraries=$ac_optarg ;;
1170
1171  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172Try \`$0 --help' for more information"
1173    ;;
1174
1175  *=*)
1176    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177    # Reject names that are not valid shell variable names.
1178    case $ac_envvar in #(
1179      '' | [0-9]* | *[!_$as_cr_alnum]* )
1180      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1181    esac
1182    eval $ac_envvar=\$ac_optarg
1183    export $ac_envvar ;;
1184
1185  *)
1186    # FIXME: should be removed in autoconf 3.0.
1187    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191    ;;
1192
1193  esac
1194done
1195
1196if test -n "$ac_prev"; then
1197  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198  as_fn_error $? "missing argument to $ac_option"
1199fi
1200
1201if test -n "$ac_unrecognized_opts"; then
1202  case $enable_option_checking in
1203    no) ;;
1204    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1205    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206  esac
1207fi
1208
1209# Check all directory arguments for consistency.
1210for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211		datadir sysconfdir sharedstatedir localstatedir includedir \
1212		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213		libdir localedir mandir
1214do
1215  eval ac_val=\$$ac_var
1216  # Remove trailing slashes.
1217  case $ac_val in
1218    */ )
1219      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220      eval $ac_var=\$ac_val;;
1221  esac
1222  # Be sure to have absolute directory names.
1223  case $ac_val in
1224    [\\/$]* | ?:[\\/]* )  continue;;
1225    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226  esac
1227  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1228done
1229
1230# There might be people who depend on the old broken behavior: `$host'
1231# used to hold the argument of --host etc.
1232# FIXME: To remove some day.
1233build=$build_alias
1234host=$host_alias
1235target=$target_alias
1236
1237# FIXME: To remove some day.
1238if test "x$host_alias" != x; then
1239  if test "x$build_alias" = x; then
1240    cross_compiling=maybe
1241    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1242    If a cross compiler is detected then cross compile mode will be used" >&2
1243  elif test "x$build_alias" != "x$host_alias"; then
1244    cross_compiling=yes
1245  fi
1246fi
1247
1248ac_tool_prefix=
1249test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251test "$silent" = yes && exec 6>/dev/null
1252
1253
1254ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255ac_ls_di=`ls -di .` &&
1256ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257  as_fn_error $? "working directory cannot be determined"
1258test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259  as_fn_error $? "pwd does not report name of working directory"
1260
1261
1262# Find the source files, if location was not specified.
1263if test -z "$srcdir"; then
1264  ac_srcdir_defaulted=yes
1265  # Try the directory containing this script, then the parent directory.
1266  ac_confdir=`$as_dirname -- "$as_myself" ||
1267$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268	 X"$as_myself" : 'X\(//\)[^/]' \| \
1269	 X"$as_myself" : 'X\(//\)$' \| \
1270	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271$as_echo X"$as_myself" |
1272    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273	    s//\1/
1274	    q
1275	  }
1276	  /^X\(\/\/\)[^/].*/{
1277	    s//\1/
1278	    q
1279	  }
1280	  /^X\(\/\/\)$/{
1281	    s//\1/
1282	    q
1283	  }
1284	  /^X\(\/\).*/{
1285	    s//\1/
1286	    q
1287	  }
1288	  s/.*/./; q'`
1289  srcdir=$ac_confdir
1290  if test ! -r "$srcdir/$ac_unique_file"; then
1291    srcdir=..
1292  fi
1293else
1294  ac_srcdir_defaulted=no
1295fi
1296if test ! -r "$srcdir/$ac_unique_file"; then
1297  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299fi
1300ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301ac_abs_confdir=`(
1302	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303	pwd)`
1304# When building in place, set srcdir=.
1305if test "$ac_abs_confdir" = "$ac_pwd"; then
1306  srcdir=.
1307fi
1308# Remove unnecessary trailing slashes from srcdir.
1309# Double slashes in file names in object file debugging info
1310# mess up M-x gdb in Emacs.
1311case $srcdir in
1312*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313esac
1314for ac_var in $ac_precious_vars; do
1315  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316  eval ac_env_${ac_var}_value=\$${ac_var}
1317  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319done
1320
1321#
1322# Report the --help message.
1323#
1324if test "$ac_init_help" = "long"; then
1325  # Omit some internal or obsolete options to make the list less imposing.
1326  # This message is too long to be a string in the A/UX 3.1 sh.
1327  cat <<_ACEOF
1328\`configure' configures libXrender 0.9.8 to adapt to many kinds of systems.
1329
1330Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333VAR=VALUE.  See below for descriptions of some of the useful variables.
1334
1335Defaults for the options are specified in brackets.
1336
1337Configuration:
1338  -h, --help              display this help and exit
1339      --help=short        display options specific to this package
1340      --help=recursive    display the short help of all the included packages
1341  -V, --version           display version information and exit
1342  -q, --quiet, --silent   do not print \`checking ...' messages
1343      --cache-file=FILE   cache test results in FILE [disabled]
1344  -C, --config-cache      alias for \`--cache-file=config.cache'
1345  -n, --no-create         do not create output files
1346      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1347
1348Installation directories:
1349  --prefix=PREFIX         install architecture-independent files in PREFIX
1350                          [$ac_default_prefix]
1351  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1352                          [PREFIX]
1353
1354By default, \`make install' will install all the files in
1355\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1356an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357for instance \`--prefix=\$HOME'.
1358
1359For better control, use the options below.
1360
1361Fine tuning of the installation directories:
1362  --bindir=DIR            user executables [EPREFIX/bin]
1363  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1364  --libexecdir=DIR        program executables [EPREFIX/libexec]
1365  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1366  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1367  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1368  --libdir=DIR            object code libraries [EPREFIX/lib]
1369  --includedir=DIR        C header files [PREFIX/include]
1370  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1371  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1372  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1373  --infodir=DIR           info documentation [DATAROOTDIR/info]
1374  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1375  --mandir=DIR            man documentation [DATAROOTDIR/man]
1376  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXrender]
1377  --htmldir=DIR           html documentation [DOCDIR]
1378  --dvidir=DIR            dvi documentation [DOCDIR]
1379  --pdfdir=DIR            pdf documentation [DOCDIR]
1380  --psdir=DIR             ps documentation [DOCDIR]
1381_ACEOF
1382
1383  cat <<\_ACEOF
1384
1385Program names:
1386  --program-prefix=PREFIX            prepend PREFIX to installed program names
1387  --program-suffix=SUFFIX            append SUFFIX to installed program names
1388  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1389
1390System types:
1391  --build=BUILD     configure for building on BUILD [guessed]
1392  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1393_ACEOF
1394fi
1395
1396if test -n "$ac_init_help"; then
1397  case $ac_init_help in
1398     short | recursive ) echo "Configuration of libXrender 0.9.8:";;
1399   esac
1400  cat <<\_ACEOF
1401
1402Optional Features:
1403  --disable-option-checking  ignore unrecognized --enable/--with options
1404  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1405  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1406  --enable-silent-rules   less verbose build output (undo: "make V=1")
1407  --disable-silent-rules  verbose build output (undo: "make V=0")
1408  --enable-shared[=PKGS]  build shared libraries [default=yes]
1409  --enable-static[=PKGS]  build static libraries [default=yes]
1410  --enable-fast-install[=PKGS]
1411                          optimize for fast installation [default=yes]
1412  --enable-dependency-tracking
1413                          do not reject slow dependency extractors
1414  --disable-dependency-tracking
1415                          speeds up one-time build
1416  --disable-libtool-lock  avoid locking (might break parallel builds)
1417  --disable-selective-werror
1418                          Turn off selective compiler errors. (default:
1419                          enabled)
1420  --enable-strict-compilation
1421                          Enable all warnings from compiler and make them
1422                          errors (default: disabled)
1423  --enable-malloc0returnsnull
1424                          malloc(0) returns NULL (default: auto)
1425
1426Optional Packages:
1427  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1428  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1429  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1430                          both]
1431  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1432  --with-sysroot=DIR Search for dependent libraries within DIR
1433                        (or the compiler's sysroot if not specified).
1434
1435Some influential environment variables:
1436  CC          C compiler command
1437  CFLAGS      C compiler flags
1438  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1439              nonstandard directory <lib dir>
1440  LIBS        libraries to pass to the linker, e.g. -l<library>
1441  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1442              you have headers in a nonstandard directory <include dir>
1443  CPP         C preprocessor
1444  PKG_CONFIG  path to pkg-config utility
1445  RENDER_CFLAGS
1446              C compiler flags for RENDER, overriding pkg-config
1447  RENDER_LIBS linker flags for RENDER, overriding pkg-config
1448
1449Use these variables to override the choices made by `configure' or to help
1450it to find libraries and programs with nonstandard names/locations.
1451
1452Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1453_ACEOF
1454ac_status=$?
1455fi
1456
1457if test "$ac_init_help" = "recursive"; then
1458  # If there are subdirs, report their specific --help.
1459  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460    test -d "$ac_dir" ||
1461      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462      continue
1463    ac_builddir=.
1464
1465case "$ac_dir" in
1466.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467*)
1468  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469  # A ".." for each directory in $ac_dir_suffix.
1470  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471  case $ac_top_builddir_sub in
1472  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474  esac ;;
1475esac
1476ac_abs_top_builddir=$ac_pwd
1477ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478# for backward compatibility:
1479ac_top_builddir=$ac_top_build_prefix
1480
1481case $srcdir in
1482  .)  # We are building in place.
1483    ac_srcdir=.
1484    ac_top_srcdir=$ac_top_builddir_sub
1485    ac_abs_top_srcdir=$ac_pwd ;;
1486  [\\/]* | ?:[\\/]* )  # Absolute name.
1487    ac_srcdir=$srcdir$ac_dir_suffix;
1488    ac_top_srcdir=$srcdir
1489    ac_abs_top_srcdir=$srcdir ;;
1490  *) # Relative name.
1491    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492    ac_top_srcdir=$ac_top_build_prefix$srcdir
1493    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494esac
1495ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497    cd "$ac_dir" || { ac_status=$?; continue; }
1498    # Check for guested configure.
1499    if test -f "$ac_srcdir/configure.gnu"; then
1500      echo &&
1501      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502    elif test -f "$ac_srcdir/configure"; then
1503      echo &&
1504      $SHELL "$ac_srcdir/configure" --help=recursive
1505    else
1506      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507    fi || ac_status=$?
1508    cd "$ac_pwd" || { ac_status=$?; break; }
1509  done
1510fi
1511
1512test -n "$ac_init_help" && exit $ac_status
1513if $ac_init_version; then
1514  cat <<\_ACEOF
1515libXrender configure 0.9.8
1516generated by GNU Autoconf 2.68
1517
1518Copyright (C) 2010 Free Software Foundation, Inc.
1519This configure script is free software; the Free Software Foundation
1520gives unlimited permission to copy, distribute and modify it.
1521_ACEOF
1522  exit
1523fi
1524
1525## ------------------------ ##
1526## Autoconf initialization. ##
1527## ------------------------ ##
1528
1529# ac_fn_c_try_compile LINENO
1530# --------------------------
1531# Try to compile conftest.$ac_ext, and return whether this succeeded.
1532ac_fn_c_try_compile ()
1533{
1534  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535  rm -f conftest.$ac_objext
1536  if { { ac_try="$ac_compile"
1537case "(($ac_try" in
1538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539  *) ac_try_echo=$ac_try;;
1540esac
1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542$as_echo "$ac_try_echo"; } >&5
1543  (eval "$ac_compile") 2>conftest.err
1544  ac_status=$?
1545  if test -s conftest.err; then
1546    grep -v '^ *+' conftest.err >conftest.er1
1547    cat conftest.er1 >&5
1548    mv -f conftest.er1 conftest.err
1549  fi
1550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551  test $ac_status = 0; } && {
1552	 test -z "$ac_c_werror_flag" ||
1553	 test ! -s conftest.err
1554       } && test -s conftest.$ac_objext; then :
1555  ac_retval=0
1556else
1557  $as_echo "$as_me: failed program was:" >&5
1558sed 's/^/| /' conftest.$ac_ext >&5
1559
1560	ac_retval=1
1561fi
1562  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563  as_fn_set_status $ac_retval
1564
1565} # ac_fn_c_try_compile
1566
1567# ac_fn_c_try_link LINENO
1568# -----------------------
1569# Try to link conftest.$ac_ext, and return whether this succeeded.
1570ac_fn_c_try_link ()
1571{
1572  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573  rm -f conftest.$ac_objext conftest$ac_exeext
1574  if { { ac_try="$ac_link"
1575case "(($ac_try" in
1576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577  *) ac_try_echo=$ac_try;;
1578esac
1579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580$as_echo "$ac_try_echo"; } >&5
1581  (eval "$ac_link") 2>conftest.err
1582  ac_status=$?
1583  if test -s conftest.err; then
1584    grep -v '^ *+' conftest.err >conftest.er1
1585    cat conftest.er1 >&5
1586    mv -f conftest.er1 conftest.err
1587  fi
1588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589  test $ac_status = 0; } && {
1590	 test -z "$ac_c_werror_flag" ||
1591	 test ! -s conftest.err
1592       } && test -s conftest$ac_exeext && {
1593	 test "$cross_compiling" = yes ||
1594	 $as_test_x conftest$ac_exeext
1595       }; then :
1596  ac_retval=0
1597else
1598  $as_echo "$as_me: failed program was:" >&5
1599sed 's/^/| /' conftest.$ac_ext >&5
1600
1601	ac_retval=1
1602fi
1603  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1604  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1605  # interfere with the next link command; also delete a directory that is
1606  # left behind by Apple's compiler.  We do this before executing the actions.
1607  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1608  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609  as_fn_set_status $ac_retval
1610
1611} # ac_fn_c_try_link
1612
1613# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1614# -------------------------------------------------------
1615# Tests whether HEADER exists and can be compiled using the include files in
1616# INCLUDES, setting the cache variable VAR accordingly.
1617ac_fn_c_check_header_compile ()
1618{
1619  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1621$as_echo_n "checking for $2... " >&6; }
1622if eval \${$3+:} false; then :
1623  $as_echo_n "(cached) " >&6
1624else
1625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626/* end confdefs.h.  */
1627$4
1628#include <$2>
1629_ACEOF
1630if ac_fn_c_try_compile "$LINENO"; then :
1631  eval "$3=yes"
1632else
1633  eval "$3=no"
1634fi
1635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636fi
1637eval ac_res=\$$3
1638	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639$as_echo "$ac_res" >&6; }
1640  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641
1642} # ac_fn_c_check_header_compile
1643
1644# ac_fn_c_try_cpp LINENO
1645# ----------------------
1646# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1647ac_fn_c_try_cpp ()
1648{
1649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650  if { { ac_try="$ac_cpp conftest.$ac_ext"
1651case "(($ac_try" in
1652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653  *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
1657  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1658  ac_status=$?
1659  if test -s conftest.err; then
1660    grep -v '^ *+' conftest.err >conftest.er1
1661    cat conftest.er1 >&5
1662    mv -f conftest.er1 conftest.err
1663  fi
1664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665  test $ac_status = 0; } > conftest.i && {
1666	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1667	 test ! -s conftest.err
1668       }; then :
1669  ac_retval=0
1670else
1671  $as_echo "$as_me: failed program was:" >&5
1672sed 's/^/| /' conftest.$ac_ext >&5
1673
1674    ac_retval=1
1675fi
1676  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677  as_fn_set_status $ac_retval
1678
1679} # ac_fn_c_try_cpp
1680
1681# ac_fn_c_try_run LINENO
1682# ----------------------
1683# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1684# that executables *can* be run.
1685ac_fn_c_try_run ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  if { { ac_try="$ac_link"
1689case "(($ac_try" in
1690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691  *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695  (eval "$ac_link") 2>&5
1696  ac_status=$?
1697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1699  { { case "(($ac_try" in
1700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701  *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705  (eval "$ac_try") 2>&5
1706  ac_status=$?
1707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; }; }; then :
1709  ac_retval=0
1710else
1711  $as_echo "$as_me: program exited with status $ac_status" >&5
1712       $as_echo "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
1715       ac_retval=$ac_status
1716fi
1717  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719  as_fn_set_status $ac_retval
1720
1721} # ac_fn_c_try_run
1722
1723# ac_fn_c_check_func LINENO FUNC VAR
1724# ----------------------------------
1725# Tests whether FUNC exists, setting the cache variable VAR accordingly
1726ac_fn_c_check_func ()
1727{
1728  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730$as_echo_n "checking for $2... " >&6; }
1731if eval \${$3+:} false; then :
1732  $as_echo_n "(cached) " >&6
1733else
1734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735/* end confdefs.h.  */
1736/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1737   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1738#define $2 innocuous_$2
1739
1740/* System header to define __stub macros and hopefully few prototypes,
1741    which can conflict with char $2 (); below.
1742    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1743    <limits.h> exists even on freestanding compilers.  */
1744
1745#ifdef __STDC__
1746# include <limits.h>
1747#else
1748# include <assert.h>
1749#endif
1750
1751#undef $2
1752
1753/* Override any GCC internal prototype to avoid an error.
1754   Use char because int might match the return type of a GCC
1755   builtin and then its argument prototype would still apply.  */
1756#ifdef __cplusplus
1757extern "C"
1758#endif
1759char $2 ();
1760/* The GNU C library defines this for functions which it implements
1761    to always fail with ENOSYS.  Some functions are actually named
1762    something starting with __ and the normal name is an alias.  */
1763#if defined __stub_$2 || defined __stub___$2
1764choke me
1765#endif
1766
1767int
1768main ()
1769{
1770return $2 ();
1771  ;
1772  return 0;
1773}
1774_ACEOF
1775if ac_fn_c_try_link "$LINENO"; then :
1776  eval "$3=yes"
1777else
1778  eval "$3=no"
1779fi
1780rm -f core conftest.err conftest.$ac_objext \
1781    conftest$ac_exeext conftest.$ac_ext
1782fi
1783eval ac_res=\$$3
1784	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785$as_echo "$ac_res" >&6; }
1786  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787
1788} # ac_fn_c_check_func
1789
1790# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1791# ---------------------------------------------
1792# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1793# accordingly.
1794ac_fn_c_check_decl ()
1795{
1796  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797  as_decl_name=`echo $2|sed 's/ *(.*//'`
1798  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1800$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1801if eval \${$3+:} false; then :
1802  $as_echo_n "(cached) " >&6
1803else
1804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805/* end confdefs.h.  */
1806$4
1807int
1808main ()
1809{
1810#ifndef $as_decl_name
1811#ifdef __cplusplus
1812  (void) $as_decl_use;
1813#else
1814  (void) $as_decl_name;
1815#endif
1816#endif
1817
1818  ;
1819  return 0;
1820}
1821_ACEOF
1822if ac_fn_c_try_compile "$LINENO"; then :
1823  eval "$3=yes"
1824else
1825  eval "$3=no"
1826fi
1827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828fi
1829eval ac_res=\$$3
1830	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831$as_echo "$ac_res" >&6; }
1832  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833
1834} # ac_fn_c_check_decl
1835cat >config.log <<_ACEOF
1836This file contains any messages produced by compilers while
1837running configure, to aid debugging if configure makes a mistake.
1838
1839It was created by libXrender $as_me 0.9.8, which was
1840generated by GNU Autoconf 2.68.  Invocation command line was
1841
1842  $ $0 $@
1843
1844_ACEOF
1845exec 5>>config.log
1846{
1847cat <<_ASUNAME
1848## --------- ##
1849## Platform. ##
1850## --------- ##
1851
1852hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1853uname -m = `(uname -m) 2>/dev/null || echo unknown`
1854uname -r = `(uname -r) 2>/dev/null || echo unknown`
1855uname -s = `(uname -s) 2>/dev/null || echo unknown`
1856uname -v = `(uname -v) 2>/dev/null || echo unknown`
1857
1858/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1859/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1860
1861/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1862/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1863/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1864/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1865/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1866/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1867/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1868
1869_ASUNAME
1870
1871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872for as_dir in $PATH
1873do
1874  IFS=$as_save_IFS
1875  test -z "$as_dir" && as_dir=.
1876    $as_echo "PATH: $as_dir"
1877  done
1878IFS=$as_save_IFS
1879
1880} >&5
1881
1882cat >&5 <<_ACEOF
1883
1884
1885## ----------- ##
1886## Core tests. ##
1887## ----------- ##
1888
1889_ACEOF
1890
1891
1892# Keep a trace of the command line.
1893# Strip out --no-create and --no-recursion so they do not pile up.
1894# Strip out --silent because we don't want to record it for future runs.
1895# Also quote any args containing shell meta-characters.
1896# Make two passes to allow for proper duplicate-argument suppression.
1897ac_configure_args=
1898ac_configure_args0=
1899ac_configure_args1=
1900ac_must_keep_next=false
1901for ac_pass in 1 2
1902do
1903  for ac_arg
1904  do
1905    case $ac_arg in
1906    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1907    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1908    | -silent | --silent | --silen | --sile | --sil)
1909      continue ;;
1910    *\'*)
1911      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1912    esac
1913    case $ac_pass in
1914    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1915    2)
1916      as_fn_append ac_configure_args1 " '$ac_arg'"
1917      if test $ac_must_keep_next = true; then
1918	ac_must_keep_next=false # Got value, back to normal.
1919      else
1920	case $ac_arg in
1921	  *=* | --config-cache | -C | -disable-* | --disable-* \
1922	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1923	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1924	  | -with-* | --with-* | -without-* | --without-* | --x)
1925	    case "$ac_configure_args0 " in
1926	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1927	    esac
1928	    ;;
1929	  -* ) ac_must_keep_next=true ;;
1930	esac
1931      fi
1932      as_fn_append ac_configure_args " '$ac_arg'"
1933      ;;
1934    esac
1935  done
1936done
1937{ ac_configure_args0=; unset ac_configure_args0;}
1938{ ac_configure_args1=; unset ac_configure_args1;}
1939
1940# When interrupted or exit'd, cleanup temporary files, and complete
1941# config.log.  We remove comments because anyway the quotes in there
1942# would cause problems or look ugly.
1943# WARNING: Use '\'' to represent an apostrophe within the trap.
1944# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1945trap 'exit_status=$?
1946  # Save into config.log some information that might help in debugging.
1947  {
1948    echo
1949
1950    $as_echo "## ---------------- ##
1951## Cache variables. ##
1952## ---------------- ##"
1953    echo
1954    # The following way of writing the cache mishandles newlines in values,
1955(
1956  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1957    eval ac_val=\$$ac_var
1958    case $ac_val in #(
1959    *${as_nl}*)
1960      case $ac_var in #(
1961      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1962$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1963      esac
1964      case $ac_var in #(
1965      _ | IFS | as_nl) ;; #(
1966      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1967      *) { eval $ac_var=; unset $ac_var;} ;;
1968      esac ;;
1969    esac
1970  done
1971  (set) 2>&1 |
1972    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1973    *${as_nl}ac_space=\ *)
1974      sed -n \
1975	"s/'\''/'\''\\\\'\'''\''/g;
1976	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1977      ;; #(
1978    *)
1979      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1980      ;;
1981    esac |
1982    sort
1983)
1984    echo
1985
1986    $as_echo "## ----------------- ##
1987## Output variables. ##
1988## ----------------- ##"
1989    echo
1990    for ac_var in $ac_subst_vars
1991    do
1992      eval ac_val=\$$ac_var
1993      case $ac_val in
1994      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1995      esac
1996      $as_echo "$ac_var='\''$ac_val'\''"
1997    done | sort
1998    echo
1999
2000    if test -n "$ac_subst_files"; then
2001      $as_echo "## ------------------- ##
2002## File substitutions. ##
2003## ------------------- ##"
2004      echo
2005      for ac_var in $ac_subst_files
2006      do
2007	eval ac_val=\$$ac_var
2008	case $ac_val in
2009	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010	esac
2011	$as_echo "$ac_var='\''$ac_val'\''"
2012      done | sort
2013      echo
2014    fi
2015
2016    if test -s confdefs.h; then
2017      $as_echo "## ----------- ##
2018## confdefs.h. ##
2019## ----------- ##"
2020      echo
2021      cat confdefs.h
2022      echo
2023    fi
2024    test "$ac_signal" != 0 &&
2025      $as_echo "$as_me: caught signal $ac_signal"
2026    $as_echo "$as_me: exit $exit_status"
2027  } >&5
2028  rm -f core *.core core.conftest.* &&
2029    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2030    exit $exit_status
2031' 0
2032for ac_signal in 1 2 13 15; do
2033  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2034done
2035ac_signal=0
2036
2037# confdefs.h avoids OS command line length limits that DEFS can exceed.
2038rm -f -r conftest* confdefs.h
2039
2040$as_echo "/* confdefs.h */" > confdefs.h
2041
2042# Predefined preprocessor variables.
2043
2044cat >>confdefs.h <<_ACEOF
2045#define PACKAGE_NAME "$PACKAGE_NAME"
2046_ACEOF
2047
2048cat >>confdefs.h <<_ACEOF
2049#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2050_ACEOF
2051
2052cat >>confdefs.h <<_ACEOF
2053#define PACKAGE_VERSION "$PACKAGE_VERSION"
2054_ACEOF
2055
2056cat >>confdefs.h <<_ACEOF
2057#define PACKAGE_STRING "$PACKAGE_STRING"
2058_ACEOF
2059
2060cat >>confdefs.h <<_ACEOF
2061#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2062_ACEOF
2063
2064cat >>confdefs.h <<_ACEOF
2065#define PACKAGE_URL "$PACKAGE_URL"
2066_ACEOF
2067
2068
2069# Let the site file select an alternate cache file if it wants to.
2070# Prefer an explicitly selected file to automatically selected ones.
2071ac_site_file1=NONE
2072ac_site_file2=NONE
2073if test -n "$CONFIG_SITE"; then
2074  # We do not want a PATH search for config.site.
2075  case $CONFIG_SITE in #((
2076    -*)  ac_site_file1=./$CONFIG_SITE;;
2077    */*) ac_site_file1=$CONFIG_SITE;;
2078    *)   ac_site_file1=./$CONFIG_SITE;;
2079  esac
2080elif test "x$prefix" != xNONE; then
2081  ac_site_file1=$prefix/share/config.site
2082  ac_site_file2=$prefix/etc/config.site
2083else
2084  ac_site_file1=$ac_default_prefix/share/config.site
2085  ac_site_file2=$ac_default_prefix/etc/config.site
2086fi
2087for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2088do
2089  test "x$ac_site_file" = xNONE && continue
2090  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2091    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2092$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2093    sed 's/^/| /' "$ac_site_file" >&5
2094    . "$ac_site_file" \
2095      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2097as_fn_error $? "failed to load site script $ac_site_file
2098See \`config.log' for more details" "$LINENO" 5; }
2099  fi
2100done
2101
2102if test -r "$cache_file"; then
2103  # Some versions of bash will fail to source /dev/null (special files
2104  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2105  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2106    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2107$as_echo "$as_me: loading cache $cache_file" >&6;}
2108    case $cache_file in
2109      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2110      *)                      . "./$cache_file";;
2111    esac
2112  fi
2113else
2114  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2115$as_echo "$as_me: creating cache $cache_file" >&6;}
2116  >$cache_file
2117fi
2118
2119# Check that the precious variables saved in the cache have kept the same
2120# value.
2121ac_cache_corrupted=false
2122for ac_var in $ac_precious_vars; do
2123  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2124  eval ac_new_set=\$ac_env_${ac_var}_set
2125  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2126  eval ac_new_val=\$ac_env_${ac_var}_value
2127  case $ac_old_set,$ac_new_set in
2128    set,)
2129      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2130$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2131      ac_cache_corrupted=: ;;
2132    ,set)
2133      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2134$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2135      ac_cache_corrupted=: ;;
2136    ,);;
2137    *)
2138      if test "x$ac_old_val" != "x$ac_new_val"; then
2139	# differences in whitespace do not lead to failure.
2140	ac_old_val_w=`echo x $ac_old_val`
2141	ac_new_val_w=`echo x $ac_new_val`
2142	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2143	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2144$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2145	  ac_cache_corrupted=:
2146	else
2147	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2148$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2149	  eval $ac_var=\$ac_old_val
2150	fi
2151	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2152$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2153	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2154$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2155      fi;;
2156  esac
2157  # Pass precious variables to config.status.
2158  if test "$ac_new_set" = set; then
2159    case $ac_new_val in
2160    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2161    *) ac_arg=$ac_var=$ac_new_val ;;
2162    esac
2163    case " $ac_configure_args " in
2164      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2165      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2166    esac
2167  fi
2168done
2169if $ac_cache_corrupted; then
2170  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2172  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2173$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2174  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2175fi
2176## -------------------- ##
2177## Main body of script. ##
2178## -------------------- ##
2179
2180ac_ext=c
2181ac_cpp='$CPP $CPPFLAGS'
2182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2184ac_compiler_gnu=$ac_cv_c_compiler_gnu
2185
2186
2187
2188ac_config_headers="$ac_config_headers config.h"
2189
2190
2191# Initialize Automake
2192am__api_version='1.13'
2193
2194ac_aux_dir=
2195for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2196  if test -f "$ac_dir/install-sh"; then
2197    ac_aux_dir=$ac_dir
2198    ac_install_sh="$ac_aux_dir/install-sh -c"
2199    break
2200  elif test -f "$ac_dir/install.sh"; then
2201    ac_aux_dir=$ac_dir
2202    ac_install_sh="$ac_aux_dir/install.sh -c"
2203    break
2204  elif test -f "$ac_dir/shtool"; then
2205    ac_aux_dir=$ac_dir
2206    ac_install_sh="$ac_aux_dir/shtool install -c"
2207    break
2208  fi
2209done
2210if test -z "$ac_aux_dir"; then
2211  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2212fi
2213
2214# These three variables are undocumented and unsupported,
2215# and are intended to be withdrawn in a future Autoconf release.
2216# They can cause serious problems if a builder's source tree is in a directory
2217# whose full name contains unusual characters.
2218ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2219ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2220ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2221
2222
2223# Find a good install program.  We prefer a C program (faster),
2224# so one script is as good as another.  But avoid the broken or
2225# incompatible versions:
2226# SysV /etc/install, /usr/sbin/install
2227# SunOS /usr/etc/install
2228# IRIX /sbin/install
2229# AIX /bin/install
2230# AmigaOS /C/install, which installs bootblocks on floppy discs
2231# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2232# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2233# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2234# OS/2's system install, which has a completely different semantic
2235# ./install, which can be erroneously created by make from ./install.sh.
2236# Reject install programs that cannot install multiple files.
2237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2238$as_echo_n "checking for a BSD-compatible install... " >&6; }
2239if test -z "$INSTALL"; then
2240if ${ac_cv_path_install+:} false; then :
2241  $as_echo_n "(cached) " >&6
2242else
2243  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244for as_dir in $PATH
2245do
2246  IFS=$as_save_IFS
2247  test -z "$as_dir" && as_dir=.
2248    # Account for people who put trailing slashes in PATH elements.
2249case $as_dir/ in #((
2250  ./ | .// | /[cC]/* | \
2251  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2252  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2253  /usr/ucb/* ) ;;
2254  *)
2255    # OSF1 and SCO ODT 3.0 have their own names for install.
2256    # Don't use installbsd from OSF since it installs stuff as root
2257    # by default.
2258    for ac_prog in ginstall scoinst install; do
2259      for ac_exec_ext in '' $ac_executable_extensions; do
2260	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2261	  if test $ac_prog = install &&
2262	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2263	    # AIX install.  It has an incompatible calling convention.
2264	    :
2265	  elif test $ac_prog = install &&
2266	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2267	    # program-specific install script used by HP pwplus--don't use.
2268	    :
2269	  else
2270	    rm -rf conftest.one conftest.two conftest.dir
2271	    echo one > conftest.one
2272	    echo two > conftest.two
2273	    mkdir conftest.dir
2274	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2275	      test -s conftest.one && test -s conftest.two &&
2276	      test -s conftest.dir/conftest.one &&
2277	      test -s conftest.dir/conftest.two
2278	    then
2279	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2280	      break 3
2281	    fi
2282	  fi
2283	fi
2284      done
2285    done
2286    ;;
2287esac
2288
2289  done
2290IFS=$as_save_IFS
2291
2292rm -rf conftest.one conftest.two conftest.dir
2293
2294fi
2295  if test "${ac_cv_path_install+set}" = set; then
2296    INSTALL=$ac_cv_path_install
2297  else
2298    # As a last resort, use the slow shell script.  Don't cache a
2299    # value for INSTALL within a source directory, because that will
2300    # break other packages using the cache if that directory is
2301    # removed, or if the value is a relative name.
2302    INSTALL=$ac_install_sh
2303  fi
2304fi
2305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2306$as_echo "$INSTALL" >&6; }
2307
2308# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2309# It thinks the first close brace ends the variable substitution.
2310test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2311
2312test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2313
2314test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2315
2316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2317$as_echo_n "checking whether build environment is sane... " >&6; }
2318# Reject unsafe characters in $srcdir or the absolute working directory
2319# name.  Accept space and tab only in the latter.
2320am_lf='
2321'
2322case `pwd` in
2323  *[\\\"\#\$\&\'\`$am_lf]*)
2324    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2325esac
2326case $srcdir in
2327  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2328    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2329esac
2330
2331# Do 'set' in a subshell so we don't clobber the current shell's
2332# arguments.  Must try -L first in case configure is actually a
2333# symlink; some systems play weird games with the mod time of symlinks
2334# (eg FreeBSD returns the mod time of the symlink's containing
2335# directory).
2336if (
2337   am_has_slept=no
2338   for am_try in 1 2; do
2339     echo "timestamp, slept: $am_has_slept" > conftest.file
2340     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2341     if test "$*" = "X"; then
2342	# -L didn't work.
2343	set X `ls -t "$srcdir/configure" conftest.file`
2344     fi
2345     if test "$*" != "X $srcdir/configure conftest.file" \
2346	&& test "$*" != "X conftest.file $srcdir/configure"; then
2347
2348	# If neither matched, then we have a broken ls.  This can happen
2349	# if, for instance, CONFIG_SHELL is bash and it inherits a
2350	# broken ls alias from the environment.  This has actually
2351	# happened.  Such a system could not be considered "sane".
2352	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2353  alias in your environment" "$LINENO" 5
2354     fi
2355     if test "$2" = conftest.file || test $am_try -eq 2; then
2356       break
2357     fi
2358     # Just in case.
2359     sleep 1
2360     am_has_slept=yes
2361   done
2362   test "$2" = conftest.file
2363   )
2364then
2365   # Ok.
2366   :
2367else
2368   as_fn_error $? "newly created file is older than distributed files!
2369Check your system clock" "$LINENO" 5
2370fi
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2372$as_echo "yes" >&6; }
2373# If we didn't sleep, we still need to ensure time stamps of config.status and
2374# generated files are strictly newer.
2375am_sleep_pid=
2376if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2377  ( sleep 1 ) &
2378  am_sleep_pid=$!
2379fi
2380
2381rm -f conftest.file
2382
2383test "$program_prefix" != NONE &&
2384  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2385# Use a double $ so make ignores it.
2386test "$program_suffix" != NONE &&
2387  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2388# Double any \ or $.
2389# By default was `s,x,x', remove it if useless.
2390ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2391program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2392
2393# expand $ac_aux_dir to an absolute path
2394am_aux_dir=`cd $ac_aux_dir && pwd`
2395
2396if test x"${MISSING+set}" != xset; then
2397  case $am_aux_dir in
2398  *\ * | *\	*)
2399    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2400  *)
2401    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2402  esac
2403fi
2404# Use eval to expand $SHELL
2405if eval "$MISSING --is-lightweight"; then
2406  am_missing_run="$MISSING "
2407else
2408  am_missing_run=
2409  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2410$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2411fi
2412
2413if test x"${install_sh}" != xset; then
2414  case $am_aux_dir in
2415  *\ * | *\	*)
2416    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2417  *)
2418    install_sh="\${SHELL} $am_aux_dir/install-sh"
2419  esac
2420fi
2421
2422# Installed binaries are usually stripped using 'strip' when the user
2423# run "make install-strip".  However 'strip' might not be the right
2424# tool to use in cross-compilation environments, therefore Automake
2425# will honor the 'STRIP' environment variable to overrule this program.
2426if test "$cross_compiling" != no; then
2427  if test -n "$ac_tool_prefix"; then
2428  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2429set dummy ${ac_tool_prefix}strip; ac_word=$2
2430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2431$as_echo_n "checking for $ac_word... " >&6; }
2432if ${ac_cv_prog_STRIP+:} false; then :
2433  $as_echo_n "(cached) " >&6
2434else
2435  if test -n "$STRIP"; then
2436  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2437else
2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439for as_dir in $PATH
2440do
2441  IFS=$as_save_IFS
2442  test -z "$as_dir" && as_dir=.
2443    for ac_exec_ext in '' $ac_executable_extensions; do
2444  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2446    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2447    break 2
2448  fi
2449done
2450  done
2451IFS=$as_save_IFS
2452
2453fi
2454fi
2455STRIP=$ac_cv_prog_STRIP
2456if test -n "$STRIP"; then
2457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2458$as_echo "$STRIP" >&6; }
2459else
2460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2461$as_echo "no" >&6; }
2462fi
2463
2464
2465fi
2466if test -z "$ac_cv_prog_STRIP"; then
2467  ac_ct_STRIP=$STRIP
2468  # Extract the first word of "strip", so it can be a program name with args.
2469set dummy strip; ac_word=$2
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471$as_echo_n "checking for $ac_word... " >&6; }
2472if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2473  $as_echo_n "(cached) " >&6
2474else
2475  if test -n "$ac_ct_STRIP"; then
2476  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2477else
2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479for as_dir in $PATH
2480do
2481  IFS=$as_save_IFS
2482  test -z "$as_dir" && as_dir=.
2483    for ac_exec_ext in '' $ac_executable_extensions; do
2484  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485    ac_cv_prog_ac_ct_STRIP="strip"
2486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487    break 2
2488  fi
2489done
2490  done
2491IFS=$as_save_IFS
2492
2493fi
2494fi
2495ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2496if test -n "$ac_ct_STRIP"; then
2497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2498$as_echo "$ac_ct_STRIP" >&6; }
2499else
2500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501$as_echo "no" >&6; }
2502fi
2503
2504  if test "x$ac_ct_STRIP" = x; then
2505    STRIP=":"
2506  else
2507    case $cross_compiling:$ac_tool_warned in
2508yes:)
2509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2511ac_tool_warned=yes ;;
2512esac
2513    STRIP=$ac_ct_STRIP
2514  fi
2515else
2516  STRIP="$ac_cv_prog_STRIP"
2517fi
2518
2519fi
2520INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2521
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2523$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2524if test -z "$MKDIR_P"; then
2525  if ${ac_cv_path_mkdir+:} false; then :
2526  $as_echo_n "(cached) " >&6
2527else
2528  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2530do
2531  IFS=$as_save_IFS
2532  test -z "$as_dir" && as_dir=.
2533    for ac_prog in mkdir gmkdir; do
2534	 for ac_exec_ext in '' $ac_executable_extensions; do
2535	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2536	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2537	     'mkdir (GNU coreutils) '* | \
2538	     'mkdir (coreutils) '* | \
2539	     'mkdir (fileutils) '4.1*)
2540	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2541	       break 3;;
2542	   esac
2543	 done
2544       done
2545  done
2546IFS=$as_save_IFS
2547
2548fi
2549
2550  test -d ./--version && rmdir ./--version
2551  if test "${ac_cv_path_mkdir+set}" = set; then
2552    MKDIR_P="$ac_cv_path_mkdir -p"
2553  else
2554    # As a last resort, use the slow shell script.  Don't cache a
2555    # value for MKDIR_P within a source directory, because that will
2556    # break other packages using the cache if that directory is
2557    # removed, or if the value is a relative name.
2558    MKDIR_P="$ac_install_sh -d"
2559  fi
2560fi
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2562$as_echo "$MKDIR_P" >&6; }
2563
2564for ac_prog in gawk mawk nawk awk
2565do
2566  # Extract the first word of "$ac_prog", so it can be a program name with args.
2567set dummy $ac_prog; ac_word=$2
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569$as_echo_n "checking for $ac_word... " >&6; }
2570if ${ac_cv_prog_AWK+:} false; then :
2571  $as_echo_n "(cached) " >&6
2572else
2573  if test -n "$AWK"; then
2574  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2575else
2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577for as_dir in $PATH
2578do
2579  IFS=$as_save_IFS
2580  test -z "$as_dir" && as_dir=.
2581    for ac_exec_ext in '' $ac_executable_extensions; do
2582  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583    ac_cv_prog_AWK="$ac_prog"
2584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585    break 2
2586  fi
2587done
2588  done
2589IFS=$as_save_IFS
2590
2591fi
2592fi
2593AWK=$ac_cv_prog_AWK
2594if test -n "$AWK"; then
2595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2596$as_echo "$AWK" >&6; }
2597else
2598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599$as_echo "no" >&6; }
2600fi
2601
2602
2603  test -n "$AWK" && break
2604done
2605
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2607$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2608set x ${MAKE-make}
2609ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2610if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2611  $as_echo_n "(cached) " >&6
2612else
2613  cat >conftest.make <<\_ACEOF
2614SHELL = /bin/sh
2615all:
2616	@echo '@@@%%%=$(MAKE)=@@@%%%'
2617_ACEOF
2618# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2619case `${MAKE-make} -f conftest.make 2>/dev/null` in
2620  *@@@%%%=?*=@@@%%%*)
2621    eval ac_cv_prog_make_${ac_make}_set=yes;;
2622  *)
2623    eval ac_cv_prog_make_${ac_make}_set=no;;
2624esac
2625rm -f conftest.make
2626fi
2627if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2629$as_echo "yes" >&6; }
2630  SET_MAKE=
2631else
2632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633$as_echo "no" >&6; }
2634  SET_MAKE="MAKE=${MAKE-make}"
2635fi
2636
2637rm -rf .tst 2>/dev/null
2638mkdir .tst 2>/dev/null
2639if test -d .tst; then
2640  am__leading_dot=.
2641else
2642  am__leading_dot=_
2643fi
2644rmdir .tst 2>/dev/null
2645
2646# Check whether --enable-silent-rules was given.
2647if test "${enable_silent_rules+set}" = set; then :
2648  enableval=$enable_silent_rules;
2649fi
2650
2651case $enable_silent_rules in # (((
2652  yes) AM_DEFAULT_VERBOSITY=0;;
2653   no) AM_DEFAULT_VERBOSITY=1;;
2654    *) AM_DEFAULT_VERBOSITY=1;;
2655esac
2656am_make=${MAKE-make}
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2658$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2659if ${am_cv_make_support_nested_variables+:} false; then :
2660  $as_echo_n "(cached) " >&6
2661else
2662  if $as_echo 'TRUE=$(BAR$(V))
2663BAR0=false
2664BAR1=true
2665V=1
2666am__doit:
2667	@$(TRUE)
2668.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2669  am_cv_make_support_nested_variables=yes
2670else
2671  am_cv_make_support_nested_variables=no
2672fi
2673fi
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2675$as_echo "$am_cv_make_support_nested_variables" >&6; }
2676if test $am_cv_make_support_nested_variables = yes; then
2677    AM_V='$(V)'
2678  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2679else
2680  AM_V=$AM_DEFAULT_VERBOSITY
2681  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2682fi
2683AM_BACKSLASH='\'
2684
2685if test "`cd $srcdir && pwd`" != "`pwd`"; then
2686  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2687  # is not polluted with repeated "-I."
2688  am__isrc=' -I$(srcdir)'
2689  # test to see if srcdir already configured
2690  if test -f $srcdir/config.status; then
2691    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2692  fi
2693fi
2694
2695# test whether we have cygpath
2696if test -z "$CYGPATH_W"; then
2697  if (cygpath --version) >/dev/null 2>/dev/null; then
2698    CYGPATH_W='cygpath -w'
2699  else
2700    CYGPATH_W=echo
2701  fi
2702fi
2703
2704
2705# Define the identity of the package.
2706 PACKAGE='libXrender'
2707 VERSION='0.9.8'
2708
2709
2710cat >>confdefs.h <<_ACEOF
2711#define PACKAGE "$PACKAGE"
2712_ACEOF
2713
2714
2715cat >>confdefs.h <<_ACEOF
2716#define VERSION "$VERSION"
2717_ACEOF
2718
2719# Some tools Automake needs.
2720
2721ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2722
2723
2724AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2725
2726
2727AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2728
2729
2730AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2731
2732
2733MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2734
2735# For better backward compatibility.  To be removed once Automake 1.9.x
2736# dies out for good.  For more background, see:
2737# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2738# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2739mkdir_p='$(MKDIR_P)'
2740
2741# We need awk for the "check" target.  The system "awk" is bad on
2742# some platforms.
2743# Always define AMTAR for backward compatibility.  Yes, it's still used
2744# in the wild :-(  We should find a proper way to deprecate it ...
2745AMTAR='$${TAR-tar}'
2746
2747
2748# We'll loop over all known methods to create a tar archive until one works.
2749_am_tools='gnutar  pax cpio none'
2750
2751am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2752
2753
2754
2755
2756
2757
2758
2759# Initialize libtool
2760case `pwd` in
2761  *\ * | *\	*)
2762    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2763$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2764esac
2765
2766
2767
2768macro_version='2.4.2'
2769macro_revision='1.3337'
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783ltmain="$ac_aux_dir/ltmain.sh"
2784
2785# Make sure we can run config.sub.
2786$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2787  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2788
2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2790$as_echo_n "checking build system type... " >&6; }
2791if ${ac_cv_build+:} false; then :
2792  $as_echo_n "(cached) " >&6
2793else
2794  ac_build_alias=$build_alias
2795test "x$ac_build_alias" = x &&
2796  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2797test "x$ac_build_alias" = x &&
2798  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2799ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2800  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2801
2802fi
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2804$as_echo "$ac_cv_build" >&6; }
2805case $ac_cv_build in
2806*-*-*) ;;
2807*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2808esac
2809build=$ac_cv_build
2810ac_save_IFS=$IFS; IFS='-'
2811set x $ac_cv_build
2812shift
2813build_cpu=$1
2814build_vendor=$2
2815shift; shift
2816# Remember, the first character of IFS is used to create $*,
2817# except with old shells:
2818build_os=$*
2819IFS=$ac_save_IFS
2820case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2821
2822
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2824$as_echo_n "checking host system type... " >&6; }
2825if ${ac_cv_host+:} false; then :
2826  $as_echo_n "(cached) " >&6
2827else
2828  if test "x$host_alias" = x; then
2829  ac_cv_host=$ac_cv_build
2830else
2831  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2832    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2833fi
2834
2835fi
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2837$as_echo "$ac_cv_host" >&6; }
2838case $ac_cv_host in
2839*-*-*) ;;
2840*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2841esac
2842host=$ac_cv_host
2843ac_save_IFS=$IFS; IFS='-'
2844set x $ac_cv_host
2845shift
2846host_cpu=$1
2847host_vendor=$2
2848shift; shift
2849# Remember, the first character of IFS is used to create $*,
2850# except with old shells:
2851host_os=$*
2852IFS=$ac_save_IFS
2853case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2854
2855
2856# Backslashify metacharacters that are still active within
2857# double-quoted strings.
2858sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2859
2860# Same as above, but do not quote variable references.
2861double_quote_subst='s/\(["`\\]\)/\\\1/g'
2862
2863# Sed substitution to delay expansion of an escaped shell variable in a
2864# double_quote_subst'ed string.
2865delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2866
2867# Sed substitution to delay expansion of an escaped single quote.
2868delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2869
2870# Sed substitution to avoid accidental globbing in evaled expressions
2871no_glob_subst='s/\*/\\\*/g'
2872
2873ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2874ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2875ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2876
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2878$as_echo_n "checking how to print strings... " >&6; }
2879# Test print first, because it will be a builtin if present.
2880if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2881   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2882  ECHO='print -r --'
2883elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2884  ECHO='printf %s\n'
2885else
2886  # Use this function as a fallback that always works.
2887  func_fallback_echo ()
2888  {
2889    eval 'cat <<_LTECHO_EOF
2890$1
2891_LTECHO_EOF'
2892  }
2893  ECHO='func_fallback_echo'
2894fi
2895
2896# func_echo_all arg...
2897# Invoke $ECHO with all args, space-separated.
2898func_echo_all ()
2899{
2900    $ECHO ""
2901}
2902
2903case "$ECHO" in
2904  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2905$as_echo "printf" >&6; } ;;
2906  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2907$as_echo "print -r" >&6; } ;;
2908  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2909$as_echo "cat" >&6; } ;;
2910esac
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925DEPDIR="${am__leading_dot}deps"
2926
2927ac_config_commands="$ac_config_commands depfiles"
2928
2929
2930am_make=${MAKE-make}
2931cat > confinc << 'END'
2932am__doit:
2933	@echo this is the am__doit target
2934.PHONY: am__doit
2935END
2936# If we don't find an include directive, just comment out the code.
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2938$as_echo_n "checking for style of include used by $am_make... " >&6; }
2939am__include="#"
2940am__quote=
2941_am_result=none
2942# First try GNU make style include.
2943echo "include confinc" > confmf
2944# Ignore all kinds of additional output from 'make'.
2945case `$am_make -s -f confmf 2> /dev/null` in #(
2946*the\ am__doit\ target*)
2947  am__include=include
2948  am__quote=
2949  _am_result=GNU
2950  ;;
2951esac
2952# Now try BSD make style include.
2953if test "$am__include" = "#"; then
2954   echo '.include "confinc"' > confmf
2955   case `$am_make -s -f confmf 2> /dev/null` in #(
2956   *the\ am__doit\ target*)
2957     am__include=.include
2958     am__quote="\""
2959     _am_result=BSD
2960     ;;
2961   esac
2962fi
2963
2964
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2966$as_echo "$_am_result" >&6; }
2967rm -f confinc confmf
2968
2969# Check whether --enable-dependency-tracking was given.
2970if test "${enable_dependency_tracking+set}" = set; then :
2971  enableval=$enable_dependency_tracking;
2972fi
2973
2974if test "x$enable_dependency_tracking" != xno; then
2975  am_depcomp="$ac_aux_dir/depcomp"
2976  AMDEPBACKSLASH='\'
2977  am__nodep='_no'
2978fi
2979 if test "x$enable_dependency_tracking" != xno; then
2980  AMDEP_TRUE=
2981  AMDEP_FALSE='#'
2982else
2983  AMDEP_TRUE='#'
2984  AMDEP_FALSE=
2985fi
2986
2987
2988ac_ext=c
2989ac_cpp='$CPP $CPPFLAGS'
2990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2992ac_compiler_gnu=$ac_cv_c_compiler_gnu
2993if test -n "$ac_tool_prefix"; then
2994  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2995set dummy ${ac_tool_prefix}gcc; ac_word=$2
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997$as_echo_n "checking for $ac_word... " >&6; }
2998if ${ac_cv_prog_CC+:} false; then :
2999  $as_echo_n "(cached) " >&6
3000else
3001  if test -n "$CC"; then
3002  ac_cv_prog_CC="$CC" # Let the user override the test.
3003else
3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005for as_dir in $PATH
3006do
3007  IFS=$as_save_IFS
3008  test -z "$as_dir" && as_dir=.
3009    for ac_exec_ext in '' $ac_executable_extensions; do
3010  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013    break 2
3014  fi
3015done
3016  done
3017IFS=$as_save_IFS
3018
3019fi
3020fi
3021CC=$ac_cv_prog_CC
3022if test -n "$CC"; then
3023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3024$as_echo "$CC" >&6; }
3025else
3026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027$as_echo "no" >&6; }
3028fi
3029
3030
3031fi
3032if test -z "$ac_cv_prog_CC"; then
3033  ac_ct_CC=$CC
3034  # Extract the first word of "gcc", so it can be a program name with args.
3035set dummy gcc; ac_word=$2
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037$as_echo_n "checking for $ac_word... " >&6; }
3038if ${ac_cv_prog_ac_ct_CC+:} false; then :
3039  $as_echo_n "(cached) " >&6
3040else
3041  if test -n "$ac_ct_CC"; then
3042  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3043else
3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045for as_dir in $PATH
3046do
3047  IFS=$as_save_IFS
3048  test -z "$as_dir" && as_dir=.
3049    for ac_exec_ext in '' $ac_executable_extensions; do
3050  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051    ac_cv_prog_ac_ct_CC="gcc"
3052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053    break 2
3054  fi
3055done
3056  done
3057IFS=$as_save_IFS
3058
3059fi
3060fi
3061ac_ct_CC=$ac_cv_prog_ac_ct_CC
3062if test -n "$ac_ct_CC"; then
3063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3064$as_echo "$ac_ct_CC" >&6; }
3065else
3066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067$as_echo "no" >&6; }
3068fi
3069
3070  if test "x$ac_ct_CC" = x; then
3071    CC=""
3072  else
3073    case $cross_compiling:$ac_tool_warned in
3074yes:)
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3077ac_tool_warned=yes ;;
3078esac
3079    CC=$ac_ct_CC
3080  fi
3081else
3082  CC="$ac_cv_prog_CC"
3083fi
3084
3085if test -z "$CC"; then
3086          if test -n "$ac_tool_prefix"; then
3087    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3088set dummy ${ac_tool_prefix}cc; ac_word=$2
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090$as_echo_n "checking for $ac_word... " >&6; }
3091if ${ac_cv_prog_CC+:} false; then :
3092  $as_echo_n "(cached) " >&6
3093else
3094  if test -n "$CC"; then
3095  ac_cv_prog_CC="$CC" # Let the user override the test.
3096else
3097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098for as_dir in $PATH
3099do
3100  IFS=$as_save_IFS
3101  test -z "$as_dir" && as_dir=.
3102    for ac_exec_ext in '' $ac_executable_extensions; do
3103  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104    ac_cv_prog_CC="${ac_tool_prefix}cc"
3105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106    break 2
3107  fi
3108done
3109  done
3110IFS=$as_save_IFS
3111
3112fi
3113fi
3114CC=$ac_cv_prog_CC
3115if test -n "$CC"; then
3116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3117$as_echo "$CC" >&6; }
3118else
3119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120$as_echo "no" >&6; }
3121fi
3122
3123
3124  fi
3125fi
3126if test -z "$CC"; then
3127  # Extract the first word of "cc", so it can be a program name with args.
3128set dummy cc; ac_word=$2
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130$as_echo_n "checking for $ac_word... " >&6; }
3131if ${ac_cv_prog_CC+:} false; then :
3132  $as_echo_n "(cached) " >&6
3133else
3134  if test -n "$CC"; then
3135  ac_cv_prog_CC="$CC" # Let the user override the test.
3136else
3137  ac_prog_rejected=no
3138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139for as_dir in $PATH
3140do
3141  IFS=$as_save_IFS
3142  test -z "$as_dir" && as_dir=.
3143    for ac_exec_ext in '' $ac_executable_extensions; do
3144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3146       ac_prog_rejected=yes
3147       continue
3148     fi
3149    ac_cv_prog_CC="cc"
3150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151    break 2
3152  fi
3153done
3154  done
3155IFS=$as_save_IFS
3156
3157if test $ac_prog_rejected = yes; then
3158  # We found a bogon in the path, so make sure we never use it.
3159  set dummy $ac_cv_prog_CC
3160  shift
3161  if test $# != 0; then
3162    # We chose a different compiler from the bogus one.
3163    # However, it has the same basename, so the bogon will be chosen
3164    # first if we set CC to just the basename; use the full file name.
3165    shift
3166    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3167  fi
3168fi
3169fi
3170fi
3171CC=$ac_cv_prog_CC
3172if test -n "$CC"; then
3173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3174$as_echo "$CC" >&6; }
3175else
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177$as_echo "no" >&6; }
3178fi
3179
3180
3181fi
3182if test -z "$CC"; then
3183  if test -n "$ac_tool_prefix"; then
3184  for ac_prog in cl.exe
3185  do
3186    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3187set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189$as_echo_n "checking for $ac_word... " >&6; }
3190if ${ac_cv_prog_CC+:} false; then :
3191  $as_echo_n "(cached) " >&6
3192else
3193  if test -n "$CC"; then
3194  ac_cv_prog_CC="$CC" # Let the user override the test.
3195else
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199  IFS=$as_save_IFS
3200  test -z "$as_dir" && as_dir=.
3201    for ac_exec_ext in '' $ac_executable_extensions; do
3202  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205    break 2
3206  fi
3207done
3208  done
3209IFS=$as_save_IFS
3210
3211fi
3212fi
3213CC=$ac_cv_prog_CC
3214if test -n "$CC"; then
3215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3216$as_echo "$CC" >&6; }
3217else
3218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219$as_echo "no" >&6; }
3220fi
3221
3222
3223    test -n "$CC" && break
3224  done
3225fi
3226if test -z "$CC"; then
3227  ac_ct_CC=$CC
3228  for ac_prog in cl.exe
3229do
3230  # Extract the first word of "$ac_prog", so it can be a program name with args.
3231set dummy $ac_prog; ac_word=$2
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233$as_echo_n "checking for $ac_word... " >&6; }
3234if ${ac_cv_prog_ac_ct_CC+:} false; then :
3235  $as_echo_n "(cached) " >&6
3236else
3237  if test -n "$ac_ct_CC"; then
3238  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3239else
3240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241for as_dir in $PATH
3242do
3243  IFS=$as_save_IFS
3244  test -z "$as_dir" && as_dir=.
3245    for ac_exec_ext in '' $ac_executable_extensions; do
3246  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3247    ac_cv_prog_ac_ct_CC="$ac_prog"
3248    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3249    break 2
3250  fi
3251done
3252  done
3253IFS=$as_save_IFS
3254
3255fi
3256fi
3257ac_ct_CC=$ac_cv_prog_ac_ct_CC
3258if test -n "$ac_ct_CC"; then
3259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3260$as_echo "$ac_ct_CC" >&6; }
3261else
3262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263$as_echo "no" >&6; }
3264fi
3265
3266
3267  test -n "$ac_ct_CC" && break
3268done
3269
3270  if test "x$ac_ct_CC" = x; then
3271    CC=""
3272  else
3273    case $cross_compiling:$ac_tool_warned in
3274yes:)
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3277ac_tool_warned=yes ;;
3278esac
3279    CC=$ac_ct_CC
3280  fi
3281fi
3282
3283fi
3284
3285
3286test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288as_fn_error $? "no acceptable C compiler found in \$PATH
3289See \`config.log' for more details" "$LINENO" 5; }
3290
3291# Provide some information about the compiler.
3292$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3293set X $ac_compile
3294ac_compiler=$2
3295for ac_option in --version -v -V -qversion; do
3296  { { ac_try="$ac_compiler $ac_option >&5"
3297case "(($ac_try" in
3298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299  *) ac_try_echo=$ac_try;;
3300esac
3301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302$as_echo "$ac_try_echo"; } >&5
3303  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3304  ac_status=$?
3305  if test -s conftest.err; then
3306    sed '10a\
3307... rest of stderr output deleted ...
3308         10q' conftest.err >conftest.er1
3309    cat conftest.er1 >&5
3310  fi
3311  rm -f conftest.er1 conftest.err
3312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3313  test $ac_status = 0; }
3314done
3315
3316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317/* end confdefs.h.  */
3318
3319int
3320main ()
3321{
3322
3323  ;
3324  return 0;
3325}
3326_ACEOF
3327ac_clean_files_save=$ac_clean_files
3328ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3329# Try to create an executable without -o first, disregard a.out.
3330# It will help us diagnose broken compilers, and finding out an intuition
3331# of exeext.
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3333$as_echo_n "checking whether the C compiler works... " >&6; }
3334ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3335
3336# The possible output files:
3337ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3338
3339ac_rmfiles=
3340for ac_file in $ac_files
3341do
3342  case $ac_file in
3343    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3344    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3345  esac
3346done
3347rm -f $ac_rmfiles
3348
3349if { { ac_try="$ac_link_default"
3350case "(($ac_try" in
3351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352  *) ac_try_echo=$ac_try;;
3353esac
3354eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3355$as_echo "$ac_try_echo"; } >&5
3356  (eval "$ac_link_default") 2>&5
3357  ac_status=$?
3358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3359  test $ac_status = 0; }; then :
3360  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3361# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3362# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3363# so that the user can short-circuit this test for compilers unknown to
3364# Autoconf.
3365for ac_file in $ac_files ''
3366do
3367  test -f "$ac_file" || continue
3368  case $ac_file in
3369    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3370	;;
3371    [ab].out )
3372	# We found the default executable, but exeext='' is most
3373	# certainly right.
3374	break;;
3375    *.* )
3376	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3377	then :; else
3378	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3379	fi
3380	# We set ac_cv_exeext here because the later test for it is not
3381	# safe: cross compilers may not add the suffix if given an `-o'
3382	# argument, so we may need to know it at that point already.
3383	# Even if this section looks crufty: it has the advantage of
3384	# actually working.
3385	break;;
3386    * )
3387	break;;
3388  esac
3389done
3390test "$ac_cv_exeext" = no && ac_cv_exeext=
3391
3392else
3393  ac_file=''
3394fi
3395if test -z "$ac_file"; then :
3396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397$as_echo "no" >&6; }
3398$as_echo "$as_me: failed program was:" >&5
3399sed 's/^/| /' conftest.$ac_ext >&5
3400
3401{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403as_fn_error 77 "C compiler cannot create executables
3404See \`config.log' for more details" "$LINENO" 5; }
3405else
3406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3407$as_echo "yes" >&6; }
3408fi
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3410$as_echo_n "checking for C compiler default output file name... " >&6; }
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3412$as_echo "$ac_file" >&6; }
3413ac_exeext=$ac_cv_exeext
3414
3415rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3416ac_clean_files=$ac_clean_files_save
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3418$as_echo_n "checking for suffix of executables... " >&6; }
3419if { { ac_try="$ac_link"
3420case "(($ac_try" in
3421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422  *) ac_try_echo=$ac_try;;
3423esac
3424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425$as_echo "$ac_try_echo"; } >&5
3426  (eval "$ac_link") 2>&5
3427  ac_status=$?
3428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429  test $ac_status = 0; }; then :
3430  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3431# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3432# work properly (i.e., refer to `conftest.exe'), while it won't with
3433# `rm'.
3434for ac_file in conftest.exe conftest conftest.*; do
3435  test -f "$ac_file" || continue
3436  case $ac_file in
3437    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3438    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3439	  break;;
3440    * ) break;;
3441  esac
3442done
3443else
3444  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3447See \`config.log' for more details" "$LINENO" 5; }
3448fi
3449rm -f conftest conftest$ac_cv_exeext
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3451$as_echo "$ac_cv_exeext" >&6; }
3452
3453rm -f conftest.$ac_ext
3454EXEEXT=$ac_cv_exeext
3455ac_exeext=$EXEEXT
3456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457/* end confdefs.h.  */
3458#include <stdio.h>
3459int
3460main ()
3461{
3462FILE *f = fopen ("conftest.out", "w");
3463 return ferror (f) || fclose (f) != 0;
3464
3465  ;
3466  return 0;
3467}
3468_ACEOF
3469ac_clean_files="$ac_clean_files conftest.out"
3470# Check that the compiler produces executables we can run.  If not, either
3471# the compiler is broken, or we cross compile.
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3473$as_echo_n "checking whether we are cross compiling... " >&6; }
3474if test "$cross_compiling" != yes; then
3475  { { ac_try="$ac_link"
3476case "(($ac_try" in
3477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478  *) ac_try_echo=$ac_try;;
3479esac
3480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481$as_echo "$ac_try_echo"; } >&5
3482  (eval "$ac_link") 2>&5
3483  ac_status=$?
3484  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485  test $ac_status = 0; }
3486  if { ac_try='./conftest$ac_cv_exeext'
3487  { { case "(($ac_try" in
3488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489  *) ac_try_echo=$ac_try;;
3490esac
3491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492$as_echo "$ac_try_echo"; } >&5
3493  (eval "$ac_try") 2>&5
3494  ac_status=$?
3495  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3496  test $ac_status = 0; }; }; then
3497    cross_compiling=no
3498  else
3499    if test "$cross_compiling" = maybe; then
3500	cross_compiling=yes
3501    else
3502	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3504as_fn_error $? "cannot run C compiled programs.
3505If you meant to cross compile, use \`--host'.
3506See \`config.log' for more details" "$LINENO" 5; }
3507    fi
3508  fi
3509fi
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3511$as_echo "$cross_compiling" >&6; }
3512
3513rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3514ac_clean_files=$ac_clean_files_save
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3516$as_echo_n "checking for suffix of object files... " >&6; }
3517if ${ac_cv_objext+:} false; then :
3518  $as_echo_n "(cached) " >&6
3519else
3520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521/* end confdefs.h.  */
3522
3523int
3524main ()
3525{
3526
3527  ;
3528  return 0;
3529}
3530_ACEOF
3531rm -f conftest.o conftest.obj
3532if { { ac_try="$ac_compile"
3533case "(($ac_try" in
3534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535  *) ac_try_echo=$ac_try;;
3536esac
3537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3538$as_echo "$ac_try_echo"; } >&5
3539  (eval "$ac_compile") 2>&5
3540  ac_status=$?
3541  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3542  test $ac_status = 0; }; then :
3543  for ac_file in conftest.o conftest.obj conftest.*; do
3544  test -f "$ac_file" || continue;
3545  case $ac_file in
3546    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3547    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3548       break;;
3549  esac
3550done
3551else
3552  $as_echo "$as_me: failed program was:" >&5
3553sed 's/^/| /' conftest.$ac_ext >&5
3554
3555{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3557as_fn_error $? "cannot compute suffix of object files: cannot compile
3558See \`config.log' for more details" "$LINENO" 5; }
3559fi
3560rm -f conftest.$ac_cv_objext conftest.$ac_ext
3561fi
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3563$as_echo "$ac_cv_objext" >&6; }
3564OBJEXT=$ac_cv_objext
3565ac_objext=$OBJEXT
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3567$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3568if ${ac_cv_c_compiler_gnu+:} false; then :
3569  $as_echo_n "(cached) " >&6
3570else
3571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572/* end confdefs.h.  */
3573
3574int
3575main ()
3576{
3577#ifndef __GNUC__
3578       choke me
3579#endif
3580
3581  ;
3582  return 0;
3583}
3584_ACEOF
3585if ac_fn_c_try_compile "$LINENO"; then :
3586  ac_compiler_gnu=yes
3587else
3588  ac_compiler_gnu=no
3589fi
3590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591ac_cv_c_compiler_gnu=$ac_compiler_gnu
3592
3593fi
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3595$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3596if test $ac_compiler_gnu = yes; then
3597  GCC=yes
3598else
3599  GCC=
3600fi
3601ac_test_CFLAGS=${CFLAGS+set}
3602ac_save_CFLAGS=$CFLAGS
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3604$as_echo_n "checking whether $CC accepts -g... " >&6; }
3605if ${ac_cv_prog_cc_g+:} false; then :
3606  $as_echo_n "(cached) " >&6
3607else
3608  ac_save_c_werror_flag=$ac_c_werror_flag
3609   ac_c_werror_flag=yes
3610   ac_cv_prog_cc_g=no
3611   CFLAGS="-g"
3612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613/* end confdefs.h.  */
3614
3615int
3616main ()
3617{
3618
3619  ;
3620  return 0;
3621}
3622_ACEOF
3623if ac_fn_c_try_compile "$LINENO"; then :
3624  ac_cv_prog_cc_g=yes
3625else
3626  CFLAGS=""
3627      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628/* end confdefs.h.  */
3629
3630int
3631main ()
3632{
3633
3634  ;
3635  return 0;
3636}
3637_ACEOF
3638if ac_fn_c_try_compile "$LINENO"; then :
3639
3640else
3641  ac_c_werror_flag=$ac_save_c_werror_flag
3642	 CFLAGS="-g"
3643	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644/* end confdefs.h.  */
3645
3646int
3647main ()
3648{
3649
3650  ;
3651  return 0;
3652}
3653_ACEOF
3654if ac_fn_c_try_compile "$LINENO"; then :
3655  ac_cv_prog_cc_g=yes
3656fi
3657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658fi
3659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660fi
3661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3662   ac_c_werror_flag=$ac_save_c_werror_flag
3663fi
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3665$as_echo "$ac_cv_prog_cc_g" >&6; }
3666if test "$ac_test_CFLAGS" = set; then
3667  CFLAGS=$ac_save_CFLAGS
3668elif test $ac_cv_prog_cc_g = yes; then
3669  if test "$GCC" = yes; then
3670    CFLAGS="-g -O2"
3671  else
3672    CFLAGS="-g"
3673  fi
3674else
3675  if test "$GCC" = yes; then
3676    CFLAGS="-O2"
3677  else
3678    CFLAGS=
3679  fi
3680fi
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3682$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3683if ${ac_cv_prog_cc_c89+:} false; then :
3684  $as_echo_n "(cached) " >&6
3685else
3686  ac_cv_prog_cc_c89=no
3687ac_save_CC=$CC
3688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689/* end confdefs.h.  */
3690#include <stdarg.h>
3691#include <stdio.h>
3692#include <sys/types.h>
3693#include <sys/stat.h>
3694/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3695struct buf { int x; };
3696FILE * (*rcsopen) (struct buf *, struct stat *, int);
3697static char *e (p, i)
3698     char **p;
3699     int i;
3700{
3701  return p[i];
3702}
3703static char *f (char * (*g) (char **, int), char **p, ...)
3704{
3705  char *s;
3706  va_list v;
3707  va_start (v,p);
3708  s = g (p, va_arg (v,int));
3709  va_end (v);
3710  return s;
3711}
3712
3713/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3714   function prototypes and stuff, but not '\xHH' hex character constants.
3715   These don't provoke an error unfortunately, instead are silently treated
3716   as 'x'.  The following induces an error, until -std is added to get
3717   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3718   array size at least.  It's necessary to write '\x00'==0 to get something
3719   that's true only with -std.  */
3720int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3721
3722/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3723   inside strings and character constants.  */
3724#define FOO(x) 'x'
3725int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3726
3727int test (int i, double x);
3728struct s1 {int (*f) (int a);};
3729struct s2 {int (*f) (double a);};
3730int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3731int argc;
3732char **argv;
3733int
3734main ()
3735{
3736return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3737  ;
3738  return 0;
3739}
3740_ACEOF
3741for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3742	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3743do
3744  CC="$ac_save_CC $ac_arg"
3745  if ac_fn_c_try_compile "$LINENO"; then :
3746  ac_cv_prog_cc_c89=$ac_arg
3747fi
3748rm -f core conftest.err conftest.$ac_objext
3749  test "x$ac_cv_prog_cc_c89" != "xno" && break
3750done
3751rm -f conftest.$ac_ext
3752CC=$ac_save_CC
3753
3754fi
3755# AC_CACHE_VAL
3756case "x$ac_cv_prog_cc_c89" in
3757  x)
3758    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3759$as_echo "none needed" >&6; } ;;
3760  xno)
3761    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3762$as_echo "unsupported" >&6; } ;;
3763  *)
3764    CC="$CC $ac_cv_prog_cc_c89"
3765    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3766$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3767esac
3768if test "x$ac_cv_prog_cc_c89" != xno; then :
3769
3770fi
3771
3772ac_ext=c
3773ac_cpp='$CPP $CPPFLAGS'
3774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777
3778depcc="$CC"   am_compiler_list=
3779
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3781$as_echo_n "checking dependency style of $depcc... " >&6; }
3782if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3783  $as_echo_n "(cached) " >&6
3784else
3785  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3786  # We make a subdir and do the tests there.  Otherwise we can end up
3787  # making bogus files that we don't know about and never remove.  For
3788  # instance it was reported that on HP-UX the gcc test will end up
3789  # making a dummy file named 'D' -- because '-MD' means "put the output
3790  # in D".
3791  rm -rf conftest.dir
3792  mkdir conftest.dir
3793  # Copy depcomp to subdir because otherwise we won't find it if we're
3794  # using a relative directory.
3795  cp "$am_depcomp" conftest.dir
3796  cd conftest.dir
3797  # We will build objects and dependencies in a subdirectory because
3798  # it helps to detect inapplicable dependency modes.  For instance
3799  # both Tru64's cc and ICC support -MD to output dependencies as a
3800  # side effect of compilation, but ICC will put the dependencies in
3801  # the current directory while Tru64 will put them in the object
3802  # directory.
3803  mkdir sub
3804
3805  am_cv_CC_dependencies_compiler_type=none
3806  if test "$am_compiler_list" = ""; then
3807     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3808  fi
3809  am__universal=false
3810  case " $depcc " in #(
3811     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3812     esac
3813
3814  for depmode in $am_compiler_list; do
3815    # Setup a source with many dependencies, because some compilers
3816    # like to wrap large dependency lists on column 80 (with \), and
3817    # we should not choose a depcomp mode which is confused by this.
3818    #
3819    # We need to recreate these files for each test, as the compiler may
3820    # overwrite some of them when testing with obscure command lines.
3821    # This happens at least with the AIX C compiler.
3822    : > sub/conftest.c
3823    for i in 1 2 3 4 5 6; do
3824      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3825      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3826      # Solaris 10 /bin/sh.
3827      echo '/* dummy */' > sub/conftst$i.h
3828    done
3829    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3830
3831    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3832    # mode.  It turns out that the SunPro C++ compiler does not properly
3833    # handle '-M -o', and we need to detect this.  Also, some Intel
3834    # versions had trouble with output in subdirs.
3835    am__obj=sub/conftest.${OBJEXT-o}
3836    am__minus_obj="-o $am__obj"
3837    case $depmode in
3838    gcc)
3839      # This depmode causes a compiler race in universal mode.
3840      test "$am__universal" = false || continue
3841      ;;
3842    nosideeffect)
3843      # After this tag, mechanisms are not by side-effect, so they'll
3844      # only be used when explicitly requested.
3845      if test "x$enable_dependency_tracking" = xyes; then
3846	continue
3847      else
3848	break
3849      fi
3850      ;;
3851    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3852      # This compiler won't grok '-c -o', but also, the minuso test has
3853      # not run yet.  These depmodes are late enough in the game, and
3854      # so weak that their functioning should not be impacted.
3855      am__obj=conftest.${OBJEXT-o}
3856      am__minus_obj=
3857      ;;
3858    none) break ;;
3859    esac
3860    if depmode=$depmode \
3861       source=sub/conftest.c object=$am__obj \
3862       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3863       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3864         >/dev/null 2>conftest.err &&
3865       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3866       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3867       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3868       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3869      # icc doesn't choke on unknown options, it will just issue warnings
3870      # or remarks (even with -Werror).  So we grep stderr for any message
3871      # that says an option was ignored or not supported.
3872      # When given -MP, icc 7.0 and 7.1 complain thusly:
3873      #   icc: Command line warning: ignoring option '-M'; no argument required
3874      # The diagnosis changed in icc 8.0:
3875      #   icc: Command line remark: option '-MP' not supported
3876      if (grep 'ignoring option' conftest.err ||
3877          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3878        am_cv_CC_dependencies_compiler_type=$depmode
3879        break
3880      fi
3881    fi
3882  done
3883
3884  cd ..
3885  rm -rf conftest.dir
3886else
3887  am_cv_CC_dependencies_compiler_type=none
3888fi
3889
3890fi
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3892$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3893CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3894
3895 if
3896  test "x$enable_dependency_tracking" != xno \
3897  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3898  am__fastdepCC_TRUE=
3899  am__fastdepCC_FALSE='#'
3900else
3901  am__fastdepCC_TRUE='#'
3902  am__fastdepCC_FALSE=
3903fi
3904
3905
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3907$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3908if ${ac_cv_path_SED+:} false; then :
3909  $as_echo_n "(cached) " >&6
3910else
3911            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3912     for ac_i in 1 2 3 4 5 6 7; do
3913       ac_script="$ac_script$as_nl$ac_script"
3914     done
3915     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3916     { ac_script=; unset ac_script;}
3917     if test -z "$SED"; then
3918  ac_path_SED_found=false
3919  # Loop through the user's path and test for each of PROGNAME-LIST
3920  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH
3922do
3923  IFS=$as_save_IFS
3924  test -z "$as_dir" && as_dir=.
3925    for ac_prog in sed gsed; do
3926    for ac_exec_ext in '' $ac_executable_extensions; do
3927      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3928      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3929# Check for GNU ac_path_SED and select it if it is found.
3930  # Check for GNU $ac_path_SED
3931case `"$ac_path_SED" --version 2>&1` in
3932*GNU*)
3933  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3934*)
3935  ac_count=0
3936  $as_echo_n 0123456789 >"conftest.in"
3937  while :
3938  do
3939    cat "conftest.in" "conftest.in" >"conftest.tmp"
3940    mv "conftest.tmp" "conftest.in"
3941    cp "conftest.in" "conftest.nl"
3942    $as_echo '' >> "conftest.nl"
3943    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3944    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3945    as_fn_arith $ac_count + 1 && ac_count=$as_val
3946    if test $ac_count -gt ${ac_path_SED_max-0}; then
3947      # Best one so far, save it but keep looking for a better one
3948      ac_cv_path_SED="$ac_path_SED"
3949      ac_path_SED_max=$ac_count
3950    fi
3951    # 10*(2^10) chars as input seems more than enough
3952    test $ac_count -gt 10 && break
3953  done
3954  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3955esac
3956
3957      $ac_path_SED_found && break 3
3958    done
3959  done
3960  done
3961IFS=$as_save_IFS
3962  if test -z "$ac_cv_path_SED"; then
3963    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3964  fi
3965else
3966  ac_cv_path_SED=$SED
3967fi
3968
3969fi
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3971$as_echo "$ac_cv_path_SED" >&6; }
3972 SED="$ac_cv_path_SED"
3973  rm -f conftest.sed
3974
3975test -z "$SED" && SED=sed
3976Xsed="$SED -e 1s/^X//"
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3989$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3990if ${ac_cv_path_GREP+:} false; then :
3991  $as_echo_n "(cached) " >&6
3992else
3993  if test -z "$GREP"; then
3994  ac_path_GREP_found=false
3995  # Loop through the user's path and test for each of PROGNAME-LIST
3996  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3998do
3999  IFS=$as_save_IFS
4000  test -z "$as_dir" && as_dir=.
4001    for ac_prog in grep ggrep; do
4002    for ac_exec_ext in '' $ac_executable_extensions; do
4003      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4004      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4005# Check for GNU ac_path_GREP and select it if it is found.
4006  # Check for GNU $ac_path_GREP
4007case `"$ac_path_GREP" --version 2>&1` in
4008*GNU*)
4009  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4010*)
4011  ac_count=0
4012  $as_echo_n 0123456789 >"conftest.in"
4013  while :
4014  do
4015    cat "conftest.in" "conftest.in" >"conftest.tmp"
4016    mv "conftest.tmp" "conftest.in"
4017    cp "conftest.in" "conftest.nl"
4018    $as_echo 'GREP' >> "conftest.nl"
4019    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4020    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4021    as_fn_arith $ac_count + 1 && ac_count=$as_val
4022    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4023      # Best one so far, save it but keep looking for a better one
4024      ac_cv_path_GREP="$ac_path_GREP"
4025      ac_path_GREP_max=$ac_count
4026    fi
4027    # 10*(2^10) chars as input seems more than enough
4028    test $ac_count -gt 10 && break
4029  done
4030  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4031esac
4032
4033      $ac_path_GREP_found && break 3
4034    done
4035  done
4036  done
4037IFS=$as_save_IFS
4038  if test -z "$ac_cv_path_GREP"; then
4039    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4040  fi
4041else
4042  ac_cv_path_GREP=$GREP
4043fi
4044
4045fi
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4047$as_echo "$ac_cv_path_GREP" >&6; }
4048 GREP="$ac_cv_path_GREP"
4049
4050
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4052$as_echo_n "checking for egrep... " >&6; }
4053if ${ac_cv_path_EGREP+:} false; then :
4054  $as_echo_n "(cached) " >&6
4055else
4056  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4057   then ac_cv_path_EGREP="$GREP -E"
4058   else
4059     if test -z "$EGREP"; then
4060  ac_path_EGREP_found=false
4061  # Loop through the user's path and test for each of PROGNAME-LIST
4062  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4064do
4065  IFS=$as_save_IFS
4066  test -z "$as_dir" && as_dir=.
4067    for ac_prog in egrep; do
4068    for ac_exec_ext in '' $ac_executable_extensions; do
4069      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4070      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4071# Check for GNU ac_path_EGREP and select it if it is found.
4072  # Check for GNU $ac_path_EGREP
4073case `"$ac_path_EGREP" --version 2>&1` in
4074*GNU*)
4075  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4076*)
4077  ac_count=0
4078  $as_echo_n 0123456789 >"conftest.in"
4079  while :
4080  do
4081    cat "conftest.in" "conftest.in" >"conftest.tmp"
4082    mv "conftest.tmp" "conftest.in"
4083    cp "conftest.in" "conftest.nl"
4084    $as_echo 'EGREP' >> "conftest.nl"
4085    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4086    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4087    as_fn_arith $ac_count + 1 && ac_count=$as_val
4088    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4089      # Best one so far, save it but keep looking for a better one
4090      ac_cv_path_EGREP="$ac_path_EGREP"
4091      ac_path_EGREP_max=$ac_count
4092    fi
4093    # 10*(2^10) chars as input seems more than enough
4094    test $ac_count -gt 10 && break
4095  done
4096  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4097esac
4098
4099      $ac_path_EGREP_found && break 3
4100    done
4101  done
4102  done
4103IFS=$as_save_IFS
4104  if test -z "$ac_cv_path_EGREP"; then
4105    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4106  fi
4107else
4108  ac_cv_path_EGREP=$EGREP
4109fi
4110
4111   fi
4112fi
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4114$as_echo "$ac_cv_path_EGREP" >&6; }
4115 EGREP="$ac_cv_path_EGREP"
4116
4117
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4119$as_echo_n "checking for fgrep... " >&6; }
4120if ${ac_cv_path_FGREP+:} false; then :
4121  $as_echo_n "(cached) " >&6
4122else
4123  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4124   then ac_cv_path_FGREP="$GREP -F"
4125   else
4126     if test -z "$FGREP"; then
4127  ac_path_FGREP_found=false
4128  # Loop through the user's path and test for each of PROGNAME-LIST
4129  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4131do
4132  IFS=$as_save_IFS
4133  test -z "$as_dir" && as_dir=.
4134    for ac_prog in fgrep; do
4135    for ac_exec_ext in '' $ac_executable_extensions; do
4136      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4137      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4138# Check for GNU ac_path_FGREP and select it if it is found.
4139  # Check for GNU $ac_path_FGREP
4140case `"$ac_path_FGREP" --version 2>&1` in
4141*GNU*)
4142  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4143*)
4144  ac_count=0
4145  $as_echo_n 0123456789 >"conftest.in"
4146  while :
4147  do
4148    cat "conftest.in" "conftest.in" >"conftest.tmp"
4149    mv "conftest.tmp" "conftest.in"
4150    cp "conftest.in" "conftest.nl"
4151    $as_echo 'FGREP' >> "conftest.nl"
4152    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4153    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4154    as_fn_arith $ac_count + 1 && ac_count=$as_val
4155    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4156      # Best one so far, save it but keep looking for a better one
4157      ac_cv_path_FGREP="$ac_path_FGREP"
4158      ac_path_FGREP_max=$ac_count
4159    fi
4160    # 10*(2^10) chars as input seems more than enough
4161    test $ac_count -gt 10 && break
4162  done
4163  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4164esac
4165
4166      $ac_path_FGREP_found && break 3
4167    done
4168  done
4169  done
4170IFS=$as_save_IFS
4171  if test -z "$ac_cv_path_FGREP"; then
4172    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4173  fi
4174else
4175  ac_cv_path_FGREP=$FGREP
4176fi
4177
4178   fi
4179fi
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4181$as_echo "$ac_cv_path_FGREP" >&6; }
4182 FGREP="$ac_cv_path_FGREP"
4183
4184
4185test -z "$GREP" && GREP=grep
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205# Check whether --with-gnu-ld was given.
4206if test "${with_gnu_ld+set}" = set; then :
4207  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4208else
4209  with_gnu_ld=no
4210fi
4211
4212ac_prog=ld
4213if test "$GCC" = yes; then
4214  # Check if gcc -print-prog-name=ld gives a path.
4215  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4216$as_echo_n "checking for ld used by $CC... " >&6; }
4217  case $host in
4218  *-*-mingw*)
4219    # gcc leaves a trailing carriage return which upsets mingw
4220    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4221  *)
4222    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4223  esac
4224  case $ac_prog in
4225    # Accept absolute paths.
4226    [\\/]* | ?:[\\/]*)
4227      re_direlt='/[^/][^/]*/\.\./'
4228      # Canonicalize the pathname of ld
4229      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4230      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4231	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4232      done
4233      test -z "$LD" && LD="$ac_prog"
4234      ;;
4235  "")
4236    # If it fails, then pretend we aren't using GCC.
4237    ac_prog=ld
4238    ;;
4239  *)
4240    # If it is relative, then search for the first ld in PATH.
4241    with_gnu_ld=unknown
4242    ;;
4243  esac
4244elif test "$with_gnu_ld" = yes; then
4245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4246$as_echo_n "checking for GNU ld... " >&6; }
4247else
4248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4249$as_echo_n "checking for non-GNU ld... " >&6; }
4250fi
4251if ${lt_cv_path_LD+:} false; then :
4252  $as_echo_n "(cached) " >&6
4253else
4254  if test -z "$LD"; then
4255  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4256  for ac_dir in $PATH; do
4257    IFS="$lt_save_ifs"
4258    test -z "$ac_dir" && ac_dir=.
4259    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4260      lt_cv_path_LD="$ac_dir/$ac_prog"
4261      # Check to see if the program is GNU ld.  I'd rather use --version,
4262      # but apparently some variants of GNU ld only accept -v.
4263      # Break only if it was the GNU/non-GNU ld that we prefer.
4264      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4265      *GNU* | *'with BFD'*)
4266	test "$with_gnu_ld" != no && break
4267	;;
4268      *)
4269	test "$with_gnu_ld" != yes && break
4270	;;
4271      esac
4272    fi
4273  done
4274  IFS="$lt_save_ifs"
4275else
4276  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4277fi
4278fi
4279
4280LD="$lt_cv_path_LD"
4281if test -n "$LD"; then
4282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4283$as_echo "$LD" >&6; }
4284else
4285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286$as_echo "no" >&6; }
4287fi
4288test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4290$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4291if ${lt_cv_prog_gnu_ld+:} false; then :
4292  $as_echo_n "(cached) " >&6
4293else
4294  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4295case `$LD -v 2>&1 </dev/null` in
4296*GNU* | *'with BFD'*)
4297  lt_cv_prog_gnu_ld=yes
4298  ;;
4299*)
4300  lt_cv_prog_gnu_ld=no
4301  ;;
4302esac
4303fi
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4305$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4306with_gnu_ld=$lt_cv_prog_gnu_ld
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4317$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4318if ${lt_cv_path_NM+:} false; then :
4319  $as_echo_n "(cached) " >&6
4320else
4321  if test -n "$NM"; then
4322  # Let the user override the test.
4323  lt_cv_path_NM="$NM"
4324else
4325  lt_nm_to_check="${ac_tool_prefix}nm"
4326  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4327    lt_nm_to_check="$lt_nm_to_check nm"
4328  fi
4329  for lt_tmp_nm in $lt_nm_to_check; do
4330    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4331    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4332      IFS="$lt_save_ifs"
4333      test -z "$ac_dir" && ac_dir=.
4334      tmp_nm="$ac_dir/$lt_tmp_nm"
4335      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4336	# Check to see if the nm accepts a BSD-compat flag.
4337	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4338	#   nm: unknown option "B" ignored
4339	# Tru64's nm complains that /dev/null is an invalid object file
4340	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4341	*/dev/null* | *'Invalid file or object type'*)
4342	  lt_cv_path_NM="$tmp_nm -B"
4343	  break
4344	  ;;
4345	*)
4346	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4347	  */dev/null*)
4348	    lt_cv_path_NM="$tmp_nm -p"
4349	    break
4350	    ;;
4351	  *)
4352	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4353	    continue # so that we can try to find one that supports BSD flags
4354	    ;;
4355	  esac
4356	  ;;
4357	esac
4358      fi
4359    done
4360    IFS="$lt_save_ifs"
4361  done
4362  : ${lt_cv_path_NM=no}
4363fi
4364fi
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4366$as_echo "$lt_cv_path_NM" >&6; }
4367if test "$lt_cv_path_NM" != "no"; then
4368  NM="$lt_cv_path_NM"
4369else
4370  # Didn't find any BSD compatible name lister, look for dumpbin.
4371  if test -n "$DUMPBIN"; then :
4372    # Let the user override the test.
4373  else
4374    if test -n "$ac_tool_prefix"; then
4375  for ac_prog in dumpbin "link -dump"
4376  do
4377    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4378set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380$as_echo_n "checking for $ac_word... " >&6; }
4381if ${ac_cv_prog_DUMPBIN+:} false; then :
4382  $as_echo_n "(cached) " >&6
4383else
4384  if test -n "$DUMPBIN"; then
4385  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4386else
4387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388for as_dir in $PATH
4389do
4390  IFS=$as_save_IFS
4391  test -z "$as_dir" && as_dir=.
4392    for ac_exec_ext in '' $ac_executable_extensions; do
4393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396    break 2
4397  fi
4398done
4399  done
4400IFS=$as_save_IFS
4401
4402fi
4403fi
4404DUMPBIN=$ac_cv_prog_DUMPBIN
4405if test -n "$DUMPBIN"; then
4406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4407$as_echo "$DUMPBIN" >&6; }
4408else
4409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410$as_echo "no" >&6; }
4411fi
4412
4413
4414    test -n "$DUMPBIN" && break
4415  done
4416fi
4417if test -z "$DUMPBIN"; then
4418  ac_ct_DUMPBIN=$DUMPBIN
4419  for ac_prog in dumpbin "link -dump"
4420do
4421  # Extract the first word of "$ac_prog", so it can be a program name with args.
4422set dummy $ac_prog; ac_word=$2
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424$as_echo_n "checking for $ac_word... " >&6; }
4425if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4426  $as_echo_n "(cached) " >&6
4427else
4428  if test -n "$ac_ct_DUMPBIN"; then
4429  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4430else
4431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH
4433do
4434  IFS=$as_save_IFS
4435  test -z "$as_dir" && as_dir=.
4436    for ac_exec_ext in '' $ac_executable_extensions; do
4437  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4440    break 2
4441  fi
4442done
4443  done
4444IFS=$as_save_IFS
4445
4446fi
4447fi
4448ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4449if test -n "$ac_ct_DUMPBIN"; then
4450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4451$as_echo "$ac_ct_DUMPBIN" >&6; }
4452else
4453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454$as_echo "no" >&6; }
4455fi
4456
4457
4458  test -n "$ac_ct_DUMPBIN" && break
4459done
4460
4461  if test "x$ac_ct_DUMPBIN" = x; then
4462    DUMPBIN=":"
4463  else
4464    case $cross_compiling:$ac_tool_warned in
4465yes:)
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4468ac_tool_warned=yes ;;
4469esac
4470    DUMPBIN=$ac_ct_DUMPBIN
4471  fi
4472fi
4473
4474    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4475    *COFF*)
4476      DUMPBIN="$DUMPBIN -symbols"
4477      ;;
4478    *)
4479      DUMPBIN=:
4480      ;;
4481    esac
4482  fi
4483
4484  if test "$DUMPBIN" != ":"; then
4485    NM="$DUMPBIN"
4486  fi
4487fi
4488test -z "$NM" && NM=nm
4489
4490
4491
4492
4493
4494
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4496$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4497if ${lt_cv_nm_interface+:} false; then :
4498  $as_echo_n "(cached) " >&6
4499else
4500  lt_cv_nm_interface="BSD nm"
4501  echo "int some_variable = 0;" > conftest.$ac_ext
4502  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4503  (eval "$ac_compile" 2>conftest.err)
4504  cat conftest.err >&5
4505  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4506  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4507  cat conftest.err >&5
4508  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4509  cat conftest.out >&5
4510  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4511    lt_cv_nm_interface="MS dumpbin"
4512  fi
4513  rm -f conftest*
4514fi
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4516$as_echo "$lt_cv_nm_interface" >&6; }
4517
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4519$as_echo_n "checking whether ln -s works... " >&6; }
4520LN_S=$as_ln_s
4521if test "$LN_S" = "ln -s"; then
4522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4523$as_echo "yes" >&6; }
4524else
4525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4526$as_echo "no, using $LN_S" >&6; }
4527fi
4528
4529# find the maximum length of command line arguments
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4531$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4532if ${lt_cv_sys_max_cmd_len+:} false; then :
4533  $as_echo_n "(cached) " >&6
4534else
4535    i=0
4536  teststring="ABCD"
4537
4538  case $build_os in
4539  msdosdjgpp*)
4540    # On DJGPP, this test can blow up pretty badly due to problems in libc
4541    # (any single argument exceeding 2000 bytes causes a buffer overrun
4542    # during glob expansion).  Even if it were fixed, the result of this
4543    # check would be larger than it should be.
4544    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4545    ;;
4546
4547  gnu*)
4548    # Under GNU Hurd, this test is not required because there is
4549    # no limit to the length of command line arguments.
4550    # Libtool will interpret -1 as no limit whatsoever
4551    lt_cv_sys_max_cmd_len=-1;
4552    ;;
4553
4554  cygwin* | mingw* | cegcc*)
4555    # On Win9x/ME, this test blows up -- it succeeds, but takes
4556    # about 5 minutes as the teststring grows exponentially.
4557    # Worse, since 9x/ME are not pre-emptively multitasking,
4558    # you end up with a "frozen" computer, even though with patience
4559    # the test eventually succeeds (with a max line length of 256k).
4560    # Instead, let's just punt: use the minimum linelength reported by
4561    # all of the supported platforms: 8192 (on NT/2K/XP).
4562    lt_cv_sys_max_cmd_len=8192;
4563    ;;
4564
4565  mint*)
4566    # On MiNT this can take a long time and run out of memory.
4567    lt_cv_sys_max_cmd_len=8192;
4568    ;;
4569
4570  amigaos*)
4571    # On AmigaOS with pdksh, this test takes hours, literally.
4572    # So we just punt and use a minimum line length of 8192.
4573    lt_cv_sys_max_cmd_len=8192;
4574    ;;
4575
4576  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4577    # This has been around since 386BSD, at least.  Likely further.
4578    if test -x /sbin/sysctl; then
4579      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4580    elif test -x /usr/sbin/sysctl; then
4581      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4582    else
4583      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4584    fi
4585    # And add a safety zone
4586    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4587    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4588    ;;
4589
4590  interix*)
4591    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4592    lt_cv_sys_max_cmd_len=196608
4593    ;;
4594
4595  os2*)
4596    # The test takes a long time on OS/2.
4597    lt_cv_sys_max_cmd_len=8192
4598    ;;
4599
4600  osf*)
4601    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4602    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4603    # nice to cause kernel panics so lets avoid the loop below.
4604    # First set a reasonable default.
4605    lt_cv_sys_max_cmd_len=16384
4606    #
4607    if test -x /sbin/sysconfig; then
4608      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4609        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4610      esac
4611    fi
4612    ;;
4613  sco3.2v5*)
4614    lt_cv_sys_max_cmd_len=102400
4615    ;;
4616  sysv5* | sco5v6* | sysv4.2uw2*)
4617    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4618    if test -n "$kargmax"; then
4619      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4620    else
4621      lt_cv_sys_max_cmd_len=32768
4622    fi
4623    ;;
4624  *)
4625    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4626    if test -n "$lt_cv_sys_max_cmd_len"; then
4627      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4628      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4629    else
4630      # Make teststring a little bigger before we do anything with it.
4631      # a 1K string should be a reasonable start.
4632      for i in 1 2 3 4 5 6 7 8 ; do
4633        teststring=$teststring$teststring
4634      done
4635      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4636      # If test is not a shell built-in, we'll probably end up computing a
4637      # maximum length that is only half of the actual maximum length, but
4638      # we can't tell.
4639      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4640	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4641	      test $i != 17 # 1/2 MB should be enough
4642      do
4643        i=`expr $i + 1`
4644        teststring=$teststring$teststring
4645      done
4646      # Only check the string length outside the loop.
4647      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4648      teststring=
4649      # Add a significant safety factor because C++ compilers can tack on
4650      # massive amounts of additional arguments before passing them to the
4651      # linker.  It appears as though 1/2 is a usable value.
4652      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4653    fi
4654    ;;
4655  esac
4656
4657fi
4658
4659if test -n $lt_cv_sys_max_cmd_len ; then
4660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4661$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4662else
4663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4664$as_echo "none" >&6; }
4665fi
4666max_cmd_len=$lt_cv_sys_max_cmd_len
4667
4668
4669
4670
4671
4672
4673: ${CP="cp -f"}
4674: ${MV="mv -f"}
4675: ${RM="rm -f"}
4676
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4678$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4679# Try some XSI features
4680xsi_shell=no
4681( _lt_dummy="a/b/c"
4682  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4683      = c,a/b,b/c, \
4684    && eval 'test $(( 1 + 1 )) -eq 2 \
4685    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4686  && xsi_shell=yes
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4688$as_echo "$xsi_shell" >&6; }
4689
4690
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4692$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4693lt_shell_append=no
4694( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4695    >/dev/null 2>&1 \
4696  && lt_shell_append=yes
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4698$as_echo "$lt_shell_append" >&6; }
4699
4700
4701if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4702  lt_unset=unset
4703else
4704  lt_unset=false
4705fi
4706
4707
4708
4709
4710
4711# test EBCDIC or ASCII
4712case `echo X|tr X '\101'` in
4713 A) # ASCII based system
4714    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4715  lt_SP2NL='tr \040 \012'
4716  lt_NL2SP='tr \015\012 \040\040'
4717  ;;
4718 *) # EBCDIC based system
4719  lt_SP2NL='tr \100 \n'
4720  lt_NL2SP='tr \r\n \100\100'
4721  ;;
4722esac
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4733$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4734if ${lt_cv_to_host_file_cmd+:} false; then :
4735  $as_echo_n "(cached) " >&6
4736else
4737  case $host in
4738  *-*-mingw* )
4739    case $build in
4740      *-*-mingw* ) # actually msys
4741        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4742        ;;
4743      *-*-cygwin* )
4744        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4745        ;;
4746      * ) # otherwise, assume *nix
4747        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4748        ;;
4749    esac
4750    ;;
4751  *-*-cygwin* )
4752    case $build in
4753      *-*-mingw* ) # actually msys
4754        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4755        ;;
4756      *-*-cygwin* )
4757        lt_cv_to_host_file_cmd=func_convert_file_noop
4758        ;;
4759      * ) # otherwise, assume *nix
4760        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4761        ;;
4762    esac
4763    ;;
4764  * ) # unhandled hosts (and "normal" native builds)
4765    lt_cv_to_host_file_cmd=func_convert_file_noop
4766    ;;
4767esac
4768
4769fi
4770
4771to_host_file_cmd=$lt_cv_to_host_file_cmd
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4773$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4774
4775
4776
4777
4778
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4780$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4781if ${lt_cv_to_tool_file_cmd+:} false; then :
4782  $as_echo_n "(cached) " >&6
4783else
4784  #assume ordinary cross tools, or native build.
4785lt_cv_to_tool_file_cmd=func_convert_file_noop
4786case $host in
4787  *-*-mingw* )
4788    case $build in
4789      *-*-mingw* ) # actually msys
4790        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4791        ;;
4792    esac
4793    ;;
4794esac
4795
4796fi
4797
4798to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4800$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4801
4802
4803
4804
4805
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4807$as_echo_n "checking for $LD option to reload object files... " >&6; }
4808if ${lt_cv_ld_reload_flag+:} false; then :
4809  $as_echo_n "(cached) " >&6
4810else
4811  lt_cv_ld_reload_flag='-r'
4812fi
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4814$as_echo "$lt_cv_ld_reload_flag" >&6; }
4815reload_flag=$lt_cv_ld_reload_flag
4816case $reload_flag in
4817"" | " "*) ;;
4818*) reload_flag=" $reload_flag" ;;
4819esac
4820reload_cmds='$LD$reload_flag -o $output$reload_objs'
4821case $host_os in
4822  cygwin* | mingw* | pw32* | cegcc*)
4823    if test "$GCC" != yes; then
4824      reload_cmds=false
4825    fi
4826    ;;
4827  darwin*)
4828    if test "$GCC" = yes; then
4829      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4830    else
4831      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4832    fi
4833    ;;
4834esac
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844if test -n "$ac_tool_prefix"; then
4845  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4846set dummy ${ac_tool_prefix}objdump; ac_word=$2
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848$as_echo_n "checking for $ac_word... " >&6; }
4849if ${ac_cv_prog_OBJDUMP+:} false; then :
4850  $as_echo_n "(cached) " >&6
4851else
4852  if test -n "$OBJDUMP"; then
4853  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4854else
4855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856for as_dir in $PATH
4857do
4858  IFS=$as_save_IFS
4859  test -z "$as_dir" && as_dir=.
4860    for ac_exec_ext in '' $ac_executable_extensions; do
4861  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864    break 2
4865  fi
4866done
4867  done
4868IFS=$as_save_IFS
4869
4870fi
4871fi
4872OBJDUMP=$ac_cv_prog_OBJDUMP
4873if test -n "$OBJDUMP"; then
4874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4875$as_echo "$OBJDUMP" >&6; }
4876else
4877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878$as_echo "no" >&6; }
4879fi
4880
4881
4882fi
4883if test -z "$ac_cv_prog_OBJDUMP"; then
4884  ac_ct_OBJDUMP=$OBJDUMP
4885  # Extract the first word of "objdump", so it can be a program name with args.
4886set dummy objdump; ac_word=$2
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888$as_echo_n "checking for $ac_word... " >&6; }
4889if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4890  $as_echo_n "(cached) " >&6
4891else
4892  if test -n "$ac_ct_OBJDUMP"; then
4893  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4894else
4895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896for as_dir in $PATH
4897do
4898  IFS=$as_save_IFS
4899  test -z "$as_dir" && as_dir=.
4900    for ac_exec_ext in '' $ac_executable_extensions; do
4901  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904    break 2
4905  fi
4906done
4907  done
4908IFS=$as_save_IFS
4909
4910fi
4911fi
4912ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4913if test -n "$ac_ct_OBJDUMP"; then
4914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4915$as_echo "$ac_ct_OBJDUMP" >&6; }
4916else
4917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918$as_echo "no" >&6; }
4919fi
4920
4921  if test "x$ac_ct_OBJDUMP" = x; then
4922    OBJDUMP="false"
4923  else
4924    case $cross_compiling:$ac_tool_warned in
4925yes:)
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4928ac_tool_warned=yes ;;
4929esac
4930    OBJDUMP=$ac_ct_OBJDUMP
4931  fi
4932else
4933  OBJDUMP="$ac_cv_prog_OBJDUMP"
4934fi
4935
4936test -z "$OBJDUMP" && OBJDUMP=objdump
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4947$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4948if ${lt_cv_deplibs_check_method+:} false; then :
4949  $as_echo_n "(cached) " >&6
4950else
4951  lt_cv_file_magic_cmd='$MAGIC_CMD'
4952lt_cv_file_magic_test_file=
4953lt_cv_deplibs_check_method='unknown'
4954# Need to set the preceding variable on all platforms that support
4955# interlibrary dependencies.
4956# 'none' -- dependencies not supported.
4957# `unknown' -- same as none, but documents that we really don't know.
4958# 'pass_all' -- all dependencies passed with no checks.
4959# 'test_compile' -- check by making test program.
4960# 'file_magic [[regex]]' -- check by looking for files in library path
4961# which responds to the $file_magic_cmd with a given extended regex.
4962# If you have `file' or equivalent on your system and you're not sure
4963# whether `pass_all' will *always* work, you probably want this one.
4964
4965case $host_os in
4966aix[4-9]*)
4967  lt_cv_deplibs_check_method=pass_all
4968  ;;
4969
4970beos*)
4971  lt_cv_deplibs_check_method=pass_all
4972  ;;
4973
4974bsdi[45]*)
4975  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4976  lt_cv_file_magic_cmd='/usr/bin/file -L'
4977  lt_cv_file_magic_test_file=/shlib/libc.so
4978  ;;
4979
4980cygwin*)
4981  # func_win32_libid is a shell function defined in ltmain.sh
4982  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4983  lt_cv_file_magic_cmd='func_win32_libid'
4984  ;;
4985
4986mingw* | pw32*)
4987  # Base MSYS/MinGW do not provide the 'file' command needed by
4988  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4989  # unless we find 'file', for example because we are cross-compiling.
4990  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4991  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4992    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4993    lt_cv_file_magic_cmd='func_win32_libid'
4994  else
4995    # Keep this pattern in sync with the one in func_win32_libid.
4996    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4997    lt_cv_file_magic_cmd='$OBJDUMP -f'
4998  fi
4999  ;;
5000
5001cegcc*)
5002  # use the weaker test based on 'objdump'. See mingw*.
5003  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5004  lt_cv_file_magic_cmd='$OBJDUMP -f'
5005  ;;
5006
5007darwin* | rhapsody*)
5008  lt_cv_deplibs_check_method=pass_all
5009  ;;
5010
5011freebsd* | dragonfly*)
5012  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5013    case $host_cpu in
5014    i*86 )
5015      # Not sure whether the presence of OpenBSD here was a mistake.
5016      # Let's accept both of them until this is cleared up.
5017      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5018      lt_cv_file_magic_cmd=/usr/bin/file
5019      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5020      ;;
5021    esac
5022  else
5023    lt_cv_deplibs_check_method=pass_all
5024  fi
5025  ;;
5026
5027gnu*)
5028  lt_cv_deplibs_check_method=pass_all
5029  ;;
5030
5031haiku*)
5032  lt_cv_deplibs_check_method=pass_all
5033  ;;
5034
5035hpux10.20* | hpux11*)
5036  lt_cv_file_magic_cmd=/usr/bin/file
5037  case $host_cpu in
5038  ia64*)
5039    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5040    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5041    ;;
5042  hppa*64*)
5043    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]'
5044    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5045    ;;
5046  *)
5047    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5048    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5049    ;;
5050  esac
5051  ;;
5052
5053interix[3-9]*)
5054  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5055  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5056  ;;
5057
5058irix5* | irix6* | nonstopux*)
5059  case $LD in
5060  *-32|*"-32 ") libmagic=32-bit;;
5061  *-n32|*"-n32 ") libmagic=N32;;
5062  *-64|*"-64 ") libmagic=64-bit;;
5063  *) libmagic=never-match;;
5064  esac
5065  lt_cv_deplibs_check_method=pass_all
5066  ;;
5067
5068# This must be glibc/ELF.
5069linux* | k*bsd*-gnu | kopensolaris*-gnu)
5070  lt_cv_deplibs_check_method=pass_all
5071  ;;
5072
5073netbsd*)
5074  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5075    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5076  else
5077    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5078  fi
5079  ;;
5080
5081newos6*)
5082  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5083  lt_cv_file_magic_cmd=/usr/bin/file
5084  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5085  ;;
5086
5087*nto* | *qnx*)
5088  lt_cv_deplibs_check_method=pass_all
5089  ;;
5090
5091openbsd*)
5092  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5093    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5094  else
5095    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5096  fi
5097  ;;
5098
5099osf3* | osf4* | osf5*)
5100  lt_cv_deplibs_check_method=pass_all
5101  ;;
5102
5103rdos*)
5104  lt_cv_deplibs_check_method=pass_all
5105  ;;
5106
5107solaris*)
5108  lt_cv_deplibs_check_method=pass_all
5109  ;;
5110
5111sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5112  lt_cv_deplibs_check_method=pass_all
5113  ;;
5114
5115sysv4 | sysv4.3*)
5116  case $host_vendor in
5117  motorola)
5118    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]'
5119    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5120    ;;
5121  ncr)
5122    lt_cv_deplibs_check_method=pass_all
5123    ;;
5124  sequent)
5125    lt_cv_file_magic_cmd='/bin/file'
5126    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5127    ;;
5128  sni)
5129    lt_cv_file_magic_cmd='/bin/file'
5130    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5131    lt_cv_file_magic_test_file=/lib/libc.so
5132    ;;
5133  siemens)
5134    lt_cv_deplibs_check_method=pass_all
5135    ;;
5136  pc)
5137    lt_cv_deplibs_check_method=pass_all
5138    ;;
5139  esac
5140  ;;
5141
5142tpf*)
5143  lt_cv_deplibs_check_method=pass_all
5144  ;;
5145esac
5146
5147fi
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5149$as_echo "$lt_cv_deplibs_check_method" >&6; }
5150
5151file_magic_glob=
5152want_nocaseglob=no
5153if test "$build" = "$host"; then
5154  case $host_os in
5155  mingw* | pw32*)
5156    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5157      want_nocaseglob=yes
5158    else
5159      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5160    fi
5161    ;;
5162  esac
5163fi
5164
5165file_magic_cmd=$lt_cv_file_magic_cmd
5166deplibs_check_method=$lt_cv_deplibs_check_method
5167test -z "$deplibs_check_method" && deplibs_check_method=unknown
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190if test -n "$ac_tool_prefix"; then
5191  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5192set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194$as_echo_n "checking for $ac_word... " >&6; }
5195if ${ac_cv_prog_DLLTOOL+:} false; then :
5196  $as_echo_n "(cached) " >&6
5197else
5198  if test -n "$DLLTOOL"; then
5199  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5200else
5201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202for as_dir in $PATH
5203do
5204  IFS=$as_save_IFS
5205  test -z "$as_dir" && as_dir=.
5206    for ac_exec_ext in '' $ac_executable_extensions; do
5207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5208    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210    break 2
5211  fi
5212done
5213  done
5214IFS=$as_save_IFS
5215
5216fi
5217fi
5218DLLTOOL=$ac_cv_prog_DLLTOOL
5219if test -n "$DLLTOOL"; then
5220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5221$as_echo "$DLLTOOL" >&6; }
5222else
5223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224$as_echo "no" >&6; }
5225fi
5226
5227
5228fi
5229if test -z "$ac_cv_prog_DLLTOOL"; then
5230  ac_ct_DLLTOOL=$DLLTOOL
5231  # Extract the first word of "dlltool", so it can be a program name with args.
5232set dummy dlltool; ac_word=$2
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234$as_echo_n "checking for $ac_word... " >&6; }
5235if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5236  $as_echo_n "(cached) " >&6
5237else
5238  if test -n "$ac_ct_DLLTOOL"; then
5239  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5240else
5241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH
5243do
5244  IFS=$as_save_IFS
5245  test -z "$as_dir" && as_dir=.
5246    for ac_exec_ext in '' $ac_executable_extensions; do
5247  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5248    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250    break 2
5251  fi
5252done
5253  done
5254IFS=$as_save_IFS
5255
5256fi
5257fi
5258ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5259if test -n "$ac_ct_DLLTOOL"; then
5260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5261$as_echo "$ac_ct_DLLTOOL" >&6; }
5262else
5263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264$as_echo "no" >&6; }
5265fi
5266
5267  if test "x$ac_ct_DLLTOOL" = x; then
5268    DLLTOOL="false"
5269  else
5270    case $cross_compiling:$ac_tool_warned in
5271yes:)
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5274ac_tool_warned=yes ;;
5275esac
5276    DLLTOOL=$ac_ct_DLLTOOL
5277  fi
5278else
5279  DLLTOOL="$ac_cv_prog_DLLTOOL"
5280fi
5281
5282test -z "$DLLTOOL" && DLLTOOL=dlltool
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5294$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5295if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5296  $as_echo_n "(cached) " >&6
5297else
5298  lt_cv_sharedlib_from_linklib_cmd='unknown'
5299
5300case $host_os in
5301cygwin* | mingw* | pw32* | cegcc*)
5302  # two different shell functions defined in ltmain.sh
5303  # decide which to use based on capabilities of $DLLTOOL
5304  case `$DLLTOOL --help 2>&1` in
5305  *--identify-strict*)
5306    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5307    ;;
5308  *)
5309    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5310    ;;
5311  esac
5312  ;;
5313*)
5314  # fallback: assume linklib IS sharedlib
5315  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5316  ;;
5317esac
5318
5319fi
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5321$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5322sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5323test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5324
5325
5326
5327
5328
5329
5330
5331
5332if test -n "$ac_tool_prefix"; then
5333  for ac_prog in ar
5334  do
5335    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5336set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338$as_echo_n "checking for $ac_word... " >&6; }
5339if ${ac_cv_prog_AR+:} false; then :
5340  $as_echo_n "(cached) " >&6
5341else
5342  if test -n "$AR"; then
5343  ac_cv_prog_AR="$AR" # Let the user override the test.
5344else
5345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346for as_dir in $PATH
5347do
5348  IFS=$as_save_IFS
5349  test -z "$as_dir" && as_dir=.
5350    for ac_exec_ext in '' $ac_executable_extensions; do
5351  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5352    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354    break 2
5355  fi
5356done
5357  done
5358IFS=$as_save_IFS
5359
5360fi
5361fi
5362AR=$ac_cv_prog_AR
5363if test -n "$AR"; then
5364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5365$as_echo "$AR" >&6; }
5366else
5367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368$as_echo "no" >&6; }
5369fi
5370
5371
5372    test -n "$AR" && break
5373  done
5374fi
5375if test -z "$AR"; then
5376  ac_ct_AR=$AR
5377  for ac_prog in ar
5378do
5379  # Extract the first word of "$ac_prog", so it can be a program name with args.
5380set dummy $ac_prog; ac_word=$2
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382$as_echo_n "checking for $ac_word... " >&6; }
5383if ${ac_cv_prog_ac_ct_AR+:} false; then :
5384  $as_echo_n "(cached) " >&6
5385else
5386  if test -n "$ac_ct_AR"; then
5387  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5388else
5389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390for as_dir in $PATH
5391do
5392  IFS=$as_save_IFS
5393  test -z "$as_dir" && as_dir=.
5394    for ac_exec_ext in '' $ac_executable_extensions; do
5395  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396    ac_cv_prog_ac_ct_AR="$ac_prog"
5397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398    break 2
5399  fi
5400done
5401  done
5402IFS=$as_save_IFS
5403
5404fi
5405fi
5406ac_ct_AR=$ac_cv_prog_ac_ct_AR
5407if test -n "$ac_ct_AR"; then
5408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5409$as_echo "$ac_ct_AR" >&6; }
5410else
5411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412$as_echo "no" >&6; }
5413fi
5414
5415
5416  test -n "$ac_ct_AR" && break
5417done
5418
5419  if test "x$ac_ct_AR" = x; then
5420    AR="false"
5421  else
5422    case $cross_compiling:$ac_tool_warned in
5423yes:)
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5426ac_tool_warned=yes ;;
5427esac
5428    AR=$ac_ct_AR
5429  fi
5430fi
5431
5432: ${AR=ar}
5433: ${AR_FLAGS=cru}
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5446$as_echo_n "checking for archiver @FILE support... " >&6; }
5447if ${lt_cv_ar_at_file+:} false; then :
5448  $as_echo_n "(cached) " >&6
5449else
5450  lt_cv_ar_at_file=no
5451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452/* end confdefs.h.  */
5453
5454int
5455main ()
5456{
5457
5458  ;
5459  return 0;
5460}
5461_ACEOF
5462if ac_fn_c_try_compile "$LINENO"; then :
5463  echo conftest.$ac_objext > conftest.lst
5464      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5465      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5466  (eval $lt_ar_try) 2>&5
5467  ac_status=$?
5468  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5469  test $ac_status = 0; }
5470      if test "$ac_status" -eq 0; then
5471	# Ensure the archiver fails upon bogus file names.
5472	rm -f conftest.$ac_objext libconftest.a
5473	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5474  (eval $lt_ar_try) 2>&5
5475  ac_status=$?
5476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5477  test $ac_status = 0; }
5478	if test "$ac_status" -ne 0; then
5479          lt_cv_ar_at_file=@
5480        fi
5481      fi
5482      rm -f conftest.* libconftest.a
5483
5484fi
5485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486
5487fi
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5489$as_echo "$lt_cv_ar_at_file" >&6; }
5490
5491if test "x$lt_cv_ar_at_file" = xno; then
5492  archiver_list_spec=
5493else
5494  archiver_list_spec=$lt_cv_ar_at_file
5495fi
5496
5497
5498
5499
5500
5501
5502
5503if test -n "$ac_tool_prefix"; then
5504  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5505set dummy ${ac_tool_prefix}strip; ac_word=$2
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507$as_echo_n "checking for $ac_word... " >&6; }
5508if ${ac_cv_prog_STRIP+:} false; then :
5509  $as_echo_n "(cached) " >&6
5510else
5511  if test -n "$STRIP"; then
5512  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5513else
5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515for as_dir in $PATH
5516do
5517  IFS=$as_save_IFS
5518  test -z "$as_dir" && as_dir=.
5519    for ac_exec_ext in '' $ac_executable_extensions; do
5520  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523    break 2
5524  fi
5525done
5526  done
5527IFS=$as_save_IFS
5528
5529fi
5530fi
5531STRIP=$ac_cv_prog_STRIP
5532if test -n "$STRIP"; then
5533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5534$as_echo "$STRIP" >&6; }
5535else
5536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537$as_echo "no" >&6; }
5538fi
5539
5540
5541fi
5542if test -z "$ac_cv_prog_STRIP"; then
5543  ac_ct_STRIP=$STRIP
5544  # Extract the first word of "strip", so it can be a program name with args.
5545set dummy strip; ac_word=$2
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547$as_echo_n "checking for $ac_word... " >&6; }
5548if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5549  $as_echo_n "(cached) " >&6
5550else
5551  if test -n "$ac_ct_STRIP"; then
5552  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5553else
5554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH
5556do
5557  IFS=$as_save_IFS
5558  test -z "$as_dir" && as_dir=.
5559    for ac_exec_ext in '' $ac_executable_extensions; do
5560  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5561    ac_cv_prog_ac_ct_STRIP="strip"
5562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563    break 2
5564  fi
5565done
5566  done
5567IFS=$as_save_IFS
5568
5569fi
5570fi
5571ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5572if test -n "$ac_ct_STRIP"; then
5573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5574$as_echo "$ac_ct_STRIP" >&6; }
5575else
5576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577$as_echo "no" >&6; }
5578fi
5579
5580  if test "x$ac_ct_STRIP" = x; then
5581    STRIP=":"
5582  else
5583    case $cross_compiling:$ac_tool_warned in
5584yes:)
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5587ac_tool_warned=yes ;;
5588esac
5589    STRIP=$ac_ct_STRIP
5590  fi
5591else
5592  STRIP="$ac_cv_prog_STRIP"
5593fi
5594
5595test -z "$STRIP" && STRIP=:
5596
5597
5598
5599
5600
5601
5602if test -n "$ac_tool_prefix"; then
5603  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5604set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606$as_echo_n "checking for $ac_word... " >&6; }
5607if ${ac_cv_prog_RANLIB+:} false; then :
5608  $as_echo_n "(cached) " >&6
5609else
5610  if test -n "$RANLIB"; then
5611  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5612else
5613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614for as_dir in $PATH
5615do
5616  IFS=$as_save_IFS
5617  test -z "$as_dir" && as_dir=.
5618    for ac_exec_ext in '' $ac_executable_extensions; do
5619  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5620    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5621    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622    break 2
5623  fi
5624done
5625  done
5626IFS=$as_save_IFS
5627
5628fi
5629fi
5630RANLIB=$ac_cv_prog_RANLIB
5631if test -n "$RANLIB"; then
5632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5633$as_echo "$RANLIB" >&6; }
5634else
5635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636$as_echo "no" >&6; }
5637fi
5638
5639
5640fi
5641if test -z "$ac_cv_prog_RANLIB"; then
5642  ac_ct_RANLIB=$RANLIB
5643  # Extract the first word of "ranlib", so it can be a program name with args.
5644set dummy ranlib; ac_word=$2
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646$as_echo_n "checking for $ac_word... " >&6; }
5647if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5648  $as_echo_n "(cached) " >&6
5649else
5650  if test -n "$ac_ct_RANLIB"; then
5651  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5652else
5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654for as_dir in $PATH
5655do
5656  IFS=$as_save_IFS
5657  test -z "$as_dir" && as_dir=.
5658    for ac_exec_ext in '' $ac_executable_extensions; do
5659  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5660    ac_cv_prog_ac_ct_RANLIB="ranlib"
5661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662    break 2
5663  fi
5664done
5665  done
5666IFS=$as_save_IFS
5667
5668fi
5669fi
5670ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5671if test -n "$ac_ct_RANLIB"; then
5672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5673$as_echo "$ac_ct_RANLIB" >&6; }
5674else
5675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676$as_echo "no" >&6; }
5677fi
5678
5679  if test "x$ac_ct_RANLIB" = x; then
5680    RANLIB=":"
5681  else
5682    case $cross_compiling:$ac_tool_warned in
5683yes:)
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5686ac_tool_warned=yes ;;
5687esac
5688    RANLIB=$ac_ct_RANLIB
5689  fi
5690else
5691  RANLIB="$ac_cv_prog_RANLIB"
5692fi
5693
5694test -z "$RANLIB" && RANLIB=:
5695
5696
5697
5698
5699
5700
5701# Determine commands to create old-style static archives.
5702old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5703old_postinstall_cmds='chmod 644 $oldlib'
5704old_postuninstall_cmds=
5705
5706if test -n "$RANLIB"; then
5707  case $host_os in
5708  openbsd*)
5709    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5710    ;;
5711  *)
5712    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5713    ;;
5714  esac
5715  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5716fi
5717
5718case $host_os in
5719  darwin*)
5720    lock_old_archive_extraction=yes ;;
5721  *)
5722    lock_old_archive_extraction=no ;;
5723esac
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763# If no C compiler was specified, use CC.
5764LTCC=${LTCC-"$CC"}
5765
5766# If no C compiler flags were specified, use CFLAGS.
5767LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5768
5769# Allow CC to be a program name with arguments.
5770compiler=$CC
5771
5772
5773# Check for command to grab the raw symbol name followed by C symbol from nm.
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5775$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5776if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5777  $as_echo_n "(cached) " >&6
5778else
5779
5780# These are sane defaults that work on at least a few old systems.
5781# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5782
5783# Character class describing NM global symbol codes.
5784symcode='[BCDEGRST]'
5785
5786# Regexp to match symbols that can be accessed directly from C.
5787sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5788
5789# Define system-specific variables.
5790case $host_os in
5791aix*)
5792  symcode='[BCDT]'
5793  ;;
5794cygwin* | mingw* | pw32* | cegcc*)
5795  symcode='[ABCDGISTW]'
5796  ;;
5797hpux*)
5798  if test "$host_cpu" = ia64; then
5799    symcode='[ABCDEGRST]'
5800  fi
5801  ;;
5802irix* | nonstopux*)
5803  symcode='[BCDEGRST]'
5804  ;;
5805osf*)
5806  symcode='[BCDEGQRST]'
5807  ;;
5808solaris*)
5809  symcode='[BDRT]'
5810  ;;
5811sco3.2v5*)
5812  symcode='[DT]'
5813  ;;
5814sysv4.2uw2*)
5815  symcode='[DT]'
5816  ;;
5817sysv5* | sco5v6* | unixware* | OpenUNIX*)
5818  symcode='[ABDT]'
5819  ;;
5820sysv4)
5821  symcode='[DFNSTU]'
5822  ;;
5823esac
5824
5825# If we're using GNU nm, then use its standard symbol codes.
5826case `$NM -V 2>&1` in
5827*GNU* | *'with BFD'*)
5828  symcode='[ABCDGIRSTW]' ;;
5829esac
5830
5831# Transform an extracted symbol line into a proper C declaration.
5832# Some systems (esp. on ia64) link data and code symbols differently,
5833# so use this general approach.
5834lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5835
5836# Transform an extracted symbol line into symbol name and symbol address
5837lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5838lt_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'"
5839
5840# Handle CRLF in mingw tool chain
5841opt_cr=
5842case $build_os in
5843mingw*)
5844  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5845  ;;
5846esac
5847
5848# Try without a prefix underscore, then with it.
5849for ac_symprfx in "" "_"; do
5850
5851  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5852  symxfrm="\\1 $ac_symprfx\\2 \\2"
5853
5854  # Write the raw and C identifiers.
5855  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5856    # Fake it for dumpbin and say T for any non-static function
5857    # and D for any global variable.
5858    # Also find C++ and __fastcall symbols from MSVC++,
5859    # which start with @ or ?.
5860    lt_cv_sys_global_symbol_pipe="$AWK '"\
5861"     {last_section=section; section=\$ 3};"\
5862"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5863"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5864"     \$ 0!~/External *\|/{next};"\
5865"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5866"     {if(hide[section]) next};"\
5867"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5868"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5869"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5870"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5871"     ' prfx=^$ac_symprfx"
5872  else
5873    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5874  fi
5875  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5876
5877  # Check to see that the pipe works correctly.
5878  pipe_works=no
5879
5880  rm -f conftest*
5881  cat > conftest.$ac_ext <<_LT_EOF
5882#ifdef __cplusplus
5883extern "C" {
5884#endif
5885char nm_test_var;
5886void nm_test_func(void);
5887void nm_test_func(void){}
5888#ifdef __cplusplus
5889}
5890#endif
5891int main(){nm_test_var='a';nm_test_func();return(0);}
5892_LT_EOF
5893
5894  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5895  (eval $ac_compile) 2>&5
5896  ac_status=$?
5897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5898  test $ac_status = 0; }; then
5899    # Now try to grab the symbols.
5900    nlist=conftest.nm
5901    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5902  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5903  ac_status=$?
5904  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5905  test $ac_status = 0; } && test -s "$nlist"; then
5906      # Try sorting and uniquifying the output.
5907      if sort "$nlist" | uniq > "$nlist"T; then
5908	mv -f "$nlist"T "$nlist"
5909      else
5910	rm -f "$nlist"T
5911      fi
5912
5913      # Make sure that we snagged all the symbols we need.
5914      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5915	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5916	  cat <<_LT_EOF > conftest.$ac_ext
5917/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5918#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5919/* DATA imports from DLLs on WIN32 con't be const, because runtime
5920   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5921# define LT_DLSYM_CONST
5922#elif defined(__osf__)
5923/* This system does not cope well with relocations in const data.  */
5924# define LT_DLSYM_CONST
5925#else
5926# define LT_DLSYM_CONST const
5927#endif
5928
5929#ifdef __cplusplus
5930extern "C" {
5931#endif
5932
5933_LT_EOF
5934	  # Now generate the symbol file.
5935	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5936
5937	  cat <<_LT_EOF >> conftest.$ac_ext
5938
5939/* The mapping between symbol names and symbols.  */
5940LT_DLSYM_CONST struct {
5941  const char *name;
5942  void       *address;
5943}
5944lt__PROGRAM__LTX_preloaded_symbols[] =
5945{
5946  { "@PROGRAM@", (void *) 0 },
5947_LT_EOF
5948	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5949	  cat <<\_LT_EOF >> conftest.$ac_ext
5950  {0, (void *) 0}
5951};
5952
5953/* This works around a problem in FreeBSD linker */
5954#ifdef FREEBSD_WORKAROUND
5955static const void *lt_preloaded_setup() {
5956  return lt__PROGRAM__LTX_preloaded_symbols;
5957}
5958#endif
5959
5960#ifdef __cplusplus
5961}
5962#endif
5963_LT_EOF
5964	  # Now try linking the two files.
5965	  mv conftest.$ac_objext conftstm.$ac_objext
5966	  lt_globsym_save_LIBS=$LIBS
5967	  lt_globsym_save_CFLAGS=$CFLAGS
5968	  LIBS="conftstm.$ac_objext"
5969	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5970	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5971  (eval $ac_link) 2>&5
5972  ac_status=$?
5973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5974  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5975	    pipe_works=yes
5976	  fi
5977	  LIBS=$lt_globsym_save_LIBS
5978	  CFLAGS=$lt_globsym_save_CFLAGS
5979	else
5980	  echo "cannot find nm_test_func in $nlist" >&5
5981	fi
5982      else
5983	echo "cannot find nm_test_var in $nlist" >&5
5984      fi
5985    else
5986      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5987    fi
5988  else
5989    echo "$progname: failed program was:" >&5
5990    cat conftest.$ac_ext >&5
5991  fi
5992  rm -rf conftest* conftst*
5993
5994  # Do not use the global_symbol_pipe unless it works.
5995  if test "$pipe_works" = yes; then
5996    break
5997  else
5998    lt_cv_sys_global_symbol_pipe=
5999  fi
6000done
6001
6002fi
6003
6004if test -z "$lt_cv_sys_global_symbol_pipe"; then
6005  lt_cv_sys_global_symbol_to_cdecl=
6006fi
6007if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6009$as_echo "failed" >&6; }
6010else
6011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6012$as_echo "ok" >&6; }
6013fi
6014
6015# Response file support.
6016if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6017  nm_file_list_spec='@'
6018elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6019  nm_file_list_spec='@'
6020fi
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6049$as_echo_n "checking for sysroot... " >&6; }
6050
6051# Check whether --with-sysroot was given.
6052if test "${with_sysroot+set}" = set; then :
6053  withval=$with_sysroot;
6054else
6055  with_sysroot=no
6056fi
6057
6058
6059lt_sysroot=
6060case ${with_sysroot} in #(
6061 yes)
6062   if test "$GCC" = yes; then
6063     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6064   fi
6065   ;; #(
6066 /*)
6067   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6068   ;; #(
6069 no|'')
6070   ;; #(
6071 *)
6072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6073$as_echo "${with_sysroot}" >&6; }
6074   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6075   ;;
6076esac
6077
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6079$as_echo "${lt_sysroot:-no}" >&6; }
6080
6081
6082
6083
6084
6085# Check whether --enable-libtool-lock was given.
6086if test "${enable_libtool_lock+set}" = set; then :
6087  enableval=$enable_libtool_lock;
6088fi
6089
6090test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6091
6092# Some flags need to be propagated to the compiler or linker for good
6093# libtool support.
6094case $host in
6095ia64-*-hpux*)
6096  # Find out which ABI we are using.
6097  echo 'int i;' > conftest.$ac_ext
6098  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6099  (eval $ac_compile) 2>&5
6100  ac_status=$?
6101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6102  test $ac_status = 0; }; then
6103    case `/usr/bin/file conftest.$ac_objext` in
6104      *ELF-32*)
6105	HPUX_IA64_MODE="32"
6106	;;
6107      *ELF-64*)
6108	HPUX_IA64_MODE="64"
6109	;;
6110    esac
6111  fi
6112  rm -rf conftest*
6113  ;;
6114*-*-irix6*)
6115  # Find out which ABI we are using.
6116  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6117  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6118  (eval $ac_compile) 2>&5
6119  ac_status=$?
6120  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6121  test $ac_status = 0; }; then
6122    if test "$lt_cv_prog_gnu_ld" = yes; then
6123      case `/usr/bin/file conftest.$ac_objext` in
6124	*32-bit*)
6125	  LD="${LD-ld} -melf32bsmip"
6126	  ;;
6127	*N32*)
6128	  LD="${LD-ld} -melf32bmipn32"
6129	  ;;
6130	*64-bit*)
6131	  LD="${LD-ld} -melf64bmip"
6132	;;
6133      esac
6134    else
6135      case `/usr/bin/file conftest.$ac_objext` in
6136	*32-bit*)
6137	  LD="${LD-ld} -32"
6138	  ;;
6139	*N32*)
6140	  LD="${LD-ld} -n32"
6141	  ;;
6142	*64-bit*)
6143	  LD="${LD-ld} -64"
6144	  ;;
6145      esac
6146    fi
6147  fi
6148  rm -rf conftest*
6149  ;;
6150
6151x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6152s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6153  # Find out which ABI we are using.
6154  echo 'int i;' > conftest.$ac_ext
6155  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6156  (eval $ac_compile) 2>&5
6157  ac_status=$?
6158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6159  test $ac_status = 0; }; then
6160    case `/usr/bin/file conftest.o` in
6161      *32-bit*)
6162	case $host in
6163	  x86_64-*kfreebsd*-gnu)
6164	    LD="${LD-ld} -m elf_i386_fbsd"
6165	    ;;
6166	  x86_64-*linux*)
6167	    LD="${LD-ld} -m elf_i386"
6168	    ;;
6169	  ppc64-*linux*|powerpc64-*linux*)
6170	    LD="${LD-ld} -m elf32ppclinux"
6171	    ;;
6172	  s390x-*linux*)
6173	    LD="${LD-ld} -m elf_s390"
6174	    ;;
6175	  sparc64-*linux*)
6176	    LD="${LD-ld} -m elf32_sparc"
6177	    ;;
6178	esac
6179	;;
6180      *64-bit*)
6181	case $host in
6182	  x86_64-*kfreebsd*-gnu)
6183	    LD="${LD-ld} -m elf_x86_64_fbsd"
6184	    ;;
6185	  x86_64-*linux*)
6186	    LD="${LD-ld} -m elf_x86_64"
6187	    ;;
6188	  ppc*-*linux*|powerpc*-*linux*)
6189	    LD="${LD-ld} -m elf64ppc"
6190	    ;;
6191	  s390*-*linux*|s390*-*tpf*)
6192	    LD="${LD-ld} -m elf64_s390"
6193	    ;;
6194	  sparc*-*linux*)
6195	    LD="${LD-ld} -m elf64_sparc"
6196	    ;;
6197	esac
6198	;;
6199    esac
6200  fi
6201  rm -rf conftest*
6202  ;;
6203
6204*-*-sco3.2v5*)
6205  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6206  SAVE_CFLAGS="$CFLAGS"
6207  CFLAGS="$CFLAGS -belf"
6208  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6209$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6210if ${lt_cv_cc_needs_belf+:} false; then :
6211  $as_echo_n "(cached) " >&6
6212else
6213  ac_ext=c
6214ac_cpp='$CPP $CPPFLAGS'
6215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217ac_compiler_gnu=$ac_cv_c_compiler_gnu
6218
6219     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220/* end confdefs.h.  */
6221
6222int
6223main ()
6224{
6225
6226  ;
6227  return 0;
6228}
6229_ACEOF
6230if ac_fn_c_try_link "$LINENO"; then :
6231  lt_cv_cc_needs_belf=yes
6232else
6233  lt_cv_cc_needs_belf=no
6234fi
6235rm -f core conftest.err conftest.$ac_objext \
6236    conftest$ac_exeext conftest.$ac_ext
6237     ac_ext=c
6238ac_cpp='$CPP $CPPFLAGS'
6239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6241ac_compiler_gnu=$ac_cv_c_compiler_gnu
6242
6243fi
6244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6245$as_echo "$lt_cv_cc_needs_belf" >&6; }
6246  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6247    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6248    CFLAGS="$SAVE_CFLAGS"
6249  fi
6250  ;;
6251*-*solaris*)
6252  # Find out which ABI we are using.
6253  echo 'int i;' > conftest.$ac_ext
6254  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6255  (eval $ac_compile) 2>&5
6256  ac_status=$?
6257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6258  test $ac_status = 0; }; then
6259    case `/usr/bin/file conftest.o` in
6260    *64-bit*)
6261      case $lt_cv_prog_gnu_ld in
6262      yes*)
6263        case $host in
6264        i?86-*-solaris*)
6265          LD="${LD-ld} -m elf_x86_64"
6266          ;;
6267        sparc*-*-solaris*)
6268          LD="${LD-ld} -m elf64_sparc"
6269          ;;
6270        esac
6271        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6272        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6273          LD="${LD-ld}_sol2"
6274        fi
6275        ;;
6276      *)
6277	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6278	  LD="${LD-ld} -64"
6279	fi
6280	;;
6281      esac
6282      ;;
6283    esac
6284  fi
6285  rm -rf conftest*
6286  ;;
6287esac
6288
6289need_locks="$enable_libtool_lock"
6290
6291if test -n "$ac_tool_prefix"; then
6292  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6293set dummy ${ac_tool_prefix}mt; ac_word=$2
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295$as_echo_n "checking for $ac_word... " >&6; }
6296if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6297  $as_echo_n "(cached) " >&6
6298else
6299  if test -n "$MANIFEST_TOOL"; then
6300  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6301else
6302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303for as_dir in $PATH
6304do
6305  IFS=$as_save_IFS
6306  test -z "$as_dir" && as_dir=.
6307    for ac_exec_ext in '' $ac_executable_extensions; do
6308  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6309    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311    break 2
6312  fi
6313done
6314  done
6315IFS=$as_save_IFS
6316
6317fi
6318fi
6319MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6320if test -n "$MANIFEST_TOOL"; then
6321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6322$as_echo "$MANIFEST_TOOL" >&6; }
6323else
6324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325$as_echo "no" >&6; }
6326fi
6327
6328
6329fi
6330if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6331  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6332  # Extract the first word of "mt", so it can be a program name with args.
6333set dummy mt; ac_word=$2
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335$as_echo_n "checking for $ac_word... " >&6; }
6336if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6337  $as_echo_n "(cached) " >&6
6338else
6339  if test -n "$ac_ct_MANIFEST_TOOL"; then
6340  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6341else
6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343for as_dir in $PATH
6344do
6345  IFS=$as_save_IFS
6346  test -z "$as_dir" && as_dir=.
6347    for ac_exec_ext in '' $ac_executable_extensions; do
6348  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6349    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351    break 2
6352  fi
6353done
6354  done
6355IFS=$as_save_IFS
6356
6357fi
6358fi
6359ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6360if test -n "$ac_ct_MANIFEST_TOOL"; then
6361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6362$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6363else
6364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365$as_echo "no" >&6; }
6366fi
6367
6368  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6369    MANIFEST_TOOL=":"
6370  else
6371    case $cross_compiling:$ac_tool_warned in
6372yes:)
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6375ac_tool_warned=yes ;;
6376esac
6377    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6378  fi
6379else
6380  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6381fi
6382
6383test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6385$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6386if ${lt_cv_path_mainfest_tool+:} false; then :
6387  $as_echo_n "(cached) " >&6
6388else
6389  lt_cv_path_mainfest_tool=no
6390  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6391  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6392  cat conftest.err >&5
6393  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6394    lt_cv_path_mainfest_tool=yes
6395  fi
6396  rm -f conftest*
6397fi
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6399$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6400if test "x$lt_cv_path_mainfest_tool" != xyes; then
6401  MANIFEST_TOOL=:
6402fi
6403
6404
6405
6406
6407
6408
6409  case $host_os in
6410    rhapsody* | darwin*)
6411    if test -n "$ac_tool_prefix"; then
6412  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6413set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415$as_echo_n "checking for $ac_word... " >&6; }
6416if ${ac_cv_prog_DSYMUTIL+:} false; then :
6417  $as_echo_n "(cached) " >&6
6418else
6419  if test -n "$DSYMUTIL"; then
6420  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6421else
6422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425  IFS=$as_save_IFS
6426  test -z "$as_dir" && as_dir=.
6427    for ac_exec_ext in '' $ac_executable_extensions; do
6428  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431    break 2
6432  fi
6433done
6434  done
6435IFS=$as_save_IFS
6436
6437fi
6438fi
6439DSYMUTIL=$ac_cv_prog_DSYMUTIL
6440if test -n "$DSYMUTIL"; then
6441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6442$as_echo "$DSYMUTIL" >&6; }
6443else
6444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445$as_echo "no" >&6; }
6446fi
6447
6448
6449fi
6450if test -z "$ac_cv_prog_DSYMUTIL"; then
6451  ac_ct_DSYMUTIL=$DSYMUTIL
6452  # Extract the first word of "dsymutil", so it can be a program name with args.
6453set dummy dsymutil; ac_word=$2
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455$as_echo_n "checking for $ac_word... " >&6; }
6456if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6457  $as_echo_n "(cached) " >&6
6458else
6459  if test -n "$ac_ct_DSYMUTIL"; then
6460  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6461else
6462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463for as_dir in $PATH
6464do
6465  IFS=$as_save_IFS
6466  test -z "$as_dir" && as_dir=.
6467    for ac_exec_ext in '' $ac_executable_extensions; do
6468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471    break 2
6472  fi
6473done
6474  done
6475IFS=$as_save_IFS
6476
6477fi
6478fi
6479ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6480if test -n "$ac_ct_DSYMUTIL"; then
6481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6482$as_echo "$ac_ct_DSYMUTIL" >&6; }
6483else
6484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485$as_echo "no" >&6; }
6486fi
6487
6488  if test "x$ac_ct_DSYMUTIL" = x; then
6489    DSYMUTIL=":"
6490  else
6491    case $cross_compiling:$ac_tool_warned in
6492yes:)
6493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495ac_tool_warned=yes ;;
6496esac
6497    DSYMUTIL=$ac_ct_DSYMUTIL
6498  fi
6499else
6500  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6501fi
6502
6503    if test -n "$ac_tool_prefix"; then
6504  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6505set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507$as_echo_n "checking for $ac_word... " >&6; }
6508if ${ac_cv_prog_NMEDIT+:} false; then :
6509  $as_echo_n "(cached) " >&6
6510else
6511  if test -n "$NMEDIT"; then
6512  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6513else
6514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515for as_dir in $PATH
6516do
6517  IFS=$as_save_IFS
6518  test -z "$as_dir" && as_dir=.
6519    for ac_exec_ext in '' $ac_executable_extensions; do
6520  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6521    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6523    break 2
6524  fi
6525done
6526  done
6527IFS=$as_save_IFS
6528
6529fi
6530fi
6531NMEDIT=$ac_cv_prog_NMEDIT
6532if test -n "$NMEDIT"; then
6533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6534$as_echo "$NMEDIT" >&6; }
6535else
6536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537$as_echo "no" >&6; }
6538fi
6539
6540
6541fi
6542if test -z "$ac_cv_prog_NMEDIT"; then
6543  ac_ct_NMEDIT=$NMEDIT
6544  # Extract the first word of "nmedit", so it can be a program name with args.
6545set dummy nmedit; ac_word=$2
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547$as_echo_n "checking for $ac_word... " >&6; }
6548if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6549  $as_echo_n "(cached) " >&6
6550else
6551  if test -n "$ac_ct_NMEDIT"; then
6552  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6553else
6554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555for as_dir in $PATH
6556do
6557  IFS=$as_save_IFS
6558  test -z "$as_dir" && as_dir=.
6559    for ac_exec_ext in '' $ac_executable_extensions; do
6560  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563    break 2
6564  fi
6565done
6566  done
6567IFS=$as_save_IFS
6568
6569fi
6570fi
6571ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6572if test -n "$ac_ct_NMEDIT"; then
6573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6574$as_echo "$ac_ct_NMEDIT" >&6; }
6575else
6576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577$as_echo "no" >&6; }
6578fi
6579
6580  if test "x$ac_ct_NMEDIT" = x; then
6581    NMEDIT=":"
6582  else
6583    case $cross_compiling:$ac_tool_warned in
6584yes:)
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6587ac_tool_warned=yes ;;
6588esac
6589    NMEDIT=$ac_ct_NMEDIT
6590  fi
6591else
6592  NMEDIT="$ac_cv_prog_NMEDIT"
6593fi
6594
6595    if test -n "$ac_tool_prefix"; then
6596  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6597set dummy ${ac_tool_prefix}lipo; ac_word=$2
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599$as_echo_n "checking for $ac_word... " >&6; }
6600if ${ac_cv_prog_LIPO+:} false; then :
6601  $as_echo_n "(cached) " >&6
6602else
6603  if test -n "$LIPO"; then
6604  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6605else
6606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607for as_dir in $PATH
6608do
6609  IFS=$as_save_IFS
6610  test -z "$as_dir" && as_dir=.
6611    for ac_exec_ext in '' $ac_executable_extensions; do
6612  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6615    break 2
6616  fi
6617done
6618  done
6619IFS=$as_save_IFS
6620
6621fi
6622fi
6623LIPO=$ac_cv_prog_LIPO
6624if test -n "$LIPO"; then
6625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6626$as_echo "$LIPO" >&6; }
6627else
6628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629$as_echo "no" >&6; }
6630fi
6631
6632
6633fi
6634if test -z "$ac_cv_prog_LIPO"; then
6635  ac_ct_LIPO=$LIPO
6636  # Extract the first word of "lipo", so it can be a program name with args.
6637set dummy lipo; ac_word=$2
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639$as_echo_n "checking for $ac_word... " >&6; }
6640if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6641  $as_echo_n "(cached) " >&6
6642else
6643  if test -n "$ac_ct_LIPO"; then
6644  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6645else
6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in $PATH
6648do
6649  IFS=$as_save_IFS
6650  test -z "$as_dir" && as_dir=.
6651    for ac_exec_ext in '' $ac_executable_extensions; do
6652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653    ac_cv_prog_ac_ct_LIPO="lipo"
6654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655    break 2
6656  fi
6657done
6658  done
6659IFS=$as_save_IFS
6660
6661fi
6662fi
6663ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6664if test -n "$ac_ct_LIPO"; then
6665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6666$as_echo "$ac_ct_LIPO" >&6; }
6667else
6668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669$as_echo "no" >&6; }
6670fi
6671
6672  if test "x$ac_ct_LIPO" = x; then
6673    LIPO=":"
6674  else
6675    case $cross_compiling:$ac_tool_warned in
6676yes:)
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6679ac_tool_warned=yes ;;
6680esac
6681    LIPO=$ac_ct_LIPO
6682  fi
6683else
6684  LIPO="$ac_cv_prog_LIPO"
6685fi
6686
6687    if test -n "$ac_tool_prefix"; then
6688  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6689set dummy ${ac_tool_prefix}otool; ac_word=$2
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691$as_echo_n "checking for $ac_word... " >&6; }
6692if ${ac_cv_prog_OTOOL+:} false; then :
6693  $as_echo_n "(cached) " >&6
6694else
6695  if test -n "$OTOOL"; then
6696  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6697else
6698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701  IFS=$as_save_IFS
6702  test -z "$as_dir" && as_dir=.
6703    for ac_exec_ext in '' $ac_executable_extensions; do
6704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707    break 2
6708  fi
6709done
6710  done
6711IFS=$as_save_IFS
6712
6713fi
6714fi
6715OTOOL=$ac_cv_prog_OTOOL
6716if test -n "$OTOOL"; then
6717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6718$as_echo "$OTOOL" >&6; }
6719else
6720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721$as_echo "no" >&6; }
6722fi
6723
6724
6725fi
6726if test -z "$ac_cv_prog_OTOOL"; then
6727  ac_ct_OTOOL=$OTOOL
6728  # Extract the first word of "otool", so it can be a program name with args.
6729set dummy otool; ac_word=$2
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731$as_echo_n "checking for $ac_word... " >&6; }
6732if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6733  $as_echo_n "(cached) " >&6
6734else
6735  if test -n "$ac_ct_OTOOL"; then
6736  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6737else
6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741  IFS=$as_save_IFS
6742  test -z "$as_dir" && as_dir=.
6743    for ac_exec_ext in '' $ac_executable_extensions; do
6744  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745    ac_cv_prog_ac_ct_OTOOL="otool"
6746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747    break 2
6748  fi
6749done
6750  done
6751IFS=$as_save_IFS
6752
6753fi
6754fi
6755ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6756if test -n "$ac_ct_OTOOL"; then
6757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6758$as_echo "$ac_ct_OTOOL" >&6; }
6759else
6760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
6762fi
6763
6764  if test "x$ac_ct_OTOOL" = x; then
6765    OTOOL=":"
6766  else
6767    case $cross_compiling:$ac_tool_warned in
6768yes:)
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771ac_tool_warned=yes ;;
6772esac
6773    OTOOL=$ac_ct_OTOOL
6774  fi
6775else
6776  OTOOL="$ac_cv_prog_OTOOL"
6777fi
6778
6779    if test -n "$ac_tool_prefix"; then
6780  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6781set dummy ${ac_tool_prefix}otool64; ac_word=$2
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783$as_echo_n "checking for $ac_word... " >&6; }
6784if ${ac_cv_prog_OTOOL64+:} false; then :
6785  $as_echo_n "(cached) " >&6
6786else
6787  if test -n "$OTOOL64"; then
6788  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6789else
6790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791for as_dir in $PATH
6792do
6793  IFS=$as_save_IFS
6794  test -z "$as_dir" && as_dir=.
6795    for ac_exec_ext in '' $ac_executable_extensions; do
6796  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799    break 2
6800  fi
6801done
6802  done
6803IFS=$as_save_IFS
6804
6805fi
6806fi
6807OTOOL64=$ac_cv_prog_OTOOL64
6808if test -n "$OTOOL64"; then
6809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6810$as_echo "$OTOOL64" >&6; }
6811else
6812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813$as_echo "no" >&6; }
6814fi
6815
6816
6817fi
6818if test -z "$ac_cv_prog_OTOOL64"; then
6819  ac_ct_OTOOL64=$OTOOL64
6820  # Extract the first word of "otool64", so it can be a program name with args.
6821set dummy otool64; ac_word=$2
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823$as_echo_n "checking for $ac_word... " >&6; }
6824if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6825  $as_echo_n "(cached) " >&6
6826else
6827  if test -n "$ac_ct_OTOOL64"; then
6828  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6829else
6830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831for as_dir in $PATH
6832do
6833  IFS=$as_save_IFS
6834  test -z "$as_dir" && as_dir=.
6835    for ac_exec_ext in '' $ac_executable_extensions; do
6836  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837    ac_cv_prog_ac_ct_OTOOL64="otool64"
6838    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839    break 2
6840  fi
6841done
6842  done
6843IFS=$as_save_IFS
6844
6845fi
6846fi
6847ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6848if test -n "$ac_ct_OTOOL64"; then
6849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6850$as_echo "$ac_ct_OTOOL64" >&6; }
6851else
6852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853$as_echo "no" >&6; }
6854fi
6855
6856  if test "x$ac_ct_OTOOL64" = x; then
6857    OTOOL64=":"
6858  else
6859    case $cross_compiling:$ac_tool_warned in
6860yes:)
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6863ac_tool_warned=yes ;;
6864esac
6865    OTOOL64=$ac_ct_OTOOL64
6866  fi
6867else
6868  OTOOL64="$ac_cv_prog_OTOOL64"
6869fi
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6898$as_echo_n "checking for -single_module linker flag... " >&6; }
6899if ${lt_cv_apple_cc_single_mod+:} false; then :
6900  $as_echo_n "(cached) " >&6
6901else
6902  lt_cv_apple_cc_single_mod=no
6903      if test -z "${LT_MULTI_MODULE}"; then
6904	# By default we will add the -single_module flag. You can override
6905	# by either setting the environment variable LT_MULTI_MODULE
6906	# non-empty at configure time, or by adding -multi_module to the
6907	# link flags.
6908	rm -rf libconftest.dylib*
6909	echo "int foo(void){return 1;}" > conftest.c
6910	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6911-dynamiclib -Wl,-single_module conftest.c" >&5
6912	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6913	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6914        _lt_result=$?
6915	# If there is a non-empty error log, and "single_module"
6916	# appears in it, assume the flag caused a linker warning
6917        if test -s conftest.err && $GREP single_module conftest.err; then
6918	  cat conftest.err >&5
6919	# Otherwise, if the output was created with a 0 exit code from
6920	# the compiler, it worked.
6921	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6922	  lt_cv_apple_cc_single_mod=yes
6923	else
6924	  cat conftest.err >&5
6925	fi
6926	rm -rf libconftest.dylib*
6927	rm -f conftest.*
6928      fi
6929fi
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6931$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6932
6933    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6934$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6935if ${lt_cv_ld_exported_symbols_list+:} false; then :
6936  $as_echo_n "(cached) " >&6
6937else
6938  lt_cv_ld_exported_symbols_list=no
6939      save_LDFLAGS=$LDFLAGS
6940      echo "_main" > conftest.sym
6941      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6942      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943/* end confdefs.h.  */
6944
6945int
6946main ()
6947{
6948
6949  ;
6950  return 0;
6951}
6952_ACEOF
6953if ac_fn_c_try_link "$LINENO"; then :
6954  lt_cv_ld_exported_symbols_list=yes
6955else
6956  lt_cv_ld_exported_symbols_list=no
6957fi
6958rm -f core conftest.err conftest.$ac_objext \
6959    conftest$ac_exeext conftest.$ac_ext
6960	LDFLAGS="$save_LDFLAGS"
6961
6962fi
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6964$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6965
6966    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6967$as_echo_n "checking for -force_load linker flag... " >&6; }
6968if ${lt_cv_ld_force_load+:} false; then :
6969  $as_echo_n "(cached) " >&6
6970else
6971  lt_cv_ld_force_load=no
6972      cat > conftest.c << _LT_EOF
6973int forced_loaded() { return 2;}
6974_LT_EOF
6975      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6976      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6977      echo "$AR cru libconftest.a conftest.o" >&5
6978      $AR cru libconftest.a conftest.o 2>&5
6979      echo "$RANLIB libconftest.a" >&5
6980      $RANLIB libconftest.a 2>&5
6981      cat > conftest.c << _LT_EOF
6982int main() { return 0;}
6983_LT_EOF
6984      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6985      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6986      _lt_result=$?
6987      if test -s conftest.err && $GREP force_load conftest.err; then
6988	cat conftest.err >&5
6989      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6990	lt_cv_ld_force_load=yes
6991      else
6992	cat conftest.err >&5
6993      fi
6994        rm -f conftest.err libconftest.a conftest conftest.c
6995        rm -rf conftest.dSYM
6996
6997fi
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6999$as_echo "$lt_cv_ld_force_load" >&6; }
7000    case $host_os in
7001    rhapsody* | darwin1.[012])
7002      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7003    darwin1.*)
7004      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7005    darwin*) # darwin 5.x on
7006      # if running on 10.5 or later, the deployment target defaults
7007      # to the OS version, if on x86, and 10.4, the deployment
7008      # target defaults to 10.4. Don't you love it?
7009      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7010	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7011	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7012	10.[012]*)
7013	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7014	10.*)
7015	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7016      esac
7017    ;;
7018  esac
7019    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7020      _lt_dar_single_mod='$single_module'
7021    fi
7022    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7023      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7024    else
7025      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7026    fi
7027    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7028      _lt_dsymutil='~$DSYMUTIL $lib || :'
7029    else
7030      _lt_dsymutil=
7031    fi
7032    ;;
7033  esac
7034
7035ac_ext=c
7036ac_cpp='$CPP $CPPFLAGS'
7037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7039ac_compiler_gnu=$ac_cv_c_compiler_gnu
7040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7041$as_echo_n "checking how to run the C preprocessor... " >&6; }
7042# On Suns, sometimes $CPP names a directory.
7043if test -n "$CPP" && test -d "$CPP"; then
7044  CPP=
7045fi
7046if test -z "$CPP"; then
7047  if ${ac_cv_prog_CPP+:} false; then :
7048  $as_echo_n "(cached) " >&6
7049else
7050      # Double quotes because CPP needs to be expanded
7051    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7052    do
7053      ac_preproc_ok=false
7054for ac_c_preproc_warn_flag in '' yes
7055do
7056  # Use a header file that comes with gcc, so configuring glibc
7057  # with a fresh cross-compiler works.
7058  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7059  # <limits.h> exists even on freestanding compilers.
7060  # On the NeXT, cc -E runs the code through the compiler's parser,
7061  # not just through cpp. "Syntax error" is here to catch this case.
7062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063/* end confdefs.h.  */
7064#ifdef __STDC__
7065# include <limits.h>
7066#else
7067# include <assert.h>
7068#endif
7069		     Syntax error
7070_ACEOF
7071if ac_fn_c_try_cpp "$LINENO"; then :
7072
7073else
7074  # Broken: fails on valid input.
7075continue
7076fi
7077rm -f conftest.err conftest.i conftest.$ac_ext
7078
7079  # OK, works on sane cases.  Now check whether nonexistent headers
7080  # can be detected and how.
7081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082/* end confdefs.h.  */
7083#include <ac_nonexistent.h>
7084_ACEOF
7085if ac_fn_c_try_cpp "$LINENO"; then :
7086  # Broken: success on invalid input.
7087continue
7088else
7089  # Passes both tests.
7090ac_preproc_ok=:
7091break
7092fi
7093rm -f conftest.err conftest.i conftest.$ac_ext
7094
7095done
7096# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7097rm -f conftest.i conftest.err conftest.$ac_ext
7098if $ac_preproc_ok; then :
7099  break
7100fi
7101
7102    done
7103    ac_cv_prog_CPP=$CPP
7104
7105fi
7106  CPP=$ac_cv_prog_CPP
7107else
7108  ac_cv_prog_CPP=$CPP
7109fi
7110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7111$as_echo "$CPP" >&6; }
7112ac_preproc_ok=false
7113for ac_c_preproc_warn_flag in '' yes
7114do
7115  # Use a header file that comes with gcc, so configuring glibc
7116  # with a fresh cross-compiler works.
7117  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7118  # <limits.h> exists even on freestanding compilers.
7119  # On the NeXT, cc -E runs the code through the compiler's parser,
7120  # not just through cpp. "Syntax error" is here to catch this case.
7121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122/* end confdefs.h.  */
7123#ifdef __STDC__
7124# include <limits.h>
7125#else
7126# include <assert.h>
7127#endif
7128		     Syntax error
7129_ACEOF
7130if ac_fn_c_try_cpp "$LINENO"; then :
7131
7132else
7133  # Broken: fails on valid input.
7134continue
7135fi
7136rm -f conftest.err conftest.i conftest.$ac_ext
7137
7138  # OK, works on sane cases.  Now check whether nonexistent headers
7139  # can be detected and how.
7140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141/* end confdefs.h.  */
7142#include <ac_nonexistent.h>
7143_ACEOF
7144if ac_fn_c_try_cpp "$LINENO"; then :
7145  # Broken: success on invalid input.
7146continue
7147else
7148  # Passes both tests.
7149ac_preproc_ok=:
7150break
7151fi
7152rm -f conftest.err conftest.i conftest.$ac_ext
7153
7154done
7155# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7156rm -f conftest.i conftest.err conftest.$ac_ext
7157if $ac_preproc_ok; then :
7158
7159else
7160  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7162as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7163See \`config.log' for more details" "$LINENO" 5; }
7164fi
7165
7166ac_ext=c
7167ac_cpp='$CPP $CPPFLAGS'
7168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7170ac_compiler_gnu=$ac_cv_c_compiler_gnu
7171
7172
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7174$as_echo_n "checking for ANSI C header files... " >&6; }
7175if ${ac_cv_header_stdc+:} false; then :
7176  $as_echo_n "(cached) " >&6
7177else
7178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179/* end confdefs.h.  */
7180#include <stdlib.h>
7181#include <stdarg.h>
7182#include <string.h>
7183#include <float.h>
7184
7185int
7186main ()
7187{
7188
7189  ;
7190  return 0;
7191}
7192_ACEOF
7193if ac_fn_c_try_compile "$LINENO"; then :
7194  ac_cv_header_stdc=yes
7195else
7196  ac_cv_header_stdc=no
7197fi
7198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199
7200if test $ac_cv_header_stdc = yes; then
7201  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203/* end confdefs.h.  */
7204#include <string.h>
7205
7206_ACEOF
7207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7208  $EGREP "memchr" >/dev/null 2>&1; then :
7209
7210else
7211  ac_cv_header_stdc=no
7212fi
7213rm -f conftest*
7214
7215fi
7216
7217if test $ac_cv_header_stdc = yes; then
7218  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220/* end confdefs.h.  */
7221#include <stdlib.h>
7222
7223_ACEOF
7224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7225  $EGREP "free" >/dev/null 2>&1; then :
7226
7227else
7228  ac_cv_header_stdc=no
7229fi
7230rm -f conftest*
7231
7232fi
7233
7234if test $ac_cv_header_stdc = yes; then
7235  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7236  if test "$cross_compiling" = yes; then :
7237  :
7238else
7239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240/* end confdefs.h.  */
7241#include <ctype.h>
7242#include <stdlib.h>
7243#if ((' ' & 0x0FF) == 0x020)
7244# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7245# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7246#else
7247# define ISLOWER(c) \
7248		   (('a' <= (c) && (c) <= 'i') \
7249		     || ('j' <= (c) && (c) <= 'r') \
7250		     || ('s' <= (c) && (c) <= 'z'))
7251# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7252#endif
7253
7254#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7255int
7256main ()
7257{
7258  int i;
7259  for (i = 0; i < 256; i++)
7260    if (XOR (islower (i), ISLOWER (i))
7261	|| toupper (i) != TOUPPER (i))
7262      return 2;
7263  return 0;
7264}
7265_ACEOF
7266if ac_fn_c_try_run "$LINENO"; then :
7267
7268else
7269  ac_cv_header_stdc=no
7270fi
7271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7272  conftest.$ac_objext conftest.beam conftest.$ac_ext
7273fi
7274
7275fi
7276fi
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7278$as_echo "$ac_cv_header_stdc" >&6; }
7279if test $ac_cv_header_stdc = yes; then
7280
7281$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7282
7283fi
7284
7285# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7286for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7287		  inttypes.h stdint.h unistd.h
7288do :
7289  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7290ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7291"
7292if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7293  cat >>confdefs.h <<_ACEOF
7294#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7295_ACEOF
7296
7297fi
7298
7299done
7300
7301
7302for ac_header in dlfcn.h
7303do :
7304  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7305"
7306if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7307  cat >>confdefs.h <<_ACEOF
7308#define HAVE_DLFCN_H 1
7309_ACEOF
7310
7311fi
7312
7313done
7314
7315
7316
7317
7318
7319# Set options
7320
7321
7322
7323        enable_dlopen=no
7324
7325
7326  enable_win32_dll=no
7327
7328
7329            # Check whether --enable-shared was given.
7330if test "${enable_shared+set}" = set; then :
7331  enableval=$enable_shared; p=${PACKAGE-default}
7332    case $enableval in
7333    yes) enable_shared=yes ;;
7334    no) enable_shared=no ;;
7335    *)
7336      enable_shared=no
7337      # Look at the argument we got.  We use all the common list separators.
7338      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7339      for pkg in $enableval; do
7340	IFS="$lt_save_ifs"
7341	if test "X$pkg" = "X$p"; then
7342	  enable_shared=yes
7343	fi
7344      done
7345      IFS="$lt_save_ifs"
7346      ;;
7347    esac
7348else
7349  enable_shared=yes
7350fi
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360  # Check whether --enable-static was given.
7361if test "${enable_static+set}" = set; then :
7362  enableval=$enable_static; p=${PACKAGE-default}
7363    case $enableval in
7364    yes) enable_static=yes ;;
7365    no) enable_static=no ;;
7366    *)
7367     enable_static=no
7368      # Look at the argument we got.  We use all the common list separators.
7369      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7370      for pkg in $enableval; do
7371	IFS="$lt_save_ifs"
7372	if test "X$pkg" = "X$p"; then
7373	  enable_static=yes
7374	fi
7375      done
7376      IFS="$lt_save_ifs"
7377      ;;
7378    esac
7379else
7380  enable_static=yes
7381fi
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392# Check whether --with-pic was given.
7393if test "${with_pic+set}" = set; then :
7394  withval=$with_pic; lt_p=${PACKAGE-default}
7395    case $withval in
7396    yes|no) pic_mode=$withval ;;
7397    *)
7398      pic_mode=default
7399      # Look at the argument we got.  We use all the common list separators.
7400      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7401      for lt_pkg in $withval; do
7402	IFS="$lt_save_ifs"
7403	if test "X$lt_pkg" = "X$lt_p"; then
7404	  pic_mode=yes
7405	fi
7406      done
7407      IFS="$lt_save_ifs"
7408      ;;
7409    esac
7410else
7411  pic_mode=default
7412fi
7413
7414
7415test -z "$pic_mode" && pic_mode=default
7416
7417
7418
7419
7420
7421
7422
7423  # Check whether --enable-fast-install was given.
7424if test "${enable_fast_install+set}" = set; then :
7425  enableval=$enable_fast_install; p=${PACKAGE-default}
7426    case $enableval in
7427    yes) enable_fast_install=yes ;;
7428    no) enable_fast_install=no ;;
7429    *)
7430      enable_fast_install=no
7431      # Look at the argument we got.  We use all the common list separators.
7432      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7433      for pkg in $enableval; do
7434	IFS="$lt_save_ifs"
7435	if test "X$pkg" = "X$p"; then
7436	  enable_fast_install=yes
7437	fi
7438      done
7439      IFS="$lt_save_ifs"
7440      ;;
7441    esac
7442else
7443  enable_fast_install=yes
7444fi
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456# This can be used to rebuild libtool when needed
7457LIBTOOL_DEPS="$ltmain"
7458
7459# Always use our own libtool.
7460LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491test -z "$LN_S" && LN_S="ln -s"
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506if test -n "${ZSH_VERSION+set}" ; then
7507   setopt NO_GLOB_SUBST
7508fi
7509
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7511$as_echo_n "checking for objdir... " >&6; }
7512if ${lt_cv_objdir+:} false; then :
7513  $as_echo_n "(cached) " >&6
7514else
7515  rm -f .libs 2>/dev/null
7516mkdir .libs 2>/dev/null
7517if test -d .libs; then
7518  lt_cv_objdir=.libs
7519else
7520  # MS-DOS does not allow filenames that begin with a dot.
7521  lt_cv_objdir=_libs
7522fi
7523rmdir .libs 2>/dev/null
7524fi
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7526$as_echo "$lt_cv_objdir" >&6; }
7527objdir=$lt_cv_objdir
7528
7529
7530
7531
7532
7533cat >>confdefs.h <<_ACEOF
7534#define LT_OBJDIR "$lt_cv_objdir/"
7535_ACEOF
7536
7537
7538
7539
7540case $host_os in
7541aix3*)
7542  # AIX sometimes has problems with the GCC collect2 program.  For some
7543  # reason, if we set the COLLECT_NAMES environment variable, the problems
7544  # vanish in a puff of smoke.
7545  if test "X${COLLECT_NAMES+set}" != Xset; then
7546    COLLECT_NAMES=
7547    export COLLECT_NAMES
7548  fi
7549  ;;
7550esac
7551
7552# Global variables:
7553ofile=libtool
7554can_build_shared=yes
7555
7556# All known linkers require a `.a' archive for static linking (except MSVC,
7557# which needs '.lib').
7558libext=a
7559
7560with_gnu_ld="$lt_cv_prog_gnu_ld"
7561
7562old_CC="$CC"
7563old_CFLAGS="$CFLAGS"
7564
7565# Set sane defaults for various variables
7566test -z "$CC" && CC=cc
7567test -z "$LTCC" && LTCC=$CC
7568test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7569test -z "$LD" && LD=ld
7570test -z "$ac_objext" && ac_objext=o
7571
7572for cc_temp in $compiler""; do
7573  case $cc_temp in
7574    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7575    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7576    \-*) ;;
7577    *) break;;
7578  esac
7579done
7580cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7581
7582
7583# Only perform the check for file, if the check method requires it
7584test -z "$MAGIC_CMD" && MAGIC_CMD=file
7585case $deplibs_check_method in
7586file_magic*)
7587  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7588    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7589$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7590if ${lt_cv_path_MAGIC_CMD+:} false; then :
7591  $as_echo_n "(cached) " >&6
7592else
7593  case $MAGIC_CMD in
7594[\\/*] |  ?:[\\/]*)
7595  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7596  ;;
7597*)
7598  lt_save_MAGIC_CMD="$MAGIC_CMD"
7599  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7600  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7601  for ac_dir in $ac_dummy; do
7602    IFS="$lt_save_ifs"
7603    test -z "$ac_dir" && ac_dir=.
7604    if test -f $ac_dir/${ac_tool_prefix}file; then
7605      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7606      if test -n "$file_magic_test_file"; then
7607	case $deplibs_check_method in
7608	"file_magic "*)
7609	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7610	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7611	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7612	    $EGREP "$file_magic_regex" > /dev/null; then
7613	    :
7614	  else
7615	    cat <<_LT_EOF 1>&2
7616
7617*** Warning: the command libtool uses to detect shared libraries,
7618*** $file_magic_cmd, produces output that libtool cannot recognize.
7619*** The result is that libtool may fail to recognize shared libraries
7620*** as such.  This will affect the creation of libtool libraries that
7621*** depend on shared libraries, but programs linked with such libtool
7622*** libraries will work regardless of this problem.  Nevertheless, you
7623*** may want to report the problem to your system manager and/or to
7624*** bug-libtool@gnu.org
7625
7626_LT_EOF
7627	  fi ;;
7628	esac
7629      fi
7630      break
7631    fi
7632  done
7633  IFS="$lt_save_ifs"
7634  MAGIC_CMD="$lt_save_MAGIC_CMD"
7635  ;;
7636esac
7637fi
7638
7639MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7640if test -n "$MAGIC_CMD"; then
7641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7642$as_echo "$MAGIC_CMD" >&6; }
7643else
7644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645$as_echo "no" >&6; }
7646fi
7647
7648
7649
7650
7651
7652if test -z "$lt_cv_path_MAGIC_CMD"; then
7653  if test -n "$ac_tool_prefix"; then
7654    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7655$as_echo_n "checking for file... " >&6; }
7656if ${lt_cv_path_MAGIC_CMD+:} false; then :
7657  $as_echo_n "(cached) " >&6
7658else
7659  case $MAGIC_CMD in
7660[\\/*] |  ?:[\\/]*)
7661  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7662  ;;
7663*)
7664  lt_save_MAGIC_CMD="$MAGIC_CMD"
7665  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7666  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7667  for ac_dir in $ac_dummy; do
7668    IFS="$lt_save_ifs"
7669    test -z "$ac_dir" && ac_dir=.
7670    if test -f $ac_dir/file; then
7671      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7672      if test -n "$file_magic_test_file"; then
7673	case $deplibs_check_method in
7674	"file_magic "*)
7675	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7676	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7677	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7678	    $EGREP "$file_magic_regex" > /dev/null; then
7679	    :
7680	  else
7681	    cat <<_LT_EOF 1>&2
7682
7683*** Warning: the command libtool uses to detect shared libraries,
7684*** $file_magic_cmd, produces output that libtool cannot recognize.
7685*** The result is that libtool may fail to recognize shared libraries
7686*** as such.  This will affect the creation of libtool libraries that
7687*** depend on shared libraries, but programs linked with such libtool
7688*** libraries will work regardless of this problem.  Nevertheless, you
7689*** may want to report the problem to your system manager and/or to
7690*** bug-libtool@gnu.org
7691
7692_LT_EOF
7693	  fi ;;
7694	esac
7695      fi
7696      break
7697    fi
7698  done
7699  IFS="$lt_save_ifs"
7700  MAGIC_CMD="$lt_save_MAGIC_CMD"
7701  ;;
7702esac
7703fi
7704
7705MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7706if test -n "$MAGIC_CMD"; then
7707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7708$as_echo "$MAGIC_CMD" >&6; }
7709else
7710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711$as_echo "no" >&6; }
7712fi
7713
7714
7715  else
7716    MAGIC_CMD=:
7717  fi
7718fi
7719
7720  fi
7721  ;;
7722esac
7723
7724# Use C for the default configuration in the libtool script
7725
7726lt_save_CC="$CC"
7727ac_ext=c
7728ac_cpp='$CPP $CPPFLAGS'
7729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7731ac_compiler_gnu=$ac_cv_c_compiler_gnu
7732
7733
7734# Source file extension for C test sources.
7735ac_ext=c
7736
7737# Object file extension for compiled C test sources.
7738objext=o
7739objext=$objext
7740
7741# Code to be used in simple compile tests
7742lt_simple_compile_test_code="int some_variable = 0;"
7743
7744# Code to be used in simple link tests
7745lt_simple_link_test_code='int main(){return(0);}'
7746
7747
7748
7749
7750
7751
7752
7753# If no C compiler was specified, use CC.
7754LTCC=${LTCC-"$CC"}
7755
7756# If no C compiler flags were specified, use CFLAGS.
7757LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7758
7759# Allow CC to be a program name with arguments.
7760compiler=$CC
7761
7762# Save the default compiler, since it gets overwritten when the other
7763# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7764compiler_DEFAULT=$CC
7765
7766# save warnings/boilerplate of simple test code
7767ac_outfile=conftest.$ac_objext
7768echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7769eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7770_lt_compiler_boilerplate=`cat conftest.err`
7771$RM conftest*
7772
7773ac_outfile=conftest.$ac_objext
7774echo "$lt_simple_link_test_code" >conftest.$ac_ext
7775eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7776_lt_linker_boilerplate=`cat conftest.err`
7777$RM -r conftest*
7778
7779
7780if test -n "$compiler"; then
7781
7782lt_prog_compiler_no_builtin_flag=
7783
7784if test "$GCC" = yes; then
7785  case $cc_basename in
7786  nvcc*)
7787    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7788  *)
7789    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7790  esac
7791
7792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7793$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7794if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7795  $as_echo_n "(cached) " >&6
7796else
7797  lt_cv_prog_compiler_rtti_exceptions=no
7798   ac_outfile=conftest.$ac_objext
7799   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7800   lt_compiler_flag="-fno-rtti -fno-exceptions"
7801   # Insert the option either (1) after the last *FLAGS variable, or
7802   # (2) before a word containing "conftest.", or (3) at the end.
7803   # Note that $ac_compile itself does not contain backslashes and begins
7804   # with a dollar sign (not a hyphen), so the echo should work correctly.
7805   # The option is referenced via a variable to avoid confusing sed.
7806   lt_compile=`echo "$ac_compile" | $SED \
7807   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7808   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7809   -e 's:$: $lt_compiler_flag:'`
7810   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7811   (eval "$lt_compile" 2>conftest.err)
7812   ac_status=$?
7813   cat conftest.err >&5
7814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815   if (exit $ac_status) && test -s "$ac_outfile"; then
7816     # The compiler can only warn and ignore the option if not recognized
7817     # So say no if there are warnings other than the usual output.
7818     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7819     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7820     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7821       lt_cv_prog_compiler_rtti_exceptions=yes
7822     fi
7823   fi
7824   $RM conftest*
7825
7826fi
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7828$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7829
7830if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7831    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7832else
7833    :
7834fi
7835
7836fi
7837
7838
7839
7840
7841
7842
7843  lt_prog_compiler_wl=
7844lt_prog_compiler_pic=
7845lt_prog_compiler_static=
7846
7847
7848  if test "$GCC" = yes; then
7849    lt_prog_compiler_wl='-Wl,'
7850    lt_prog_compiler_static='-static'
7851
7852    case $host_os in
7853      aix*)
7854      # All AIX code is PIC.
7855      if test "$host_cpu" = ia64; then
7856	# AIX 5 now supports IA64 processor
7857	lt_prog_compiler_static='-Bstatic'
7858      fi
7859      ;;
7860
7861    amigaos*)
7862      case $host_cpu in
7863      powerpc)
7864            # see comment about AmigaOS4 .so support
7865            lt_prog_compiler_pic='-fPIC'
7866        ;;
7867      m68k)
7868            # FIXME: we need at least 68020 code to build shared libraries, but
7869            # adding the `-m68020' flag to GCC prevents building anything better,
7870            # like `-m68040'.
7871            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7872        ;;
7873      esac
7874      ;;
7875
7876    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7877      # PIC is the default for these OSes.
7878      ;;
7879
7880    mingw* | cygwin* | pw32* | os2* | cegcc*)
7881      # This hack is so that the source file can tell whether it is being
7882      # built for inclusion in a dll (and should export symbols for example).
7883      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7884      # (--disable-auto-import) libraries
7885      lt_prog_compiler_pic='-DDLL_EXPORT'
7886      ;;
7887
7888    darwin* | rhapsody*)
7889      # PIC is the default on this platform
7890      # Common symbols not allowed in MH_DYLIB files
7891      lt_prog_compiler_pic='-fno-common'
7892      ;;
7893
7894    haiku*)
7895      # PIC is the default for Haiku.
7896      # The "-static" flag exists, but is broken.
7897      lt_prog_compiler_static=
7898      ;;
7899
7900    hpux*)
7901      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7902      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7903      # sets the default TLS model and affects inlining.
7904      case $host_cpu in
7905      hppa*64*)
7906	# +Z the default
7907	;;
7908      *)
7909	lt_prog_compiler_pic='-fPIC'
7910	;;
7911      esac
7912      ;;
7913
7914    interix[3-9]*)
7915      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7916      # Instead, we relocate shared libraries at runtime.
7917      ;;
7918
7919    msdosdjgpp*)
7920      # Just because we use GCC doesn't mean we suddenly get shared libraries
7921      # on systems that don't support them.
7922      lt_prog_compiler_can_build_shared=no
7923      enable_shared=no
7924      ;;
7925
7926    *nto* | *qnx*)
7927      # QNX uses GNU C++, but need to define -shared option too, otherwise
7928      # it will coredump.
7929      lt_prog_compiler_pic='-fPIC -shared'
7930      ;;
7931
7932    sysv4*MP*)
7933      if test -d /usr/nec; then
7934	lt_prog_compiler_pic=-Kconform_pic
7935      fi
7936      ;;
7937
7938    *)
7939      lt_prog_compiler_pic='-fPIC'
7940      ;;
7941    esac
7942
7943    case $cc_basename in
7944    nvcc*) # Cuda Compiler Driver 2.2
7945      lt_prog_compiler_wl='-Xlinker '
7946      if test -n "$lt_prog_compiler_pic"; then
7947        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7948      fi
7949      ;;
7950    esac
7951  else
7952    # PORTME Check for flag to pass linker flags through the system compiler.
7953    case $host_os in
7954    aix*)
7955      lt_prog_compiler_wl='-Wl,'
7956      if test "$host_cpu" = ia64; then
7957	# AIX 5 now supports IA64 processor
7958	lt_prog_compiler_static='-Bstatic'
7959      else
7960	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7961      fi
7962      ;;
7963
7964    mingw* | cygwin* | pw32* | os2* | cegcc*)
7965      # This hack is so that the source file can tell whether it is being
7966      # built for inclusion in a dll (and should export symbols for example).
7967      lt_prog_compiler_pic='-DDLL_EXPORT'
7968      ;;
7969
7970    hpux9* | hpux10* | hpux11*)
7971      lt_prog_compiler_wl='-Wl,'
7972      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7973      # not for PA HP-UX.
7974      case $host_cpu in
7975      hppa*64*|ia64*)
7976	# +Z the default
7977	;;
7978      *)
7979	lt_prog_compiler_pic='+Z'
7980	;;
7981      esac
7982      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7983      lt_prog_compiler_static='${wl}-a ${wl}archive'
7984      ;;
7985
7986    irix5* | irix6* | nonstopux*)
7987      lt_prog_compiler_wl='-Wl,'
7988      # PIC (with -KPIC) is the default.
7989      lt_prog_compiler_static='-non_shared'
7990      ;;
7991
7992    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7993      case $cc_basename in
7994      # old Intel for x86_64 which still supported -KPIC.
7995      ecc*)
7996	lt_prog_compiler_wl='-Wl,'
7997	lt_prog_compiler_pic='-KPIC'
7998	lt_prog_compiler_static='-static'
7999        ;;
8000      # icc used to be incompatible with GCC.
8001      # ICC 10 doesn't accept -KPIC any more.
8002      icc* | ifort*)
8003	lt_prog_compiler_wl='-Wl,'
8004	lt_prog_compiler_pic='-fPIC'
8005	lt_prog_compiler_static='-static'
8006        ;;
8007      # Lahey Fortran 8.1.
8008      lf95*)
8009	lt_prog_compiler_wl='-Wl,'
8010	lt_prog_compiler_pic='--shared'
8011	lt_prog_compiler_static='--static'
8012	;;
8013      nagfor*)
8014	# NAG Fortran compiler
8015	lt_prog_compiler_wl='-Wl,-Wl,,'
8016	lt_prog_compiler_pic='-PIC'
8017	lt_prog_compiler_static='-Bstatic'
8018	;;
8019      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8020        # Portland Group compilers (*not* the Pentium gcc compiler,
8021	# which looks to be a dead project)
8022	lt_prog_compiler_wl='-Wl,'
8023	lt_prog_compiler_pic='-fpic'
8024	lt_prog_compiler_static='-Bstatic'
8025        ;;
8026      ccc*)
8027        lt_prog_compiler_wl='-Wl,'
8028        # All Alpha code is PIC.
8029        lt_prog_compiler_static='-non_shared'
8030        ;;
8031      xl* | bgxl* | bgf* | mpixl*)
8032	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8033	lt_prog_compiler_wl='-Wl,'
8034	lt_prog_compiler_pic='-qpic'
8035	lt_prog_compiler_static='-qstaticlink'
8036	;;
8037      *)
8038	case `$CC -V 2>&1 | sed 5q` in
8039	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8040	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8041	  lt_prog_compiler_pic='-KPIC'
8042	  lt_prog_compiler_static='-Bstatic'
8043	  lt_prog_compiler_wl=''
8044	  ;;
8045	*Sun\ F* | *Sun*Fortran*)
8046	  lt_prog_compiler_pic='-KPIC'
8047	  lt_prog_compiler_static='-Bstatic'
8048	  lt_prog_compiler_wl='-Qoption ld '
8049	  ;;
8050	*Sun\ C*)
8051	  # Sun C 5.9
8052	  lt_prog_compiler_pic='-KPIC'
8053	  lt_prog_compiler_static='-Bstatic'
8054	  lt_prog_compiler_wl='-Wl,'
8055	  ;;
8056        *Intel*\ [CF]*Compiler*)
8057	  lt_prog_compiler_wl='-Wl,'
8058	  lt_prog_compiler_pic='-fPIC'
8059	  lt_prog_compiler_static='-static'
8060	  ;;
8061	*Portland\ Group*)
8062	  lt_prog_compiler_wl='-Wl,'
8063	  lt_prog_compiler_pic='-fpic'
8064	  lt_prog_compiler_static='-Bstatic'
8065	  ;;
8066	esac
8067	;;
8068      esac
8069      ;;
8070
8071    newsos6)
8072      lt_prog_compiler_pic='-KPIC'
8073      lt_prog_compiler_static='-Bstatic'
8074      ;;
8075
8076    *nto* | *qnx*)
8077      # QNX uses GNU C++, but need to define -shared option too, otherwise
8078      # it will coredump.
8079      lt_prog_compiler_pic='-fPIC -shared'
8080      ;;
8081
8082    osf3* | osf4* | osf5*)
8083      lt_prog_compiler_wl='-Wl,'
8084      # All OSF/1 code is PIC.
8085      lt_prog_compiler_static='-non_shared'
8086      ;;
8087
8088    rdos*)
8089      lt_prog_compiler_static='-non_shared'
8090      ;;
8091
8092    solaris*)
8093      lt_prog_compiler_pic='-KPIC'
8094      lt_prog_compiler_static='-Bstatic'
8095      case $cc_basename in
8096      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8097	lt_prog_compiler_wl='-Qoption ld ';;
8098      *)
8099	lt_prog_compiler_wl='-Wl,';;
8100      esac
8101      ;;
8102
8103    sunos4*)
8104      lt_prog_compiler_wl='-Qoption ld '
8105      lt_prog_compiler_pic='-PIC'
8106      lt_prog_compiler_static='-Bstatic'
8107      ;;
8108
8109    sysv4 | sysv4.2uw2* | sysv4.3*)
8110      lt_prog_compiler_wl='-Wl,'
8111      lt_prog_compiler_pic='-KPIC'
8112      lt_prog_compiler_static='-Bstatic'
8113      ;;
8114
8115    sysv4*MP*)
8116      if test -d /usr/nec ;then
8117	lt_prog_compiler_pic='-Kconform_pic'
8118	lt_prog_compiler_static='-Bstatic'
8119      fi
8120      ;;
8121
8122    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8123      lt_prog_compiler_wl='-Wl,'
8124      lt_prog_compiler_pic='-KPIC'
8125      lt_prog_compiler_static='-Bstatic'
8126      ;;
8127
8128    unicos*)
8129      lt_prog_compiler_wl='-Wl,'
8130      lt_prog_compiler_can_build_shared=no
8131      ;;
8132
8133    uts4*)
8134      lt_prog_compiler_pic='-pic'
8135      lt_prog_compiler_static='-Bstatic'
8136      ;;
8137
8138    *)
8139      lt_prog_compiler_can_build_shared=no
8140      ;;
8141    esac
8142  fi
8143
8144case $host_os in
8145  # For platforms which do not support PIC, -DPIC is meaningless:
8146  *djgpp*)
8147    lt_prog_compiler_pic=
8148    ;;
8149  *)
8150    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8151    ;;
8152esac
8153
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8155$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8156if ${lt_cv_prog_compiler_pic+:} false; then :
8157  $as_echo_n "(cached) " >&6
8158else
8159  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8160fi
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8162$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8163lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8164
8165#
8166# Check to make sure the PIC flag actually works.
8167#
8168if test -n "$lt_prog_compiler_pic"; then
8169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8170$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8171if ${lt_cv_prog_compiler_pic_works+:} false; then :
8172  $as_echo_n "(cached) " >&6
8173else
8174  lt_cv_prog_compiler_pic_works=no
8175   ac_outfile=conftest.$ac_objext
8176   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8177   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8178   # Insert the option either (1) after the last *FLAGS variable, or
8179   # (2) before a word containing "conftest.", or (3) at the end.
8180   # Note that $ac_compile itself does not contain backslashes and begins
8181   # with a dollar sign (not a hyphen), so the echo should work correctly.
8182   # The option is referenced via a variable to avoid confusing sed.
8183   lt_compile=`echo "$ac_compile" | $SED \
8184   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8185   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8186   -e 's:$: $lt_compiler_flag:'`
8187   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8188   (eval "$lt_compile" 2>conftest.err)
8189   ac_status=$?
8190   cat conftest.err >&5
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   if (exit $ac_status) && test -s "$ac_outfile"; then
8193     # The compiler can only warn and ignore the option if not recognized
8194     # So say no if there are warnings other than the usual output.
8195     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8196     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8197     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8198       lt_cv_prog_compiler_pic_works=yes
8199     fi
8200   fi
8201   $RM conftest*
8202
8203fi
8204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8205$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8206
8207if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8208    case $lt_prog_compiler_pic in
8209     "" | " "*) ;;
8210     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8211     esac
8212else
8213    lt_prog_compiler_pic=
8214     lt_prog_compiler_can_build_shared=no
8215fi
8216
8217fi
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229#
8230# Check to make sure the static flag actually works.
8231#
8232wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8234$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8235if ${lt_cv_prog_compiler_static_works+:} false; then :
8236  $as_echo_n "(cached) " >&6
8237else
8238  lt_cv_prog_compiler_static_works=no
8239   save_LDFLAGS="$LDFLAGS"
8240   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8241   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8242   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8243     # The linker can only warn and ignore the option if not recognized
8244     # So say no if there are warnings
8245     if test -s conftest.err; then
8246       # Append any errors to the config.log.
8247       cat conftest.err 1>&5
8248       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8249       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8250       if diff conftest.exp conftest.er2 >/dev/null; then
8251         lt_cv_prog_compiler_static_works=yes
8252       fi
8253     else
8254       lt_cv_prog_compiler_static_works=yes
8255     fi
8256   fi
8257   $RM -r conftest*
8258   LDFLAGS="$save_LDFLAGS"
8259
8260fi
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8262$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8263
8264if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8265    :
8266else
8267    lt_prog_compiler_static=
8268fi
8269
8270
8271
8272
8273
8274
8275
8276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8277$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8278if ${lt_cv_prog_compiler_c_o+:} false; then :
8279  $as_echo_n "(cached) " >&6
8280else
8281  lt_cv_prog_compiler_c_o=no
8282   $RM -r conftest 2>/dev/null
8283   mkdir conftest
8284   cd conftest
8285   mkdir out
8286   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8287
8288   lt_compiler_flag="-o out/conftest2.$ac_objext"
8289   # Insert the option either (1) after the last *FLAGS variable, or
8290   # (2) before a word containing "conftest.", or (3) at the end.
8291   # Note that $ac_compile itself does not contain backslashes and begins
8292   # with a dollar sign (not a hyphen), so the echo should work correctly.
8293   lt_compile=`echo "$ac_compile" | $SED \
8294   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8295   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8296   -e 's:$: $lt_compiler_flag:'`
8297   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8298   (eval "$lt_compile" 2>out/conftest.err)
8299   ac_status=$?
8300   cat out/conftest.err >&5
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8303   then
8304     # The compiler can only warn and ignore the option if not recognized
8305     # So say no if there are warnings
8306     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8307     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8308     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8309       lt_cv_prog_compiler_c_o=yes
8310     fi
8311   fi
8312   chmod u+w . 2>&5
8313   $RM conftest*
8314   # SGI C++ compiler will create directory out/ii_files/ for
8315   # template instantiation
8316   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8317   $RM out/* && rmdir out
8318   cd ..
8319   $RM -r conftest
8320   $RM conftest*
8321
8322fi
8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8324$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8325
8326
8327
8328
8329
8330
8331  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8332$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8333if ${lt_cv_prog_compiler_c_o+:} false; then :
8334  $as_echo_n "(cached) " >&6
8335else
8336  lt_cv_prog_compiler_c_o=no
8337   $RM -r conftest 2>/dev/null
8338   mkdir conftest
8339   cd conftest
8340   mkdir out
8341   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8342
8343   lt_compiler_flag="-o out/conftest2.$ac_objext"
8344   # Insert the option either (1) after the last *FLAGS variable, or
8345   # (2) before a word containing "conftest.", or (3) at the end.
8346   # Note that $ac_compile itself does not contain backslashes and begins
8347   # with a dollar sign (not a hyphen), so the echo should work correctly.
8348   lt_compile=`echo "$ac_compile" | $SED \
8349   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8350   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8351   -e 's:$: $lt_compiler_flag:'`
8352   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8353   (eval "$lt_compile" 2>out/conftest.err)
8354   ac_status=$?
8355   cat out/conftest.err >&5
8356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8358   then
8359     # The compiler can only warn and ignore the option if not recognized
8360     # So say no if there are warnings
8361     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8362     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8363     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8364       lt_cv_prog_compiler_c_o=yes
8365     fi
8366   fi
8367   chmod u+w . 2>&5
8368   $RM conftest*
8369   # SGI C++ compiler will create directory out/ii_files/ for
8370   # template instantiation
8371   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8372   $RM out/* && rmdir out
8373   cd ..
8374   $RM -r conftest
8375   $RM conftest*
8376
8377fi
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8379$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8380
8381
8382
8383
8384hard_links="nottested"
8385if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8386  # do not overwrite the value of need_locks provided by the user
8387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8388$as_echo_n "checking if we can lock with hard links... " >&6; }
8389  hard_links=yes
8390  $RM conftest*
8391  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8392  touch conftest.a
8393  ln conftest.a conftest.b 2>&5 || hard_links=no
8394  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8396$as_echo "$hard_links" >&6; }
8397  if test "$hard_links" = no; then
8398    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8399$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8400    need_locks=warn
8401  fi
8402else
8403  need_locks=no
8404fi
8405
8406
8407
8408
8409
8410
8411  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8412$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8413
8414  runpath_var=
8415  allow_undefined_flag=
8416  always_export_symbols=no
8417  archive_cmds=
8418  archive_expsym_cmds=
8419  compiler_needs_object=no
8420  enable_shared_with_static_runtimes=no
8421  export_dynamic_flag_spec=
8422  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8423  hardcode_automatic=no
8424  hardcode_direct=no
8425  hardcode_direct_absolute=no
8426  hardcode_libdir_flag_spec=
8427  hardcode_libdir_separator=
8428  hardcode_minus_L=no
8429  hardcode_shlibpath_var=unsupported
8430  inherit_rpath=no
8431  link_all_deplibs=unknown
8432  module_cmds=
8433  module_expsym_cmds=
8434  old_archive_from_new_cmds=
8435  old_archive_from_expsyms_cmds=
8436  thread_safe_flag_spec=
8437  whole_archive_flag_spec=
8438  # include_expsyms should be a list of space-separated symbols to be *always*
8439  # included in the symbol list
8440  include_expsyms=
8441  # exclude_expsyms can be an extended regexp of symbols to exclude
8442  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8443  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8444  # as well as any symbol that contains `d'.
8445  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8446  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8447  # platforms (ab)use it in PIC code, but their linkers get confused if
8448  # the symbol is explicitly referenced.  Since portable code cannot
8449  # rely on this symbol name, it's probably fine to never include it in
8450  # preloaded symbol tables.
8451  # Exclude shared library initialization/finalization symbols.
8452  extract_expsyms_cmds=
8453
8454  case $host_os in
8455  cygwin* | mingw* | pw32* | cegcc*)
8456    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8457    # When not using gcc, we currently assume that we are using
8458    # Microsoft Visual C++.
8459    if test "$GCC" != yes; then
8460      with_gnu_ld=no
8461    fi
8462    ;;
8463  interix*)
8464    # we just hope/assume this is gcc and not c89 (= MSVC++)
8465    with_gnu_ld=yes
8466    ;;
8467  openbsd*)
8468    with_gnu_ld=no
8469    ;;
8470  esac
8471
8472  ld_shlibs=yes
8473
8474  # On some targets, GNU ld is compatible enough with the native linker
8475  # that we're better off using the native interface for both.
8476  lt_use_gnu_ld_interface=no
8477  if test "$with_gnu_ld" = yes; then
8478    case $host_os in
8479      aix*)
8480	# The AIX port of GNU ld has always aspired to compatibility
8481	# with the native linker.  However, as the warning in the GNU ld
8482	# block says, versions before 2.19.5* couldn't really create working
8483	# shared libraries, regardless of the interface used.
8484	case `$LD -v 2>&1` in
8485	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8486	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8487	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8488	  *)
8489	    lt_use_gnu_ld_interface=yes
8490	    ;;
8491	esac
8492	;;
8493      *)
8494	lt_use_gnu_ld_interface=yes
8495	;;
8496    esac
8497  fi
8498
8499  if test "$lt_use_gnu_ld_interface" = yes; then
8500    # If archive_cmds runs LD, not CC, wlarc should be empty
8501    wlarc='${wl}'
8502
8503    # Set some defaults for GNU ld with shared library support. These
8504    # are reset later if shared libraries are not supported. Putting them
8505    # here allows them to be overridden if necessary.
8506    runpath_var=LD_RUN_PATH
8507    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8508    export_dynamic_flag_spec='${wl}--export-dynamic'
8509    # ancient GNU ld didn't support --whole-archive et. al.
8510    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8511      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8512    else
8513      whole_archive_flag_spec=
8514    fi
8515    supports_anon_versioning=no
8516    case `$LD -v 2>&1` in
8517      *GNU\ gold*) supports_anon_versioning=yes ;;
8518      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8519      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8520      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8521      *\ 2.11.*) ;; # other 2.11 versions
8522      *) supports_anon_versioning=yes ;;
8523    esac
8524
8525    # See if GNU ld supports shared libraries.
8526    case $host_os in
8527    aix[3-9]*)
8528      # On AIX/PPC, the GNU linker is very broken
8529      if test "$host_cpu" != ia64; then
8530	ld_shlibs=no
8531	cat <<_LT_EOF 1>&2
8532
8533*** Warning: the GNU linker, at least up to release 2.19, is reported
8534*** to be unable to reliably create shared libraries on AIX.
8535*** Therefore, libtool is disabling shared libraries support.  If you
8536*** really care for shared libraries, you may want to install binutils
8537*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8538*** You will then need to restart the configuration process.
8539
8540_LT_EOF
8541      fi
8542      ;;
8543
8544    amigaos*)
8545      case $host_cpu in
8546      powerpc)
8547            # see comment about AmigaOS4 .so support
8548            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8549            archive_expsym_cmds=''
8550        ;;
8551      m68k)
8552            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)'
8553            hardcode_libdir_flag_spec='-L$libdir'
8554            hardcode_minus_L=yes
8555        ;;
8556      esac
8557      ;;
8558
8559    beos*)
8560      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8561	allow_undefined_flag=unsupported
8562	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8563	# support --undefined.  This deserves some investigation.  FIXME
8564	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8565      else
8566	ld_shlibs=no
8567      fi
8568      ;;
8569
8570    cygwin* | mingw* | pw32* | cegcc*)
8571      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8572      # as there is no search path for DLLs.
8573      hardcode_libdir_flag_spec='-L$libdir'
8574      export_dynamic_flag_spec='${wl}--export-all-symbols'
8575      allow_undefined_flag=unsupported
8576      always_export_symbols=no
8577      enable_shared_with_static_runtimes=yes
8578      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'
8579      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8580
8581      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8582        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8583	# If the export-symbols file already is a .def file (1st line
8584	# is EXPORTS), use it as is; otherwise, prepend...
8585	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8586	  cp $export_symbols $output_objdir/$soname.def;
8587	else
8588	  echo EXPORTS > $output_objdir/$soname.def;
8589	  cat $export_symbols >> $output_objdir/$soname.def;
8590	fi~
8591	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8592      else
8593	ld_shlibs=no
8594      fi
8595      ;;
8596
8597    haiku*)
8598      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8599      link_all_deplibs=yes
8600      ;;
8601
8602    interix[3-9]*)
8603      hardcode_direct=no
8604      hardcode_shlibpath_var=no
8605      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8606      export_dynamic_flag_spec='${wl}-E'
8607      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8608      # Instead, shared libraries are loaded at an image base (0x10000000 by
8609      # default) and relocated if they conflict, which is a slow very memory
8610      # consuming and fragmenting process.  To avoid this, we pick a random,
8611      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8612      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8613      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8614      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'
8615      ;;
8616
8617    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8618      tmp_diet=no
8619      if test "$host_os" = linux-dietlibc; then
8620	case $cc_basename in
8621	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8622	esac
8623      fi
8624      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8625	 && test "$tmp_diet" = no
8626      then
8627	tmp_addflag=' $pic_flag'
8628	tmp_sharedflag='-shared'
8629	case $cc_basename,$host_cpu in
8630        pgcc*)				# Portland Group C compiler
8631	  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'
8632	  tmp_addflag=' $pic_flag'
8633	  ;;
8634	pgf77* | pgf90* | pgf95* | pgfortran*)
8635					# Portland Group f77 and f90 compilers
8636	  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'
8637	  tmp_addflag=' $pic_flag -Mnomain' ;;
8638	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8639	  tmp_addflag=' -i_dynamic' ;;
8640	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8641	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8642	ifc* | ifort*)			# Intel Fortran compiler
8643	  tmp_addflag=' -nofor_main' ;;
8644	lf95*)				# Lahey Fortran 8.1
8645	  whole_archive_flag_spec=
8646	  tmp_sharedflag='--shared' ;;
8647	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8648	  tmp_sharedflag='-qmkshrobj'
8649	  tmp_addflag= ;;
8650	nvcc*)	# Cuda Compiler Driver 2.2
8651	  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'
8652	  compiler_needs_object=yes
8653	  ;;
8654	esac
8655	case `$CC -V 2>&1 | sed 5q` in
8656	*Sun\ C*)			# Sun C 5.9
8657	  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'
8658	  compiler_needs_object=yes
8659	  tmp_sharedflag='-G' ;;
8660	*Sun\ F*)			# Sun Fortran 8.3
8661	  tmp_sharedflag='-G' ;;
8662	esac
8663	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8664
8665        if test "x$supports_anon_versioning" = xyes; then
8666          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8667	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8668	    echo "local: *; };" >> $output_objdir/$libname.ver~
8669	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8670        fi
8671
8672	case $cc_basename in
8673	xlf* | bgf* | bgxlf* | mpixlf*)
8674	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8675	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8676	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8677	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8678	  if test "x$supports_anon_versioning" = xyes; then
8679	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8680	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8681	      echo "local: *; };" >> $output_objdir/$libname.ver~
8682	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8683	  fi
8684	  ;;
8685	esac
8686      else
8687        ld_shlibs=no
8688      fi
8689      ;;
8690
8691    netbsd*)
8692      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8693	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8694	wlarc=
8695      else
8696	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8697	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8698      fi
8699      ;;
8700
8701    solaris*)
8702      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8703	ld_shlibs=no
8704	cat <<_LT_EOF 1>&2
8705
8706*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8707*** create shared libraries on Solaris systems.  Therefore, libtool
8708*** is disabling shared libraries support.  We urge you to upgrade GNU
8709*** binutils to release 2.9.1 or newer.  Another option is to modify
8710*** your PATH or compiler configuration so that the native linker is
8711*** used, and then restart.
8712
8713_LT_EOF
8714      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8715	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8716	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8717      else
8718	ld_shlibs=no
8719      fi
8720      ;;
8721
8722    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8723      case `$LD -v 2>&1` in
8724        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8725	ld_shlibs=no
8726	cat <<_LT_EOF 1>&2
8727
8728*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8729*** reliably create shared libraries on SCO systems.  Therefore, libtool
8730*** is disabling shared libraries support.  We urge you to upgrade GNU
8731*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8732*** your PATH or compiler configuration so that the native linker is
8733*** used, and then restart.
8734
8735_LT_EOF
8736	;;
8737	*)
8738	  # For security reasons, it is highly recommended that you always
8739	  # use absolute paths for naming shared libraries, and exclude the
8740	  # DT_RUNPATH tag from executables and libraries.  But doing so
8741	  # requires that you compile everything twice, which is a pain.
8742	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8743	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8744	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8745	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8746	  else
8747	    ld_shlibs=no
8748	  fi
8749	;;
8750      esac
8751      ;;
8752
8753    sunos4*)
8754      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8755      wlarc=
8756      hardcode_direct=yes
8757      hardcode_shlibpath_var=no
8758      ;;
8759
8760    *)
8761      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8762	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8763	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8764      else
8765	ld_shlibs=no
8766      fi
8767      ;;
8768    esac
8769
8770    if test "$ld_shlibs" = no; then
8771      runpath_var=
8772      hardcode_libdir_flag_spec=
8773      export_dynamic_flag_spec=
8774      whole_archive_flag_spec=
8775    fi
8776  else
8777    # PORTME fill in a description of your system's linker (not GNU ld)
8778    case $host_os in
8779    aix3*)
8780      allow_undefined_flag=unsupported
8781      always_export_symbols=yes
8782      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'
8783      # Note: this linker hardcodes the directories in LIBPATH if there
8784      # are no directories specified by -L.
8785      hardcode_minus_L=yes
8786      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8787	# Neither direct hardcoding nor static linking is supported with a
8788	# broken collect2.
8789	hardcode_direct=unsupported
8790      fi
8791      ;;
8792
8793    aix[4-9]*)
8794      if test "$host_cpu" = ia64; then
8795	# On IA64, the linker does run time linking by default, so we don't
8796	# have to do anything special.
8797	aix_use_runtimelinking=no
8798	exp_sym_flag='-Bexport'
8799	no_entry_flag=""
8800      else
8801	# If we're using GNU nm, then we don't want the "-C" option.
8802	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8803	# Also, AIX nm treats weak defined symbols like other global
8804	# defined symbols, whereas GNU nm marks them as "W".
8805	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8806	  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'
8807	else
8808	  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'
8809	fi
8810	aix_use_runtimelinking=no
8811
8812	# Test if we are trying to use run time linking or normal
8813	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8814	# need to do runtime linking.
8815	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8816	  for ld_flag in $LDFLAGS; do
8817	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8818	    aix_use_runtimelinking=yes
8819	    break
8820	  fi
8821	  done
8822	  ;;
8823	esac
8824
8825	exp_sym_flag='-bexport'
8826	no_entry_flag='-bnoentry'
8827      fi
8828
8829      # When large executables or shared objects are built, AIX ld can
8830      # have problems creating the table of contents.  If linking a library
8831      # or program results in "error TOC overflow" add -mminimal-toc to
8832      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8833      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8834
8835      archive_cmds=''
8836      hardcode_direct=yes
8837      hardcode_direct_absolute=yes
8838      hardcode_libdir_separator=':'
8839      link_all_deplibs=yes
8840      file_list_spec='${wl}-f,'
8841
8842      if test "$GCC" = yes; then
8843	case $host_os in aix4.[012]|aix4.[012].*)
8844	# We only want to do this on AIX 4.2 and lower, the check
8845	# below for broken collect2 doesn't work under 4.3+
8846	  collect2name=`${CC} -print-prog-name=collect2`
8847	  if test -f "$collect2name" &&
8848	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8849	  then
8850	  # We have reworked collect2
8851	  :
8852	  else
8853	  # We have old collect2
8854	  hardcode_direct=unsupported
8855	  # It fails to find uninstalled libraries when the uninstalled
8856	  # path is not listed in the libpath.  Setting hardcode_minus_L
8857	  # to unsupported forces relinking
8858	  hardcode_minus_L=yes
8859	  hardcode_libdir_flag_spec='-L$libdir'
8860	  hardcode_libdir_separator=
8861	  fi
8862	  ;;
8863	esac
8864	shared_flag='-shared'
8865	if test "$aix_use_runtimelinking" = yes; then
8866	  shared_flag="$shared_flag "'${wl}-G'
8867	fi
8868      else
8869	# not using gcc
8870	if test "$host_cpu" = ia64; then
8871	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8872	# chokes on -Wl,-G. The following line is correct:
8873	  shared_flag='-G'
8874	else
8875	  if test "$aix_use_runtimelinking" = yes; then
8876	    shared_flag='${wl}-G'
8877	  else
8878	    shared_flag='${wl}-bM:SRE'
8879	  fi
8880	fi
8881      fi
8882
8883      export_dynamic_flag_spec='${wl}-bexpall'
8884      # It seems that -bexpall does not export symbols beginning with
8885      # underscore (_), so it is better to generate a list of symbols to export.
8886      always_export_symbols=yes
8887      if test "$aix_use_runtimelinking" = yes; then
8888	# Warning - without using the other runtime loading flags (-brtl),
8889	# -berok will link without error, but may produce a broken library.
8890	allow_undefined_flag='-berok'
8891        # Determine the default libpath from the value encoded in an
8892        # empty executable.
8893        if test "${lt_cv_aix_libpath+set}" = set; then
8894  aix_libpath=$lt_cv_aix_libpath
8895else
8896  if ${lt_cv_aix_libpath_+:} false; then :
8897  $as_echo_n "(cached) " >&6
8898else
8899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900/* end confdefs.h.  */
8901
8902int
8903main ()
8904{
8905
8906  ;
8907  return 0;
8908}
8909_ACEOF
8910if ac_fn_c_try_link "$LINENO"; then :
8911
8912  lt_aix_libpath_sed='
8913      /Import File Strings/,/^$/ {
8914	  /^0/ {
8915	      s/^0  *\([^ ]*\) *$/\1/
8916	      p
8917	  }
8918      }'
8919  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8920  # Check for a 64-bit object if we didn't find anything.
8921  if test -z "$lt_cv_aix_libpath_"; then
8922    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8923  fi
8924fi
8925rm -f core conftest.err conftest.$ac_objext \
8926    conftest$ac_exeext conftest.$ac_ext
8927  if test -z "$lt_cv_aix_libpath_"; then
8928    lt_cv_aix_libpath_="/usr/lib:/lib"
8929  fi
8930
8931fi
8932
8933  aix_libpath=$lt_cv_aix_libpath_
8934fi
8935
8936        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8937        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"
8938      else
8939	if test "$host_cpu" = ia64; then
8940	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8941	  allow_undefined_flag="-z nodefs"
8942	  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"
8943	else
8944	 # Determine the default libpath from the value encoded in an
8945	 # empty executable.
8946	 if test "${lt_cv_aix_libpath+set}" = set; then
8947  aix_libpath=$lt_cv_aix_libpath
8948else
8949  if ${lt_cv_aix_libpath_+:} false; then :
8950  $as_echo_n "(cached) " >&6
8951else
8952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953/* end confdefs.h.  */
8954
8955int
8956main ()
8957{
8958
8959  ;
8960  return 0;
8961}
8962_ACEOF
8963if ac_fn_c_try_link "$LINENO"; then :
8964
8965  lt_aix_libpath_sed='
8966      /Import File Strings/,/^$/ {
8967	  /^0/ {
8968	      s/^0  *\([^ ]*\) *$/\1/
8969	      p
8970	  }
8971      }'
8972  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8973  # Check for a 64-bit object if we didn't find anything.
8974  if test -z "$lt_cv_aix_libpath_"; then
8975    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8976  fi
8977fi
8978rm -f core conftest.err conftest.$ac_objext \
8979    conftest$ac_exeext conftest.$ac_ext
8980  if test -z "$lt_cv_aix_libpath_"; then
8981    lt_cv_aix_libpath_="/usr/lib:/lib"
8982  fi
8983
8984fi
8985
8986  aix_libpath=$lt_cv_aix_libpath_
8987fi
8988
8989	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8990	  # Warning - without using the other run time loading flags,
8991	  # -berok will link without error, but may produce a broken library.
8992	  no_undefined_flag=' ${wl}-bernotok'
8993	  allow_undefined_flag=' ${wl}-berok'
8994	  if test "$with_gnu_ld" = yes; then
8995	    # We only use this code for GNU lds that support --whole-archive.
8996	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8997	  else
8998	    # Exported symbols can be pulled into shared objects from archives
8999	    whole_archive_flag_spec='$convenience'
9000	  fi
9001	  archive_cmds_need_lc=yes
9002	  # This is similar to how AIX traditionally builds its shared libraries.
9003	  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'
9004	fi
9005      fi
9006      ;;
9007
9008    amigaos*)
9009      case $host_cpu in
9010      powerpc)
9011            # see comment about AmigaOS4 .so support
9012            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9013            archive_expsym_cmds=''
9014        ;;
9015      m68k)
9016            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)'
9017            hardcode_libdir_flag_spec='-L$libdir'
9018            hardcode_minus_L=yes
9019        ;;
9020      esac
9021      ;;
9022
9023    bsdi[45]*)
9024      export_dynamic_flag_spec=-rdynamic
9025      ;;
9026
9027    cygwin* | mingw* | pw32* | cegcc*)
9028      # When not using gcc, we currently assume that we are using
9029      # Microsoft Visual C++.
9030      # hardcode_libdir_flag_spec is actually meaningless, as there is
9031      # no search path for DLLs.
9032      case $cc_basename in
9033      cl*)
9034	# Native MSVC
9035	hardcode_libdir_flag_spec=' '
9036	allow_undefined_flag=unsupported
9037	always_export_symbols=yes
9038	file_list_spec='@'
9039	# Tell ltmain to make .lib files, not .a files.
9040	libext=lib
9041	# Tell ltmain to make .dll files, not .so files.
9042	shrext_cmds=".dll"
9043	# FIXME: Setting linknames here is a bad hack.
9044	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9045	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9046	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9047	  else
9048	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9049	  fi~
9050	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9051	  linknames='
9052	# The linker will not automatically build a static lib if we build a DLL.
9053	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9054	enable_shared_with_static_runtimes=yes
9055	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9056	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9057	# Don't use ranlib
9058	old_postinstall_cmds='chmod 644 $oldlib'
9059	postlink_cmds='lt_outputfile="@OUTPUT@"~
9060	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9061	  case $lt_outputfile in
9062	    *.exe|*.EXE) ;;
9063	    *)
9064	      lt_outputfile="$lt_outputfile.exe"
9065	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9066	      ;;
9067	  esac~
9068	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9069	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9070	    $RM "$lt_outputfile.manifest";
9071	  fi'
9072	;;
9073      *)
9074	# Assume MSVC wrapper
9075	hardcode_libdir_flag_spec=' '
9076	allow_undefined_flag=unsupported
9077	# Tell ltmain to make .lib files, not .a files.
9078	libext=lib
9079	# Tell ltmain to make .dll files, not .so files.
9080	shrext_cmds=".dll"
9081	# FIXME: Setting linknames here is a bad hack.
9082	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9083	# The linker will automatically build a .lib file if we build a DLL.
9084	old_archive_from_new_cmds='true'
9085	# FIXME: Should let the user specify the lib program.
9086	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9087	enable_shared_with_static_runtimes=yes
9088	;;
9089      esac
9090      ;;
9091
9092    darwin* | rhapsody*)
9093
9094
9095  archive_cmds_need_lc=no
9096  hardcode_direct=no
9097  hardcode_automatic=yes
9098  hardcode_shlibpath_var=unsupported
9099  if test "$lt_cv_ld_force_load" = "yes"; then
9100    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\"`'
9101
9102  else
9103    whole_archive_flag_spec=''
9104  fi
9105  link_all_deplibs=yes
9106  allow_undefined_flag="$_lt_dar_allow_undefined"
9107  case $cc_basename in
9108     ifort*) _lt_dar_can_shared=yes ;;
9109     *) _lt_dar_can_shared=$GCC ;;
9110  esac
9111  if test "$_lt_dar_can_shared" = "yes"; then
9112    output_verbose_link_cmd=func_echo_all
9113    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9114    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9115    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}"
9116    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}"
9117
9118  else
9119  ld_shlibs=no
9120  fi
9121
9122      ;;
9123
9124    dgux*)
9125      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9126      hardcode_libdir_flag_spec='-L$libdir'
9127      hardcode_shlibpath_var=no
9128      ;;
9129
9130    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9131    # support.  Future versions do this automatically, but an explicit c++rt0.o
9132    # does not break anything, and helps significantly (at the cost of a little
9133    # extra space).
9134    freebsd2.2*)
9135      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9136      hardcode_libdir_flag_spec='-R$libdir'
9137      hardcode_direct=yes
9138      hardcode_shlibpath_var=no
9139      ;;
9140
9141    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9142    freebsd2.*)
9143      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9144      hardcode_direct=yes
9145      hardcode_minus_L=yes
9146      hardcode_shlibpath_var=no
9147      ;;
9148
9149    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9150    freebsd* | dragonfly*)
9151      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9152      hardcode_libdir_flag_spec='-R$libdir'
9153      hardcode_direct=yes
9154      hardcode_shlibpath_var=no
9155      ;;
9156
9157    hpux9*)
9158      if test "$GCC" = yes; then
9159	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'
9160      else
9161	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'
9162      fi
9163      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9164      hardcode_libdir_separator=:
9165      hardcode_direct=yes
9166
9167      # hardcode_minus_L: Not really in the search PATH,
9168      # but as the default location of the library.
9169      hardcode_minus_L=yes
9170      export_dynamic_flag_spec='${wl}-E'
9171      ;;
9172
9173    hpux10*)
9174      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9175	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9176      else
9177	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9178      fi
9179      if test "$with_gnu_ld" = no; then
9180	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9181	hardcode_libdir_separator=:
9182	hardcode_direct=yes
9183	hardcode_direct_absolute=yes
9184	export_dynamic_flag_spec='${wl}-E'
9185	# hardcode_minus_L: Not really in the search PATH,
9186	# but as the default location of the library.
9187	hardcode_minus_L=yes
9188      fi
9189      ;;
9190
9191    hpux11*)
9192      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9193	case $host_cpu in
9194	hppa*64*)
9195	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9196	  ;;
9197	ia64*)
9198	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9199	  ;;
9200	*)
9201	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9202	  ;;
9203	esac
9204      else
9205	case $host_cpu in
9206	hppa*64*)
9207	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9208	  ;;
9209	ia64*)
9210	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9211	  ;;
9212	*)
9213
9214	  # Older versions of the 11.00 compiler do not understand -b yet
9215	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9216	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9217$as_echo_n "checking if $CC understands -b... " >&6; }
9218if ${lt_cv_prog_compiler__b+:} false; then :
9219  $as_echo_n "(cached) " >&6
9220else
9221  lt_cv_prog_compiler__b=no
9222   save_LDFLAGS="$LDFLAGS"
9223   LDFLAGS="$LDFLAGS -b"
9224   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9225   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9226     # The linker can only warn and ignore the option if not recognized
9227     # So say no if there are warnings
9228     if test -s conftest.err; then
9229       # Append any errors to the config.log.
9230       cat conftest.err 1>&5
9231       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9232       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9233       if diff conftest.exp conftest.er2 >/dev/null; then
9234         lt_cv_prog_compiler__b=yes
9235       fi
9236     else
9237       lt_cv_prog_compiler__b=yes
9238     fi
9239   fi
9240   $RM -r conftest*
9241   LDFLAGS="$save_LDFLAGS"
9242
9243fi
9244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9245$as_echo "$lt_cv_prog_compiler__b" >&6; }
9246
9247if test x"$lt_cv_prog_compiler__b" = xyes; then
9248    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9249else
9250    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9251fi
9252
9253	  ;;
9254	esac
9255      fi
9256      if test "$with_gnu_ld" = no; then
9257	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9258	hardcode_libdir_separator=:
9259
9260	case $host_cpu in
9261	hppa*64*|ia64*)
9262	  hardcode_direct=no
9263	  hardcode_shlibpath_var=no
9264	  ;;
9265	*)
9266	  hardcode_direct=yes
9267	  hardcode_direct_absolute=yes
9268	  export_dynamic_flag_spec='${wl}-E'
9269
9270	  # hardcode_minus_L: Not really in the search PATH,
9271	  # but as the default location of the library.
9272	  hardcode_minus_L=yes
9273	  ;;
9274	esac
9275      fi
9276      ;;
9277
9278    irix5* | irix6* | nonstopux*)
9279      if test "$GCC" = yes; then
9280	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'
9281	# Try to use the -exported_symbol ld option, if it does not
9282	# work, assume that -exports_file does not work either and
9283	# implicitly export all symbols.
9284	# This should be the same for all languages, so no per-tag cache variable.
9285	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9286$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9287if ${lt_cv_irix_exported_symbol+:} false; then :
9288  $as_echo_n "(cached) " >&6
9289else
9290  save_LDFLAGS="$LDFLAGS"
9291	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9292	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293/* end confdefs.h.  */
9294int foo (void) { return 0; }
9295_ACEOF
9296if ac_fn_c_try_link "$LINENO"; then :
9297  lt_cv_irix_exported_symbol=yes
9298else
9299  lt_cv_irix_exported_symbol=no
9300fi
9301rm -f core conftest.err conftest.$ac_objext \
9302    conftest$ac_exeext conftest.$ac_ext
9303           LDFLAGS="$save_LDFLAGS"
9304fi
9305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9306$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9307	if test "$lt_cv_irix_exported_symbol" = yes; then
9308          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'
9309	fi
9310      else
9311	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'
9312	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'
9313      fi
9314      archive_cmds_need_lc='no'
9315      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9316      hardcode_libdir_separator=:
9317      inherit_rpath=yes
9318      link_all_deplibs=yes
9319      ;;
9320
9321    netbsd*)
9322      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9323	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9324      else
9325	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9326      fi
9327      hardcode_libdir_flag_spec='-R$libdir'
9328      hardcode_direct=yes
9329      hardcode_shlibpath_var=no
9330      ;;
9331
9332    newsos6)
9333      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9334      hardcode_direct=yes
9335      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9336      hardcode_libdir_separator=:
9337      hardcode_shlibpath_var=no
9338      ;;
9339
9340    *nto* | *qnx*)
9341      ;;
9342
9343    openbsd*)
9344      if test -f /usr/libexec/ld.so; then
9345	hardcode_direct=yes
9346	hardcode_shlibpath_var=no
9347	hardcode_direct_absolute=yes
9348	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9349	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9350	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9351	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9352	  export_dynamic_flag_spec='${wl}-E'
9353	else
9354	  case $host_os in
9355	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9356	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9357	     hardcode_libdir_flag_spec='-R$libdir'
9358	     ;;
9359	   *)
9360	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9361	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9362	     ;;
9363	  esac
9364	fi
9365      else
9366	ld_shlibs=no
9367      fi
9368      ;;
9369
9370    os2*)
9371      hardcode_libdir_flag_spec='-L$libdir'
9372      hardcode_minus_L=yes
9373      allow_undefined_flag=unsupported
9374      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'
9375      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9376      ;;
9377
9378    osf3*)
9379      if test "$GCC" = yes; then
9380	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9381	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'
9382      else
9383	allow_undefined_flag=' -expect_unresolved \*'
9384	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'
9385      fi
9386      archive_cmds_need_lc='no'
9387      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9388      hardcode_libdir_separator=:
9389      ;;
9390
9391    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9392      if test "$GCC" = yes; then
9393	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9394	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'
9395	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9396      else
9397	allow_undefined_flag=' -expect_unresolved \*'
9398	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'
9399	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~
9400	$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'
9401
9402	# Both c and cxx compiler support -rpath directly
9403	hardcode_libdir_flag_spec='-rpath $libdir'
9404      fi
9405      archive_cmds_need_lc='no'
9406      hardcode_libdir_separator=:
9407      ;;
9408
9409    solaris*)
9410      no_undefined_flag=' -z defs'
9411      if test "$GCC" = yes; then
9412	wlarc='${wl}'
9413	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9414	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9415	  $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'
9416      else
9417	case `$CC -V 2>&1` in
9418	*"Compilers 5.0"*)
9419	  wlarc=''
9420	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9421	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9422	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9423	  ;;
9424	*)
9425	  wlarc='${wl}'
9426	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9427	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9428	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9429	  ;;
9430	esac
9431      fi
9432      hardcode_libdir_flag_spec='-R$libdir'
9433      hardcode_shlibpath_var=no
9434      case $host_os in
9435      solaris2.[0-5] | solaris2.[0-5].*) ;;
9436      *)
9437	# The compiler driver will combine and reorder linker options,
9438	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9439	# but is careful enough not to reorder.
9440	# Supported since Solaris 2.6 (maybe 2.5.1?)
9441	if test "$GCC" = yes; then
9442	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9443	else
9444	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9445	fi
9446	;;
9447      esac
9448      link_all_deplibs=yes
9449      ;;
9450
9451    sunos4*)
9452      if test "x$host_vendor" = xsequent; then
9453	# Use $CC to link under sequent, because it throws in some extra .o
9454	# files that make .init and .fini sections work.
9455	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9456      else
9457	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9458      fi
9459      hardcode_libdir_flag_spec='-L$libdir'
9460      hardcode_direct=yes
9461      hardcode_minus_L=yes
9462      hardcode_shlibpath_var=no
9463      ;;
9464
9465    sysv4)
9466      case $host_vendor in
9467	sni)
9468	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9469	  hardcode_direct=yes # is this really true???
9470	;;
9471	siemens)
9472	  ## LD is ld it makes a PLAMLIB
9473	  ## CC just makes a GrossModule.
9474	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9475	  reload_cmds='$CC -r -o $output$reload_objs'
9476	  hardcode_direct=no
9477        ;;
9478	motorola)
9479	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9480	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9481	;;
9482      esac
9483      runpath_var='LD_RUN_PATH'
9484      hardcode_shlibpath_var=no
9485      ;;
9486
9487    sysv4.3*)
9488      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9489      hardcode_shlibpath_var=no
9490      export_dynamic_flag_spec='-Bexport'
9491      ;;
9492
9493    sysv4*MP*)
9494      if test -d /usr/nec; then
9495	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9496	hardcode_shlibpath_var=no
9497	runpath_var=LD_RUN_PATH
9498	hardcode_runpath_var=yes
9499	ld_shlibs=yes
9500      fi
9501      ;;
9502
9503    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9504      no_undefined_flag='${wl}-z,text'
9505      archive_cmds_need_lc=no
9506      hardcode_shlibpath_var=no
9507      runpath_var='LD_RUN_PATH'
9508
9509      if test "$GCC" = yes; then
9510	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9512      else
9513	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9514	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9515      fi
9516      ;;
9517
9518    sysv5* | sco3.2v5* | sco5v6*)
9519      # Note: We can NOT use -z defs as we might desire, because we do not
9520      # link with -lc, and that would cause any symbols used from libc to
9521      # always be unresolved, which means just about no library would
9522      # ever link correctly.  If we're not using GNU ld we use -z text
9523      # though, which does catch some bad symbols but isn't as heavy-handed
9524      # as -z defs.
9525      no_undefined_flag='${wl}-z,text'
9526      allow_undefined_flag='${wl}-z,nodefs'
9527      archive_cmds_need_lc=no
9528      hardcode_shlibpath_var=no
9529      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9530      hardcode_libdir_separator=':'
9531      link_all_deplibs=yes
9532      export_dynamic_flag_spec='${wl}-Bexport'
9533      runpath_var='LD_RUN_PATH'
9534
9535      if test "$GCC" = yes; then
9536	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9537	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9538      else
9539	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9540	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9541      fi
9542      ;;
9543
9544    uts4*)
9545      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9546      hardcode_libdir_flag_spec='-L$libdir'
9547      hardcode_shlibpath_var=no
9548      ;;
9549
9550    *)
9551      ld_shlibs=no
9552      ;;
9553    esac
9554
9555    if test x$host_vendor = xsni; then
9556      case $host in
9557      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9558	export_dynamic_flag_spec='${wl}-Blargedynsym'
9559	;;
9560      esac
9561    fi
9562  fi
9563
9564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9565$as_echo "$ld_shlibs" >&6; }
9566test "$ld_shlibs" = no && can_build_shared=no
9567
9568with_gnu_ld=$with_gnu_ld
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584#
9585# Do we need to explicitly link libc?
9586#
9587case "x$archive_cmds_need_lc" in
9588x|xyes)
9589  # Assume -lc should be added
9590  archive_cmds_need_lc=yes
9591
9592  if test "$enable_shared" = yes && test "$GCC" = yes; then
9593    case $archive_cmds in
9594    *'~'*)
9595      # FIXME: we may have to deal with multi-command sequences.
9596      ;;
9597    '$CC '*)
9598      # Test whether the compiler implicitly links with -lc since on some
9599      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9600      # to ld, don't add -lc before -lgcc.
9601      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9602$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9603if ${lt_cv_archive_cmds_need_lc+:} false; then :
9604  $as_echo_n "(cached) " >&6
9605else
9606  $RM conftest*
9607	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9608
9609	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9610  (eval $ac_compile) 2>&5
9611  ac_status=$?
9612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9613  test $ac_status = 0; } 2>conftest.err; then
9614	  soname=conftest
9615	  lib=conftest
9616	  libobjs=conftest.$ac_objext
9617	  deplibs=
9618	  wl=$lt_prog_compiler_wl
9619	  pic_flag=$lt_prog_compiler_pic
9620	  compiler_flags=-v
9621	  linker_flags=-v
9622	  verstring=
9623	  output_objdir=.
9624	  libname=conftest
9625	  lt_save_allow_undefined_flag=$allow_undefined_flag
9626	  allow_undefined_flag=
9627	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9628  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9629  ac_status=$?
9630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9631  test $ac_status = 0; }
9632	  then
9633	    lt_cv_archive_cmds_need_lc=no
9634	  else
9635	    lt_cv_archive_cmds_need_lc=yes
9636	  fi
9637	  allow_undefined_flag=$lt_save_allow_undefined_flag
9638	else
9639	  cat conftest.err 1>&5
9640	fi
9641	$RM conftest*
9642
9643fi
9644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9645$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9646      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9647      ;;
9648    esac
9649  fi
9650  ;;
9651esac
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9805$as_echo_n "checking dynamic linker characteristics... " >&6; }
9806
9807if test "$GCC" = yes; then
9808  case $host_os in
9809    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9810    *) lt_awk_arg="/^libraries:/" ;;
9811  esac
9812  case $host_os in
9813    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9814    *) lt_sed_strip_eq="s,=/,/,g" ;;
9815  esac
9816  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9817  case $lt_search_path_spec in
9818  *\;*)
9819    # if the path contains ";" then we assume it to be the separator
9820    # otherwise default to the standard path separator (i.e. ":") - it is
9821    # assumed that no part of a normal pathname contains ";" but that should
9822    # okay in the real world where ";" in dirpaths is itself problematic.
9823    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9824    ;;
9825  *)
9826    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9827    ;;
9828  esac
9829  # Ok, now we have the path, separated by spaces, we can step through it
9830  # and add multilib dir if necessary.
9831  lt_tmp_lt_search_path_spec=
9832  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9833  for lt_sys_path in $lt_search_path_spec; do
9834    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9835      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9836    else
9837      test -d "$lt_sys_path" && \
9838	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9839    fi
9840  done
9841  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9842BEGIN {RS=" "; FS="/|\n";} {
9843  lt_foo="";
9844  lt_count=0;
9845  for (lt_i = NF; lt_i > 0; lt_i--) {
9846    if ($lt_i != "" && $lt_i != ".") {
9847      if ($lt_i == "..") {
9848        lt_count++;
9849      } else {
9850        if (lt_count == 0) {
9851          lt_foo="/" $lt_i lt_foo;
9852        } else {
9853          lt_count--;
9854        }
9855      }
9856    }
9857  }
9858  if (lt_foo != "") { lt_freq[lt_foo]++; }
9859  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9860}'`
9861  # AWK program above erroneously prepends '/' to C:/dos/paths
9862  # for these hosts.
9863  case $host_os in
9864    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9865      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9866  esac
9867  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9868else
9869  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9870fi
9871library_names_spec=
9872libname_spec='lib$name'
9873soname_spec=
9874shrext_cmds=".so"
9875postinstall_cmds=
9876postuninstall_cmds=
9877finish_cmds=
9878finish_eval=
9879shlibpath_var=
9880shlibpath_overrides_runpath=unknown
9881version_type=none
9882dynamic_linker="$host_os ld.so"
9883sys_lib_dlsearch_path_spec="/lib /usr/lib"
9884need_lib_prefix=unknown
9885hardcode_into_libs=no
9886
9887# when you set need_version to no, make sure it does not cause -set_version
9888# flags to be left without arguments
9889need_version=unknown
9890
9891case $host_os in
9892aix3*)
9893  version_type=linux # correct to gnu/linux during the next big refactor
9894  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9895  shlibpath_var=LIBPATH
9896
9897  # AIX 3 has no versioning support, so we append a major version to the name.
9898  soname_spec='${libname}${release}${shared_ext}$major'
9899  ;;
9900
9901aix[4-9]*)
9902  version_type=linux # correct to gnu/linux during the next big refactor
9903  need_lib_prefix=no
9904  need_version=no
9905  hardcode_into_libs=yes
9906  if test "$host_cpu" = ia64; then
9907    # AIX 5 supports IA64
9908    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9909    shlibpath_var=LD_LIBRARY_PATH
9910  else
9911    # With GCC up to 2.95.x, collect2 would create an import file
9912    # for dependence libraries.  The import file would start with
9913    # the line `#! .'.  This would cause the generated library to
9914    # depend on `.', always an invalid library.  This was fixed in
9915    # development snapshots of GCC prior to 3.0.
9916    case $host_os in
9917      aix4 | aix4.[01] | aix4.[01].*)
9918      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9919	   echo ' yes '
9920	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9921	:
9922      else
9923	can_build_shared=no
9924      fi
9925      ;;
9926    esac
9927    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9928    # soname into executable. Probably we can add versioning support to
9929    # collect2, so additional links can be useful in future.
9930    if test "$aix_use_runtimelinking" = yes; then
9931      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9932      # instead of lib<name>.a to let people know that these are not
9933      # typical AIX shared libraries.
9934      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935    else
9936      # We preserve .a as extension for shared libraries through AIX4.2
9937      # and later when we are not doing run time linking.
9938      library_names_spec='${libname}${release}.a $libname.a'
9939      soname_spec='${libname}${release}${shared_ext}$major'
9940    fi
9941    shlibpath_var=LIBPATH
9942  fi
9943  ;;
9944
9945amigaos*)
9946  case $host_cpu in
9947  powerpc)
9948    # Since July 2007 AmigaOS4 officially supports .so libraries.
9949    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9950    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9951    ;;
9952  m68k)
9953    library_names_spec='$libname.ixlibrary $libname.a'
9954    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9955    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'
9956    ;;
9957  esac
9958  ;;
9959
9960beos*)
9961  library_names_spec='${libname}${shared_ext}'
9962  dynamic_linker="$host_os ld.so"
9963  shlibpath_var=LIBRARY_PATH
9964  ;;
9965
9966bsdi[45]*)
9967  version_type=linux # correct to gnu/linux during the next big refactor
9968  need_version=no
9969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9970  soname_spec='${libname}${release}${shared_ext}$major'
9971  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9972  shlibpath_var=LD_LIBRARY_PATH
9973  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9974  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9975  # the default ld.so.conf also contains /usr/contrib/lib and
9976  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9977  # libtool to hard-code these into programs
9978  ;;
9979
9980cygwin* | mingw* | pw32* | cegcc*)
9981  version_type=windows
9982  shrext_cmds=".dll"
9983  need_version=no
9984  need_lib_prefix=no
9985
9986  case $GCC,$cc_basename in
9987  yes,*)
9988    # gcc
9989    library_names_spec='$libname.dll.a'
9990    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9991    postinstall_cmds='base_file=`basename \${file}`~
9992      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9993      dldir=$destdir/`dirname \$dlpath`~
9994      test -d \$dldir || mkdir -p \$dldir~
9995      $install_prog $dir/$dlname \$dldir/$dlname~
9996      chmod a+x \$dldir/$dlname~
9997      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9998        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9999      fi'
10000    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10001      dlpath=$dir/\$dldll~
10002       $RM \$dlpath'
10003    shlibpath_overrides_runpath=yes
10004
10005    case $host_os in
10006    cygwin*)
10007      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10008      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10009
10010      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10011      ;;
10012    mingw* | cegcc*)
10013      # MinGW DLLs use traditional 'lib' prefix
10014      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10015      ;;
10016    pw32*)
10017      # pw32 DLLs use 'pw' prefix rather than 'lib'
10018      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10019      ;;
10020    esac
10021    dynamic_linker='Win32 ld.exe'
10022    ;;
10023
10024  *,cl*)
10025    # Native MSVC
10026    libname_spec='$name'
10027    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10028    library_names_spec='${libname}.dll.lib'
10029
10030    case $build_os in
10031    mingw*)
10032      sys_lib_search_path_spec=
10033      lt_save_ifs=$IFS
10034      IFS=';'
10035      for lt_path in $LIB
10036      do
10037        IFS=$lt_save_ifs
10038        # Let DOS variable expansion print the short 8.3 style file name.
10039        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10040        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10041      done
10042      IFS=$lt_save_ifs
10043      # Convert to MSYS style.
10044      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10045      ;;
10046    cygwin*)
10047      # Convert to unix form, then to dos form, then back to unix form
10048      # but this time dos style (no spaces!) so that the unix form looks
10049      # like /cygdrive/c/PROGRA~1:/cygdr...
10050      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10051      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10052      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10053      ;;
10054    *)
10055      sys_lib_search_path_spec="$LIB"
10056      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10057        # It is most probably a Windows format PATH.
10058        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10059      else
10060        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10061      fi
10062      # FIXME: find the short name or the path components, as spaces are
10063      # common. (e.g. "Program Files" -> "PROGRA~1")
10064      ;;
10065    esac
10066
10067    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10068    postinstall_cmds='base_file=`basename \${file}`~
10069      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10070      dldir=$destdir/`dirname \$dlpath`~
10071      test -d \$dldir || mkdir -p \$dldir~
10072      $install_prog $dir/$dlname \$dldir/$dlname'
10073    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10074      dlpath=$dir/\$dldll~
10075       $RM \$dlpath'
10076    shlibpath_overrides_runpath=yes
10077    dynamic_linker='Win32 link.exe'
10078    ;;
10079
10080  *)
10081    # Assume MSVC wrapper
10082    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10083    dynamic_linker='Win32 ld.exe'
10084    ;;
10085  esac
10086  # FIXME: first we should search . and the directory the executable is in
10087  shlibpath_var=PATH
10088  ;;
10089
10090darwin* | rhapsody*)
10091  dynamic_linker="$host_os dyld"
10092  version_type=darwin
10093  need_lib_prefix=no
10094  need_version=no
10095  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10096  soname_spec='${libname}${release}${major}$shared_ext'
10097  shlibpath_overrides_runpath=yes
10098  shlibpath_var=DYLD_LIBRARY_PATH
10099  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10100
10101  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10102  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10103  ;;
10104
10105dgux*)
10106  version_type=linux # correct to gnu/linux during the next big refactor
10107  need_lib_prefix=no
10108  need_version=no
10109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10110  soname_spec='${libname}${release}${shared_ext}$major'
10111  shlibpath_var=LD_LIBRARY_PATH
10112  ;;
10113
10114freebsd* | dragonfly*)
10115  # DragonFly does not have aout.  When/if they implement a new
10116  # versioning mechanism, adjust this.
10117  if test -x /usr/bin/objformat; then
10118    objformat=`/usr/bin/objformat`
10119  else
10120    case $host_os in
10121    freebsd[23].*) objformat=aout ;;
10122    *) objformat=elf ;;
10123    esac
10124  fi
10125  version_type=freebsd-$objformat
10126  case $version_type in
10127    freebsd-elf*)
10128      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10129      need_version=no
10130      need_lib_prefix=no
10131      ;;
10132    freebsd-*)
10133      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10134      need_version=yes
10135      ;;
10136  esac
10137  shlibpath_var=LD_LIBRARY_PATH
10138  case $host_os in
10139  freebsd2.*)
10140    shlibpath_overrides_runpath=yes
10141    ;;
10142  freebsd3.[01]* | freebsdelf3.[01]*)
10143    shlibpath_overrides_runpath=yes
10144    hardcode_into_libs=yes
10145    ;;
10146  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10147  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10148    shlibpath_overrides_runpath=no
10149    hardcode_into_libs=yes
10150    ;;
10151  *) # from 4.6 on, and DragonFly
10152    shlibpath_overrides_runpath=yes
10153    hardcode_into_libs=yes
10154    ;;
10155  esac
10156  ;;
10157
10158gnu*)
10159  version_type=linux # correct to gnu/linux during the next big refactor
10160  need_lib_prefix=no
10161  need_version=no
10162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10163  soname_spec='${libname}${release}${shared_ext}$major'
10164  shlibpath_var=LD_LIBRARY_PATH
10165  shlibpath_overrides_runpath=no
10166  hardcode_into_libs=yes
10167  ;;
10168
10169haiku*)
10170  version_type=linux # correct to gnu/linux during the next big refactor
10171  need_lib_prefix=no
10172  need_version=no
10173  dynamic_linker="$host_os runtime_loader"
10174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10175  soname_spec='${libname}${release}${shared_ext}$major'
10176  shlibpath_var=LIBRARY_PATH
10177  shlibpath_overrides_runpath=yes
10178  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10179  hardcode_into_libs=yes
10180  ;;
10181
10182hpux9* | hpux10* | hpux11*)
10183  # Give a soname corresponding to the major version so that dld.sl refuses to
10184  # link against other versions.
10185  version_type=sunos
10186  need_lib_prefix=no
10187  need_version=no
10188  case $host_cpu in
10189  ia64*)
10190    shrext_cmds='.so'
10191    hardcode_into_libs=yes
10192    dynamic_linker="$host_os dld.so"
10193    shlibpath_var=LD_LIBRARY_PATH
10194    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10195    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196    soname_spec='${libname}${release}${shared_ext}$major'
10197    if test "X$HPUX_IA64_MODE" = X32; then
10198      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10199    else
10200      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10201    fi
10202    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10203    ;;
10204  hppa*64*)
10205    shrext_cmds='.sl'
10206    hardcode_into_libs=yes
10207    dynamic_linker="$host_os dld.sl"
10208    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10209    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10210    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211    soname_spec='${libname}${release}${shared_ext}$major'
10212    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10213    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10214    ;;
10215  *)
10216    shrext_cmds='.sl'
10217    dynamic_linker="$host_os dld.sl"
10218    shlibpath_var=SHLIB_PATH
10219    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10220    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10221    soname_spec='${libname}${release}${shared_ext}$major'
10222    ;;
10223  esac
10224  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10225  postinstall_cmds='chmod 555 $lib'
10226  # or fails outright, so override atomically:
10227  install_override_mode=555
10228  ;;
10229
10230interix[3-9]*)
10231  version_type=linux # correct to gnu/linux during the next big refactor
10232  need_lib_prefix=no
10233  need_version=no
10234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10235  soname_spec='${libname}${release}${shared_ext}$major'
10236  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10237  shlibpath_var=LD_LIBRARY_PATH
10238  shlibpath_overrides_runpath=no
10239  hardcode_into_libs=yes
10240  ;;
10241
10242irix5* | irix6* | nonstopux*)
10243  case $host_os in
10244    nonstopux*) version_type=nonstopux ;;
10245    *)
10246	if test "$lt_cv_prog_gnu_ld" = yes; then
10247		version_type=linux # correct to gnu/linux during the next big refactor
10248	else
10249		version_type=irix
10250	fi ;;
10251  esac
10252  need_lib_prefix=no
10253  need_version=no
10254  soname_spec='${libname}${release}${shared_ext}$major'
10255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10256  case $host_os in
10257  irix5* | nonstopux*)
10258    libsuff= shlibsuff=
10259    ;;
10260  *)
10261    case $LD in # libtool.m4 will add one of these switches to LD
10262    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10263      libsuff= shlibsuff= libmagic=32-bit;;
10264    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10265      libsuff=32 shlibsuff=N32 libmagic=N32;;
10266    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10267      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10268    *) libsuff= shlibsuff= libmagic=never-match;;
10269    esac
10270    ;;
10271  esac
10272  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10273  shlibpath_overrides_runpath=no
10274  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10275  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10276  hardcode_into_libs=yes
10277  ;;
10278
10279# No shared lib support for Linux oldld, aout, or coff.
10280linux*oldld* | linux*aout* | linux*coff*)
10281  dynamic_linker=no
10282  ;;
10283
10284# This must be glibc/ELF.
10285linux* | k*bsd*-gnu | kopensolaris*-gnu)
10286  version_type=linux # correct to gnu/linux during the next big refactor
10287  need_lib_prefix=no
10288  need_version=no
10289  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290  soname_spec='${libname}${release}${shared_ext}$major'
10291  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10292  shlibpath_var=LD_LIBRARY_PATH
10293  shlibpath_overrides_runpath=no
10294
10295  # Some binutils ld are patched to set DT_RUNPATH
10296  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10297  $as_echo_n "(cached) " >&6
10298else
10299  lt_cv_shlibpath_overrides_runpath=no
10300    save_LDFLAGS=$LDFLAGS
10301    save_libdir=$libdir
10302    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10303	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10304    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10305/* end confdefs.h.  */
10306
10307int
10308main ()
10309{
10310
10311  ;
10312  return 0;
10313}
10314_ACEOF
10315if ac_fn_c_try_link "$LINENO"; then :
10316  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10317  lt_cv_shlibpath_overrides_runpath=yes
10318fi
10319fi
10320rm -f core conftest.err conftest.$ac_objext \
10321    conftest$ac_exeext conftest.$ac_ext
10322    LDFLAGS=$save_LDFLAGS
10323    libdir=$save_libdir
10324
10325fi
10326
10327  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10328
10329  # This implies no fast_install, which is unacceptable.
10330  # Some rework will be needed to allow for fast_install
10331  # before this can be enabled.
10332  hardcode_into_libs=yes
10333
10334  # Append ld.so.conf contents to the search path
10335  if test -f /etc/ld.so.conf; then
10336    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' ' '`
10337    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10338  fi
10339
10340  # We used to test for /lib/ld.so.1 and disable shared libraries on
10341  # powerpc, because MkLinux only supported shared libraries with the
10342  # GNU dynamic linker.  Since this was broken with cross compilers,
10343  # most powerpc-linux boxes support dynamic linking these days and
10344  # people can always --disable-shared, the test was removed, and we
10345  # assume the GNU/Linux dynamic linker is in use.
10346  dynamic_linker='GNU/Linux ld.so'
10347  ;;
10348
10349netbsd*)
10350  version_type=sunos
10351  need_lib_prefix=no
10352  need_version=no
10353  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10354    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10355    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10356    dynamic_linker='NetBSD (a.out) ld.so'
10357  else
10358    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10359    soname_spec='${libname}${release}${shared_ext}$major'
10360    dynamic_linker='NetBSD ld.elf_so'
10361  fi
10362  shlibpath_var=LD_LIBRARY_PATH
10363  shlibpath_overrides_runpath=yes
10364  hardcode_into_libs=yes
10365  ;;
10366
10367newsos6)
10368  version_type=linux # correct to gnu/linux during the next big refactor
10369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370  shlibpath_var=LD_LIBRARY_PATH
10371  shlibpath_overrides_runpath=yes
10372  ;;
10373
10374*nto* | *qnx*)
10375  version_type=qnx
10376  need_lib_prefix=no
10377  need_version=no
10378  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379  soname_spec='${libname}${release}${shared_ext}$major'
10380  shlibpath_var=LD_LIBRARY_PATH
10381  shlibpath_overrides_runpath=no
10382  hardcode_into_libs=yes
10383  dynamic_linker='ldqnx.so'
10384  ;;
10385
10386openbsd*)
10387  version_type=sunos
10388  sys_lib_dlsearch_path_spec="/usr/lib"
10389  need_lib_prefix=no
10390  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10391  case $host_os in
10392    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10393    *)				need_version=no  ;;
10394  esac
10395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10396  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10397  shlibpath_var=LD_LIBRARY_PATH
10398  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10399    case $host_os in
10400      openbsd2.[89] | openbsd2.[89].*)
10401	shlibpath_overrides_runpath=no
10402	;;
10403      *)
10404	shlibpath_overrides_runpath=yes
10405	;;
10406      esac
10407  else
10408    shlibpath_overrides_runpath=yes
10409  fi
10410  ;;
10411
10412os2*)
10413  libname_spec='$name'
10414  shrext_cmds=".dll"
10415  need_lib_prefix=no
10416  library_names_spec='$libname${shared_ext} $libname.a'
10417  dynamic_linker='OS/2 ld.exe'
10418  shlibpath_var=LIBPATH
10419  ;;
10420
10421osf3* | osf4* | osf5*)
10422  version_type=osf
10423  need_lib_prefix=no
10424  need_version=no
10425  soname_spec='${libname}${release}${shared_ext}$major'
10426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427  shlibpath_var=LD_LIBRARY_PATH
10428  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10429  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10430  ;;
10431
10432rdos*)
10433  dynamic_linker=no
10434  ;;
10435
10436solaris*)
10437  version_type=linux # correct to gnu/linux during the next big refactor
10438  need_lib_prefix=no
10439  need_version=no
10440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441  soname_spec='${libname}${release}${shared_ext}$major'
10442  shlibpath_var=LD_LIBRARY_PATH
10443  shlibpath_overrides_runpath=yes
10444  hardcode_into_libs=yes
10445  # ldd complains unless libraries are executable
10446  postinstall_cmds='chmod +x $lib'
10447  ;;
10448
10449sunos4*)
10450  version_type=sunos
10451  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10452  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10453  shlibpath_var=LD_LIBRARY_PATH
10454  shlibpath_overrides_runpath=yes
10455  if test "$with_gnu_ld" = yes; then
10456    need_lib_prefix=no
10457  fi
10458  need_version=yes
10459  ;;
10460
10461sysv4 | sysv4.3*)
10462  version_type=linux # correct to gnu/linux during the next big refactor
10463  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464  soname_spec='${libname}${release}${shared_ext}$major'
10465  shlibpath_var=LD_LIBRARY_PATH
10466  case $host_vendor in
10467    sni)
10468      shlibpath_overrides_runpath=no
10469      need_lib_prefix=no
10470      runpath_var=LD_RUN_PATH
10471      ;;
10472    siemens)
10473      need_lib_prefix=no
10474      ;;
10475    motorola)
10476      need_lib_prefix=no
10477      need_version=no
10478      shlibpath_overrides_runpath=no
10479      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10480      ;;
10481  esac
10482  ;;
10483
10484sysv4*MP*)
10485  if test -d /usr/nec ;then
10486    version_type=linux # correct to gnu/linux during the next big refactor
10487    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10488    soname_spec='$libname${shared_ext}.$major'
10489    shlibpath_var=LD_LIBRARY_PATH
10490  fi
10491  ;;
10492
10493sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10494  version_type=freebsd-elf
10495  need_lib_prefix=no
10496  need_version=no
10497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10498  soname_spec='${libname}${release}${shared_ext}$major'
10499  shlibpath_var=LD_LIBRARY_PATH
10500  shlibpath_overrides_runpath=yes
10501  hardcode_into_libs=yes
10502  if test "$with_gnu_ld" = yes; then
10503    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10504  else
10505    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10506    case $host_os in
10507      sco3.2v5*)
10508        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10509	;;
10510    esac
10511  fi
10512  sys_lib_dlsearch_path_spec='/usr/lib'
10513  ;;
10514
10515tpf*)
10516  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10517  version_type=linux # correct to gnu/linux during the next big refactor
10518  need_lib_prefix=no
10519  need_version=no
10520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521  shlibpath_var=LD_LIBRARY_PATH
10522  shlibpath_overrides_runpath=no
10523  hardcode_into_libs=yes
10524  ;;
10525
10526uts4*)
10527  version_type=linux # correct to gnu/linux during the next big refactor
10528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529  soname_spec='${libname}${release}${shared_ext}$major'
10530  shlibpath_var=LD_LIBRARY_PATH
10531  ;;
10532
10533*)
10534  dynamic_linker=no
10535  ;;
10536esac
10537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10538$as_echo "$dynamic_linker" >&6; }
10539test "$dynamic_linker" = no && can_build_shared=no
10540
10541variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10542if test "$GCC" = yes; then
10543  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10544fi
10545
10546if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10547  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10548fi
10549if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10550  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10551fi
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10645$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10646hardcode_action=
10647if test -n "$hardcode_libdir_flag_spec" ||
10648   test -n "$runpath_var" ||
10649   test "X$hardcode_automatic" = "Xyes" ; then
10650
10651  # We can hardcode non-existent directories.
10652  if test "$hardcode_direct" != no &&
10653     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10654     # have to relink, otherwise we might link with an installed library
10655     # when we should be linking with a yet-to-be-installed one
10656     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10657     test "$hardcode_minus_L" != no; then
10658    # Linking always hardcodes the temporary library directory.
10659    hardcode_action=relink
10660  else
10661    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10662    hardcode_action=immediate
10663  fi
10664else
10665  # We cannot hardcode anything, or else we can only hardcode existing
10666  # directories.
10667  hardcode_action=unsupported
10668fi
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10670$as_echo "$hardcode_action" >&6; }
10671
10672if test "$hardcode_action" = relink ||
10673   test "$inherit_rpath" = yes; then
10674  # Fast installation is not supported
10675  enable_fast_install=no
10676elif test "$shlibpath_overrides_runpath" = yes ||
10677     test "$enable_shared" = no; then
10678  # Fast installation is not necessary
10679  enable_fast_install=needless
10680fi
10681
10682
10683
10684
10685
10686
10687  if test "x$enable_dlopen" != xyes; then
10688  enable_dlopen=unknown
10689  enable_dlopen_self=unknown
10690  enable_dlopen_self_static=unknown
10691else
10692  lt_cv_dlopen=no
10693  lt_cv_dlopen_libs=
10694
10695  case $host_os in
10696  beos*)
10697    lt_cv_dlopen="load_add_on"
10698    lt_cv_dlopen_libs=
10699    lt_cv_dlopen_self=yes
10700    ;;
10701
10702  mingw* | pw32* | cegcc*)
10703    lt_cv_dlopen="LoadLibrary"
10704    lt_cv_dlopen_libs=
10705    ;;
10706
10707  cygwin*)
10708    lt_cv_dlopen="dlopen"
10709    lt_cv_dlopen_libs=
10710    ;;
10711
10712  darwin*)
10713  # if libdl is installed we need to link against it
10714    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10715$as_echo_n "checking for dlopen in -ldl... " >&6; }
10716if ${ac_cv_lib_dl_dlopen+:} false; then :
10717  $as_echo_n "(cached) " >&6
10718else
10719  ac_check_lib_save_LIBS=$LIBS
10720LIBS="-ldl  $LIBS"
10721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722/* end confdefs.h.  */
10723
10724/* Override any GCC internal prototype to avoid an error.
10725   Use char because int might match the return type of a GCC
10726   builtin and then its argument prototype would still apply.  */
10727#ifdef __cplusplus
10728extern "C"
10729#endif
10730char dlopen ();
10731int
10732main ()
10733{
10734return dlopen ();
10735  ;
10736  return 0;
10737}
10738_ACEOF
10739if ac_fn_c_try_link "$LINENO"; then :
10740  ac_cv_lib_dl_dlopen=yes
10741else
10742  ac_cv_lib_dl_dlopen=no
10743fi
10744rm -f core conftest.err conftest.$ac_objext \
10745    conftest$ac_exeext conftest.$ac_ext
10746LIBS=$ac_check_lib_save_LIBS
10747fi
10748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10749$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10750if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10751  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10752else
10753
10754    lt_cv_dlopen="dyld"
10755    lt_cv_dlopen_libs=
10756    lt_cv_dlopen_self=yes
10757
10758fi
10759
10760    ;;
10761
10762  *)
10763    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10764if test "x$ac_cv_func_shl_load" = xyes; then :
10765  lt_cv_dlopen="shl_load"
10766else
10767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10768$as_echo_n "checking for shl_load in -ldld... " >&6; }
10769if ${ac_cv_lib_dld_shl_load+:} false; then :
10770  $as_echo_n "(cached) " >&6
10771else
10772  ac_check_lib_save_LIBS=$LIBS
10773LIBS="-ldld  $LIBS"
10774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775/* end confdefs.h.  */
10776
10777/* Override any GCC internal prototype to avoid an error.
10778   Use char because int might match the return type of a GCC
10779   builtin and then its argument prototype would still apply.  */
10780#ifdef __cplusplus
10781extern "C"
10782#endif
10783char shl_load ();
10784int
10785main ()
10786{
10787return shl_load ();
10788  ;
10789  return 0;
10790}
10791_ACEOF
10792if ac_fn_c_try_link "$LINENO"; then :
10793  ac_cv_lib_dld_shl_load=yes
10794else
10795  ac_cv_lib_dld_shl_load=no
10796fi
10797rm -f core conftest.err conftest.$ac_objext \
10798    conftest$ac_exeext conftest.$ac_ext
10799LIBS=$ac_check_lib_save_LIBS
10800fi
10801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10802$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10803if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10804  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10805else
10806  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10807if test "x$ac_cv_func_dlopen" = xyes; then :
10808  lt_cv_dlopen="dlopen"
10809else
10810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10811$as_echo_n "checking for dlopen in -ldl... " >&6; }
10812if ${ac_cv_lib_dl_dlopen+:} false; then :
10813  $as_echo_n "(cached) " >&6
10814else
10815  ac_check_lib_save_LIBS=$LIBS
10816LIBS="-ldl  $LIBS"
10817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818/* end confdefs.h.  */
10819
10820/* Override any GCC internal prototype to avoid an error.
10821   Use char because int might match the return type of a GCC
10822   builtin and then its argument prototype would still apply.  */
10823#ifdef __cplusplus
10824extern "C"
10825#endif
10826char dlopen ();
10827int
10828main ()
10829{
10830return dlopen ();
10831  ;
10832  return 0;
10833}
10834_ACEOF
10835if ac_fn_c_try_link "$LINENO"; then :
10836  ac_cv_lib_dl_dlopen=yes
10837else
10838  ac_cv_lib_dl_dlopen=no
10839fi
10840rm -f core conftest.err conftest.$ac_objext \
10841    conftest$ac_exeext conftest.$ac_ext
10842LIBS=$ac_check_lib_save_LIBS
10843fi
10844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10845$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10846if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10847  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10848else
10849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10850$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10851if ${ac_cv_lib_svld_dlopen+:} false; then :
10852  $as_echo_n "(cached) " >&6
10853else
10854  ac_check_lib_save_LIBS=$LIBS
10855LIBS="-lsvld  $LIBS"
10856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857/* end confdefs.h.  */
10858
10859/* Override any GCC internal prototype to avoid an error.
10860   Use char because int might match the return type of a GCC
10861   builtin and then its argument prototype would still apply.  */
10862#ifdef __cplusplus
10863extern "C"
10864#endif
10865char dlopen ();
10866int
10867main ()
10868{
10869return dlopen ();
10870  ;
10871  return 0;
10872}
10873_ACEOF
10874if ac_fn_c_try_link "$LINENO"; then :
10875  ac_cv_lib_svld_dlopen=yes
10876else
10877  ac_cv_lib_svld_dlopen=no
10878fi
10879rm -f core conftest.err conftest.$ac_objext \
10880    conftest$ac_exeext conftest.$ac_ext
10881LIBS=$ac_check_lib_save_LIBS
10882fi
10883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10884$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10885if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10886  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10887else
10888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10889$as_echo_n "checking for dld_link in -ldld... " >&6; }
10890if ${ac_cv_lib_dld_dld_link+:} false; then :
10891  $as_echo_n "(cached) " >&6
10892else
10893  ac_check_lib_save_LIBS=$LIBS
10894LIBS="-ldld  $LIBS"
10895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896/* end confdefs.h.  */
10897
10898/* Override any GCC internal prototype to avoid an error.
10899   Use char because int might match the return type of a GCC
10900   builtin and then its argument prototype would still apply.  */
10901#ifdef __cplusplus
10902extern "C"
10903#endif
10904char dld_link ();
10905int
10906main ()
10907{
10908return dld_link ();
10909  ;
10910  return 0;
10911}
10912_ACEOF
10913if ac_fn_c_try_link "$LINENO"; then :
10914  ac_cv_lib_dld_dld_link=yes
10915else
10916  ac_cv_lib_dld_dld_link=no
10917fi
10918rm -f core conftest.err conftest.$ac_objext \
10919    conftest$ac_exeext conftest.$ac_ext
10920LIBS=$ac_check_lib_save_LIBS
10921fi
10922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10923$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10924if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10925  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10926fi
10927
10928
10929fi
10930
10931
10932fi
10933
10934
10935fi
10936
10937
10938fi
10939
10940
10941fi
10942
10943    ;;
10944  esac
10945
10946  if test "x$lt_cv_dlopen" != xno; then
10947    enable_dlopen=yes
10948  else
10949    enable_dlopen=no
10950  fi
10951
10952  case $lt_cv_dlopen in
10953  dlopen)
10954    save_CPPFLAGS="$CPPFLAGS"
10955    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10956
10957    save_LDFLAGS="$LDFLAGS"
10958    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10959
10960    save_LIBS="$LIBS"
10961    LIBS="$lt_cv_dlopen_libs $LIBS"
10962
10963    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10964$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10965if ${lt_cv_dlopen_self+:} false; then :
10966  $as_echo_n "(cached) " >&6
10967else
10968  	  if test "$cross_compiling" = yes; then :
10969  lt_cv_dlopen_self=cross
10970else
10971  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10972  lt_status=$lt_dlunknown
10973  cat > conftest.$ac_ext <<_LT_EOF
10974#line $LINENO "configure"
10975#include "confdefs.h"
10976
10977#if HAVE_DLFCN_H
10978#include <dlfcn.h>
10979#endif
10980
10981#include <stdio.h>
10982
10983#ifdef RTLD_GLOBAL
10984#  define LT_DLGLOBAL		RTLD_GLOBAL
10985#else
10986#  ifdef DL_GLOBAL
10987#    define LT_DLGLOBAL		DL_GLOBAL
10988#  else
10989#    define LT_DLGLOBAL		0
10990#  endif
10991#endif
10992
10993/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10994   find out it does not work in some platform. */
10995#ifndef LT_DLLAZY_OR_NOW
10996#  ifdef RTLD_LAZY
10997#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10998#  else
10999#    ifdef DL_LAZY
11000#      define LT_DLLAZY_OR_NOW		DL_LAZY
11001#    else
11002#      ifdef RTLD_NOW
11003#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11004#      else
11005#        ifdef DL_NOW
11006#          define LT_DLLAZY_OR_NOW	DL_NOW
11007#        else
11008#          define LT_DLLAZY_OR_NOW	0
11009#        endif
11010#      endif
11011#    endif
11012#  endif
11013#endif
11014
11015/* When -fvisbility=hidden is used, assume the code has been annotated
11016   correspondingly for the symbols needed.  */
11017#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11018int fnord () __attribute__((visibility("default")));
11019#endif
11020
11021int fnord () { return 42; }
11022int main ()
11023{
11024  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11025  int status = $lt_dlunknown;
11026
11027  if (self)
11028    {
11029      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11030      else
11031        {
11032	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11033          else puts (dlerror ());
11034	}
11035      /* dlclose (self); */
11036    }
11037  else
11038    puts (dlerror ());
11039
11040  return status;
11041}
11042_LT_EOF
11043  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11044  (eval $ac_link) 2>&5
11045  ac_status=$?
11046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11047  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11048    (./conftest; exit; ) >&5 2>/dev/null
11049    lt_status=$?
11050    case x$lt_status in
11051      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11052      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11053      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11054    esac
11055  else :
11056    # compilation failed
11057    lt_cv_dlopen_self=no
11058  fi
11059fi
11060rm -fr conftest*
11061
11062
11063fi
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11065$as_echo "$lt_cv_dlopen_self" >&6; }
11066
11067    if test "x$lt_cv_dlopen_self" = xyes; then
11068      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11069      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11070$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11071if ${lt_cv_dlopen_self_static+:} false; then :
11072  $as_echo_n "(cached) " >&6
11073else
11074  	  if test "$cross_compiling" = yes; then :
11075  lt_cv_dlopen_self_static=cross
11076else
11077  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11078  lt_status=$lt_dlunknown
11079  cat > conftest.$ac_ext <<_LT_EOF
11080#line $LINENO "configure"
11081#include "confdefs.h"
11082
11083#if HAVE_DLFCN_H
11084#include <dlfcn.h>
11085#endif
11086
11087#include <stdio.h>
11088
11089#ifdef RTLD_GLOBAL
11090#  define LT_DLGLOBAL		RTLD_GLOBAL
11091#else
11092#  ifdef DL_GLOBAL
11093#    define LT_DLGLOBAL		DL_GLOBAL
11094#  else
11095#    define LT_DLGLOBAL		0
11096#  endif
11097#endif
11098
11099/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11100   find out it does not work in some platform. */
11101#ifndef LT_DLLAZY_OR_NOW
11102#  ifdef RTLD_LAZY
11103#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11104#  else
11105#    ifdef DL_LAZY
11106#      define LT_DLLAZY_OR_NOW		DL_LAZY
11107#    else
11108#      ifdef RTLD_NOW
11109#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11110#      else
11111#        ifdef DL_NOW
11112#          define LT_DLLAZY_OR_NOW	DL_NOW
11113#        else
11114#          define LT_DLLAZY_OR_NOW	0
11115#        endif
11116#      endif
11117#    endif
11118#  endif
11119#endif
11120
11121/* When -fvisbility=hidden is used, assume the code has been annotated
11122   correspondingly for the symbols needed.  */
11123#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11124int fnord () __attribute__((visibility("default")));
11125#endif
11126
11127int fnord () { return 42; }
11128int main ()
11129{
11130  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11131  int status = $lt_dlunknown;
11132
11133  if (self)
11134    {
11135      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11136      else
11137        {
11138	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11139          else puts (dlerror ());
11140	}
11141      /* dlclose (self); */
11142    }
11143  else
11144    puts (dlerror ());
11145
11146  return status;
11147}
11148_LT_EOF
11149  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11150  (eval $ac_link) 2>&5
11151  ac_status=$?
11152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11153  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11154    (./conftest; exit; ) >&5 2>/dev/null
11155    lt_status=$?
11156    case x$lt_status in
11157      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11158      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11159      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11160    esac
11161  else :
11162    # compilation failed
11163    lt_cv_dlopen_self_static=no
11164  fi
11165fi
11166rm -fr conftest*
11167
11168
11169fi
11170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11171$as_echo "$lt_cv_dlopen_self_static" >&6; }
11172    fi
11173
11174    CPPFLAGS="$save_CPPFLAGS"
11175    LDFLAGS="$save_LDFLAGS"
11176    LIBS="$save_LIBS"
11177    ;;
11178  esac
11179
11180  case $lt_cv_dlopen_self in
11181  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11182  *) enable_dlopen_self=unknown ;;
11183  esac
11184
11185  case $lt_cv_dlopen_self_static in
11186  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11187  *) enable_dlopen_self_static=unknown ;;
11188  esac
11189fi
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207striplib=
11208old_striplib=
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11210$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11211if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11212  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11213  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11215$as_echo "yes" >&6; }
11216else
11217# FIXME - insert some real tests, host_os isn't really good enough
11218  case $host_os in
11219  darwin*)
11220    if test -n "$STRIP" ; then
11221      striplib="$STRIP -x"
11222      old_striplib="$STRIP -S"
11223      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11224$as_echo "yes" >&6; }
11225    else
11226      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227$as_echo "no" >&6; }
11228    fi
11229    ;;
11230  *)
11231    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232$as_echo "no" >&6; }
11233    ;;
11234  esac
11235fi
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248  # Report which library types will actually be built
11249  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11250$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11252$as_echo "$can_build_shared" >&6; }
11253
11254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11255$as_echo_n "checking whether to build shared libraries... " >&6; }
11256  test "$can_build_shared" = "no" && enable_shared=no
11257
11258  # On AIX, shared libraries and static libraries use the same namespace, and
11259  # are all built from PIC.
11260  case $host_os in
11261  aix3*)
11262    test "$enable_shared" = yes && enable_static=no
11263    if test -n "$RANLIB"; then
11264      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11265      postinstall_cmds='$RANLIB $lib'
11266    fi
11267    ;;
11268
11269  aix[4-9]*)
11270    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11271      test "$enable_shared" = yes && enable_static=no
11272    fi
11273    ;;
11274  esac
11275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11276$as_echo "$enable_shared" >&6; }
11277
11278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11279$as_echo_n "checking whether to build static libraries... " >&6; }
11280  # Make sure either enable_shared or enable_static is yes.
11281  test "$enable_shared" = yes || enable_static=yes
11282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11283$as_echo "$enable_static" >&6; }
11284
11285
11286
11287
11288fi
11289ac_ext=c
11290ac_cpp='$CPP $CPPFLAGS'
11291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11293ac_compiler_gnu=$ac_cv_c_compiler_gnu
11294
11295CC="$lt_save_CC"
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311        ac_config_commands="$ac_config_commands libtool"
11312
11313
11314
11315
11316# Only expand once:
11317
11318
11319
11320# Require X.Org macros 1.8 or later for AC_PROG_INSTALL
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11333$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11334if ${ac_cv_prog_cc_c99+:} false; then :
11335  $as_echo_n "(cached) " >&6
11336else
11337  ac_cv_prog_cc_c99=no
11338ac_save_CC=$CC
11339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340/* end confdefs.h.  */
11341#include <stdarg.h>
11342#include <stdbool.h>
11343#include <stdlib.h>
11344#include <wchar.h>
11345#include <stdio.h>
11346
11347// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11348#define debug(...) fprintf (stderr, __VA_ARGS__)
11349#define showlist(...) puts (#__VA_ARGS__)
11350#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11351static void
11352test_varargs_macros (void)
11353{
11354  int x = 1234;
11355  int y = 5678;
11356  debug ("Flag");
11357  debug ("X = %d\n", x);
11358  showlist (The first, second, and third items.);
11359  report (x>y, "x is %d but y is %d", x, y);
11360}
11361
11362// Check long long types.
11363#define BIG64 18446744073709551615ull
11364#define BIG32 4294967295ul
11365#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11366#if !BIG_OK
11367  your preprocessor is broken;
11368#endif
11369#if BIG_OK
11370#else
11371  your preprocessor is broken;
11372#endif
11373static long long int bignum = -9223372036854775807LL;
11374static unsigned long long int ubignum = BIG64;
11375
11376struct incomplete_array
11377{
11378  int datasize;
11379  double data[];
11380};
11381
11382struct named_init {
11383  int number;
11384  const wchar_t *name;
11385  double average;
11386};
11387
11388typedef const char *ccp;
11389
11390static inline int
11391test_restrict (ccp restrict text)
11392{
11393  // See if C++-style comments work.
11394  // Iterate through items via the restricted pointer.
11395  // Also check for declarations in for loops.
11396  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11397    continue;
11398  return 0;
11399}
11400
11401// Check varargs and va_copy.
11402static void
11403test_varargs (const char *format, ...)
11404{
11405  va_list args;
11406  va_start (args, format);
11407  va_list args_copy;
11408  va_copy (args_copy, args);
11409
11410  const char *str;
11411  int number;
11412  float fnumber;
11413
11414  while (*format)
11415    {
11416      switch (*format++)
11417	{
11418	case 's': // string
11419	  str = va_arg (args_copy, const char *);
11420	  break;
11421	case 'd': // int
11422	  number = va_arg (args_copy, int);
11423	  break;
11424	case 'f': // float
11425	  fnumber = va_arg (args_copy, double);
11426	  break;
11427	default:
11428	  break;
11429	}
11430    }
11431  va_end (args_copy);
11432  va_end (args);
11433}
11434
11435int
11436main ()
11437{
11438
11439  // Check bool.
11440  _Bool success = false;
11441
11442  // Check restrict.
11443  if (test_restrict ("String literal") == 0)
11444    success = true;
11445  char *restrict newvar = "Another string";
11446
11447  // Check varargs.
11448  test_varargs ("s, d' f .", "string", 65, 34.234);
11449  test_varargs_macros ();
11450
11451  // Check flexible array members.
11452  struct incomplete_array *ia =
11453    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11454  ia->datasize = 10;
11455  for (int i = 0; i < ia->datasize; ++i)
11456    ia->data[i] = i * 1.234;
11457
11458  // Check named initializers.
11459  struct named_init ni = {
11460    .number = 34,
11461    .name = L"Test wide string",
11462    .average = 543.34343,
11463  };
11464
11465  ni.number = 58;
11466
11467  int dynamic_array[ni.number];
11468  dynamic_array[ni.number - 1] = 543;
11469
11470  // work around unused variable warnings
11471  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11472	  || dynamic_array[ni.number - 1] != 543);
11473
11474  ;
11475  return 0;
11476}
11477_ACEOF
11478for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11479do
11480  CC="$ac_save_CC $ac_arg"
11481  if ac_fn_c_try_compile "$LINENO"; then :
11482  ac_cv_prog_cc_c99=$ac_arg
11483fi
11484rm -f core conftest.err conftest.$ac_objext
11485  test "x$ac_cv_prog_cc_c99" != "xno" && break
11486done
11487rm -f conftest.$ac_ext
11488CC=$ac_save_CC
11489
11490fi
11491# AC_CACHE_VAL
11492case "x$ac_cv_prog_cc_c99" in
11493  x)
11494    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11495$as_echo "none needed" >&6; } ;;
11496  xno)
11497    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11498$as_echo "unsupported" >&6; } ;;
11499  *)
11500    CC="$CC $ac_cv_prog_cc_c99"
11501    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11502$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11503esac
11504if test "x$ac_cv_prog_cc_c99" != xno; then :
11505
11506fi
11507
11508
11509
11510
11511
11512
11513ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11514if test "x$ac_cv_have_decl___clang__" = xyes; then :
11515  CLANGCC="yes"
11516else
11517  CLANGCC="no"
11518fi
11519
11520ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11521if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11522  INTELCC="yes"
11523else
11524  INTELCC="no"
11525fi
11526
11527ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11528if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11529  SUNCC="yes"
11530else
11531  SUNCC="no"
11532fi
11533
11534
11535
11536
11537if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11538	if test -n "$ac_tool_prefix"; then
11539  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11540set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11542$as_echo_n "checking for $ac_word... " >&6; }
11543if ${ac_cv_path_PKG_CONFIG+:} false; then :
11544  $as_echo_n "(cached) " >&6
11545else
11546  case $PKG_CONFIG in
11547  [\\/]* | ?:[\\/]*)
11548  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11549  ;;
11550  *)
11551  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552for as_dir in $PATH
11553do
11554  IFS=$as_save_IFS
11555  test -z "$as_dir" && as_dir=.
11556    for ac_exec_ext in '' $ac_executable_extensions; do
11557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11558    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11560    break 2
11561  fi
11562done
11563  done
11564IFS=$as_save_IFS
11565
11566  ;;
11567esac
11568fi
11569PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11570if test -n "$PKG_CONFIG"; then
11571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11572$as_echo "$PKG_CONFIG" >&6; }
11573else
11574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11575$as_echo "no" >&6; }
11576fi
11577
11578
11579fi
11580if test -z "$ac_cv_path_PKG_CONFIG"; then
11581  ac_pt_PKG_CONFIG=$PKG_CONFIG
11582  # Extract the first word of "pkg-config", so it can be a program name with args.
11583set dummy pkg-config; ac_word=$2
11584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11585$as_echo_n "checking for $ac_word... " >&6; }
11586if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11587  $as_echo_n "(cached) " >&6
11588else
11589  case $ac_pt_PKG_CONFIG in
11590  [\\/]* | ?:[\\/]*)
11591  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11592  ;;
11593  *)
11594  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595for as_dir in $PATH
11596do
11597  IFS=$as_save_IFS
11598  test -z "$as_dir" && as_dir=.
11599    for ac_exec_ext in '' $ac_executable_extensions; do
11600  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11601    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11603    break 2
11604  fi
11605done
11606  done
11607IFS=$as_save_IFS
11608
11609  ;;
11610esac
11611fi
11612ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11613if test -n "$ac_pt_PKG_CONFIG"; then
11614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11615$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11616else
11617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618$as_echo "no" >&6; }
11619fi
11620
11621  if test "x$ac_pt_PKG_CONFIG" = x; then
11622    PKG_CONFIG=""
11623  else
11624    case $cross_compiling:$ac_tool_warned in
11625yes:)
11626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11628ac_tool_warned=yes ;;
11629esac
11630    PKG_CONFIG=$ac_pt_PKG_CONFIG
11631  fi
11632else
11633  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11634fi
11635
11636fi
11637if test -n "$PKG_CONFIG"; then
11638	_pkg_min_version=0.9.0
11639	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11640$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11641	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11642		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11643$as_echo "yes" >&6; }
11644	else
11645		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646$as_echo "no" >&6; }
11647		PKG_CONFIG=""
11648	fi
11649
11650fi
11651
11652
11653
11654
11655
11656# Check whether --enable-selective-werror was given.
11657if test "${enable_selective_werror+set}" = set; then :
11658  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11659else
11660  SELECTIVE_WERROR=yes
11661fi
11662
11663
11664
11665
11666
11667# -v is too short to test reliably with XORG_TESTSET_CFLAG
11668if test "x$SUNCC" = "xyes"; then
11669    BASE_CFLAGS="-v"
11670else
11671    BASE_CFLAGS=""
11672fi
11673
11674# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688xorg_testset_save_CFLAGS="$CFLAGS"
11689
11690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11691	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11693$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11694if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11695  $as_echo_n "(cached) " >&6
11696else
11697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11698/* end confdefs.h.  */
11699int i;
11700_ACEOF
11701if ac_fn_c_try_compile "$LINENO"; then :
11702  xorg_cv_cc_flag_unknown_warning_option=yes
11703else
11704  xorg_cv_cc_flag_unknown_warning_option=no
11705fi
11706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11707fi
11708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11709$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11710	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11711	CFLAGS="$xorg_testset_save_CFLAGS"
11712fi
11713
11714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11715	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11716		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11717	fi
11718	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11719	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11720$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11721if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11722  $as_echo_n "(cached) " >&6
11723else
11724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725/* end confdefs.h.  */
11726int i;
11727_ACEOF
11728if ac_fn_c_try_compile "$LINENO"; then :
11729  xorg_cv_cc_flag_unused_command_line_argument=yes
11730else
11731  xorg_cv_cc_flag_unused_command_line_argument=no
11732fi
11733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11734fi
11735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11736$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11737	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11738	CFLAGS="$xorg_testset_save_CFLAGS"
11739fi
11740
11741found="no"
11742
11743	if test $found = "no" ; then
11744		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11745			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11746		fi
11747
11748		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11749			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11750		fi
11751
11752		CFLAGS="$CFLAGS -Wall"
11753
11754		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11755$as_echo_n "checking if $CC supports -Wall... " >&6; }
11756		cacheid=xorg_cv_cc_flag__Wall
11757		if eval \${$cacheid+:} false; then :
11758  $as_echo_n "(cached) " >&6
11759else
11760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761/* end confdefs.h.  */
11762int i;
11763int
11764main ()
11765{
11766
11767  ;
11768  return 0;
11769}
11770_ACEOF
11771if ac_fn_c_try_link "$LINENO"; then :
11772  eval $cacheid=yes
11773else
11774  eval $cacheid=no
11775fi
11776rm -f core conftest.err conftest.$ac_objext \
11777    conftest$ac_exeext conftest.$ac_ext
11778fi
11779
11780
11781		CFLAGS="$xorg_testset_save_CFLAGS"
11782
11783		eval supported=\$$cacheid
11784		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11785$as_echo "$supported" >&6; }
11786		if test "$supported" = "yes" ; then
11787			BASE_CFLAGS="$BASE_CFLAGS -Wall"
11788			found="yes"
11789		fi
11790	fi
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806xorg_testset_save_CFLAGS="$CFLAGS"
11807
11808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11809	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11810	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11811$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11812if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11813  $as_echo_n "(cached) " >&6
11814else
11815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816/* end confdefs.h.  */
11817int i;
11818_ACEOF
11819if ac_fn_c_try_compile "$LINENO"; then :
11820  xorg_cv_cc_flag_unknown_warning_option=yes
11821else
11822  xorg_cv_cc_flag_unknown_warning_option=no
11823fi
11824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825fi
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11827$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11828	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11829	CFLAGS="$xorg_testset_save_CFLAGS"
11830fi
11831
11832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11833	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11834		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11835	fi
11836	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11837	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11838$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11839if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11840  $as_echo_n "(cached) " >&6
11841else
11842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843/* end confdefs.h.  */
11844int i;
11845_ACEOF
11846if ac_fn_c_try_compile "$LINENO"; then :
11847  xorg_cv_cc_flag_unused_command_line_argument=yes
11848else
11849  xorg_cv_cc_flag_unused_command_line_argument=no
11850fi
11851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11852fi
11853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11854$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11855	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11856	CFLAGS="$xorg_testset_save_CFLAGS"
11857fi
11858
11859found="no"
11860
11861	if test $found = "no" ; then
11862		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11863			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11864		fi
11865
11866		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11867			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11868		fi
11869
11870		CFLAGS="$CFLAGS -Wpointer-arith"
11871
11872		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11873$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11874		cacheid=xorg_cv_cc_flag__Wpointer_arith
11875		if eval \${$cacheid+:} false; then :
11876  $as_echo_n "(cached) " >&6
11877else
11878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879/* end confdefs.h.  */
11880int i;
11881int
11882main ()
11883{
11884
11885  ;
11886  return 0;
11887}
11888_ACEOF
11889if ac_fn_c_try_link "$LINENO"; then :
11890  eval $cacheid=yes
11891else
11892  eval $cacheid=no
11893fi
11894rm -f core conftest.err conftest.$ac_objext \
11895    conftest$ac_exeext conftest.$ac_ext
11896fi
11897
11898
11899		CFLAGS="$xorg_testset_save_CFLAGS"
11900
11901		eval supported=\$$cacheid
11902		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11903$as_echo "$supported" >&6; }
11904		if test "$supported" = "yes" ; then
11905			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11906			found="yes"
11907		fi
11908	fi
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924xorg_testset_save_CFLAGS="$CFLAGS"
11925
11926if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11927	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11928	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11929$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11930if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11931  $as_echo_n "(cached) " >&6
11932else
11933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11934/* end confdefs.h.  */
11935int i;
11936_ACEOF
11937if ac_fn_c_try_compile "$LINENO"; then :
11938  xorg_cv_cc_flag_unknown_warning_option=yes
11939else
11940  xorg_cv_cc_flag_unknown_warning_option=no
11941fi
11942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11943fi
11944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11945$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11946	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11947	CFLAGS="$xorg_testset_save_CFLAGS"
11948fi
11949
11950if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11951	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11952		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11953	fi
11954	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11955	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11956$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11957if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11958  $as_echo_n "(cached) " >&6
11959else
11960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961/* end confdefs.h.  */
11962int i;
11963_ACEOF
11964if ac_fn_c_try_compile "$LINENO"; then :
11965  xorg_cv_cc_flag_unused_command_line_argument=yes
11966else
11967  xorg_cv_cc_flag_unused_command_line_argument=no
11968fi
11969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11970fi
11971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11972$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11973	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11974	CFLAGS="$xorg_testset_save_CFLAGS"
11975fi
11976
11977found="no"
11978
11979	if test $found = "no" ; then
11980		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11981			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11982		fi
11983
11984		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11985			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11986		fi
11987
11988		CFLAGS="$CFLAGS -Wmissing-declarations"
11989
11990		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
11991$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
11992		cacheid=xorg_cv_cc_flag__Wmissing_declarations
11993		if eval \${$cacheid+:} false; then :
11994  $as_echo_n "(cached) " >&6
11995else
11996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997/* end confdefs.h.  */
11998int i;
11999int
12000main ()
12001{
12002
12003  ;
12004  return 0;
12005}
12006_ACEOF
12007if ac_fn_c_try_link "$LINENO"; then :
12008  eval $cacheid=yes
12009else
12010  eval $cacheid=no
12011fi
12012rm -f core conftest.err conftest.$ac_objext \
12013    conftest$ac_exeext conftest.$ac_ext
12014fi
12015
12016
12017		CFLAGS="$xorg_testset_save_CFLAGS"
12018
12019		eval supported=\$$cacheid
12020		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12021$as_echo "$supported" >&6; }
12022		if test "$supported" = "yes" ; then
12023			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12024			found="yes"
12025		fi
12026	fi
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042xorg_testset_save_CFLAGS="$CFLAGS"
12043
12044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12045	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12046	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12047$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12048if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12049  $as_echo_n "(cached) " >&6
12050else
12051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052/* end confdefs.h.  */
12053int i;
12054_ACEOF
12055if ac_fn_c_try_compile "$LINENO"; then :
12056  xorg_cv_cc_flag_unknown_warning_option=yes
12057else
12058  xorg_cv_cc_flag_unknown_warning_option=no
12059fi
12060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12061fi
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12063$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12064	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12065	CFLAGS="$xorg_testset_save_CFLAGS"
12066fi
12067
12068if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12069	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12070		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12071	fi
12072	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12073	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12074$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12075if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12076  $as_echo_n "(cached) " >&6
12077else
12078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079/* end confdefs.h.  */
12080int i;
12081_ACEOF
12082if ac_fn_c_try_compile "$LINENO"; then :
12083  xorg_cv_cc_flag_unused_command_line_argument=yes
12084else
12085  xorg_cv_cc_flag_unused_command_line_argument=no
12086fi
12087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12088fi
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12090$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12091	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12092	CFLAGS="$xorg_testset_save_CFLAGS"
12093fi
12094
12095found="no"
12096
12097	if test $found = "no" ; then
12098		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12099			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12100		fi
12101
12102		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12103			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12104		fi
12105
12106		CFLAGS="$CFLAGS -Wformat=2"
12107
12108		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12109$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12110		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12111		if eval \${$cacheid+:} false; then :
12112  $as_echo_n "(cached) " >&6
12113else
12114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115/* end confdefs.h.  */
12116int i;
12117int
12118main ()
12119{
12120
12121  ;
12122  return 0;
12123}
12124_ACEOF
12125if ac_fn_c_try_link "$LINENO"; then :
12126  eval $cacheid=yes
12127else
12128  eval $cacheid=no
12129fi
12130rm -f core conftest.err conftest.$ac_objext \
12131    conftest$ac_exeext conftest.$ac_ext
12132fi
12133
12134
12135		CFLAGS="$xorg_testset_save_CFLAGS"
12136
12137		eval supported=\$$cacheid
12138		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12139$as_echo "$supported" >&6; }
12140		if test "$supported" = "yes" ; then
12141			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12142			found="yes"
12143		fi
12144	fi
12145
12146	if test $found = "no" ; then
12147		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12149		fi
12150
12151		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12153		fi
12154
12155		CFLAGS="$CFLAGS -Wformat"
12156
12157		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12158$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12159		cacheid=xorg_cv_cc_flag__Wformat
12160		if eval \${$cacheid+:} false; then :
12161  $as_echo_n "(cached) " >&6
12162else
12163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164/* end confdefs.h.  */
12165int i;
12166int
12167main ()
12168{
12169
12170  ;
12171  return 0;
12172}
12173_ACEOF
12174if ac_fn_c_try_link "$LINENO"; then :
12175  eval $cacheid=yes
12176else
12177  eval $cacheid=no
12178fi
12179rm -f core conftest.err conftest.$ac_objext \
12180    conftest$ac_exeext conftest.$ac_ext
12181fi
12182
12183
12184		CFLAGS="$xorg_testset_save_CFLAGS"
12185
12186		eval supported=\$$cacheid
12187		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12188$as_echo "$supported" >&6; }
12189		if test "$supported" = "yes" ; then
12190			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12191			found="yes"
12192		fi
12193	fi
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211xorg_testset_save_CFLAGS="$CFLAGS"
12212
12213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12215	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12216$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12217if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12218  $as_echo_n "(cached) " >&6
12219else
12220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12221/* end confdefs.h.  */
12222int i;
12223_ACEOF
12224if ac_fn_c_try_compile "$LINENO"; then :
12225  xorg_cv_cc_flag_unknown_warning_option=yes
12226else
12227  xorg_cv_cc_flag_unknown_warning_option=no
12228fi
12229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12230fi
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12232$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12233	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12234	CFLAGS="$xorg_testset_save_CFLAGS"
12235fi
12236
12237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12238	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12239		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12240	fi
12241	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12243$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12244if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12245  $as_echo_n "(cached) " >&6
12246else
12247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248/* end confdefs.h.  */
12249int i;
12250_ACEOF
12251if ac_fn_c_try_compile "$LINENO"; then :
12252  xorg_cv_cc_flag_unused_command_line_argument=yes
12253else
12254  xorg_cv_cc_flag_unused_command_line_argument=no
12255fi
12256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12257fi
12258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12259$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12260	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12261	CFLAGS="$xorg_testset_save_CFLAGS"
12262fi
12263
12264found="no"
12265
12266	if test $found = "no" ; then
12267		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12268			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12269		fi
12270
12271		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12272			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12273		fi
12274
12275		CFLAGS="$CFLAGS -Wstrict-prototypes"
12276
12277		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12278$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12279		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12280		if eval \${$cacheid+:} false; then :
12281  $as_echo_n "(cached) " >&6
12282else
12283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284/* end confdefs.h.  */
12285int i;
12286int
12287main ()
12288{
12289
12290  ;
12291  return 0;
12292}
12293_ACEOF
12294if ac_fn_c_try_link "$LINENO"; then :
12295  eval $cacheid=yes
12296else
12297  eval $cacheid=no
12298fi
12299rm -f core conftest.err conftest.$ac_objext \
12300    conftest$ac_exeext conftest.$ac_ext
12301fi
12302
12303
12304		CFLAGS="$xorg_testset_save_CFLAGS"
12305
12306		eval supported=\$$cacheid
12307		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12308$as_echo "$supported" >&6; }
12309		if test "$supported" = "yes" ; then
12310			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12311			found="yes"
12312		fi
12313	fi
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329xorg_testset_save_CFLAGS="$CFLAGS"
12330
12331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12332	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12333	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12334$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12335if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12336  $as_echo_n "(cached) " >&6
12337else
12338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339/* end confdefs.h.  */
12340int i;
12341_ACEOF
12342if ac_fn_c_try_compile "$LINENO"; then :
12343  xorg_cv_cc_flag_unknown_warning_option=yes
12344else
12345  xorg_cv_cc_flag_unknown_warning_option=no
12346fi
12347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12348fi
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12350$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12351	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12352	CFLAGS="$xorg_testset_save_CFLAGS"
12353fi
12354
12355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12356	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12357		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12358	fi
12359	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12360	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12361$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12362if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12363  $as_echo_n "(cached) " >&6
12364else
12365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366/* end confdefs.h.  */
12367int i;
12368_ACEOF
12369if ac_fn_c_try_compile "$LINENO"; then :
12370  xorg_cv_cc_flag_unused_command_line_argument=yes
12371else
12372  xorg_cv_cc_flag_unused_command_line_argument=no
12373fi
12374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12375fi
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12377$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12378	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12379	CFLAGS="$xorg_testset_save_CFLAGS"
12380fi
12381
12382found="no"
12383
12384	if test $found = "no" ; then
12385		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12386			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12387		fi
12388
12389		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12390			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12391		fi
12392
12393		CFLAGS="$CFLAGS -Wmissing-prototypes"
12394
12395		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12396$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12397		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12398		if eval \${$cacheid+:} false; then :
12399  $as_echo_n "(cached) " >&6
12400else
12401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402/* end confdefs.h.  */
12403int i;
12404int
12405main ()
12406{
12407
12408  ;
12409  return 0;
12410}
12411_ACEOF
12412if ac_fn_c_try_link "$LINENO"; then :
12413  eval $cacheid=yes
12414else
12415  eval $cacheid=no
12416fi
12417rm -f core conftest.err conftest.$ac_objext \
12418    conftest$ac_exeext conftest.$ac_ext
12419fi
12420
12421
12422		CFLAGS="$xorg_testset_save_CFLAGS"
12423
12424		eval supported=\$$cacheid
12425		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12426$as_echo "$supported" >&6; }
12427		if test "$supported" = "yes" ; then
12428			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12429			found="yes"
12430		fi
12431	fi
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447xorg_testset_save_CFLAGS="$CFLAGS"
12448
12449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12450	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12451	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12452$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12453if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12454  $as_echo_n "(cached) " >&6
12455else
12456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12457/* end confdefs.h.  */
12458int i;
12459_ACEOF
12460if ac_fn_c_try_compile "$LINENO"; then :
12461  xorg_cv_cc_flag_unknown_warning_option=yes
12462else
12463  xorg_cv_cc_flag_unknown_warning_option=no
12464fi
12465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12466fi
12467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12468$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12469	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12470	CFLAGS="$xorg_testset_save_CFLAGS"
12471fi
12472
12473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12474	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12475		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12476	fi
12477	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12478	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12479$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12480if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12481  $as_echo_n "(cached) " >&6
12482else
12483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484/* end confdefs.h.  */
12485int i;
12486_ACEOF
12487if ac_fn_c_try_compile "$LINENO"; then :
12488  xorg_cv_cc_flag_unused_command_line_argument=yes
12489else
12490  xorg_cv_cc_flag_unused_command_line_argument=no
12491fi
12492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12493fi
12494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12495$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12496	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12497	CFLAGS="$xorg_testset_save_CFLAGS"
12498fi
12499
12500found="no"
12501
12502	if test $found = "no" ; then
12503		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12504			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12505		fi
12506
12507		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12508			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12509		fi
12510
12511		CFLAGS="$CFLAGS -Wnested-externs"
12512
12513		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12514$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12515		cacheid=xorg_cv_cc_flag__Wnested_externs
12516		if eval \${$cacheid+:} false; then :
12517  $as_echo_n "(cached) " >&6
12518else
12519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520/* end confdefs.h.  */
12521int i;
12522int
12523main ()
12524{
12525
12526  ;
12527  return 0;
12528}
12529_ACEOF
12530if ac_fn_c_try_link "$LINENO"; then :
12531  eval $cacheid=yes
12532else
12533  eval $cacheid=no
12534fi
12535rm -f core conftest.err conftest.$ac_objext \
12536    conftest$ac_exeext conftest.$ac_ext
12537fi
12538
12539
12540		CFLAGS="$xorg_testset_save_CFLAGS"
12541
12542		eval supported=\$$cacheid
12543		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12544$as_echo "$supported" >&6; }
12545		if test "$supported" = "yes" ; then
12546			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12547			found="yes"
12548		fi
12549	fi
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565xorg_testset_save_CFLAGS="$CFLAGS"
12566
12567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12568	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12569	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12570$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12571if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12572  $as_echo_n "(cached) " >&6
12573else
12574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575/* end confdefs.h.  */
12576int i;
12577_ACEOF
12578if ac_fn_c_try_compile "$LINENO"; then :
12579  xorg_cv_cc_flag_unknown_warning_option=yes
12580else
12581  xorg_cv_cc_flag_unknown_warning_option=no
12582fi
12583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12584fi
12585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12586$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12587	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12588	CFLAGS="$xorg_testset_save_CFLAGS"
12589fi
12590
12591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12592	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12593		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12594	fi
12595	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12597$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12598if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12599  $as_echo_n "(cached) " >&6
12600else
12601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602/* end confdefs.h.  */
12603int i;
12604_ACEOF
12605if ac_fn_c_try_compile "$LINENO"; then :
12606  xorg_cv_cc_flag_unused_command_line_argument=yes
12607else
12608  xorg_cv_cc_flag_unused_command_line_argument=no
12609fi
12610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12611fi
12612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12613$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12614	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12615	CFLAGS="$xorg_testset_save_CFLAGS"
12616fi
12617
12618found="no"
12619
12620	if test $found = "no" ; then
12621		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12622			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12623		fi
12624
12625		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12626			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12627		fi
12628
12629		CFLAGS="$CFLAGS -Wbad-function-cast"
12630
12631		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12632$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12633		cacheid=xorg_cv_cc_flag__Wbad_function_cast
12634		if eval \${$cacheid+:} false; then :
12635  $as_echo_n "(cached) " >&6
12636else
12637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638/* end confdefs.h.  */
12639int i;
12640int
12641main ()
12642{
12643
12644  ;
12645  return 0;
12646}
12647_ACEOF
12648if ac_fn_c_try_link "$LINENO"; then :
12649  eval $cacheid=yes
12650else
12651  eval $cacheid=no
12652fi
12653rm -f core conftest.err conftest.$ac_objext \
12654    conftest$ac_exeext conftest.$ac_ext
12655fi
12656
12657
12658		CFLAGS="$xorg_testset_save_CFLAGS"
12659
12660		eval supported=\$$cacheid
12661		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12662$as_echo "$supported" >&6; }
12663		if test "$supported" = "yes" ; then
12664			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12665			found="yes"
12666		fi
12667	fi
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683xorg_testset_save_CFLAGS="$CFLAGS"
12684
12685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12686	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12687	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12688$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12689if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12690  $as_echo_n "(cached) " >&6
12691else
12692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693/* end confdefs.h.  */
12694int i;
12695_ACEOF
12696if ac_fn_c_try_compile "$LINENO"; then :
12697  xorg_cv_cc_flag_unknown_warning_option=yes
12698else
12699  xorg_cv_cc_flag_unknown_warning_option=no
12700fi
12701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12702fi
12703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12704$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12705	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12706	CFLAGS="$xorg_testset_save_CFLAGS"
12707fi
12708
12709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12710	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12711		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12712	fi
12713	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12714	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12715$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12716if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12717  $as_echo_n "(cached) " >&6
12718else
12719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720/* end confdefs.h.  */
12721int i;
12722_ACEOF
12723if ac_fn_c_try_compile "$LINENO"; then :
12724  xorg_cv_cc_flag_unused_command_line_argument=yes
12725else
12726  xorg_cv_cc_flag_unused_command_line_argument=no
12727fi
12728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12729fi
12730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12731$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12732	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12733	CFLAGS="$xorg_testset_save_CFLAGS"
12734fi
12735
12736found="no"
12737
12738	if test $found = "no" ; then
12739		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12740			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12741		fi
12742
12743		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12744			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12745		fi
12746
12747		CFLAGS="$CFLAGS -Wold-style-definition"
12748
12749		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12750$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12751		cacheid=xorg_cv_cc_flag__Wold_style_definition
12752		if eval \${$cacheid+:} false; then :
12753  $as_echo_n "(cached) " >&6
12754else
12755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756/* end confdefs.h.  */
12757int i;
12758int
12759main ()
12760{
12761
12762  ;
12763  return 0;
12764}
12765_ACEOF
12766if ac_fn_c_try_link "$LINENO"; then :
12767  eval $cacheid=yes
12768else
12769  eval $cacheid=no
12770fi
12771rm -f core conftest.err conftest.$ac_objext \
12772    conftest$ac_exeext conftest.$ac_ext
12773fi
12774
12775
12776		CFLAGS="$xorg_testset_save_CFLAGS"
12777
12778		eval supported=\$$cacheid
12779		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12780$as_echo "$supported" >&6; }
12781		if test "$supported" = "yes" ; then
12782			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12783			found="yes"
12784		fi
12785	fi
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801xorg_testset_save_CFLAGS="$CFLAGS"
12802
12803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12804	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12805	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12806$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12807if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12808  $as_echo_n "(cached) " >&6
12809else
12810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811/* end confdefs.h.  */
12812int i;
12813_ACEOF
12814if ac_fn_c_try_compile "$LINENO"; then :
12815  xorg_cv_cc_flag_unknown_warning_option=yes
12816else
12817  xorg_cv_cc_flag_unknown_warning_option=no
12818fi
12819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12820fi
12821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12822$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12823	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12824	CFLAGS="$xorg_testset_save_CFLAGS"
12825fi
12826
12827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12828	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12829		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12830	fi
12831	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12833$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12834if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12835  $as_echo_n "(cached) " >&6
12836else
12837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838/* end confdefs.h.  */
12839int i;
12840_ACEOF
12841if ac_fn_c_try_compile "$LINENO"; then :
12842  xorg_cv_cc_flag_unused_command_line_argument=yes
12843else
12844  xorg_cv_cc_flag_unused_command_line_argument=no
12845fi
12846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12847fi
12848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12849$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12850	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12851	CFLAGS="$xorg_testset_save_CFLAGS"
12852fi
12853
12854found="no"
12855
12856	if test $found = "no" ; then
12857		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12859		fi
12860
12861		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12863		fi
12864
12865		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12866
12867		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12868$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12869		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
12870		if eval \${$cacheid+:} false; then :
12871  $as_echo_n "(cached) " >&6
12872else
12873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874/* end confdefs.h.  */
12875int i;
12876int
12877main ()
12878{
12879
12880  ;
12881  return 0;
12882}
12883_ACEOF
12884if ac_fn_c_try_link "$LINENO"; then :
12885  eval $cacheid=yes
12886else
12887  eval $cacheid=no
12888fi
12889rm -f core conftest.err conftest.$ac_objext \
12890    conftest$ac_exeext conftest.$ac_ext
12891fi
12892
12893
12894		CFLAGS="$xorg_testset_save_CFLAGS"
12895
12896		eval supported=\$$cacheid
12897		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12898$as_echo "$supported" >&6; }
12899		if test "$supported" = "yes" ; then
12900			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12901			found="yes"
12902		fi
12903	fi
12904
12905
12906
12907
12908
12909# This chunk adds additional warnings that could catch undesired effects.
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923xorg_testset_save_CFLAGS="$CFLAGS"
12924
12925if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12926	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12927	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12928$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12929if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12930  $as_echo_n "(cached) " >&6
12931else
12932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12933/* end confdefs.h.  */
12934int i;
12935_ACEOF
12936if ac_fn_c_try_compile "$LINENO"; then :
12937  xorg_cv_cc_flag_unknown_warning_option=yes
12938else
12939  xorg_cv_cc_flag_unknown_warning_option=no
12940fi
12941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12942fi
12943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12944$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12945	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12946	CFLAGS="$xorg_testset_save_CFLAGS"
12947fi
12948
12949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12950	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12951		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12952	fi
12953	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12954	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12955$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12956if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12957  $as_echo_n "(cached) " >&6
12958else
12959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12960/* end confdefs.h.  */
12961int i;
12962_ACEOF
12963if ac_fn_c_try_compile "$LINENO"; then :
12964  xorg_cv_cc_flag_unused_command_line_argument=yes
12965else
12966  xorg_cv_cc_flag_unused_command_line_argument=no
12967fi
12968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12969fi
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12971$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12972	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12973	CFLAGS="$xorg_testset_save_CFLAGS"
12974fi
12975
12976found="no"
12977
12978	if test $found = "no" ; then
12979		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12980			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12981		fi
12982
12983		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12984			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12985		fi
12986
12987		CFLAGS="$CFLAGS -Wunused"
12988
12989		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12990$as_echo_n "checking if $CC supports -Wunused... " >&6; }
12991		cacheid=xorg_cv_cc_flag__Wunused
12992		if eval \${$cacheid+:} false; then :
12993  $as_echo_n "(cached) " >&6
12994else
12995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996/* end confdefs.h.  */
12997int i;
12998int
12999main ()
13000{
13001
13002  ;
13003  return 0;
13004}
13005_ACEOF
13006if ac_fn_c_try_link "$LINENO"; then :
13007  eval $cacheid=yes
13008else
13009  eval $cacheid=no
13010fi
13011rm -f core conftest.err conftest.$ac_objext \
13012    conftest$ac_exeext conftest.$ac_ext
13013fi
13014
13015
13016		CFLAGS="$xorg_testset_save_CFLAGS"
13017
13018		eval supported=\$$cacheid
13019		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13020$as_echo "$supported" >&6; }
13021		if test "$supported" = "yes" ; then
13022			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13023			found="yes"
13024		fi
13025	fi
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041xorg_testset_save_CFLAGS="$CFLAGS"
13042
13043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13044	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13045	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13046$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13047if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13048  $as_echo_n "(cached) " >&6
13049else
13050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051/* end confdefs.h.  */
13052int i;
13053_ACEOF
13054if ac_fn_c_try_compile "$LINENO"; then :
13055  xorg_cv_cc_flag_unknown_warning_option=yes
13056else
13057  xorg_cv_cc_flag_unknown_warning_option=no
13058fi
13059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13060fi
13061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13062$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13063	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13064	CFLAGS="$xorg_testset_save_CFLAGS"
13065fi
13066
13067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13068	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13069		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13070	fi
13071	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13072	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13073$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13074if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13075  $as_echo_n "(cached) " >&6
13076else
13077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078/* end confdefs.h.  */
13079int i;
13080_ACEOF
13081if ac_fn_c_try_compile "$LINENO"; then :
13082  xorg_cv_cc_flag_unused_command_line_argument=yes
13083else
13084  xorg_cv_cc_flag_unused_command_line_argument=no
13085fi
13086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13087fi
13088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13089$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13090	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13091	CFLAGS="$xorg_testset_save_CFLAGS"
13092fi
13093
13094found="no"
13095
13096	if test $found = "no" ; then
13097		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13098			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13099		fi
13100
13101		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13102			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13103		fi
13104
13105		CFLAGS="$CFLAGS -Wuninitialized"
13106
13107		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13108$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13109		cacheid=xorg_cv_cc_flag__Wuninitialized
13110		if eval \${$cacheid+:} false; then :
13111  $as_echo_n "(cached) " >&6
13112else
13113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114/* end confdefs.h.  */
13115int i;
13116int
13117main ()
13118{
13119
13120  ;
13121  return 0;
13122}
13123_ACEOF
13124if ac_fn_c_try_link "$LINENO"; then :
13125  eval $cacheid=yes
13126else
13127  eval $cacheid=no
13128fi
13129rm -f core conftest.err conftest.$ac_objext \
13130    conftest$ac_exeext conftest.$ac_ext
13131fi
13132
13133
13134		CFLAGS="$xorg_testset_save_CFLAGS"
13135
13136		eval supported=\$$cacheid
13137		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13138$as_echo "$supported" >&6; }
13139		if test "$supported" = "yes" ; then
13140			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13141			found="yes"
13142		fi
13143	fi
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159xorg_testset_save_CFLAGS="$CFLAGS"
13160
13161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13162	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13163	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13164$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13165if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13166  $as_echo_n "(cached) " >&6
13167else
13168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169/* end confdefs.h.  */
13170int i;
13171_ACEOF
13172if ac_fn_c_try_compile "$LINENO"; then :
13173  xorg_cv_cc_flag_unknown_warning_option=yes
13174else
13175  xorg_cv_cc_flag_unknown_warning_option=no
13176fi
13177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13178fi
13179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13180$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13181	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13182	CFLAGS="$xorg_testset_save_CFLAGS"
13183fi
13184
13185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13186	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13187		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13188	fi
13189	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13190	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13191$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13192if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13193  $as_echo_n "(cached) " >&6
13194else
13195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196/* end confdefs.h.  */
13197int i;
13198_ACEOF
13199if ac_fn_c_try_compile "$LINENO"; then :
13200  xorg_cv_cc_flag_unused_command_line_argument=yes
13201else
13202  xorg_cv_cc_flag_unused_command_line_argument=no
13203fi
13204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13205fi
13206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13207$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13208	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13209	CFLAGS="$xorg_testset_save_CFLAGS"
13210fi
13211
13212found="no"
13213
13214	if test $found = "no" ; then
13215		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13216			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13217		fi
13218
13219		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13220			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13221		fi
13222
13223		CFLAGS="$CFLAGS -Wshadow"
13224
13225		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13226$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13227		cacheid=xorg_cv_cc_flag__Wshadow
13228		if eval \${$cacheid+:} false; then :
13229  $as_echo_n "(cached) " >&6
13230else
13231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13232/* end confdefs.h.  */
13233int i;
13234int
13235main ()
13236{
13237
13238  ;
13239  return 0;
13240}
13241_ACEOF
13242if ac_fn_c_try_link "$LINENO"; then :
13243  eval $cacheid=yes
13244else
13245  eval $cacheid=no
13246fi
13247rm -f core conftest.err conftest.$ac_objext \
13248    conftest$ac_exeext conftest.$ac_ext
13249fi
13250
13251
13252		CFLAGS="$xorg_testset_save_CFLAGS"
13253
13254		eval supported=\$$cacheid
13255		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13256$as_echo "$supported" >&6; }
13257		if test "$supported" = "yes" ; then
13258			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13259			found="yes"
13260		fi
13261	fi
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277xorg_testset_save_CFLAGS="$CFLAGS"
13278
13279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13280	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13281	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13282$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13283if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13284  $as_echo_n "(cached) " >&6
13285else
13286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287/* end confdefs.h.  */
13288int i;
13289_ACEOF
13290if ac_fn_c_try_compile "$LINENO"; then :
13291  xorg_cv_cc_flag_unknown_warning_option=yes
13292else
13293  xorg_cv_cc_flag_unknown_warning_option=no
13294fi
13295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13296fi
13297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13298$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13299	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13300	CFLAGS="$xorg_testset_save_CFLAGS"
13301fi
13302
13303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13304	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13305		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13306	fi
13307	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13308	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13309$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13310if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13311  $as_echo_n "(cached) " >&6
13312else
13313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314/* end confdefs.h.  */
13315int i;
13316_ACEOF
13317if ac_fn_c_try_compile "$LINENO"; then :
13318  xorg_cv_cc_flag_unused_command_line_argument=yes
13319else
13320  xorg_cv_cc_flag_unused_command_line_argument=no
13321fi
13322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13323fi
13324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13325$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13326	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13327	CFLAGS="$xorg_testset_save_CFLAGS"
13328fi
13329
13330found="no"
13331
13332	if test $found = "no" ; then
13333		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13335		fi
13336
13337		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13339		fi
13340
13341		CFLAGS="$CFLAGS -Wcast-qual"
13342
13343		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13344$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13345		cacheid=xorg_cv_cc_flag__Wcast_qual
13346		if eval \${$cacheid+:} false; then :
13347  $as_echo_n "(cached) " >&6
13348else
13349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13350/* end confdefs.h.  */
13351int i;
13352int
13353main ()
13354{
13355
13356  ;
13357  return 0;
13358}
13359_ACEOF
13360if ac_fn_c_try_link "$LINENO"; then :
13361  eval $cacheid=yes
13362else
13363  eval $cacheid=no
13364fi
13365rm -f core conftest.err conftest.$ac_objext \
13366    conftest$ac_exeext conftest.$ac_ext
13367fi
13368
13369
13370		CFLAGS="$xorg_testset_save_CFLAGS"
13371
13372		eval supported=\$$cacheid
13373		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13374$as_echo "$supported" >&6; }
13375		if test "$supported" = "yes" ; then
13376			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13377			found="yes"
13378		fi
13379	fi
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395xorg_testset_save_CFLAGS="$CFLAGS"
13396
13397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13398	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13399	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13400$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13401if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13402  $as_echo_n "(cached) " >&6
13403else
13404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405/* end confdefs.h.  */
13406int i;
13407_ACEOF
13408if ac_fn_c_try_compile "$LINENO"; then :
13409  xorg_cv_cc_flag_unknown_warning_option=yes
13410else
13411  xorg_cv_cc_flag_unknown_warning_option=no
13412fi
13413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13414fi
13415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13416$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13417	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13418	CFLAGS="$xorg_testset_save_CFLAGS"
13419fi
13420
13421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13422	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13423		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13424	fi
13425	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13426	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13427$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13428if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13429  $as_echo_n "(cached) " >&6
13430else
13431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432/* end confdefs.h.  */
13433int i;
13434_ACEOF
13435if ac_fn_c_try_compile "$LINENO"; then :
13436  xorg_cv_cc_flag_unused_command_line_argument=yes
13437else
13438  xorg_cv_cc_flag_unused_command_line_argument=no
13439fi
13440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441fi
13442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13443$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13444	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13445	CFLAGS="$xorg_testset_save_CFLAGS"
13446fi
13447
13448found="no"
13449
13450	if test $found = "no" ; then
13451		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13452			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13453		fi
13454
13455		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13456			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13457		fi
13458
13459		CFLAGS="$CFLAGS -Wmissing-noreturn"
13460
13461		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13462$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13463		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13464		if eval \${$cacheid+:} false; then :
13465  $as_echo_n "(cached) " >&6
13466else
13467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13468/* end confdefs.h.  */
13469int i;
13470int
13471main ()
13472{
13473
13474  ;
13475  return 0;
13476}
13477_ACEOF
13478if ac_fn_c_try_link "$LINENO"; then :
13479  eval $cacheid=yes
13480else
13481  eval $cacheid=no
13482fi
13483rm -f core conftest.err conftest.$ac_objext \
13484    conftest$ac_exeext conftest.$ac_ext
13485fi
13486
13487
13488		CFLAGS="$xorg_testset_save_CFLAGS"
13489
13490		eval supported=\$$cacheid
13491		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13492$as_echo "$supported" >&6; }
13493		if test "$supported" = "yes" ; then
13494			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13495			found="yes"
13496		fi
13497	fi
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513xorg_testset_save_CFLAGS="$CFLAGS"
13514
13515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13516	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13517	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13518$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13519if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13520  $as_echo_n "(cached) " >&6
13521else
13522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523/* end confdefs.h.  */
13524int i;
13525_ACEOF
13526if ac_fn_c_try_compile "$LINENO"; then :
13527  xorg_cv_cc_flag_unknown_warning_option=yes
13528else
13529  xorg_cv_cc_flag_unknown_warning_option=no
13530fi
13531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13532fi
13533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13534$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13535	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13536	CFLAGS="$xorg_testset_save_CFLAGS"
13537fi
13538
13539if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13540	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13541		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13542	fi
13543	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13544	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13545$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13546if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13547  $as_echo_n "(cached) " >&6
13548else
13549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550/* end confdefs.h.  */
13551int i;
13552_ACEOF
13553if ac_fn_c_try_compile "$LINENO"; then :
13554  xorg_cv_cc_flag_unused_command_line_argument=yes
13555else
13556  xorg_cv_cc_flag_unused_command_line_argument=no
13557fi
13558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13559fi
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13561$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13562	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13563	CFLAGS="$xorg_testset_save_CFLAGS"
13564fi
13565
13566found="no"
13567
13568	if test $found = "no" ; then
13569		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13570			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13571		fi
13572
13573		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13574			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13575		fi
13576
13577		CFLAGS="$CFLAGS -Wmissing-format-attribute"
13578
13579		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13580$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13581		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13582		if eval \${$cacheid+:} false; then :
13583  $as_echo_n "(cached) " >&6
13584else
13585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13586/* end confdefs.h.  */
13587int i;
13588int
13589main ()
13590{
13591
13592  ;
13593  return 0;
13594}
13595_ACEOF
13596if ac_fn_c_try_link "$LINENO"; then :
13597  eval $cacheid=yes
13598else
13599  eval $cacheid=no
13600fi
13601rm -f core conftest.err conftest.$ac_objext \
13602    conftest$ac_exeext conftest.$ac_ext
13603fi
13604
13605
13606		CFLAGS="$xorg_testset_save_CFLAGS"
13607
13608		eval supported=\$$cacheid
13609		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13610$as_echo "$supported" >&6; }
13611		if test "$supported" = "yes" ; then
13612			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13613			found="yes"
13614		fi
13615	fi
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631xorg_testset_save_CFLAGS="$CFLAGS"
13632
13633if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13634	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13636$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13637if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13638  $as_echo_n "(cached) " >&6
13639else
13640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641/* end confdefs.h.  */
13642int i;
13643_ACEOF
13644if ac_fn_c_try_compile "$LINENO"; then :
13645  xorg_cv_cc_flag_unknown_warning_option=yes
13646else
13647  xorg_cv_cc_flag_unknown_warning_option=no
13648fi
13649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13650fi
13651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13652$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13653	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13654	CFLAGS="$xorg_testset_save_CFLAGS"
13655fi
13656
13657if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13658	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13659		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13660	fi
13661	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13662	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13663$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13664if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13665  $as_echo_n "(cached) " >&6
13666else
13667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13668/* end confdefs.h.  */
13669int i;
13670_ACEOF
13671if ac_fn_c_try_compile "$LINENO"; then :
13672  xorg_cv_cc_flag_unused_command_line_argument=yes
13673else
13674  xorg_cv_cc_flag_unused_command_line_argument=no
13675fi
13676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13677fi
13678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13679$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13680	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13681	CFLAGS="$xorg_testset_save_CFLAGS"
13682fi
13683
13684found="no"
13685
13686	if test $found = "no" ; then
13687		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13688			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13689		fi
13690
13691		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13692			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13693		fi
13694
13695		CFLAGS="$CFLAGS -Wredundant-decls"
13696
13697		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13698$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13699		cacheid=xorg_cv_cc_flag__Wredundant_decls
13700		if eval \${$cacheid+:} false; then :
13701  $as_echo_n "(cached) " >&6
13702else
13703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13704/* end confdefs.h.  */
13705int i;
13706int
13707main ()
13708{
13709
13710  ;
13711  return 0;
13712}
13713_ACEOF
13714if ac_fn_c_try_link "$LINENO"; then :
13715  eval $cacheid=yes
13716else
13717  eval $cacheid=no
13718fi
13719rm -f core conftest.err conftest.$ac_objext \
13720    conftest$ac_exeext conftest.$ac_ext
13721fi
13722
13723
13724		CFLAGS="$xorg_testset_save_CFLAGS"
13725
13726		eval supported=\$$cacheid
13727		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13728$as_echo "$supported" >&6; }
13729		if test "$supported" = "yes" ; then
13730			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13731			found="yes"
13732		fi
13733	fi
13734
13735
13736
13737# These are currently disabled because they are noisy.  They will be enabled
13738# in the future once the codebase is sufficiently modernized to silence
13739# them.  For now, I don't want them to drown out the other warnings.
13740# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13741# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13742# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13743
13744# Turn some warnings into errors, so we don't accidently get successful builds
13745# when there are problems that should be fixed.
13746
13747if test "x$SELECTIVE_WERROR" = "xyes" ; then
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761xorg_testset_save_CFLAGS="$CFLAGS"
13762
13763if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13764	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13765	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13766$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13767if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13768  $as_echo_n "(cached) " >&6
13769else
13770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771/* end confdefs.h.  */
13772int i;
13773_ACEOF
13774if ac_fn_c_try_compile "$LINENO"; then :
13775  xorg_cv_cc_flag_unknown_warning_option=yes
13776else
13777  xorg_cv_cc_flag_unknown_warning_option=no
13778fi
13779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780fi
13781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13782$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13783	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13784	CFLAGS="$xorg_testset_save_CFLAGS"
13785fi
13786
13787if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13788	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13789		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13790	fi
13791	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13792	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13793$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13794if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13795  $as_echo_n "(cached) " >&6
13796else
13797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798/* end confdefs.h.  */
13799int i;
13800_ACEOF
13801if ac_fn_c_try_compile "$LINENO"; then :
13802  xorg_cv_cc_flag_unused_command_line_argument=yes
13803else
13804  xorg_cv_cc_flag_unused_command_line_argument=no
13805fi
13806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13807fi
13808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13809$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13810	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13811	CFLAGS="$xorg_testset_save_CFLAGS"
13812fi
13813
13814found="no"
13815
13816	if test $found = "no" ; then
13817		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13818			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13819		fi
13820
13821		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13822			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13823		fi
13824
13825		CFLAGS="$CFLAGS -Werror=implicit"
13826
13827		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13828$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13829		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
13830		if eval \${$cacheid+:} false; then :
13831  $as_echo_n "(cached) " >&6
13832else
13833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834/* end confdefs.h.  */
13835int i;
13836int
13837main ()
13838{
13839
13840  ;
13841  return 0;
13842}
13843_ACEOF
13844if ac_fn_c_try_link "$LINENO"; then :
13845  eval $cacheid=yes
13846else
13847  eval $cacheid=no
13848fi
13849rm -f core conftest.err conftest.$ac_objext \
13850    conftest$ac_exeext conftest.$ac_ext
13851fi
13852
13853
13854		CFLAGS="$xorg_testset_save_CFLAGS"
13855
13856		eval supported=\$$cacheid
13857		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13858$as_echo "$supported" >&6; }
13859		if test "$supported" = "yes" ; then
13860			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13861			found="yes"
13862		fi
13863	fi
13864
13865	if test $found = "no" ; then
13866		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13867			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13868		fi
13869
13870		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13871			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13872		fi
13873
13874		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13875
13876		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13877$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13878		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
13879		if eval \${$cacheid+:} false; then :
13880  $as_echo_n "(cached) " >&6
13881else
13882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883/* end confdefs.h.  */
13884int i;
13885int
13886main ()
13887{
13888
13889  ;
13890  return 0;
13891}
13892_ACEOF
13893if ac_fn_c_try_link "$LINENO"; then :
13894  eval $cacheid=yes
13895else
13896  eval $cacheid=no
13897fi
13898rm -f core conftest.err conftest.$ac_objext \
13899    conftest$ac_exeext conftest.$ac_ext
13900fi
13901
13902
13903		CFLAGS="$xorg_testset_save_CFLAGS"
13904
13905		eval supported=\$$cacheid
13906		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13907$as_echo "$supported" >&6; }
13908		if test "$supported" = "yes" ; then
13909			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13910			found="yes"
13911		fi
13912	fi
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928xorg_testset_save_CFLAGS="$CFLAGS"
13929
13930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13931	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13932	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13933$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13934if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13935  $as_echo_n "(cached) " >&6
13936else
13937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938/* end confdefs.h.  */
13939int i;
13940_ACEOF
13941if ac_fn_c_try_compile "$LINENO"; then :
13942  xorg_cv_cc_flag_unknown_warning_option=yes
13943else
13944  xorg_cv_cc_flag_unknown_warning_option=no
13945fi
13946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13947fi
13948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13949$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13950	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13951	CFLAGS="$xorg_testset_save_CFLAGS"
13952fi
13953
13954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13955	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13956		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13957	fi
13958	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13959	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13960$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13961if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13962  $as_echo_n "(cached) " >&6
13963else
13964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13965/* end confdefs.h.  */
13966int i;
13967_ACEOF
13968if ac_fn_c_try_compile "$LINENO"; then :
13969  xorg_cv_cc_flag_unused_command_line_argument=yes
13970else
13971  xorg_cv_cc_flag_unused_command_line_argument=no
13972fi
13973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13974fi
13975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13976$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13977	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13978	CFLAGS="$xorg_testset_save_CFLAGS"
13979fi
13980
13981found="no"
13982
13983	if test $found = "no" ; then
13984		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13985			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13986		fi
13987
13988		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13989			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13990		fi
13991
13992		CFLAGS="$CFLAGS -Werror=nonnull"
13993
13994		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13995$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13996		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
13997		if eval \${$cacheid+:} false; then :
13998  $as_echo_n "(cached) " >&6
13999else
14000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001/* end confdefs.h.  */
14002int i;
14003int
14004main ()
14005{
14006
14007  ;
14008  return 0;
14009}
14010_ACEOF
14011if ac_fn_c_try_link "$LINENO"; then :
14012  eval $cacheid=yes
14013else
14014  eval $cacheid=no
14015fi
14016rm -f core conftest.err conftest.$ac_objext \
14017    conftest$ac_exeext conftest.$ac_ext
14018fi
14019
14020
14021		CFLAGS="$xorg_testset_save_CFLAGS"
14022
14023		eval supported=\$$cacheid
14024		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14025$as_echo "$supported" >&6; }
14026		if test "$supported" = "yes" ; then
14027			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14028			found="yes"
14029		fi
14030	fi
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046xorg_testset_save_CFLAGS="$CFLAGS"
14047
14048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14049	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14050	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14051$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14052if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14053  $as_echo_n "(cached) " >&6
14054else
14055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14056/* end confdefs.h.  */
14057int i;
14058_ACEOF
14059if ac_fn_c_try_compile "$LINENO"; then :
14060  xorg_cv_cc_flag_unknown_warning_option=yes
14061else
14062  xorg_cv_cc_flag_unknown_warning_option=no
14063fi
14064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14065fi
14066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14067$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14068	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14069	CFLAGS="$xorg_testset_save_CFLAGS"
14070fi
14071
14072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14073	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14074		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14075	fi
14076	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14077	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14078$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14079if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14080  $as_echo_n "(cached) " >&6
14081else
14082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083/* end confdefs.h.  */
14084int i;
14085_ACEOF
14086if ac_fn_c_try_compile "$LINENO"; then :
14087  xorg_cv_cc_flag_unused_command_line_argument=yes
14088else
14089  xorg_cv_cc_flag_unused_command_line_argument=no
14090fi
14091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14092fi
14093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14094$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14095	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14096	CFLAGS="$xorg_testset_save_CFLAGS"
14097fi
14098
14099found="no"
14100
14101	if test $found = "no" ; then
14102		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14103			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14104		fi
14105
14106		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14107			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14108		fi
14109
14110		CFLAGS="$CFLAGS -Werror=init-self"
14111
14112		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14113$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14114		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14115		if eval \${$cacheid+:} false; then :
14116  $as_echo_n "(cached) " >&6
14117else
14118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14119/* end confdefs.h.  */
14120int i;
14121int
14122main ()
14123{
14124
14125  ;
14126  return 0;
14127}
14128_ACEOF
14129if ac_fn_c_try_link "$LINENO"; then :
14130  eval $cacheid=yes
14131else
14132  eval $cacheid=no
14133fi
14134rm -f core conftest.err conftest.$ac_objext \
14135    conftest$ac_exeext conftest.$ac_ext
14136fi
14137
14138
14139		CFLAGS="$xorg_testset_save_CFLAGS"
14140
14141		eval supported=\$$cacheid
14142		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14143$as_echo "$supported" >&6; }
14144		if test "$supported" = "yes" ; then
14145			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14146			found="yes"
14147		fi
14148	fi
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164xorg_testset_save_CFLAGS="$CFLAGS"
14165
14166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14167	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14168	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14169$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14170if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14171  $as_echo_n "(cached) " >&6
14172else
14173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174/* end confdefs.h.  */
14175int i;
14176_ACEOF
14177if ac_fn_c_try_compile "$LINENO"; then :
14178  xorg_cv_cc_flag_unknown_warning_option=yes
14179else
14180  xorg_cv_cc_flag_unknown_warning_option=no
14181fi
14182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14183fi
14184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14185$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14186	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14187	CFLAGS="$xorg_testset_save_CFLAGS"
14188fi
14189
14190if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14191	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14192		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14193	fi
14194	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14195	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14196$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14197if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14198  $as_echo_n "(cached) " >&6
14199else
14200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14201/* end confdefs.h.  */
14202int i;
14203_ACEOF
14204if ac_fn_c_try_compile "$LINENO"; then :
14205  xorg_cv_cc_flag_unused_command_line_argument=yes
14206else
14207  xorg_cv_cc_flag_unused_command_line_argument=no
14208fi
14209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14210fi
14211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14212$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14213	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14214	CFLAGS="$xorg_testset_save_CFLAGS"
14215fi
14216
14217found="no"
14218
14219	if test $found = "no" ; then
14220		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14221			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14222		fi
14223
14224		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14225			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14226		fi
14227
14228		CFLAGS="$CFLAGS -Werror=main"
14229
14230		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14231$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14232		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14233		if eval \${$cacheid+:} false; then :
14234  $as_echo_n "(cached) " >&6
14235else
14236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237/* end confdefs.h.  */
14238int i;
14239int
14240main ()
14241{
14242
14243  ;
14244  return 0;
14245}
14246_ACEOF
14247if ac_fn_c_try_link "$LINENO"; then :
14248  eval $cacheid=yes
14249else
14250  eval $cacheid=no
14251fi
14252rm -f core conftest.err conftest.$ac_objext \
14253    conftest$ac_exeext conftest.$ac_ext
14254fi
14255
14256
14257		CFLAGS="$xorg_testset_save_CFLAGS"
14258
14259		eval supported=\$$cacheid
14260		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14261$as_echo "$supported" >&6; }
14262		if test "$supported" = "yes" ; then
14263			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14264			found="yes"
14265		fi
14266	fi
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282xorg_testset_save_CFLAGS="$CFLAGS"
14283
14284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14285	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14286	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14287$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14288if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14289  $as_echo_n "(cached) " >&6
14290else
14291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14292/* end confdefs.h.  */
14293int i;
14294_ACEOF
14295if ac_fn_c_try_compile "$LINENO"; then :
14296  xorg_cv_cc_flag_unknown_warning_option=yes
14297else
14298  xorg_cv_cc_flag_unknown_warning_option=no
14299fi
14300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14301fi
14302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14303$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14304	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14305	CFLAGS="$xorg_testset_save_CFLAGS"
14306fi
14307
14308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14309	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14310		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14311	fi
14312	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14314$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14315if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14316  $as_echo_n "(cached) " >&6
14317else
14318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319/* end confdefs.h.  */
14320int i;
14321_ACEOF
14322if ac_fn_c_try_compile "$LINENO"; then :
14323  xorg_cv_cc_flag_unused_command_line_argument=yes
14324else
14325  xorg_cv_cc_flag_unused_command_line_argument=no
14326fi
14327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14328fi
14329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14330$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14331	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14332	CFLAGS="$xorg_testset_save_CFLAGS"
14333fi
14334
14335found="no"
14336
14337	if test $found = "no" ; then
14338		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14339			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14340		fi
14341
14342		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14343			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14344		fi
14345
14346		CFLAGS="$CFLAGS -Werror=missing-braces"
14347
14348		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14349$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14350		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14351		if eval \${$cacheid+:} false; then :
14352  $as_echo_n "(cached) " >&6
14353else
14354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355/* end confdefs.h.  */
14356int i;
14357int
14358main ()
14359{
14360
14361  ;
14362  return 0;
14363}
14364_ACEOF
14365if ac_fn_c_try_link "$LINENO"; then :
14366  eval $cacheid=yes
14367else
14368  eval $cacheid=no
14369fi
14370rm -f core conftest.err conftest.$ac_objext \
14371    conftest$ac_exeext conftest.$ac_ext
14372fi
14373
14374
14375		CFLAGS="$xorg_testset_save_CFLAGS"
14376
14377		eval supported=\$$cacheid
14378		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14379$as_echo "$supported" >&6; }
14380		if test "$supported" = "yes" ; then
14381			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14382			found="yes"
14383		fi
14384	fi
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400xorg_testset_save_CFLAGS="$CFLAGS"
14401
14402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14403	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14404	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14405$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14406if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14407  $as_echo_n "(cached) " >&6
14408else
14409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410/* end confdefs.h.  */
14411int i;
14412_ACEOF
14413if ac_fn_c_try_compile "$LINENO"; then :
14414  xorg_cv_cc_flag_unknown_warning_option=yes
14415else
14416  xorg_cv_cc_flag_unknown_warning_option=no
14417fi
14418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14419fi
14420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14421$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14422	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14423	CFLAGS="$xorg_testset_save_CFLAGS"
14424fi
14425
14426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14427	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14428		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14429	fi
14430	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14431	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14432$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14433if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14434  $as_echo_n "(cached) " >&6
14435else
14436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14437/* end confdefs.h.  */
14438int i;
14439_ACEOF
14440if ac_fn_c_try_compile "$LINENO"; then :
14441  xorg_cv_cc_flag_unused_command_line_argument=yes
14442else
14443  xorg_cv_cc_flag_unused_command_line_argument=no
14444fi
14445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14446fi
14447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14448$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14449	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14450	CFLAGS="$xorg_testset_save_CFLAGS"
14451fi
14452
14453found="no"
14454
14455	if test $found = "no" ; then
14456		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14457			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14458		fi
14459
14460		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14461			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14462		fi
14463
14464		CFLAGS="$CFLAGS -Werror=sequence-point"
14465
14466		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14467$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14468		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14469		if eval \${$cacheid+:} false; then :
14470  $as_echo_n "(cached) " >&6
14471else
14472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14473/* end confdefs.h.  */
14474int i;
14475int
14476main ()
14477{
14478
14479  ;
14480  return 0;
14481}
14482_ACEOF
14483if ac_fn_c_try_link "$LINENO"; then :
14484  eval $cacheid=yes
14485else
14486  eval $cacheid=no
14487fi
14488rm -f core conftest.err conftest.$ac_objext \
14489    conftest$ac_exeext conftest.$ac_ext
14490fi
14491
14492
14493		CFLAGS="$xorg_testset_save_CFLAGS"
14494
14495		eval supported=\$$cacheid
14496		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14497$as_echo "$supported" >&6; }
14498		if test "$supported" = "yes" ; then
14499			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14500			found="yes"
14501		fi
14502	fi
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518xorg_testset_save_CFLAGS="$CFLAGS"
14519
14520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14521	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14522	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14523$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14524if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14525  $as_echo_n "(cached) " >&6
14526else
14527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528/* end confdefs.h.  */
14529int i;
14530_ACEOF
14531if ac_fn_c_try_compile "$LINENO"; then :
14532  xorg_cv_cc_flag_unknown_warning_option=yes
14533else
14534  xorg_cv_cc_flag_unknown_warning_option=no
14535fi
14536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14537fi
14538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14539$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14540	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14541	CFLAGS="$xorg_testset_save_CFLAGS"
14542fi
14543
14544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14545	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14546		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14547	fi
14548	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14550$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14551if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14552  $as_echo_n "(cached) " >&6
14553else
14554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14555/* end confdefs.h.  */
14556int i;
14557_ACEOF
14558if ac_fn_c_try_compile "$LINENO"; then :
14559  xorg_cv_cc_flag_unused_command_line_argument=yes
14560else
14561  xorg_cv_cc_flag_unused_command_line_argument=no
14562fi
14563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14564fi
14565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14566$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14567	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14568	CFLAGS="$xorg_testset_save_CFLAGS"
14569fi
14570
14571found="no"
14572
14573	if test $found = "no" ; then
14574		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14575			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14576		fi
14577
14578		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14579			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14580		fi
14581
14582		CFLAGS="$CFLAGS -Werror=return-type"
14583
14584		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14585$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14586		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
14587		if eval \${$cacheid+:} false; then :
14588  $as_echo_n "(cached) " >&6
14589else
14590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14591/* end confdefs.h.  */
14592int i;
14593int
14594main ()
14595{
14596
14597  ;
14598  return 0;
14599}
14600_ACEOF
14601if ac_fn_c_try_link "$LINENO"; then :
14602  eval $cacheid=yes
14603else
14604  eval $cacheid=no
14605fi
14606rm -f core conftest.err conftest.$ac_objext \
14607    conftest$ac_exeext conftest.$ac_ext
14608fi
14609
14610
14611		CFLAGS="$xorg_testset_save_CFLAGS"
14612
14613		eval supported=\$$cacheid
14614		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14615$as_echo "$supported" >&6; }
14616		if test "$supported" = "yes" ; then
14617			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14618			found="yes"
14619		fi
14620	fi
14621
14622	if test $found = "no" ; then
14623		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14624			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14625		fi
14626
14627		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14628			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14629		fi
14630
14631		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14632
14633		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14634$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14635		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
14636		if eval \${$cacheid+:} false; then :
14637  $as_echo_n "(cached) " >&6
14638else
14639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640/* end confdefs.h.  */
14641int i;
14642int
14643main ()
14644{
14645
14646  ;
14647  return 0;
14648}
14649_ACEOF
14650if ac_fn_c_try_link "$LINENO"; then :
14651  eval $cacheid=yes
14652else
14653  eval $cacheid=no
14654fi
14655rm -f core conftest.err conftest.$ac_objext \
14656    conftest$ac_exeext conftest.$ac_ext
14657fi
14658
14659
14660		CFLAGS="$xorg_testset_save_CFLAGS"
14661
14662		eval supported=\$$cacheid
14663		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14664$as_echo "$supported" >&6; }
14665		if test "$supported" = "yes" ; then
14666			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14667			found="yes"
14668		fi
14669	fi
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685xorg_testset_save_CFLAGS="$CFLAGS"
14686
14687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14688	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14689	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14690$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14691if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14692  $as_echo_n "(cached) " >&6
14693else
14694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14695/* end confdefs.h.  */
14696int i;
14697_ACEOF
14698if ac_fn_c_try_compile "$LINENO"; then :
14699  xorg_cv_cc_flag_unknown_warning_option=yes
14700else
14701  xorg_cv_cc_flag_unknown_warning_option=no
14702fi
14703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14704fi
14705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14706$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14707	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14708	CFLAGS="$xorg_testset_save_CFLAGS"
14709fi
14710
14711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14712	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14713		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14714	fi
14715	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14716	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14717$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14718if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14719  $as_echo_n "(cached) " >&6
14720else
14721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14722/* end confdefs.h.  */
14723int i;
14724_ACEOF
14725if ac_fn_c_try_compile "$LINENO"; then :
14726  xorg_cv_cc_flag_unused_command_line_argument=yes
14727else
14728  xorg_cv_cc_flag_unused_command_line_argument=no
14729fi
14730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14731fi
14732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14733$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14734	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14735	CFLAGS="$xorg_testset_save_CFLAGS"
14736fi
14737
14738found="no"
14739
14740	if test $found = "no" ; then
14741		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14742			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14743		fi
14744
14745		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14746			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14747		fi
14748
14749		CFLAGS="$CFLAGS -Werror=trigraphs"
14750
14751		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14752$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14753		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
14754		if eval \${$cacheid+:} false; then :
14755  $as_echo_n "(cached) " >&6
14756else
14757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758/* end confdefs.h.  */
14759int i;
14760int
14761main ()
14762{
14763
14764  ;
14765  return 0;
14766}
14767_ACEOF
14768if ac_fn_c_try_link "$LINENO"; then :
14769  eval $cacheid=yes
14770else
14771  eval $cacheid=no
14772fi
14773rm -f core conftest.err conftest.$ac_objext \
14774    conftest$ac_exeext conftest.$ac_ext
14775fi
14776
14777
14778		CFLAGS="$xorg_testset_save_CFLAGS"
14779
14780		eval supported=\$$cacheid
14781		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14782$as_echo "$supported" >&6; }
14783		if test "$supported" = "yes" ; then
14784			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14785			found="yes"
14786		fi
14787	fi
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803xorg_testset_save_CFLAGS="$CFLAGS"
14804
14805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14806	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14807	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14808$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14809if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14810  $as_echo_n "(cached) " >&6
14811else
14812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14813/* end confdefs.h.  */
14814int i;
14815_ACEOF
14816if ac_fn_c_try_compile "$LINENO"; then :
14817  xorg_cv_cc_flag_unknown_warning_option=yes
14818else
14819  xorg_cv_cc_flag_unknown_warning_option=no
14820fi
14821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14822fi
14823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14824$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14825	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14826	CFLAGS="$xorg_testset_save_CFLAGS"
14827fi
14828
14829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14830	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14831		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14832	fi
14833	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14834	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14835$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14836if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14837  $as_echo_n "(cached) " >&6
14838else
14839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840/* end confdefs.h.  */
14841int i;
14842_ACEOF
14843if ac_fn_c_try_compile "$LINENO"; then :
14844  xorg_cv_cc_flag_unused_command_line_argument=yes
14845else
14846  xorg_cv_cc_flag_unused_command_line_argument=no
14847fi
14848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14849fi
14850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14851$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14852	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14853	CFLAGS="$xorg_testset_save_CFLAGS"
14854fi
14855
14856found="no"
14857
14858	if test $found = "no" ; then
14859		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14860			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14861		fi
14862
14863		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14864			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14865		fi
14866
14867		CFLAGS="$CFLAGS -Werror=array-bounds"
14868
14869		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14870$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14871		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
14872		if eval \${$cacheid+:} false; then :
14873  $as_echo_n "(cached) " >&6
14874else
14875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14876/* end confdefs.h.  */
14877int i;
14878int
14879main ()
14880{
14881
14882  ;
14883  return 0;
14884}
14885_ACEOF
14886if ac_fn_c_try_link "$LINENO"; then :
14887  eval $cacheid=yes
14888else
14889  eval $cacheid=no
14890fi
14891rm -f core conftest.err conftest.$ac_objext \
14892    conftest$ac_exeext conftest.$ac_ext
14893fi
14894
14895
14896		CFLAGS="$xorg_testset_save_CFLAGS"
14897
14898		eval supported=\$$cacheid
14899		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14900$as_echo "$supported" >&6; }
14901		if test "$supported" = "yes" ; then
14902			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14903			found="yes"
14904		fi
14905	fi
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921xorg_testset_save_CFLAGS="$CFLAGS"
14922
14923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14924	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14925	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14928  $as_echo_n "(cached) " >&6
14929else
14930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931/* end confdefs.h.  */
14932int i;
14933_ACEOF
14934if ac_fn_c_try_compile "$LINENO"; then :
14935  xorg_cv_cc_flag_unknown_warning_option=yes
14936else
14937  xorg_cv_cc_flag_unknown_warning_option=no
14938fi
14939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14940fi
14941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14943	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14944	CFLAGS="$xorg_testset_save_CFLAGS"
14945fi
14946
14947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14948	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14949		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14950	fi
14951	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14952	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14955  $as_echo_n "(cached) " >&6
14956else
14957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14958/* end confdefs.h.  */
14959int i;
14960_ACEOF
14961if ac_fn_c_try_compile "$LINENO"; then :
14962  xorg_cv_cc_flag_unused_command_line_argument=yes
14963else
14964  xorg_cv_cc_flag_unused_command_line_argument=no
14965fi
14966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14967fi
14968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14970	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14971	CFLAGS="$xorg_testset_save_CFLAGS"
14972fi
14973
14974found="no"
14975
14976	if test $found = "no" ; then
14977		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14978			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14979		fi
14980
14981		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14982			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14983		fi
14984
14985		CFLAGS="$CFLAGS -Werror=write-strings"
14986
14987		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14988$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14989		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
14990		if eval \${$cacheid+:} false; then :
14991  $as_echo_n "(cached) " >&6
14992else
14993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994/* end confdefs.h.  */
14995int i;
14996int
14997main ()
14998{
14999
15000  ;
15001  return 0;
15002}
15003_ACEOF
15004if ac_fn_c_try_link "$LINENO"; then :
15005  eval $cacheid=yes
15006else
15007  eval $cacheid=no
15008fi
15009rm -f core conftest.err conftest.$ac_objext \
15010    conftest$ac_exeext conftest.$ac_ext
15011fi
15012
15013
15014		CFLAGS="$xorg_testset_save_CFLAGS"
15015
15016		eval supported=\$$cacheid
15017		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15018$as_echo "$supported" >&6; }
15019		if test "$supported" = "yes" ; then
15020			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15021			found="yes"
15022		fi
15023	fi
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039xorg_testset_save_CFLAGS="$CFLAGS"
15040
15041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15042	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15043	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15044$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15045if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15046  $as_echo_n "(cached) " >&6
15047else
15048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049/* end confdefs.h.  */
15050int i;
15051_ACEOF
15052if ac_fn_c_try_compile "$LINENO"; then :
15053  xorg_cv_cc_flag_unknown_warning_option=yes
15054else
15055  xorg_cv_cc_flag_unknown_warning_option=no
15056fi
15057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15058fi
15059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15060$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15061	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15062	CFLAGS="$xorg_testset_save_CFLAGS"
15063fi
15064
15065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15066	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15067		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15068	fi
15069	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15070	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15071$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15072if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15073  $as_echo_n "(cached) " >&6
15074else
15075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076/* end confdefs.h.  */
15077int i;
15078_ACEOF
15079if ac_fn_c_try_compile "$LINENO"; then :
15080  xorg_cv_cc_flag_unused_command_line_argument=yes
15081else
15082  xorg_cv_cc_flag_unused_command_line_argument=no
15083fi
15084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15085fi
15086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15087$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15088	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15089	CFLAGS="$xorg_testset_save_CFLAGS"
15090fi
15091
15092found="no"
15093
15094	if test $found = "no" ; then
15095		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15096			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15097		fi
15098
15099		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15100			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15101		fi
15102
15103		CFLAGS="$CFLAGS -Werror=address"
15104
15105		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15106$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15107		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15108		if eval \${$cacheid+:} false; then :
15109  $as_echo_n "(cached) " >&6
15110else
15111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112/* end confdefs.h.  */
15113int i;
15114int
15115main ()
15116{
15117
15118  ;
15119  return 0;
15120}
15121_ACEOF
15122if ac_fn_c_try_link "$LINENO"; then :
15123  eval $cacheid=yes
15124else
15125  eval $cacheid=no
15126fi
15127rm -f core conftest.err conftest.$ac_objext \
15128    conftest$ac_exeext conftest.$ac_ext
15129fi
15130
15131
15132		CFLAGS="$xorg_testset_save_CFLAGS"
15133
15134		eval supported=\$$cacheid
15135		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15136$as_echo "$supported" >&6; }
15137		if test "$supported" = "yes" ; then
15138			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15139			found="yes"
15140		fi
15141	fi
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157xorg_testset_save_CFLAGS="$CFLAGS"
15158
15159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15160	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15164  $as_echo_n "(cached) " >&6
15165else
15166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167/* end confdefs.h.  */
15168int i;
15169_ACEOF
15170if ac_fn_c_try_compile "$LINENO"; then :
15171  xorg_cv_cc_flag_unknown_warning_option=yes
15172else
15173  xorg_cv_cc_flag_unknown_warning_option=no
15174fi
15175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15176fi
15177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15179	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15180	CFLAGS="$xorg_testset_save_CFLAGS"
15181fi
15182
15183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15184	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15185		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15186	fi
15187	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15190if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15191  $as_echo_n "(cached) " >&6
15192else
15193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194/* end confdefs.h.  */
15195int i;
15196_ACEOF
15197if ac_fn_c_try_compile "$LINENO"; then :
15198  xorg_cv_cc_flag_unused_command_line_argument=yes
15199else
15200  xorg_cv_cc_flag_unused_command_line_argument=no
15201fi
15202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15203fi
15204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15206	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15207	CFLAGS="$xorg_testset_save_CFLAGS"
15208fi
15209
15210found="no"
15211
15212	if test $found = "no" ; then
15213		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15214			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15215		fi
15216
15217		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15218			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15219		fi
15220
15221		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15222
15223		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15224$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15225		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15226		if eval \${$cacheid+:} false; then :
15227  $as_echo_n "(cached) " >&6
15228else
15229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230/* end confdefs.h.  */
15231int i;
15232int
15233main ()
15234{
15235
15236  ;
15237  return 0;
15238}
15239_ACEOF
15240if ac_fn_c_try_link "$LINENO"; then :
15241  eval $cacheid=yes
15242else
15243  eval $cacheid=no
15244fi
15245rm -f core conftest.err conftest.$ac_objext \
15246    conftest$ac_exeext conftest.$ac_ext
15247fi
15248
15249
15250		CFLAGS="$xorg_testset_save_CFLAGS"
15251
15252		eval supported=\$$cacheid
15253		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15254$as_echo "$supported" >&6; }
15255		if test "$supported" = "yes" ; then
15256			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15257			found="yes"
15258		fi
15259	fi
15260
15261	if test $found = "no" ; then
15262		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15264		fi
15265
15266		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15268		fi
15269
15270		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15271
15272		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15273$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15274		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15275		if eval \${$cacheid+:} false; then :
15276  $as_echo_n "(cached) " >&6
15277else
15278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279/* end confdefs.h.  */
15280int i;
15281int
15282main ()
15283{
15284
15285  ;
15286  return 0;
15287}
15288_ACEOF
15289if ac_fn_c_try_link "$LINENO"; then :
15290  eval $cacheid=yes
15291else
15292  eval $cacheid=no
15293fi
15294rm -f core conftest.err conftest.$ac_objext \
15295    conftest$ac_exeext conftest.$ac_ext
15296fi
15297
15298
15299		CFLAGS="$xorg_testset_save_CFLAGS"
15300
15301		eval supported=\$$cacheid
15302		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15303$as_echo "$supported" >&6; }
15304		if test "$supported" = "yes" ; then
15305			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15306			found="yes"
15307		fi
15308	fi
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324xorg_testset_save_CFLAGS="$CFLAGS"
15325
15326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15328	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15331  $as_echo_n "(cached) " >&6
15332else
15333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15334/* end confdefs.h.  */
15335int i;
15336_ACEOF
15337if ac_fn_c_try_compile "$LINENO"; then :
15338  xorg_cv_cc_flag_unknown_warning_option=yes
15339else
15340  xorg_cv_cc_flag_unknown_warning_option=no
15341fi
15342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15343fi
15344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15347	CFLAGS="$xorg_testset_save_CFLAGS"
15348fi
15349
15350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15353	fi
15354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15358  $as_echo_n "(cached) " >&6
15359else
15360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361/* end confdefs.h.  */
15362int i;
15363_ACEOF
15364if ac_fn_c_try_compile "$LINENO"; then :
15365  xorg_cv_cc_flag_unused_command_line_argument=yes
15366else
15367  xorg_cv_cc_flag_unused_command_line_argument=no
15368fi
15369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15370fi
15371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15373	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15374	CFLAGS="$xorg_testset_save_CFLAGS"
15375fi
15376
15377found="no"
15378
15379	if test $found = "no" ; then
15380		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15382		fi
15383
15384		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15386		fi
15387
15388		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15389
15390		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15391$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15392		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15393		if eval \${$cacheid+:} false; then :
15394  $as_echo_n "(cached) " >&6
15395else
15396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397/* end confdefs.h.  */
15398int i;
15399int
15400main ()
15401{
15402
15403  ;
15404  return 0;
15405}
15406_ACEOF
15407if ac_fn_c_try_link "$LINENO"; then :
15408  eval $cacheid=yes
15409else
15410  eval $cacheid=no
15411fi
15412rm -f core conftest.err conftest.$ac_objext \
15413    conftest$ac_exeext conftest.$ac_ext
15414fi
15415
15416
15417		CFLAGS="$xorg_testset_save_CFLAGS"
15418
15419		eval supported=\$$cacheid
15420		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15421$as_echo "$supported" >&6; }
15422		if test "$supported" = "yes" ; then
15423			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15424			found="yes"
15425		fi
15426	fi
15427
15428 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15429else
15430{ $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
15431$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;}
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445xorg_testset_save_CFLAGS="$CFLAGS"
15446
15447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15448	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15450$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15451if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15452  $as_echo_n "(cached) " >&6
15453else
15454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15455/* end confdefs.h.  */
15456int i;
15457_ACEOF
15458if ac_fn_c_try_compile "$LINENO"; then :
15459  xorg_cv_cc_flag_unknown_warning_option=yes
15460else
15461  xorg_cv_cc_flag_unknown_warning_option=no
15462fi
15463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15464fi
15465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15466$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15467	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15468	CFLAGS="$xorg_testset_save_CFLAGS"
15469fi
15470
15471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15472	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15473		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15474	fi
15475	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15477$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15478if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15479  $as_echo_n "(cached) " >&6
15480else
15481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15482/* end confdefs.h.  */
15483int i;
15484_ACEOF
15485if ac_fn_c_try_compile "$LINENO"; then :
15486  xorg_cv_cc_flag_unused_command_line_argument=yes
15487else
15488  xorg_cv_cc_flag_unused_command_line_argument=no
15489fi
15490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15491fi
15492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15493$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15494	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15495	CFLAGS="$xorg_testset_save_CFLAGS"
15496fi
15497
15498found="no"
15499
15500	if test $found = "no" ; then
15501		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15502			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15503		fi
15504
15505		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15506			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15507		fi
15508
15509		CFLAGS="$CFLAGS -Wimplicit"
15510
15511		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15512$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15513		cacheid=xorg_cv_cc_flag__Wimplicit
15514		if eval \${$cacheid+:} false; then :
15515  $as_echo_n "(cached) " >&6
15516else
15517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518/* end confdefs.h.  */
15519int i;
15520int
15521main ()
15522{
15523
15524  ;
15525  return 0;
15526}
15527_ACEOF
15528if ac_fn_c_try_link "$LINENO"; then :
15529  eval $cacheid=yes
15530else
15531  eval $cacheid=no
15532fi
15533rm -f core conftest.err conftest.$ac_objext \
15534    conftest$ac_exeext conftest.$ac_ext
15535fi
15536
15537
15538		CFLAGS="$xorg_testset_save_CFLAGS"
15539
15540		eval supported=\$$cacheid
15541		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15542$as_echo "$supported" >&6; }
15543		if test "$supported" = "yes" ; then
15544			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15545			found="yes"
15546		fi
15547	fi
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563xorg_testset_save_CFLAGS="$CFLAGS"
15564
15565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15566	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15568$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15569if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15570  $as_echo_n "(cached) " >&6
15571else
15572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15573/* end confdefs.h.  */
15574int i;
15575_ACEOF
15576if ac_fn_c_try_compile "$LINENO"; then :
15577  xorg_cv_cc_flag_unknown_warning_option=yes
15578else
15579  xorg_cv_cc_flag_unknown_warning_option=no
15580fi
15581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582fi
15583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15584$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15585	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15586	CFLAGS="$xorg_testset_save_CFLAGS"
15587fi
15588
15589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15590	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15591		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15592	fi
15593	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15595$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15596if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15597  $as_echo_n "(cached) " >&6
15598else
15599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15600/* end confdefs.h.  */
15601int i;
15602_ACEOF
15603if ac_fn_c_try_compile "$LINENO"; then :
15604  xorg_cv_cc_flag_unused_command_line_argument=yes
15605else
15606  xorg_cv_cc_flag_unused_command_line_argument=no
15607fi
15608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15609fi
15610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15611$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15612	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15613	CFLAGS="$xorg_testset_save_CFLAGS"
15614fi
15615
15616found="no"
15617
15618	if test $found = "no" ; then
15619		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15620			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15621		fi
15622
15623		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15624			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15625		fi
15626
15627		CFLAGS="$CFLAGS -Wnonnull"
15628
15629		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15630$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15631		cacheid=xorg_cv_cc_flag__Wnonnull
15632		if eval \${$cacheid+:} false; then :
15633  $as_echo_n "(cached) " >&6
15634else
15635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636/* end confdefs.h.  */
15637int i;
15638int
15639main ()
15640{
15641
15642  ;
15643  return 0;
15644}
15645_ACEOF
15646if ac_fn_c_try_link "$LINENO"; then :
15647  eval $cacheid=yes
15648else
15649  eval $cacheid=no
15650fi
15651rm -f core conftest.err conftest.$ac_objext \
15652    conftest$ac_exeext conftest.$ac_ext
15653fi
15654
15655
15656		CFLAGS="$xorg_testset_save_CFLAGS"
15657
15658		eval supported=\$$cacheid
15659		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15660$as_echo "$supported" >&6; }
15661		if test "$supported" = "yes" ; then
15662			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15663			found="yes"
15664		fi
15665	fi
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681xorg_testset_save_CFLAGS="$CFLAGS"
15682
15683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15684	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15686$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15687if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15688  $as_echo_n "(cached) " >&6
15689else
15690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15691/* end confdefs.h.  */
15692int i;
15693_ACEOF
15694if ac_fn_c_try_compile "$LINENO"; then :
15695  xorg_cv_cc_flag_unknown_warning_option=yes
15696else
15697  xorg_cv_cc_flag_unknown_warning_option=no
15698fi
15699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15700fi
15701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15702$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15703	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15704	CFLAGS="$xorg_testset_save_CFLAGS"
15705fi
15706
15707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15708	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15709		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15710	fi
15711	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15712	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15713$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15714if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15715  $as_echo_n "(cached) " >&6
15716else
15717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718/* end confdefs.h.  */
15719int i;
15720_ACEOF
15721if ac_fn_c_try_compile "$LINENO"; then :
15722  xorg_cv_cc_flag_unused_command_line_argument=yes
15723else
15724  xorg_cv_cc_flag_unused_command_line_argument=no
15725fi
15726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15727fi
15728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15729$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15730	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15731	CFLAGS="$xorg_testset_save_CFLAGS"
15732fi
15733
15734found="no"
15735
15736	if test $found = "no" ; then
15737		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15738			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15739		fi
15740
15741		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15742			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15743		fi
15744
15745		CFLAGS="$CFLAGS -Winit-self"
15746
15747		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15748$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15749		cacheid=xorg_cv_cc_flag__Winit_self
15750		if eval \${$cacheid+:} false; then :
15751  $as_echo_n "(cached) " >&6
15752else
15753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15754/* end confdefs.h.  */
15755int i;
15756int
15757main ()
15758{
15759
15760  ;
15761  return 0;
15762}
15763_ACEOF
15764if ac_fn_c_try_link "$LINENO"; then :
15765  eval $cacheid=yes
15766else
15767  eval $cacheid=no
15768fi
15769rm -f core conftest.err conftest.$ac_objext \
15770    conftest$ac_exeext conftest.$ac_ext
15771fi
15772
15773
15774		CFLAGS="$xorg_testset_save_CFLAGS"
15775
15776		eval supported=\$$cacheid
15777		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15778$as_echo "$supported" >&6; }
15779		if test "$supported" = "yes" ; then
15780			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15781			found="yes"
15782		fi
15783	fi
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799xorg_testset_save_CFLAGS="$CFLAGS"
15800
15801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15802	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15804$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15805if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15806  $as_echo_n "(cached) " >&6
15807else
15808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15809/* end confdefs.h.  */
15810int i;
15811_ACEOF
15812if ac_fn_c_try_compile "$LINENO"; then :
15813  xorg_cv_cc_flag_unknown_warning_option=yes
15814else
15815  xorg_cv_cc_flag_unknown_warning_option=no
15816fi
15817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15818fi
15819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15820$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15821	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15822	CFLAGS="$xorg_testset_save_CFLAGS"
15823fi
15824
15825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15826	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15827		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15828	fi
15829	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15830	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15831$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15832if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15833  $as_echo_n "(cached) " >&6
15834else
15835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15836/* end confdefs.h.  */
15837int i;
15838_ACEOF
15839if ac_fn_c_try_compile "$LINENO"; then :
15840  xorg_cv_cc_flag_unused_command_line_argument=yes
15841else
15842  xorg_cv_cc_flag_unused_command_line_argument=no
15843fi
15844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15845fi
15846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15847$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15848	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15849	CFLAGS="$xorg_testset_save_CFLAGS"
15850fi
15851
15852found="no"
15853
15854	if test $found = "no" ; then
15855		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15856			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15857		fi
15858
15859		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15860			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15861		fi
15862
15863		CFLAGS="$CFLAGS -Wmain"
15864
15865		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15866$as_echo_n "checking if $CC supports -Wmain... " >&6; }
15867		cacheid=xorg_cv_cc_flag__Wmain
15868		if eval \${$cacheid+:} false; then :
15869  $as_echo_n "(cached) " >&6
15870else
15871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15872/* end confdefs.h.  */
15873int i;
15874int
15875main ()
15876{
15877
15878  ;
15879  return 0;
15880}
15881_ACEOF
15882if ac_fn_c_try_link "$LINENO"; then :
15883  eval $cacheid=yes
15884else
15885  eval $cacheid=no
15886fi
15887rm -f core conftest.err conftest.$ac_objext \
15888    conftest$ac_exeext conftest.$ac_ext
15889fi
15890
15891
15892		CFLAGS="$xorg_testset_save_CFLAGS"
15893
15894		eval supported=\$$cacheid
15895		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15896$as_echo "$supported" >&6; }
15897		if test "$supported" = "yes" ; then
15898			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15899			found="yes"
15900		fi
15901	fi
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917xorg_testset_save_CFLAGS="$CFLAGS"
15918
15919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15920	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15922$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15923if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15924  $as_echo_n "(cached) " >&6
15925else
15926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927/* end confdefs.h.  */
15928int i;
15929_ACEOF
15930if ac_fn_c_try_compile "$LINENO"; then :
15931  xorg_cv_cc_flag_unknown_warning_option=yes
15932else
15933  xorg_cv_cc_flag_unknown_warning_option=no
15934fi
15935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15936fi
15937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15938$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15939	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15940	CFLAGS="$xorg_testset_save_CFLAGS"
15941fi
15942
15943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15944	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15945		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15946	fi
15947	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15949$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15950if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15951  $as_echo_n "(cached) " >&6
15952else
15953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954/* end confdefs.h.  */
15955int i;
15956_ACEOF
15957if ac_fn_c_try_compile "$LINENO"; then :
15958  xorg_cv_cc_flag_unused_command_line_argument=yes
15959else
15960  xorg_cv_cc_flag_unused_command_line_argument=no
15961fi
15962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15963fi
15964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15965$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15966	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15967	CFLAGS="$xorg_testset_save_CFLAGS"
15968fi
15969
15970found="no"
15971
15972	if test $found = "no" ; then
15973		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15974			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15975		fi
15976
15977		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15978			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15979		fi
15980
15981		CFLAGS="$CFLAGS -Wmissing-braces"
15982
15983		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15984$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15985		cacheid=xorg_cv_cc_flag__Wmissing_braces
15986		if eval \${$cacheid+:} false; then :
15987  $as_echo_n "(cached) " >&6
15988else
15989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990/* end confdefs.h.  */
15991int i;
15992int
15993main ()
15994{
15995
15996  ;
15997  return 0;
15998}
15999_ACEOF
16000if ac_fn_c_try_link "$LINENO"; then :
16001  eval $cacheid=yes
16002else
16003  eval $cacheid=no
16004fi
16005rm -f core conftest.err conftest.$ac_objext \
16006    conftest$ac_exeext conftest.$ac_ext
16007fi
16008
16009
16010		CFLAGS="$xorg_testset_save_CFLAGS"
16011
16012		eval supported=\$$cacheid
16013		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16014$as_echo "$supported" >&6; }
16015		if test "$supported" = "yes" ; then
16016			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16017			found="yes"
16018		fi
16019	fi
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035xorg_testset_save_CFLAGS="$CFLAGS"
16036
16037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16038	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16040$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16041if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16042  $as_echo_n "(cached) " >&6
16043else
16044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16045/* end confdefs.h.  */
16046int i;
16047_ACEOF
16048if ac_fn_c_try_compile "$LINENO"; then :
16049  xorg_cv_cc_flag_unknown_warning_option=yes
16050else
16051  xorg_cv_cc_flag_unknown_warning_option=no
16052fi
16053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16054fi
16055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16056$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16057	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16058	CFLAGS="$xorg_testset_save_CFLAGS"
16059fi
16060
16061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16062	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16063		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16064	fi
16065	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16066	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16067$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16068if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16069  $as_echo_n "(cached) " >&6
16070else
16071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072/* end confdefs.h.  */
16073int i;
16074_ACEOF
16075if ac_fn_c_try_compile "$LINENO"; then :
16076  xorg_cv_cc_flag_unused_command_line_argument=yes
16077else
16078  xorg_cv_cc_flag_unused_command_line_argument=no
16079fi
16080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16081fi
16082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16083$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16084	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16085	CFLAGS="$xorg_testset_save_CFLAGS"
16086fi
16087
16088found="no"
16089
16090	if test $found = "no" ; then
16091		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16092			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16093		fi
16094
16095		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16096			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16097		fi
16098
16099		CFLAGS="$CFLAGS -Wsequence-point"
16100
16101		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16102$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16103		cacheid=xorg_cv_cc_flag__Wsequence_point
16104		if eval \${$cacheid+:} false; then :
16105  $as_echo_n "(cached) " >&6
16106else
16107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16108/* end confdefs.h.  */
16109int i;
16110int
16111main ()
16112{
16113
16114  ;
16115  return 0;
16116}
16117_ACEOF
16118if ac_fn_c_try_link "$LINENO"; then :
16119  eval $cacheid=yes
16120else
16121  eval $cacheid=no
16122fi
16123rm -f core conftest.err conftest.$ac_objext \
16124    conftest$ac_exeext conftest.$ac_ext
16125fi
16126
16127
16128		CFLAGS="$xorg_testset_save_CFLAGS"
16129
16130		eval supported=\$$cacheid
16131		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16132$as_echo "$supported" >&6; }
16133		if test "$supported" = "yes" ; then
16134			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16135			found="yes"
16136		fi
16137	fi
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153xorg_testset_save_CFLAGS="$CFLAGS"
16154
16155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16156	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16158$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16159if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16160  $as_echo_n "(cached) " >&6
16161else
16162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16163/* end confdefs.h.  */
16164int i;
16165_ACEOF
16166if ac_fn_c_try_compile "$LINENO"; then :
16167  xorg_cv_cc_flag_unknown_warning_option=yes
16168else
16169  xorg_cv_cc_flag_unknown_warning_option=no
16170fi
16171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16172fi
16173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16174$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16175	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16176	CFLAGS="$xorg_testset_save_CFLAGS"
16177fi
16178
16179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16180	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16181		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16182	fi
16183	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16185$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16186if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16187  $as_echo_n "(cached) " >&6
16188else
16189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16190/* end confdefs.h.  */
16191int i;
16192_ACEOF
16193if ac_fn_c_try_compile "$LINENO"; then :
16194  xorg_cv_cc_flag_unused_command_line_argument=yes
16195else
16196  xorg_cv_cc_flag_unused_command_line_argument=no
16197fi
16198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16199fi
16200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16201$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16202	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16203	CFLAGS="$xorg_testset_save_CFLAGS"
16204fi
16205
16206found="no"
16207
16208	if test $found = "no" ; then
16209		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16210			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16211		fi
16212
16213		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16214			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16215		fi
16216
16217		CFLAGS="$CFLAGS -Wreturn-type"
16218
16219		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16220$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16221		cacheid=xorg_cv_cc_flag__Wreturn_type
16222		if eval \${$cacheid+:} false; then :
16223  $as_echo_n "(cached) " >&6
16224else
16225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16226/* end confdefs.h.  */
16227int i;
16228int
16229main ()
16230{
16231
16232  ;
16233  return 0;
16234}
16235_ACEOF
16236if ac_fn_c_try_link "$LINENO"; then :
16237  eval $cacheid=yes
16238else
16239  eval $cacheid=no
16240fi
16241rm -f core conftest.err conftest.$ac_objext \
16242    conftest$ac_exeext conftest.$ac_ext
16243fi
16244
16245
16246		CFLAGS="$xorg_testset_save_CFLAGS"
16247
16248		eval supported=\$$cacheid
16249		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16250$as_echo "$supported" >&6; }
16251		if test "$supported" = "yes" ; then
16252			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16253			found="yes"
16254		fi
16255	fi
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271xorg_testset_save_CFLAGS="$CFLAGS"
16272
16273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16274	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16278  $as_echo_n "(cached) " >&6
16279else
16280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16281/* end confdefs.h.  */
16282int i;
16283_ACEOF
16284if ac_fn_c_try_compile "$LINENO"; then :
16285  xorg_cv_cc_flag_unknown_warning_option=yes
16286else
16287  xorg_cv_cc_flag_unknown_warning_option=no
16288fi
16289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290fi
16291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16293	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16294	CFLAGS="$xorg_testset_save_CFLAGS"
16295fi
16296
16297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16298	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16299		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16300	fi
16301	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16305  $as_echo_n "(cached) " >&6
16306else
16307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16308/* end confdefs.h.  */
16309int i;
16310_ACEOF
16311if ac_fn_c_try_compile "$LINENO"; then :
16312  xorg_cv_cc_flag_unused_command_line_argument=yes
16313else
16314  xorg_cv_cc_flag_unused_command_line_argument=no
16315fi
16316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16317fi
16318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16320	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16321	CFLAGS="$xorg_testset_save_CFLAGS"
16322fi
16323
16324found="no"
16325
16326	if test $found = "no" ; then
16327		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16328			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16329		fi
16330
16331		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16332			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16333		fi
16334
16335		CFLAGS="$CFLAGS -Wtrigraphs"
16336
16337		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16338$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16339		cacheid=xorg_cv_cc_flag__Wtrigraphs
16340		if eval \${$cacheid+:} false; then :
16341  $as_echo_n "(cached) " >&6
16342else
16343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344/* end confdefs.h.  */
16345int i;
16346int
16347main ()
16348{
16349
16350  ;
16351  return 0;
16352}
16353_ACEOF
16354if ac_fn_c_try_link "$LINENO"; then :
16355  eval $cacheid=yes
16356else
16357  eval $cacheid=no
16358fi
16359rm -f core conftest.err conftest.$ac_objext \
16360    conftest$ac_exeext conftest.$ac_ext
16361fi
16362
16363
16364		CFLAGS="$xorg_testset_save_CFLAGS"
16365
16366		eval supported=\$$cacheid
16367		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16368$as_echo "$supported" >&6; }
16369		if test "$supported" = "yes" ; then
16370			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16371			found="yes"
16372		fi
16373	fi
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389xorg_testset_save_CFLAGS="$CFLAGS"
16390
16391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16392	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16393	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16394$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16395if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16396  $as_echo_n "(cached) " >&6
16397else
16398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16399/* end confdefs.h.  */
16400int i;
16401_ACEOF
16402if ac_fn_c_try_compile "$LINENO"; then :
16403  xorg_cv_cc_flag_unknown_warning_option=yes
16404else
16405  xorg_cv_cc_flag_unknown_warning_option=no
16406fi
16407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16408fi
16409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16410$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16411	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16412	CFLAGS="$xorg_testset_save_CFLAGS"
16413fi
16414
16415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16416	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16417		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16418	fi
16419	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16420	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16421$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16422if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16423  $as_echo_n "(cached) " >&6
16424else
16425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16426/* end confdefs.h.  */
16427int i;
16428_ACEOF
16429if ac_fn_c_try_compile "$LINENO"; then :
16430  xorg_cv_cc_flag_unused_command_line_argument=yes
16431else
16432  xorg_cv_cc_flag_unused_command_line_argument=no
16433fi
16434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16435fi
16436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16437$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16438	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16439	CFLAGS="$xorg_testset_save_CFLAGS"
16440fi
16441
16442found="no"
16443
16444	if test $found = "no" ; then
16445		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16446			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16447		fi
16448
16449		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16450			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16451		fi
16452
16453		CFLAGS="$CFLAGS -Warray-bounds"
16454
16455		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16456$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16457		cacheid=xorg_cv_cc_flag__Warray_bounds
16458		if eval \${$cacheid+:} false; then :
16459  $as_echo_n "(cached) " >&6
16460else
16461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16462/* end confdefs.h.  */
16463int i;
16464int
16465main ()
16466{
16467
16468  ;
16469  return 0;
16470}
16471_ACEOF
16472if ac_fn_c_try_link "$LINENO"; then :
16473  eval $cacheid=yes
16474else
16475  eval $cacheid=no
16476fi
16477rm -f core conftest.err conftest.$ac_objext \
16478    conftest$ac_exeext conftest.$ac_ext
16479fi
16480
16481
16482		CFLAGS="$xorg_testset_save_CFLAGS"
16483
16484		eval supported=\$$cacheid
16485		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16486$as_echo "$supported" >&6; }
16487		if test "$supported" = "yes" ; then
16488			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16489			found="yes"
16490		fi
16491	fi
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507xorg_testset_save_CFLAGS="$CFLAGS"
16508
16509if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16510	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16511	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16512$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16513if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16514  $as_echo_n "(cached) " >&6
16515else
16516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16517/* end confdefs.h.  */
16518int i;
16519_ACEOF
16520if ac_fn_c_try_compile "$LINENO"; then :
16521  xorg_cv_cc_flag_unknown_warning_option=yes
16522else
16523  xorg_cv_cc_flag_unknown_warning_option=no
16524fi
16525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16526fi
16527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16528$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16529	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16530	CFLAGS="$xorg_testset_save_CFLAGS"
16531fi
16532
16533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16534	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16535		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16536	fi
16537	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16538	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16539$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16540if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16541  $as_echo_n "(cached) " >&6
16542else
16543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544/* end confdefs.h.  */
16545int i;
16546_ACEOF
16547if ac_fn_c_try_compile "$LINENO"; then :
16548  xorg_cv_cc_flag_unused_command_line_argument=yes
16549else
16550  xorg_cv_cc_flag_unused_command_line_argument=no
16551fi
16552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16553fi
16554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16555$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16556	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16557	CFLAGS="$xorg_testset_save_CFLAGS"
16558fi
16559
16560found="no"
16561
16562	if test $found = "no" ; then
16563		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16564			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16565		fi
16566
16567		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16568			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16569		fi
16570
16571		CFLAGS="$CFLAGS -Wwrite-strings"
16572
16573		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16574$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16575		cacheid=xorg_cv_cc_flag__Wwrite_strings
16576		if eval \${$cacheid+:} false; then :
16577  $as_echo_n "(cached) " >&6
16578else
16579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16580/* end confdefs.h.  */
16581int i;
16582int
16583main ()
16584{
16585
16586  ;
16587  return 0;
16588}
16589_ACEOF
16590if ac_fn_c_try_link "$LINENO"; then :
16591  eval $cacheid=yes
16592else
16593  eval $cacheid=no
16594fi
16595rm -f core conftest.err conftest.$ac_objext \
16596    conftest$ac_exeext conftest.$ac_ext
16597fi
16598
16599
16600		CFLAGS="$xorg_testset_save_CFLAGS"
16601
16602		eval supported=\$$cacheid
16603		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16604$as_echo "$supported" >&6; }
16605		if test "$supported" = "yes" ; then
16606			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16607			found="yes"
16608		fi
16609	fi
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625xorg_testset_save_CFLAGS="$CFLAGS"
16626
16627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16628	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16629	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16630$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16631if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16632  $as_echo_n "(cached) " >&6
16633else
16634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16635/* end confdefs.h.  */
16636int i;
16637_ACEOF
16638if ac_fn_c_try_compile "$LINENO"; then :
16639  xorg_cv_cc_flag_unknown_warning_option=yes
16640else
16641  xorg_cv_cc_flag_unknown_warning_option=no
16642fi
16643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16644fi
16645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16646$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16647	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16648	CFLAGS="$xorg_testset_save_CFLAGS"
16649fi
16650
16651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16652	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16653		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16654	fi
16655	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16656	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16657$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16658if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16659  $as_echo_n "(cached) " >&6
16660else
16661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662/* end confdefs.h.  */
16663int i;
16664_ACEOF
16665if ac_fn_c_try_compile "$LINENO"; then :
16666  xorg_cv_cc_flag_unused_command_line_argument=yes
16667else
16668  xorg_cv_cc_flag_unused_command_line_argument=no
16669fi
16670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16671fi
16672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16673$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16674	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16675	CFLAGS="$xorg_testset_save_CFLAGS"
16676fi
16677
16678found="no"
16679
16680	if test $found = "no" ; then
16681		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16682			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16683		fi
16684
16685		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16686			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16687		fi
16688
16689		CFLAGS="$CFLAGS -Waddress"
16690
16691		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16692$as_echo_n "checking if $CC supports -Waddress... " >&6; }
16693		cacheid=xorg_cv_cc_flag__Waddress
16694		if eval \${$cacheid+:} false; then :
16695  $as_echo_n "(cached) " >&6
16696else
16697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16698/* end confdefs.h.  */
16699int i;
16700int
16701main ()
16702{
16703
16704  ;
16705  return 0;
16706}
16707_ACEOF
16708if ac_fn_c_try_link "$LINENO"; then :
16709  eval $cacheid=yes
16710else
16711  eval $cacheid=no
16712fi
16713rm -f core conftest.err conftest.$ac_objext \
16714    conftest$ac_exeext conftest.$ac_ext
16715fi
16716
16717
16718		CFLAGS="$xorg_testset_save_CFLAGS"
16719
16720		eval supported=\$$cacheid
16721		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16722$as_echo "$supported" >&6; }
16723		if test "$supported" = "yes" ; then
16724			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16725			found="yes"
16726		fi
16727	fi
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743xorg_testset_save_CFLAGS="$CFLAGS"
16744
16745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16746	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16747	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16748$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16749if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16750  $as_echo_n "(cached) " >&6
16751else
16752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16753/* end confdefs.h.  */
16754int i;
16755_ACEOF
16756if ac_fn_c_try_compile "$LINENO"; then :
16757  xorg_cv_cc_flag_unknown_warning_option=yes
16758else
16759  xorg_cv_cc_flag_unknown_warning_option=no
16760fi
16761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16762fi
16763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16764$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16765	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16766	CFLAGS="$xorg_testset_save_CFLAGS"
16767fi
16768
16769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16770	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16771		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16772	fi
16773	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16774	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16775$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16776if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16777  $as_echo_n "(cached) " >&6
16778else
16779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780/* end confdefs.h.  */
16781int i;
16782_ACEOF
16783if ac_fn_c_try_compile "$LINENO"; then :
16784  xorg_cv_cc_flag_unused_command_line_argument=yes
16785else
16786  xorg_cv_cc_flag_unused_command_line_argument=no
16787fi
16788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16789fi
16790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16791$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16792	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16793	CFLAGS="$xorg_testset_save_CFLAGS"
16794fi
16795
16796found="no"
16797
16798	if test $found = "no" ; then
16799		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16800			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16801		fi
16802
16803		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16804			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16805		fi
16806
16807		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16808
16809		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16810$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16811		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16812		if eval \${$cacheid+:} false; then :
16813  $as_echo_n "(cached) " >&6
16814else
16815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16816/* end confdefs.h.  */
16817int i;
16818int
16819main ()
16820{
16821
16822  ;
16823  return 0;
16824}
16825_ACEOF
16826if ac_fn_c_try_link "$LINENO"; then :
16827  eval $cacheid=yes
16828else
16829  eval $cacheid=no
16830fi
16831rm -f core conftest.err conftest.$ac_objext \
16832    conftest$ac_exeext conftest.$ac_ext
16833fi
16834
16835
16836		CFLAGS="$xorg_testset_save_CFLAGS"
16837
16838		eval supported=\$$cacheid
16839		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16840$as_echo "$supported" >&6; }
16841		if test "$supported" = "yes" ; then
16842			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16843			found="yes"
16844		fi
16845	fi
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861xorg_testset_save_CFLAGS="$CFLAGS"
16862
16863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16864	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16865	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16866$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16867if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16868  $as_echo_n "(cached) " >&6
16869else
16870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871/* end confdefs.h.  */
16872int i;
16873_ACEOF
16874if ac_fn_c_try_compile "$LINENO"; then :
16875  xorg_cv_cc_flag_unknown_warning_option=yes
16876else
16877  xorg_cv_cc_flag_unknown_warning_option=no
16878fi
16879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16880fi
16881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16882$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16883	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16884	CFLAGS="$xorg_testset_save_CFLAGS"
16885fi
16886
16887if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16888	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16889		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16890	fi
16891	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16892	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16893$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16894if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16895  $as_echo_n "(cached) " >&6
16896else
16897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16898/* end confdefs.h.  */
16899int i;
16900_ACEOF
16901if ac_fn_c_try_compile "$LINENO"; then :
16902  xorg_cv_cc_flag_unused_command_line_argument=yes
16903else
16904  xorg_cv_cc_flag_unused_command_line_argument=no
16905fi
16906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16907fi
16908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16909$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16910	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16911	CFLAGS="$xorg_testset_save_CFLAGS"
16912fi
16913
16914found="no"
16915
16916	if test $found = "no" ; then
16917		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16918			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16919		fi
16920
16921		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16922			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16923		fi
16924
16925		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16926
16927		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16928$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16929		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
16930		if eval \${$cacheid+:} false; then :
16931  $as_echo_n "(cached) " >&6
16932else
16933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16934/* end confdefs.h.  */
16935int i;
16936int
16937main ()
16938{
16939
16940  ;
16941  return 0;
16942}
16943_ACEOF
16944if ac_fn_c_try_link "$LINENO"; then :
16945  eval $cacheid=yes
16946else
16947  eval $cacheid=no
16948fi
16949rm -f core conftest.err conftest.$ac_objext \
16950    conftest$ac_exeext conftest.$ac_ext
16951fi
16952
16953
16954		CFLAGS="$xorg_testset_save_CFLAGS"
16955
16956		eval supported=\$$cacheid
16957		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16958$as_echo "$supported" >&6; }
16959		if test "$supported" = "yes" ; then
16960			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16961			found="yes"
16962		fi
16963	fi
16964
16965
16966fi
16967
16968
16969
16970
16971
16972
16973
16974		CWARNFLAGS="$BASE_CFLAGS"
16975		if  test "x$GCC" = xyes ; then
16976		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16977		fi
16978
16979
16980
16981
16982
16983
16984
16985
16986# Check whether --enable-strict-compilation was given.
16987if test "${enable_strict_compilation+set}" = set; then :
16988  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16989else
16990  STRICT_COMPILE=no
16991fi
16992
16993
16994
16995
16996
16997
16998STRICT_CFLAGS=""
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012xorg_testset_save_CFLAGS="$CFLAGS"
17013
17014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17015	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17016	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17017$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17018if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17019  $as_echo_n "(cached) " >&6
17020else
17021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17022/* end confdefs.h.  */
17023int i;
17024_ACEOF
17025if ac_fn_c_try_compile "$LINENO"; then :
17026  xorg_cv_cc_flag_unknown_warning_option=yes
17027else
17028  xorg_cv_cc_flag_unknown_warning_option=no
17029fi
17030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17031fi
17032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17033$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17034	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17035	CFLAGS="$xorg_testset_save_CFLAGS"
17036fi
17037
17038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17039	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17040		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17041	fi
17042	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17043	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17044$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17045if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17046  $as_echo_n "(cached) " >&6
17047else
17048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17049/* end confdefs.h.  */
17050int i;
17051_ACEOF
17052if ac_fn_c_try_compile "$LINENO"; then :
17053  xorg_cv_cc_flag_unused_command_line_argument=yes
17054else
17055  xorg_cv_cc_flag_unused_command_line_argument=no
17056fi
17057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17058fi
17059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17060$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17061	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17062	CFLAGS="$xorg_testset_save_CFLAGS"
17063fi
17064
17065found="no"
17066
17067	if test $found = "no" ; then
17068		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17069			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17070		fi
17071
17072		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17073			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17074		fi
17075
17076		CFLAGS="$CFLAGS -pedantic"
17077
17078		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17079$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17080		cacheid=xorg_cv_cc_flag__pedantic
17081		if eval \${$cacheid+:} false; then :
17082  $as_echo_n "(cached) " >&6
17083else
17084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17085/* end confdefs.h.  */
17086int i;
17087int
17088main ()
17089{
17090
17091  ;
17092  return 0;
17093}
17094_ACEOF
17095if ac_fn_c_try_link "$LINENO"; then :
17096  eval $cacheid=yes
17097else
17098  eval $cacheid=no
17099fi
17100rm -f core conftest.err conftest.$ac_objext \
17101    conftest$ac_exeext conftest.$ac_ext
17102fi
17103
17104
17105		CFLAGS="$xorg_testset_save_CFLAGS"
17106
17107		eval supported=\$$cacheid
17108		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17109$as_echo "$supported" >&6; }
17110		if test "$supported" = "yes" ; then
17111			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17112			found="yes"
17113		fi
17114	fi
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130xorg_testset_save_CFLAGS="$CFLAGS"
17131
17132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17133	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17134	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17135$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17136if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17137  $as_echo_n "(cached) " >&6
17138else
17139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17140/* end confdefs.h.  */
17141int i;
17142_ACEOF
17143if ac_fn_c_try_compile "$LINENO"; then :
17144  xorg_cv_cc_flag_unknown_warning_option=yes
17145else
17146  xorg_cv_cc_flag_unknown_warning_option=no
17147fi
17148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17149fi
17150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17151$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17152	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17153	CFLAGS="$xorg_testset_save_CFLAGS"
17154fi
17155
17156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17157	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17158		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17159	fi
17160	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17162$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17163if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17164  $as_echo_n "(cached) " >&6
17165else
17166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17167/* end confdefs.h.  */
17168int i;
17169_ACEOF
17170if ac_fn_c_try_compile "$LINENO"; then :
17171  xorg_cv_cc_flag_unused_command_line_argument=yes
17172else
17173  xorg_cv_cc_flag_unused_command_line_argument=no
17174fi
17175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17176fi
17177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17178$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17179	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17180	CFLAGS="$xorg_testset_save_CFLAGS"
17181fi
17182
17183found="no"
17184
17185	if test $found = "no" ; then
17186		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17187			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17188		fi
17189
17190		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17191			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17192		fi
17193
17194		CFLAGS="$CFLAGS -Werror"
17195
17196		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17197$as_echo_n "checking if $CC supports -Werror... " >&6; }
17198		cacheid=xorg_cv_cc_flag__Werror
17199		if eval \${$cacheid+:} false; then :
17200  $as_echo_n "(cached) " >&6
17201else
17202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17203/* end confdefs.h.  */
17204int i;
17205int
17206main ()
17207{
17208
17209  ;
17210  return 0;
17211}
17212_ACEOF
17213if ac_fn_c_try_link "$LINENO"; then :
17214  eval $cacheid=yes
17215else
17216  eval $cacheid=no
17217fi
17218rm -f core conftest.err conftest.$ac_objext \
17219    conftest$ac_exeext conftest.$ac_ext
17220fi
17221
17222
17223		CFLAGS="$xorg_testset_save_CFLAGS"
17224
17225		eval supported=\$$cacheid
17226		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17227$as_echo "$supported" >&6; }
17228		if test "$supported" = "yes" ; then
17229			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17230			found="yes"
17231		fi
17232	fi
17233
17234	if test $found = "no" ; then
17235		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17236			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17237		fi
17238
17239		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17240			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17241		fi
17242
17243		CFLAGS="$CFLAGS -errwarn"
17244
17245		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17246$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17247		cacheid=xorg_cv_cc_flag__errwarn
17248		if eval \${$cacheid+:} false; then :
17249  $as_echo_n "(cached) " >&6
17250else
17251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252/* end confdefs.h.  */
17253int i;
17254int
17255main ()
17256{
17257
17258  ;
17259  return 0;
17260}
17261_ACEOF
17262if ac_fn_c_try_link "$LINENO"; then :
17263  eval $cacheid=yes
17264else
17265  eval $cacheid=no
17266fi
17267rm -f core conftest.err conftest.$ac_objext \
17268    conftest$ac_exeext conftest.$ac_ext
17269fi
17270
17271
17272		CFLAGS="$xorg_testset_save_CFLAGS"
17273
17274		eval supported=\$$cacheid
17275		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17276$as_echo "$supported" >&6; }
17277		if test "$supported" = "yes" ; then
17278			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17279			found="yes"
17280		fi
17281	fi
17282
17283
17284
17285# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17286# activate it with -Werror, so we add it here explicitly.
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300xorg_testset_save_CFLAGS="$CFLAGS"
17301
17302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17303	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17305$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17306if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17307  $as_echo_n "(cached) " >&6
17308else
17309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310/* end confdefs.h.  */
17311int i;
17312_ACEOF
17313if ac_fn_c_try_compile "$LINENO"; then :
17314  xorg_cv_cc_flag_unknown_warning_option=yes
17315else
17316  xorg_cv_cc_flag_unknown_warning_option=no
17317fi
17318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17319fi
17320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17321$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17322	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17323	CFLAGS="$xorg_testset_save_CFLAGS"
17324fi
17325
17326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17327	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17328		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17329	fi
17330	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17332$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17333if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17334  $as_echo_n "(cached) " >&6
17335else
17336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337/* end confdefs.h.  */
17338int i;
17339_ACEOF
17340if ac_fn_c_try_compile "$LINENO"; then :
17341  xorg_cv_cc_flag_unused_command_line_argument=yes
17342else
17343  xorg_cv_cc_flag_unused_command_line_argument=no
17344fi
17345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17346fi
17347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17348$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17349	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17350	CFLAGS="$xorg_testset_save_CFLAGS"
17351fi
17352
17353found="no"
17354
17355	if test $found = "no" ; then
17356		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17358		fi
17359
17360		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17362		fi
17363
17364		CFLAGS="$CFLAGS -Werror=attributes"
17365
17366		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17367$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17368		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17369		if eval \${$cacheid+:} false; then :
17370  $as_echo_n "(cached) " >&6
17371else
17372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373/* end confdefs.h.  */
17374int i;
17375int
17376main ()
17377{
17378
17379  ;
17380  return 0;
17381}
17382_ACEOF
17383if ac_fn_c_try_link "$LINENO"; then :
17384  eval $cacheid=yes
17385else
17386  eval $cacheid=no
17387fi
17388rm -f core conftest.err conftest.$ac_objext \
17389    conftest$ac_exeext conftest.$ac_ext
17390fi
17391
17392
17393		CFLAGS="$xorg_testset_save_CFLAGS"
17394
17395		eval supported=\$$cacheid
17396		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17397$as_echo "$supported" >&6; }
17398		if test "$supported" = "yes" ; then
17399			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17400			found="yes"
17401		fi
17402	fi
17403
17404
17405
17406if test "x$STRICT_COMPILE" = "xyes"; then
17407    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17408    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17409fi
17410
17411
17412
17413
17414
17415
17416cat >>confdefs.h <<_ACEOF
17417#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17418_ACEOF
17419
17420	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17421	if test "x$PVM" = "x"; then
17422		PVM="0"
17423	fi
17424
17425cat >>confdefs.h <<_ACEOF
17426#define PACKAGE_VERSION_MINOR $PVM
17427_ACEOF
17428
17429	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17430	if test "x$PVP" = "x"; then
17431		PVP="0"
17432	fi
17433
17434cat >>confdefs.h <<_ACEOF
17435#define PACKAGE_VERSION_PATCHLEVEL $PVP
17436_ACEOF
17437
17438
17439
17440CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17441mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17442|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17443echo 'git directory not found: installing possibly empty changelog.' >&2)"
17444
17445
17446
17447
17448macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17449INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17450mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17451|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17452echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17453
17454
17455
17456
17457
17458
17459if test x$APP_MAN_SUFFIX = x    ; then
17460    APP_MAN_SUFFIX=1
17461fi
17462if test x$APP_MAN_DIR = x    ; then
17463    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17464fi
17465
17466if test x$LIB_MAN_SUFFIX = x    ; then
17467    LIB_MAN_SUFFIX=3
17468fi
17469if test x$LIB_MAN_DIR = x    ; then
17470    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17471fi
17472
17473if test x$FILE_MAN_SUFFIX = x    ; then
17474    case $host_os in
17475	solaris*)	FILE_MAN_SUFFIX=4  ;;
17476	*)		FILE_MAN_SUFFIX=5  ;;
17477    esac
17478fi
17479if test x$FILE_MAN_DIR = x    ; then
17480    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17481fi
17482
17483if test x$MISC_MAN_SUFFIX = x    ; then
17484    case $host_os in
17485	solaris*)	MISC_MAN_SUFFIX=5  ;;
17486	*)		MISC_MAN_SUFFIX=7  ;;
17487    esac
17488fi
17489if test x$MISC_MAN_DIR = x    ; then
17490    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17491fi
17492
17493if test x$DRIVER_MAN_SUFFIX = x    ; then
17494    case $host_os in
17495	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
17496	*)		DRIVER_MAN_SUFFIX=4  ;;
17497    esac
17498fi
17499if test x$DRIVER_MAN_DIR = x    ; then
17500    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17501fi
17502
17503if test x$ADMIN_MAN_SUFFIX = x    ; then
17504    case $host_os in
17505	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
17506	*)		ADMIN_MAN_SUFFIX=8  ;;
17507    esac
17508fi
17509if test x$ADMIN_MAN_DIR = x    ; then
17510    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17511fi
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527XORG_MAN_PAGE="X Version 11"
17528
17529MAN_SUBSTS="\
17530	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17531	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17532	-e 's|__xservername__|Xorg|g' \
17533	-e 's|__xconfigfile__|xorg.conf|g' \
17534	-e 's|__projectroot__|\$(prefix)|g' \
17535	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
17536	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17537	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17538	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17539	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17540	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17541	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17542
17543
17544
17545# Check whether --enable-silent-rules was given.
17546if test "${enable_silent_rules+set}" = set; then :
17547  enableval=$enable_silent_rules;
17548fi
17549
17550case $enable_silent_rules in # (((
17551  yes) AM_DEFAULT_VERBOSITY=0;;
17552   no) AM_DEFAULT_VERBOSITY=1;;
17553    *) AM_DEFAULT_VERBOSITY=0;;
17554esac
17555am_make=${MAKE-make}
17556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17557$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17558if ${am_cv_make_support_nested_variables+:} false; then :
17559  $as_echo_n "(cached) " >&6
17560else
17561  if $as_echo 'TRUE=$(BAR$(V))
17562BAR0=false
17563BAR1=true
17564V=1
17565am__doit:
17566	@$(TRUE)
17567.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17568  am_cv_make_support_nested_variables=yes
17569else
17570  am_cv_make_support_nested_variables=no
17571fi
17572fi
17573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17574$as_echo "$am_cv_make_support_nested_variables" >&6; }
17575if test $am_cv_make_support_nested_variables = yes; then
17576    AM_V='$(V)'
17577  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17578else
17579  AM_V=$AM_DEFAULT_VERBOSITY
17580  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17581fi
17582AM_BACKSLASH='\'
17583
17584
17585
17586# Check whether --enable-malloc0returnsnull was given.
17587if test "${enable_malloc0returnsnull+set}" = set; then :
17588  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
17589else
17590  MALLOC_ZERO_RETURNS_NULL=auto
17591fi
17592
17593
17594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
17595$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
17596if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
17597	if test "$cross_compiling" = yes; then :
17598  MALLOC_ZERO_RETURNS_NULL=yes
17599else
17600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17601/* end confdefs.h.  */
17602
17603#include <stdlib.h>
17604
17605int
17606main ()
17607{
17608
17609    char *m0, *r0, *c0, *p;
17610    m0 = malloc(0);
17611    p = malloc(10);
17612    r0 = realloc(p,0);
17613    c0 = calloc(0,10);
17614    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
17615
17616  ;
17617  return 0;
17618}
17619_ACEOF
17620if ac_fn_c_try_run "$LINENO"; then :
17621  MALLOC_ZERO_RETURNS_NULL=yes
17622else
17623  MALLOC_ZERO_RETURNS_NULL=no
17624fi
17625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17626  conftest.$ac_objext conftest.beam conftest.$ac_ext
17627fi
17628
17629fi
17630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
17631$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
17632
17633if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
17634	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
17635	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
17636	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
17637else
17638	MALLOC_ZERO_CFLAGS=""
17639	XMALLOC_ZERO_CFLAGS=""
17640	XTMALLOC_ZERO_CFLAGS=""
17641fi
17642
17643
17644
17645
17646
17647
17648# Check render configuration, strip extra digits from package version to
17649# find the required protocol version
17650if test "$VERSION" = "" ; then
17651       VERSION=$PACKAGE_VERSION;
17652fi
17653RENDER_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
17654
17655
17656# Obtain compiler/linker options for depedencies
17657
17658pkg_failed=no
17659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RENDER" >&5
17660$as_echo_n "checking for RENDER... " >&6; }
17661
17662if test -n "$RENDER_CFLAGS"; then
17663    pkg_cv_RENDER_CFLAGS="$RENDER_CFLAGS"
17664 elif test -n "$PKG_CONFIG"; then
17665    if test -n "$PKG_CONFIG" && \
17666    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 renderproto >= \$RENDER_VERSION\""; } >&5
17667  ($PKG_CONFIG --exists --print-errors "x11 renderproto >= $RENDER_VERSION") 2>&5
17668  ac_status=$?
17669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17670  test $ac_status = 0; }; then
17671  pkg_cv_RENDER_CFLAGS=`$PKG_CONFIG --cflags "x11 renderproto >= $RENDER_VERSION" 2>/dev/null`
17672else
17673  pkg_failed=yes
17674fi
17675 else
17676    pkg_failed=untried
17677fi
17678if test -n "$RENDER_LIBS"; then
17679    pkg_cv_RENDER_LIBS="$RENDER_LIBS"
17680 elif test -n "$PKG_CONFIG"; then
17681    if test -n "$PKG_CONFIG" && \
17682    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 renderproto >= \$RENDER_VERSION\""; } >&5
17683  ($PKG_CONFIG --exists --print-errors "x11 renderproto >= $RENDER_VERSION") 2>&5
17684  ac_status=$?
17685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17686  test $ac_status = 0; }; then
17687  pkg_cv_RENDER_LIBS=`$PKG_CONFIG --libs "x11 renderproto >= $RENDER_VERSION" 2>/dev/null`
17688else
17689  pkg_failed=yes
17690fi
17691 else
17692    pkg_failed=untried
17693fi
17694
17695
17696
17697if test $pkg_failed = yes; then
17698
17699if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17700        _pkg_short_errors_supported=yes
17701else
17702        _pkg_short_errors_supported=no
17703fi
17704        if test $_pkg_short_errors_supported = yes; then
17705	        RENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 renderproto >= $RENDER_VERSION" 2>&1`
17706        else
17707	        RENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 renderproto >= $RENDER_VERSION" 2>&1`
17708        fi
17709	# Put the nasty error message in config.log where it belongs
17710	echo "$RENDER_PKG_ERRORS" >&5
17711
17712	as_fn_error $? "Package requirements (x11 renderproto >= $RENDER_VERSION) were not met:
17713
17714$RENDER_PKG_ERRORS
17715
17716Consider adjusting the PKG_CONFIG_PATH environment variable if you
17717installed software in a non-standard prefix.
17718
17719Alternatively, you may set the environment variables RENDER_CFLAGS
17720and RENDER_LIBS to avoid the need to call pkg-config.
17721See the pkg-config man page for more details.
17722" "$LINENO" 5
17723elif test $pkg_failed = untried; then
17724	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17726as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17727is in your PATH or set the PKG_CONFIG environment variable to the full
17728path to pkg-config.
17729
17730Alternatively, you may set the environment variables RENDER_CFLAGS
17731and RENDER_LIBS to avoid the need to call pkg-config.
17732See the pkg-config man page for more details.
17733
17734To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17735See \`config.log' for more details" "$LINENO" 5; }
17736else
17737	RENDER_CFLAGS=$pkg_cv_RENDER_CFLAGS
17738	RENDER_LIBS=$pkg_cv_RENDER_LIBS
17739        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17740$as_echo "yes" >&6; }
17741	:
17742fi
17743
17744# Check for _XEatDataWords function that may be patched into older Xlib release
17745SAVE_LIBS="$LIBS"
17746LIBS="$RENDER_LIBS"
17747for ac_func in _XEatDataWords
17748do :
17749  ac_fn_c_check_func "$LINENO" "_XEatDataWords" "ac_cv_func__XEatDataWords"
17750if test "x$ac_cv_func__XEatDataWords" = xyes; then :
17751  cat >>confdefs.h <<_ACEOF
17752#define HAVE__XEATDATAWORDS 1
17753_ACEOF
17754
17755fi
17756done
17757
17758LIBS="$SAVE_LIBS"
17759
17760ac_config_files="$ac_config_files Makefile src/Makefile xrender.pc"
17761
17762cat >confcache <<\_ACEOF
17763# This file is a shell script that caches the results of configure
17764# tests run on this system so they can be shared between configure
17765# scripts and configure runs, see configure's option --config-cache.
17766# It is not useful on other systems.  If it contains results you don't
17767# want to keep, you may remove or edit it.
17768#
17769# config.status only pays attention to the cache file if you give it
17770# the --recheck option to rerun configure.
17771#
17772# `ac_cv_env_foo' variables (set or unset) will be overridden when
17773# loading this file, other *unset* `ac_cv_foo' will be assigned the
17774# following values.
17775
17776_ACEOF
17777
17778# The following way of writing the cache mishandles newlines in values,
17779# but we know of no workaround that is simple, portable, and efficient.
17780# So, we kill variables containing newlines.
17781# Ultrix sh set writes to stderr and can't be redirected directly,
17782# and sets the high bit in the cache file unless we assign to the vars.
17783(
17784  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17785    eval ac_val=\$$ac_var
17786    case $ac_val in #(
17787    *${as_nl}*)
17788      case $ac_var in #(
17789      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17790$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17791      esac
17792      case $ac_var in #(
17793      _ | IFS | as_nl) ;; #(
17794      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17795      *) { eval $ac_var=; unset $ac_var;} ;;
17796      esac ;;
17797    esac
17798  done
17799
17800  (set) 2>&1 |
17801    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17802    *${as_nl}ac_space=\ *)
17803      # `set' does not quote correctly, so add quotes: double-quote
17804      # substitution turns \\\\ into \\, and sed turns \\ into \.
17805      sed -n \
17806	"s/'/'\\\\''/g;
17807	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17808      ;; #(
17809    *)
17810      # `set' quotes correctly as required by POSIX, so do not add quotes.
17811      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17812      ;;
17813    esac |
17814    sort
17815) |
17816  sed '
17817     /^ac_cv_env_/b end
17818     t clear
17819     :clear
17820     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17821     t end
17822     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17823     :end' >>confcache
17824if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17825  if test -w "$cache_file"; then
17826    if test "x$cache_file" != "x/dev/null"; then
17827      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17828$as_echo "$as_me: updating cache $cache_file" >&6;}
17829      if test ! -f "$cache_file" || test -h "$cache_file"; then
17830	cat confcache >"$cache_file"
17831      else
17832        case $cache_file in #(
17833        */* | ?:*)
17834	  mv -f confcache "$cache_file"$$ &&
17835	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17836        *)
17837	  mv -f confcache "$cache_file" ;;
17838	esac
17839      fi
17840    fi
17841  else
17842    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17843$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17844  fi
17845fi
17846rm -f confcache
17847
17848test "x$prefix" = xNONE && prefix=$ac_default_prefix
17849# Let make expand exec_prefix.
17850test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17851
17852DEFS=-DHAVE_CONFIG_H
17853
17854ac_libobjs=
17855ac_ltlibobjs=
17856U=
17857for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17858  # 1. Remove the extension, and $U if already installed.
17859  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17860  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17861  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17862  #    will be set to the directory where LIBOBJS objects are built.
17863  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17864  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17865done
17866LIBOBJS=$ac_libobjs
17867
17868LTLIBOBJS=$ac_ltlibobjs
17869
17870
17871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17872$as_echo_n "checking that generated files are newer than configure... " >&6; }
17873   if test -n "$am_sleep_pid"; then
17874     # Hide warnings about reused PIDs.
17875     wait $am_sleep_pid 2>/dev/null
17876   fi
17877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17878$as_echo "done" >&6; }
17879 if test -n "$EXEEXT"; then
17880  am__EXEEXT_TRUE=
17881  am__EXEEXT_FALSE='#'
17882else
17883  am__EXEEXT_TRUE='#'
17884  am__EXEEXT_FALSE=
17885fi
17886
17887if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17888  as_fn_error $? "conditional \"AMDEP\" was never defined.
17889Usually this means the macro was only invoked conditionally." "$LINENO" 5
17890fi
17891if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17892  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17893Usually this means the macro was only invoked conditionally." "$LINENO" 5
17894fi
17895
17896: "${CONFIG_STATUS=./config.status}"
17897ac_write_fail=0
17898ac_clean_files_save=$ac_clean_files
17899ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17900{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17901$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17902as_write_fail=0
17903cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17904#! $SHELL
17905# Generated by $as_me.
17906# Run this file to recreate the current configuration.
17907# Compiler output produced by configure, useful for debugging
17908# configure, is in config.log if it exists.
17909
17910debug=false
17911ac_cs_recheck=false
17912ac_cs_silent=false
17913
17914SHELL=\${CONFIG_SHELL-$SHELL}
17915export SHELL
17916_ASEOF
17917cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17918## -------------------- ##
17919## M4sh Initialization. ##
17920## -------------------- ##
17921
17922# Be more Bourne compatible
17923DUALCASE=1; export DUALCASE # for MKS sh
17924if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17925  emulate sh
17926  NULLCMD=:
17927  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17928  # is contrary to our usage.  Disable this feature.
17929  alias -g '${1+"$@"}'='"$@"'
17930  setopt NO_GLOB_SUBST
17931else
17932  case `(set -o) 2>/dev/null` in #(
17933  *posix*) :
17934    set -o posix ;; #(
17935  *) :
17936     ;;
17937esac
17938fi
17939
17940
17941as_nl='
17942'
17943export as_nl
17944# Printing a long string crashes Solaris 7 /usr/bin/printf.
17945as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17946as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17947as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17948# Prefer a ksh shell builtin over an external printf program on Solaris,
17949# but without wasting forks for bash or zsh.
17950if test -z "$BASH_VERSION$ZSH_VERSION" \
17951    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17952  as_echo='print -r --'
17953  as_echo_n='print -rn --'
17954elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17955  as_echo='printf %s\n'
17956  as_echo_n='printf %s'
17957else
17958  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17959    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17960    as_echo_n='/usr/ucb/echo -n'
17961  else
17962    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17963    as_echo_n_body='eval
17964      arg=$1;
17965      case $arg in #(
17966      *"$as_nl"*)
17967	expr "X$arg" : "X\\(.*\\)$as_nl";
17968	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17969      esac;
17970      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17971    '
17972    export as_echo_n_body
17973    as_echo_n='sh -c $as_echo_n_body as_echo'
17974  fi
17975  export as_echo_body
17976  as_echo='sh -c $as_echo_body as_echo'
17977fi
17978
17979# The user is always right.
17980if test "${PATH_SEPARATOR+set}" != set; then
17981  PATH_SEPARATOR=:
17982  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17983    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17984      PATH_SEPARATOR=';'
17985  }
17986fi
17987
17988
17989# IFS
17990# We need space, tab and new line, in precisely that order.  Quoting is
17991# there to prevent editors from complaining about space-tab.
17992# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17993# splitting by setting IFS to empty value.)
17994IFS=" ""	$as_nl"
17995
17996# Find who we are.  Look in the path if we contain no directory separator.
17997as_myself=
17998case $0 in #((
17999  *[\\/]* ) as_myself=$0 ;;
18000  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18001for as_dir in $PATH
18002do
18003  IFS=$as_save_IFS
18004  test -z "$as_dir" && as_dir=.
18005    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18006  done
18007IFS=$as_save_IFS
18008
18009     ;;
18010esac
18011# We did not find ourselves, most probably we were run as `sh COMMAND'
18012# in which case we are not to be found in the path.
18013if test "x$as_myself" = x; then
18014  as_myself=$0
18015fi
18016if test ! -f "$as_myself"; then
18017  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18018  exit 1
18019fi
18020
18021# Unset variables that we do not need and which cause bugs (e.g. in
18022# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18023# suppresses any "Segmentation fault" message there.  '((' could
18024# trigger a bug in pdksh 5.2.14.
18025for as_var in BASH_ENV ENV MAIL MAILPATH
18026do eval test x\${$as_var+set} = xset \
18027  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18028done
18029PS1='$ '
18030PS2='> '
18031PS4='+ '
18032
18033# NLS nuisances.
18034LC_ALL=C
18035export LC_ALL
18036LANGUAGE=C
18037export LANGUAGE
18038
18039# CDPATH.
18040(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18041
18042
18043# as_fn_error STATUS ERROR [LINENO LOG_FD]
18044# ----------------------------------------
18045# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18046# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18047# script with STATUS, using 1 if that was 0.
18048as_fn_error ()
18049{
18050  as_status=$1; test $as_status -eq 0 && as_status=1
18051  if test "$4"; then
18052    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18053    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18054  fi
18055  $as_echo "$as_me: error: $2" >&2
18056  as_fn_exit $as_status
18057} # as_fn_error
18058
18059
18060# as_fn_set_status STATUS
18061# -----------------------
18062# Set $? to STATUS, without forking.
18063as_fn_set_status ()
18064{
18065  return $1
18066} # as_fn_set_status
18067
18068# as_fn_exit STATUS
18069# -----------------
18070# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18071as_fn_exit ()
18072{
18073  set +e
18074  as_fn_set_status $1
18075  exit $1
18076} # as_fn_exit
18077
18078# as_fn_unset VAR
18079# ---------------
18080# Portably unset VAR.
18081as_fn_unset ()
18082{
18083  { eval $1=; unset $1;}
18084}
18085as_unset=as_fn_unset
18086# as_fn_append VAR VALUE
18087# ----------------------
18088# Append the text in VALUE to the end of the definition contained in VAR. Take
18089# advantage of any shell optimizations that allow amortized linear growth over
18090# repeated appends, instead of the typical quadratic growth present in naive
18091# implementations.
18092if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18093  eval 'as_fn_append ()
18094  {
18095    eval $1+=\$2
18096  }'
18097else
18098  as_fn_append ()
18099  {
18100    eval $1=\$$1\$2
18101  }
18102fi # as_fn_append
18103
18104# as_fn_arith ARG...
18105# ------------------
18106# Perform arithmetic evaluation on the ARGs, and store the result in the
18107# global $as_val. Take advantage of shells that can avoid forks. The arguments
18108# must be portable across $(()) and expr.
18109if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18110  eval 'as_fn_arith ()
18111  {
18112    as_val=$(( $* ))
18113  }'
18114else
18115  as_fn_arith ()
18116  {
18117    as_val=`expr "$@" || test $? -eq 1`
18118  }
18119fi # as_fn_arith
18120
18121
18122if expr a : '\(a\)' >/dev/null 2>&1 &&
18123   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18124  as_expr=expr
18125else
18126  as_expr=false
18127fi
18128
18129if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18130  as_basename=basename
18131else
18132  as_basename=false
18133fi
18134
18135if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18136  as_dirname=dirname
18137else
18138  as_dirname=false
18139fi
18140
18141as_me=`$as_basename -- "$0" ||
18142$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18143	 X"$0" : 'X\(//\)$' \| \
18144	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18145$as_echo X/"$0" |
18146    sed '/^.*\/\([^/][^/]*\)\/*$/{
18147	    s//\1/
18148	    q
18149	  }
18150	  /^X\/\(\/\/\)$/{
18151	    s//\1/
18152	    q
18153	  }
18154	  /^X\/\(\/\).*/{
18155	    s//\1/
18156	    q
18157	  }
18158	  s/.*/./; q'`
18159
18160# Avoid depending upon Character Ranges.
18161as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18162as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18163as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18164as_cr_digits='0123456789'
18165as_cr_alnum=$as_cr_Letters$as_cr_digits
18166
18167ECHO_C= ECHO_N= ECHO_T=
18168case `echo -n x` in #(((((
18169-n*)
18170  case `echo 'xy\c'` in
18171  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18172  xy)  ECHO_C='\c';;
18173  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18174       ECHO_T='	';;
18175  esac;;
18176*)
18177  ECHO_N='-n';;
18178esac
18179
18180rm -f conf$$ conf$$.exe conf$$.file
18181if test -d conf$$.dir; then
18182  rm -f conf$$.dir/conf$$.file
18183else
18184  rm -f conf$$.dir
18185  mkdir conf$$.dir 2>/dev/null
18186fi
18187if (echo >conf$$.file) 2>/dev/null; then
18188  if ln -s conf$$.file conf$$ 2>/dev/null; then
18189    as_ln_s='ln -s'
18190    # ... but there are two gotchas:
18191    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18192    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18193    # In both cases, we have to default to `cp -p'.
18194    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18195      as_ln_s='cp -p'
18196  elif ln conf$$.file conf$$ 2>/dev/null; then
18197    as_ln_s=ln
18198  else
18199    as_ln_s='cp -p'
18200  fi
18201else
18202  as_ln_s='cp -p'
18203fi
18204rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18205rmdir conf$$.dir 2>/dev/null
18206
18207
18208# as_fn_mkdir_p
18209# -------------
18210# Create "$as_dir" as a directory, including parents if necessary.
18211as_fn_mkdir_p ()
18212{
18213
18214  case $as_dir in #(
18215  -*) as_dir=./$as_dir;;
18216  esac
18217  test -d "$as_dir" || eval $as_mkdir_p || {
18218    as_dirs=
18219    while :; do
18220      case $as_dir in #(
18221      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18222      *) as_qdir=$as_dir;;
18223      esac
18224      as_dirs="'$as_qdir' $as_dirs"
18225      as_dir=`$as_dirname -- "$as_dir" ||
18226$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18227	 X"$as_dir" : 'X\(//\)[^/]' \| \
18228	 X"$as_dir" : 'X\(//\)$' \| \
18229	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18230$as_echo X"$as_dir" |
18231    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18232	    s//\1/
18233	    q
18234	  }
18235	  /^X\(\/\/\)[^/].*/{
18236	    s//\1/
18237	    q
18238	  }
18239	  /^X\(\/\/\)$/{
18240	    s//\1/
18241	    q
18242	  }
18243	  /^X\(\/\).*/{
18244	    s//\1/
18245	    q
18246	  }
18247	  s/.*/./; q'`
18248      test -d "$as_dir" && break
18249    done
18250    test -z "$as_dirs" || eval "mkdir $as_dirs"
18251  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18252
18253
18254} # as_fn_mkdir_p
18255if mkdir -p . 2>/dev/null; then
18256  as_mkdir_p='mkdir -p "$as_dir"'
18257else
18258  test -d ./-p && rmdir ./-p
18259  as_mkdir_p=false
18260fi
18261
18262if test -x / >/dev/null 2>&1; then
18263  as_test_x='test -x'
18264else
18265  if ls -dL / >/dev/null 2>&1; then
18266    as_ls_L_option=L
18267  else
18268    as_ls_L_option=
18269  fi
18270  as_test_x='
18271    eval sh -c '\''
18272      if test -d "$1"; then
18273	test -d "$1/.";
18274      else
18275	case $1 in #(
18276	-*)set "./$1";;
18277	esac;
18278	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18279	???[sx]*):;;*)false;;esac;fi
18280    '\'' sh
18281  '
18282fi
18283as_executable_p=$as_test_x
18284
18285# Sed expression to map a string onto a valid CPP name.
18286as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18287
18288# Sed expression to map a string onto a valid variable name.
18289as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18290
18291
18292exec 6>&1
18293## ----------------------------------- ##
18294## Main body of $CONFIG_STATUS script. ##
18295## ----------------------------------- ##
18296_ASEOF
18297test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18298
18299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18300# Save the log message, to keep $0 and so on meaningful, and to
18301# report actual input values of CONFIG_FILES etc. instead of their
18302# values after options handling.
18303ac_log="
18304This file was extended by libXrender $as_me 0.9.8, which was
18305generated by GNU Autoconf 2.68.  Invocation command line was
18306
18307  CONFIG_FILES    = $CONFIG_FILES
18308  CONFIG_HEADERS  = $CONFIG_HEADERS
18309  CONFIG_LINKS    = $CONFIG_LINKS
18310  CONFIG_COMMANDS = $CONFIG_COMMANDS
18311  $ $0 $@
18312
18313on `(hostname || uname -n) 2>/dev/null | sed 1q`
18314"
18315
18316_ACEOF
18317
18318case $ac_config_files in *"
18319"*) set x $ac_config_files; shift; ac_config_files=$*;;
18320esac
18321
18322case $ac_config_headers in *"
18323"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18324esac
18325
18326
18327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18328# Files that config.status was made for.
18329config_files="$ac_config_files"
18330config_headers="$ac_config_headers"
18331config_commands="$ac_config_commands"
18332
18333_ACEOF
18334
18335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18336ac_cs_usage="\
18337\`$as_me' instantiates files and other configuration actions
18338from templates according to the current configuration.  Unless the files
18339and actions are specified as TAGs, all are instantiated by default.
18340
18341Usage: $0 [OPTION]... [TAG]...
18342
18343  -h, --help       print this help, then exit
18344  -V, --version    print version number and configuration settings, then exit
18345      --config     print configuration, then exit
18346  -q, --quiet, --silent
18347                   do not print progress messages
18348  -d, --debug      don't remove temporary files
18349      --recheck    update $as_me by reconfiguring in the same conditions
18350      --file=FILE[:TEMPLATE]
18351                   instantiate the configuration file FILE
18352      --header=FILE[:TEMPLATE]
18353                   instantiate the configuration header FILE
18354
18355Configuration files:
18356$config_files
18357
18358Configuration headers:
18359$config_headers
18360
18361Configuration commands:
18362$config_commands
18363
18364Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18365
18366_ACEOF
18367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18368ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18369ac_cs_version="\\
18370libXrender config.status 0.9.8
18371configured by $0, generated by GNU Autoconf 2.68,
18372  with options \\"\$ac_cs_config\\"
18373
18374Copyright (C) 2010 Free Software Foundation, Inc.
18375This config.status script is free software; the Free Software Foundation
18376gives unlimited permission to copy, distribute and modify it."
18377
18378ac_pwd='$ac_pwd'
18379srcdir='$srcdir'
18380INSTALL='$INSTALL'
18381MKDIR_P='$MKDIR_P'
18382AWK='$AWK'
18383test -n "\$AWK" || AWK=awk
18384_ACEOF
18385
18386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18387# The default lists apply if the user does not specify any file.
18388ac_need_defaults=:
18389while test $# != 0
18390do
18391  case $1 in
18392  --*=?*)
18393    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18394    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18395    ac_shift=:
18396    ;;
18397  --*=)
18398    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18399    ac_optarg=
18400    ac_shift=:
18401    ;;
18402  *)
18403    ac_option=$1
18404    ac_optarg=$2
18405    ac_shift=shift
18406    ;;
18407  esac
18408
18409  case $ac_option in
18410  # Handling of the options.
18411  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18412    ac_cs_recheck=: ;;
18413  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18414    $as_echo "$ac_cs_version"; exit ;;
18415  --config | --confi | --conf | --con | --co | --c )
18416    $as_echo "$ac_cs_config"; exit ;;
18417  --debug | --debu | --deb | --de | --d | -d )
18418    debug=: ;;
18419  --file | --fil | --fi | --f )
18420    $ac_shift
18421    case $ac_optarg in
18422    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18423    '') as_fn_error $? "missing file argument" ;;
18424    esac
18425    as_fn_append CONFIG_FILES " '$ac_optarg'"
18426    ac_need_defaults=false;;
18427  --header | --heade | --head | --hea )
18428    $ac_shift
18429    case $ac_optarg in
18430    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18431    esac
18432    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18433    ac_need_defaults=false;;
18434  --he | --h)
18435    # Conflict between --help and --header
18436    as_fn_error $? "ambiguous option: \`$1'
18437Try \`$0 --help' for more information.";;
18438  --help | --hel | -h )
18439    $as_echo "$ac_cs_usage"; exit ;;
18440  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18441  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18442    ac_cs_silent=: ;;
18443
18444  # This is an error.
18445  -*) as_fn_error $? "unrecognized option: \`$1'
18446Try \`$0 --help' for more information." ;;
18447
18448  *) as_fn_append ac_config_targets " $1"
18449     ac_need_defaults=false ;;
18450
18451  esac
18452  shift
18453done
18454
18455ac_configure_extra_args=
18456
18457if $ac_cs_silent; then
18458  exec 6>/dev/null
18459  ac_configure_extra_args="$ac_configure_extra_args --silent"
18460fi
18461
18462_ACEOF
18463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18464if \$ac_cs_recheck; then
18465  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18466  shift
18467  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18468  CONFIG_SHELL='$SHELL'
18469  export CONFIG_SHELL
18470  exec "\$@"
18471fi
18472
18473_ACEOF
18474cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18475exec 5>>config.log
18476{
18477  echo
18478  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18479## Running $as_me. ##
18480_ASBOX
18481  $as_echo "$ac_log"
18482} >&5
18483
18484_ACEOF
18485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18486#
18487# INIT-COMMANDS
18488#
18489AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18490
18491
18492# The HP-UX ksh and POSIX shell print the target directory to stdout
18493# if CDPATH is set.
18494(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18495
18496sed_quote_subst='$sed_quote_subst'
18497double_quote_subst='$double_quote_subst'
18498delay_variable_subst='$delay_variable_subst'
18499macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18500macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18501enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18502enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18503pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18504enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18505SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18506ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18507PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18508host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18509host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18510host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18511build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18512build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18513build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18514SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18515Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18516GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18517EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18518FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18519LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18520NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18521LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18522max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18523ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18524exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18525lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18526lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18527lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18528lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18529lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18530reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18531reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18532OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18533deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18534file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18535file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18536want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18537DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18538sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18539AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18540AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18541archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18542STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18543RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18544old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18545old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18546old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18547lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18548CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18549CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18550compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18551GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18552lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18553lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18554lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18555lt_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"`'
18556nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18557lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18558objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18559MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18560lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18561lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18562lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18563lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18564lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18565need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18566MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18567DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18568NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18569LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18570OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18571OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18572libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18573shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18574extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18575archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18576enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18577export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18578whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18579compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18580old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18581old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18582archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18583archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18584module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18585module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18586with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18587allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18588no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18589hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18590hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18591hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18592hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18593hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18594hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18595hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18596inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18597link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18598always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18599export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18600exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18601include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18602prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18603postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18604file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18605variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18606need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18607need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18608version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18609runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18610shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18611shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18612libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18613library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18614soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18615install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18616postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18617postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18618finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18619finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18620hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18621sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18622sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18623hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18624enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18625enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18626enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18627old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18628striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18629
18630LTCC='$LTCC'
18631LTCFLAGS='$LTCFLAGS'
18632compiler='$compiler_DEFAULT'
18633
18634# A function that is used when there is no print builtin or printf.
18635func_fallback_echo ()
18636{
18637  eval 'cat <<_LTECHO_EOF
18638\$1
18639_LTECHO_EOF'
18640}
18641
18642# Quote evaled strings.
18643for var in SHELL \
18644ECHO \
18645PATH_SEPARATOR \
18646SED \
18647GREP \
18648EGREP \
18649FGREP \
18650LD \
18651NM \
18652LN_S \
18653lt_SP2NL \
18654lt_NL2SP \
18655reload_flag \
18656OBJDUMP \
18657deplibs_check_method \
18658file_magic_cmd \
18659file_magic_glob \
18660want_nocaseglob \
18661DLLTOOL \
18662sharedlib_from_linklib_cmd \
18663AR \
18664AR_FLAGS \
18665archiver_list_spec \
18666STRIP \
18667RANLIB \
18668CC \
18669CFLAGS \
18670compiler \
18671lt_cv_sys_global_symbol_pipe \
18672lt_cv_sys_global_symbol_to_cdecl \
18673lt_cv_sys_global_symbol_to_c_name_address \
18674lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18675nm_file_list_spec \
18676lt_prog_compiler_no_builtin_flag \
18677lt_prog_compiler_pic \
18678lt_prog_compiler_wl \
18679lt_prog_compiler_static \
18680lt_cv_prog_compiler_c_o \
18681need_locks \
18682MANIFEST_TOOL \
18683DSYMUTIL \
18684NMEDIT \
18685LIPO \
18686OTOOL \
18687OTOOL64 \
18688shrext_cmds \
18689export_dynamic_flag_spec \
18690whole_archive_flag_spec \
18691compiler_needs_object \
18692with_gnu_ld \
18693allow_undefined_flag \
18694no_undefined_flag \
18695hardcode_libdir_flag_spec \
18696hardcode_libdir_separator \
18697exclude_expsyms \
18698include_expsyms \
18699file_list_spec \
18700variables_saved_for_relink \
18701libname_spec \
18702library_names_spec \
18703soname_spec \
18704install_override_mode \
18705finish_eval \
18706old_striplib \
18707striplib; do
18708    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18709    *[\\\\\\\`\\"\\\$]*)
18710      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18711      ;;
18712    *)
18713      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18714      ;;
18715    esac
18716done
18717
18718# Double-quote double-evaled strings.
18719for var in reload_cmds \
18720old_postinstall_cmds \
18721old_postuninstall_cmds \
18722old_archive_cmds \
18723extract_expsyms_cmds \
18724old_archive_from_new_cmds \
18725old_archive_from_expsyms_cmds \
18726archive_cmds \
18727archive_expsym_cmds \
18728module_cmds \
18729module_expsym_cmds \
18730export_symbols_cmds \
18731prelink_cmds \
18732postlink_cmds \
18733postinstall_cmds \
18734postuninstall_cmds \
18735finish_cmds \
18736sys_lib_search_path_spec \
18737sys_lib_dlsearch_path_spec; do
18738    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18739    *[\\\\\\\`\\"\\\$]*)
18740      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18741      ;;
18742    *)
18743      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18744      ;;
18745    esac
18746done
18747
18748ac_aux_dir='$ac_aux_dir'
18749xsi_shell='$xsi_shell'
18750lt_shell_append='$lt_shell_append'
18751
18752# See if we are running on zsh, and set the options which allow our
18753# commands through without removal of \ escapes INIT.
18754if test -n "\${ZSH_VERSION+set}" ; then
18755   setopt NO_GLOB_SUBST
18756fi
18757
18758
18759    PACKAGE='$PACKAGE'
18760    VERSION='$VERSION'
18761    TIMESTAMP='$TIMESTAMP'
18762    RM='$RM'
18763    ofile='$ofile'
18764
18765
18766
18767
18768_ACEOF
18769
18770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18771
18772# Handling of arguments.
18773for ac_config_target in $ac_config_targets
18774do
18775  case $ac_config_target in
18776    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18777    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18778    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18779    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18780    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18781    "xrender.pc") CONFIG_FILES="$CONFIG_FILES xrender.pc" ;;
18782
18783  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18784  esac
18785done
18786
18787
18788# If the user did not use the arguments to specify the items to instantiate,
18789# then the envvar interface is used.  Set only those that are not.
18790# We use the long form for the default assignment because of an extremely
18791# bizarre bug on SunOS 4.1.3.
18792if $ac_need_defaults; then
18793  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18794  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18795  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18796fi
18797
18798# Have a temporary directory for convenience.  Make it in the build tree
18799# simply because there is no reason against having it here, and in addition,
18800# creating and moving files from /tmp can sometimes cause problems.
18801# Hook for its removal unless debugging.
18802# Note that there is a small window in which the directory will not be cleaned:
18803# after its creation but before its name has been assigned to `$tmp'.
18804$debug ||
18805{
18806  tmp= ac_tmp=
18807  trap 'exit_status=$?
18808  : "${ac_tmp:=$tmp}"
18809  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18810' 0
18811  trap 'as_fn_exit 1' 1 2 13 15
18812}
18813# Create a (secure) tmp directory for tmp files.
18814
18815{
18816  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18817  test -d "$tmp"
18818}  ||
18819{
18820  tmp=./conf$$-$RANDOM
18821  (umask 077 && mkdir "$tmp")
18822} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18823ac_tmp=$tmp
18824
18825# Set up the scripts for CONFIG_FILES section.
18826# No need to generate them if there are no CONFIG_FILES.
18827# This happens for instance with `./config.status config.h'.
18828if test -n "$CONFIG_FILES"; then
18829
18830
18831ac_cr=`echo X | tr X '\015'`
18832# On cygwin, bash can eat \r inside `` if the user requested igncr.
18833# But we know of no other shell where ac_cr would be empty at this
18834# point, so we can use a bashism as a fallback.
18835if test "x$ac_cr" = x; then
18836  eval ac_cr=\$\'\\r\'
18837fi
18838ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18839if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18840  ac_cs_awk_cr='\\r'
18841else
18842  ac_cs_awk_cr=$ac_cr
18843fi
18844
18845echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18846_ACEOF
18847
18848
18849{
18850  echo "cat >conf$$subs.awk <<_ACEOF" &&
18851  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18852  echo "_ACEOF"
18853} >conf$$subs.sh ||
18854  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18855ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18856ac_delim='%!_!# '
18857for ac_last_try in false false false false false :; do
18858  . ./conf$$subs.sh ||
18859    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18860
18861  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18862  if test $ac_delim_n = $ac_delim_num; then
18863    break
18864  elif $ac_last_try; then
18865    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18866  else
18867    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18868  fi
18869done
18870rm -f conf$$subs.sh
18871
18872cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18873cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18874_ACEOF
18875sed -n '
18876h
18877s/^/S["/; s/!.*/"]=/
18878p
18879g
18880s/^[^!]*!//
18881:repl
18882t repl
18883s/'"$ac_delim"'$//
18884t delim
18885:nl
18886h
18887s/\(.\{148\}\)..*/\1/
18888t more1
18889s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18890p
18891n
18892b repl
18893:more1
18894s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18895p
18896g
18897s/.\{148\}//
18898t nl
18899:delim
18900h
18901s/\(.\{148\}\)..*/\1/
18902t more2
18903s/["\\]/\\&/g; s/^/"/; s/$/"/
18904p
18905b
18906:more2
18907s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18908p
18909g
18910s/.\{148\}//
18911t delim
18912' <conf$$subs.awk | sed '
18913/^[^""]/{
18914  N
18915  s/\n//
18916}
18917' >>$CONFIG_STATUS || ac_write_fail=1
18918rm -f conf$$subs.awk
18919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18920_ACAWK
18921cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18922  for (key in S) S_is_set[key] = 1
18923  FS = ""
18924
18925}
18926{
18927  line = $ 0
18928  nfields = split(line, field, "@")
18929  substed = 0
18930  len = length(field[1])
18931  for (i = 2; i < nfields; i++) {
18932    key = field[i]
18933    keylen = length(key)
18934    if (S_is_set[key]) {
18935      value = S[key]
18936      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18937      len += length(value) + length(field[++i])
18938      substed = 1
18939    } else
18940      len += 1 + keylen
18941  }
18942
18943  print line
18944}
18945
18946_ACAWK
18947_ACEOF
18948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18949if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18950  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18951else
18952  cat
18953fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18954  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18955_ACEOF
18956
18957# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18958# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18959# trailing colons and then remove the whole line if VPATH becomes empty
18960# (actually we leave an empty line to preserve line numbers).
18961if test "x$srcdir" = x.; then
18962  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18963h
18964s///
18965s/^/:/
18966s/[	 ]*$/:/
18967s/:\$(srcdir):/:/g
18968s/:\${srcdir}:/:/g
18969s/:@srcdir@:/:/g
18970s/^:*//
18971s/:*$//
18972x
18973s/\(=[	 ]*\).*/\1/
18974G
18975s/\n//
18976s/^[^=]*=[	 ]*$//
18977}'
18978fi
18979
18980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18981fi # test -n "$CONFIG_FILES"
18982
18983# Set up the scripts for CONFIG_HEADERS section.
18984# No need to generate them if there are no CONFIG_HEADERS.
18985# This happens for instance with `./config.status Makefile'.
18986if test -n "$CONFIG_HEADERS"; then
18987cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18988BEGIN {
18989_ACEOF
18990
18991# Transform confdefs.h into an awk script `defines.awk', embedded as
18992# here-document in config.status, that substitutes the proper values into
18993# config.h.in to produce config.h.
18994
18995# Create a delimiter string that does not exist in confdefs.h, to ease
18996# handling of long lines.
18997ac_delim='%!_!# '
18998for ac_last_try in false false :; do
18999  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19000  if test -z "$ac_tt"; then
19001    break
19002  elif $ac_last_try; then
19003    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19004  else
19005    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19006  fi
19007done
19008
19009# For the awk script, D is an array of macro values keyed by name,
19010# likewise P contains macro parameters if any.  Preserve backslash
19011# newline sequences.
19012
19013ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19014sed -n '
19015s/.\{148\}/&'"$ac_delim"'/g
19016t rset
19017:rset
19018s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19019t def
19020d
19021:def
19022s/\\$//
19023t bsnl
19024s/["\\]/\\&/g
19025s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19026D["\1"]=" \3"/p
19027s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19028d
19029:bsnl
19030s/["\\]/\\&/g
19031s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19032D["\1"]=" \3\\\\\\n"\\/p
19033t cont
19034s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19035t cont
19036d
19037:cont
19038n
19039s/.\{148\}/&'"$ac_delim"'/g
19040t clear
19041:clear
19042s/\\$//
19043t bsnlc
19044s/["\\]/\\&/g; s/^/"/; s/$/"/p
19045d
19046:bsnlc
19047s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19048b cont
19049' <confdefs.h | sed '
19050s/'"$ac_delim"'/"\\\
19051"/g' >>$CONFIG_STATUS || ac_write_fail=1
19052
19053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19054  for (key in D) D_is_set[key] = 1
19055  FS = ""
19056}
19057/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19058  line = \$ 0
19059  split(line, arg, " ")
19060  if (arg[1] == "#") {
19061    defundef = arg[2]
19062    mac1 = arg[3]
19063  } else {
19064    defundef = substr(arg[1], 2)
19065    mac1 = arg[2]
19066  }
19067  split(mac1, mac2, "(") #)
19068  macro = mac2[1]
19069  prefix = substr(line, 1, index(line, defundef) - 1)
19070  if (D_is_set[macro]) {
19071    # Preserve the white space surrounding the "#".
19072    print prefix "define", macro P[macro] D[macro]
19073    next
19074  } else {
19075    # Replace #undef with comments.  This is necessary, for example,
19076    # in the case of _POSIX_SOURCE, which is predefined and required
19077    # on some systems where configure will not decide to define it.
19078    if (defundef == "undef") {
19079      print "/*", prefix defundef, macro, "*/"
19080      next
19081    }
19082  }
19083}
19084{ print }
19085_ACAWK
19086_ACEOF
19087cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19088  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19089fi # test -n "$CONFIG_HEADERS"
19090
19091
19092eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19093shift
19094for ac_tag
19095do
19096  case $ac_tag in
19097  :[FHLC]) ac_mode=$ac_tag; continue;;
19098  esac
19099  case $ac_mode$ac_tag in
19100  :[FHL]*:*);;
19101  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19102  :[FH]-) ac_tag=-:-;;
19103  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19104  esac
19105  ac_save_IFS=$IFS
19106  IFS=:
19107  set x $ac_tag
19108  IFS=$ac_save_IFS
19109  shift
19110  ac_file=$1
19111  shift
19112
19113  case $ac_mode in
19114  :L) ac_source=$1;;
19115  :[FH])
19116    ac_file_inputs=
19117    for ac_f
19118    do
19119      case $ac_f in
19120      -) ac_f="$ac_tmp/stdin";;
19121      *) # Look for the file first in the build tree, then in the source tree
19122	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19123	 # because $ac_f cannot contain `:'.
19124	 test -f "$ac_f" ||
19125	   case $ac_f in
19126	   [\\/$]*) false;;
19127	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19128	   esac ||
19129	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19130      esac
19131      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19132      as_fn_append ac_file_inputs " '$ac_f'"
19133    done
19134
19135    # Let's still pretend it is `configure' which instantiates (i.e., don't
19136    # use $as_me), people would be surprised to read:
19137    #    /* config.h.  Generated by config.status.  */
19138    configure_input='Generated from '`
19139	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19140	`' by configure.'
19141    if test x"$ac_file" != x-; then
19142      configure_input="$ac_file.  $configure_input"
19143      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19144$as_echo "$as_me: creating $ac_file" >&6;}
19145    fi
19146    # Neutralize special characters interpreted by sed in replacement strings.
19147    case $configure_input in #(
19148    *\&* | *\|* | *\\* )
19149       ac_sed_conf_input=`$as_echo "$configure_input" |
19150       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19151    *) ac_sed_conf_input=$configure_input;;
19152    esac
19153
19154    case $ac_tag in
19155    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19156      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19157    esac
19158    ;;
19159  esac
19160
19161  ac_dir=`$as_dirname -- "$ac_file" ||
19162$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19163	 X"$ac_file" : 'X\(//\)[^/]' \| \
19164	 X"$ac_file" : 'X\(//\)$' \| \
19165	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19166$as_echo X"$ac_file" |
19167    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19168	    s//\1/
19169	    q
19170	  }
19171	  /^X\(\/\/\)[^/].*/{
19172	    s//\1/
19173	    q
19174	  }
19175	  /^X\(\/\/\)$/{
19176	    s//\1/
19177	    q
19178	  }
19179	  /^X\(\/\).*/{
19180	    s//\1/
19181	    q
19182	  }
19183	  s/.*/./; q'`
19184  as_dir="$ac_dir"; as_fn_mkdir_p
19185  ac_builddir=.
19186
19187case "$ac_dir" in
19188.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19189*)
19190  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19191  # A ".." for each directory in $ac_dir_suffix.
19192  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19193  case $ac_top_builddir_sub in
19194  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19195  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19196  esac ;;
19197esac
19198ac_abs_top_builddir=$ac_pwd
19199ac_abs_builddir=$ac_pwd$ac_dir_suffix
19200# for backward compatibility:
19201ac_top_builddir=$ac_top_build_prefix
19202
19203case $srcdir in
19204  .)  # We are building in place.
19205    ac_srcdir=.
19206    ac_top_srcdir=$ac_top_builddir_sub
19207    ac_abs_top_srcdir=$ac_pwd ;;
19208  [\\/]* | ?:[\\/]* )  # Absolute name.
19209    ac_srcdir=$srcdir$ac_dir_suffix;
19210    ac_top_srcdir=$srcdir
19211    ac_abs_top_srcdir=$srcdir ;;
19212  *) # Relative name.
19213    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19214    ac_top_srcdir=$ac_top_build_prefix$srcdir
19215    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19216esac
19217ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19218
19219
19220  case $ac_mode in
19221  :F)
19222  #
19223  # CONFIG_FILE
19224  #
19225
19226  case $INSTALL in
19227  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19228  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19229  esac
19230  ac_MKDIR_P=$MKDIR_P
19231  case $MKDIR_P in
19232  [\\/$]* | ?:[\\/]* ) ;;
19233  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19234  esac
19235_ACEOF
19236
19237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19238# If the template does not know about datarootdir, expand it.
19239# FIXME: This hack should be removed a few years after 2.60.
19240ac_datarootdir_hack=; ac_datarootdir_seen=
19241ac_sed_dataroot='
19242/datarootdir/ {
19243  p
19244  q
19245}
19246/@datadir@/p
19247/@docdir@/p
19248/@infodir@/p
19249/@localedir@/p
19250/@mandir@/p'
19251case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19252*datarootdir*) ac_datarootdir_seen=yes;;
19253*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19254  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19255$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19256_ACEOF
19257cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19258  ac_datarootdir_hack='
19259  s&@datadir@&$datadir&g
19260  s&@docdir@&$docdir&g
19261  s&@infodir@&$infodir&g
19262  s&@localedir@&$localedir&g
19263  s&@mandir@&$mandir&g
19264  s&\\\${datarootdir}&$datarootdir&g' ;;
19265esac
19266_ACEOF
19267
19268# Neutralize VPATH when `$srcdir' = `.'.
19269# Shell code in configure.ac might set extrasub.
19270# FIXME: do we really want to maintain this feature?
19271cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19272ac_sed_extra="$ac_vpsub
19273$extrasub
19274_ACEOF
19275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19276:t
19277/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19278s|@configure_input@|$ac_sed_conf_input|;t t
19279s&@top_builddir@&$ac_top_builddir_sub&;t t
19280s&@top_build_prefix@&$ac_top_build_prefix&;t t
19281s&@srcdir@&$ac_srcdir&;t t
19282s&@abs_srcdir@&$ac_abs_srcdir&;t t
19283s&@top_srcdir@&$ac_top_srcdir&;t t
19284s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19285s&@builddir@&$ac_builddir&;t t
19286s&@abs_builddir@&$ac_abs_builddir&;t t
19287s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19288s&@INSTALL@&$ac_INSTALL&;t t
19289s&@MKDIR_P@&$ac_MKDIR_P&;t t
19290$ac_datarootdir_hack
19291"
19292eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19293  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19294
19295test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19296  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19297  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19298      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19299  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19300which seems to be undefined.  Please make sure it is defined" >&5
19301$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19302which seems to be undefined.  Please make sure it is defined" >&2;}
19303
19304  rm -f "$ac_tmp/stdin"
19305  case $ac_file in
19306  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19307  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19308  esac \
19309  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19310 ;;
19311  :H)
19312  #
19313  # CONFIG_HEADER
19314  #
19315  if test x"$ac_file" != x-; then
19316    {
19317      $as_echo "/* $configure_input  */" \
19318      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19319    } >"$ac_tmp/config.h" \
19320      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19321    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19322      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19323$as_echo "$as_me: $ac_file is unchanged" >&6;}
19324    else
19325      rm -f "$ac_file"
19326      mv "$ac_tmp/config.h" "$ac_file" \
19327	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19328    fi
19329  else
19330    $as_echo "/* $configure_input  */" \
19331      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19332      || as_fn_error $? "could not create -" "$LINENO" 5
19333  fi
19334# Compute "$ac_file"'s index in $config_headers.
19335_am_arg="$ac_file"
19336_am_stamp_count=1
19337for _am_header in $config_headers :; do
19338  case $_am_header in
19339    $_am_arg | $_am_arg:* )
19340      break ;;
19341    * )
19342      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19343  esac
19344done
19345echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19346$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19347	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19348	 X"$_am_arg" : 'X\(//\)$' \| \
19349	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19350$as_echo X"$_am_arg" |
19351    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19352	    s//\1/
19353	    q
19354	  }
19355	  /^X\(\/\/\)[^/].*/{
19356	    s//\1/
19357	    q
19358	  }
19359	  /^X\(\/\/\)$/{
19360	    s//\1/
19361	    q
19362	  }
19363	  /^X\(\/\).*/{
19364	    s//\1/
19365	    q
19366	  }
19367	  s/.*/./; q'`/stamp-h$_am_stamp_count
19368 ;;
19369
19370  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19371$as_echo "$as_me: executing $ac_file commands" >&6;}
19372 ;;
19373  esac
19374
19375
19376  case $ac_file$ac_mode in
19377    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19378  # Older Autoconf quotes --file arguments for eval, but not when files
19379  # are listed without --file.  Let's play safe and only enable the eval
19380  # if we detect the quoting.
19381  case $CONFIG_FILES in
19382  *\'*) eval set x "$CONFIG_FILES" ;;
19383  *)   set x $CONFIG_FILES ;;
19384  esac
19385  shift
19386  for mf
19387  do
19388    # Strip MF so we end up with the name of the file.
19389    mf=`echo "$mf" | sed -e 's/:.*$//'`
19390    # Check whether this is an Automake generated Makefile or not.
19391    # We used to match only the files named 'Makefile.in', but
19392    # some people rename them; so instead we look at the file content.
19393    # Grep'ing the first line is not enough: some people post-process
19394    # each Makefile.in and add a new line on top of each file to say so.
19395    # Grep'ing the whole file is not good either: AIX grep has a line
19396    # limit of 2048, but all sed's we know have understand at least 4000.
19397    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19398      dirpart=`$as_dirname -- "$mf" ||
19399$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19400	 X"$mf" : 'X\(//\)[^/]' \| \
19401	 X"$mf" : 'X\(//\)$' \| \
19402	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19403$as_echo X"$mf" |
19404    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19405	    s//\1/
19406	    q
19407	  }
19408	  /^X\(\/\/\)[^/].*/{
19409	    s//\1/
19410	    q
19411	  }
19412	  /^X\(\/\/\)$/{
19413	    s//\1/
19414	    q
19415	  }
19416	  /^X\(\/\).*/{
19417	    s//\1/
19418	    q
19419	  }
19420	  s/.*/./; q'`
19421    else
19422      continue
19423    fi
19424    # Extract the definition of DEPDIR, am__include, and am__quote
19425    # from the Makefile without running 'make'.
19426    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19427    test -z "$DEPDIR" && continue
19428    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19429    test -z "$am__include" && continue
19430    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19431    # Find all dependency output files, they are included files with
19432    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19433    # simplest approach to changing $(DEPDIR) to its actual value in the
19434    # expansion.
19435    for file in `sed -n "
19436      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19437	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19438      # Make sure the directory exists.
19439      test -f "$dirpart/$file" && continue
19440      fdir=`$as_dirname -- "$file" ||
19441$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19442	 X"$file" : 'X\(//\)[^/]' \| \
19443	 X"$file" : 'X\(//\)$' \| \
19444	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19445$as_echo X"$file" |
19446    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19447	    s//\1/
19448	    q
19449	  }
19450	  /^X\(\/\/\)[^/].*/{
19451	    s//\1/
19452	    q
19453	  }
19454	  /^X\(\/\/\)$/{
19455	    s//\1/
19456	    q
19457	  }
19458	  /^X\(\/\).*/{
19459	    s//\1/
19460	    q
19461	  }
19462	  s/.*/./; q'`
19463      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19464      # echo "creating $dirpart/$file"
19465      echo '# dummy' > "$dirpart/$file"
19466    done
19467  done
19468}
19469 ;;
19470    "libtool":C)
19471
19472    # See if we are running on zsh, and set the options which allow our
19473    # commands through without removal of \ escapes.
19474    if test -n "${ZSH_VERSION+set}" ; then
19475      setopt NO_GLOB_SUBST
19476    fi
19477
19478    cfgfile="${ofile}T"
19479    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19480    $RM "$cfgfile"
19481
19482    cat <<_LT_EOF >> "$cfgfile"
19483#! $SHELL
19484
19485# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19486# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19487# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19488# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19489#
19490#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19491#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19492#                 Foundation, Inc.
19493#   Written by Gordon Matzigkeit, 1996
19494#
19495#   This file is part of GNU Libtool.
19496#
19497# GNU Libtool is free software; you can redistribute it and/or
19498# modify it under the terms of the GNU General Public License as
19499# published by the Free Software Foundation; either version 2 of
19500# the License, or (at your option) any later version.
19501#
19502# As a special exception to the GNU General Public License,
19503# if you distribute this file as part of a program or library that
19504# is built using GNU Libtool, you may include this file under the
19505# same distribution terms that you use for the rest of that program.
19506#
19507# GNU Libtool is distributed in the hope that it will be useful,
19508# but WITHOUT ANY WARRANTY; without even the implied warranty of
19509# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19510# GNU General Public License for more details.
19511#
19512# You should have received a copy of the GNU General Public License
19513# along with GNU Libtool; see the file COPYING.  If not, a copy
19514# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19515# obtained by writing to the Free Software Foundation, Inc.,
19516# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19517
19518
19519# The names of the tagged configurations supported by this script.
19520available_tags=""
19521
19522# ### BEGIN LIBTOOL CONFIG
19523
19524# Which release of libtool.m4 was used?
19525macro_version=$macro_version
19526macro_revision=$macro_revision
19527
19528# Whether or not to build shared libraries.
19529build_libtool_libs=$enable_shared
19530
19531# Whether or not to build static libraries.
19532build_old_libs=$enable_static
19533
19534# What type of objects to build.
19535pic_mode=$pic_mode
19536
19537# Whether or not to optimize for fast installation.
19538fast_install=$enable_fast_install
19539
19540# Shell to use when invoking shell scripts.
19541SHELL=$lt_SHELL
19542
19543# An echo program that protects backslashes.
19544ECHO=$lt_ECHO
19545
19546# The PATH separator for the build system.
19547PATH_SEPARATOR=$lt_PATH_SEPARATOR
19548
19549# The host system.
19550host_alias=$host_alias
19551host=$host
19552host_os=$host_os
19553
19554# The build system.
19555build_alias=$build_alias
19556build=$build
19557build_os=$build_os
19558
19559# A sed program that does not truncate output.
19560SED=$lt_SED
19561
19562# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19563Xsed="\$SED -e 1s/^X//"
19564
19565# A grep program that handles long lines.
19566GREP=$lt_GREP
19567
19568# An ERE matcher.
19569EGREP=$lt_EGREP
19570
19571# A literal string matcher.
19572FGREP=$lt_FGREP
19573
19574# A BSD- or MS-compatible name lister.
19575NM=$lt_NM
19576
19577# Whether we need soft or hard links.
19578LN_S=$lt_LN_S
19579
19580# What is the maximum length of a command?
19581max_cmd_len=$max_cmd_len
19582
19583# Object file suffix (normally "o").
19584objext=$ac_objext
19585
19586# Executable file suffix (normally "").
19587exeext=$exeext
19588
19589# whether the shell understands "unset".
19590lt_unset=$lt_unset
19591
19592# turn spaces into newlines.
19593SP2NL=$lt_lt_SP2NL
19594
19595# turn newlines into spaces.
19596NL2SP=$lt_lt_NL2SP
19597
19598# convert \$build file names to \$host format.
19599to_host_file_cmd=$lt_cv_to_host_file_cmd
19600
19601# convert \$build files to toolchain format.
19602to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19603
19604# An object symbol dumper.
19605OBJDUMP=$lt_OBJDUMP
19606
19607# Method to check whether dependent libraries are shared objects.
19608deplibs_check_method=$lt_deplibs_check_method
19609
19610# Command to use when deplibs_check_method = "file_magic".
19611file_magic_cmd=$lt_file_magic_cmd
19612
19613# How to find potential files when deplibs_check_method = "file_magic".
19614file_magic_glob=$lt_file_magic_glob
19615
19616# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19617want_nocaseglob=$lt_want_nocaseglob
19618
19619# DLL creation program.
19620DLLTOOL=$lt_DLLTOOL
19621
19622# Command to associate shared and link libraries.
19623sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19624
19625# The archiver.
19626AR=$lt_AR
19627
19628# Flags to create an archive.
19629AR_FLAGS=$lt_AR_FLAGS
19630
19631# How to feed a file listing to the archiver.
19632archiver_list_spec=$lt_archiver_list_spec
19633
19634# A symbol stripping program.
19635STRIP=$lt_STRIP
19636
19637# Commands used to install an old-style archive.
19638RANLIB=$lt_RANLIB
19639old_postinstall_cmds=$lt_old_postinstall_cmds
19640old_postuninstall_cmds=$lt_old_postuninstall_cmds
19641
19642# Whether to use a lock for old archive extraction.
19643lock_old_archive_extraction=$lock_old_archive_extraction
19644
19645# A C compiler.
19646LTCC=$lt_CC
19647
19648# LTCC compiler flags.
19649LTCFLAGS=$lt_CFLAGS
19650
19651# Take the output of nm and produce a listing of raw symbols and C names.
19652global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19653
19654# Transform the output of nm in a proper C declaration.
19655global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19656
19657# Transform the output of nm in a C name address pair.
19658global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19659
19660# Transform the output of nm in a C name address pair when lib prefix is needed.
19661global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19662
19663# Specify filename containing input files for \$NM.
19664nm_file_list_spec=$lt_nm_file_list_spec
19665
19666# The root where to search for dependent libraries,and in which our libraries should be installed.
19667lt_sysroot=$lt_sysroot
19668
19669# The name of the directory that contains temporary libtool files.
19670objdir=$objdir
19671
19672# Used to examine libraries when file_magic_cmd begins with "file".
19673MAGIC_CMD=$MAGIC_CMD
19674
19675# Must we lock files when doing compilation?
19676need_locks=$lt_need_locks
19677
19678# Manifest tool.
19679MANIFEST_TOOL=$lt_MANIFEST_TOOL
19680
19681# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19682DSYMUTIL=$lt_DSYMUTIL
19683
19684# Tool to change global to local symbols on Mac OS X.
19685NMEDIT=$lt_NMEDIT
19686
19687# Tool to manipulate fat objects and archives on Mac OS X.
19688LIPO=$lt_LIPO
19689
19690# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19691OTOOL=$lt_OTOOL
19692
19693# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19694OTOOL64=$lt_OTOOL64
19695
19696# Old archive suffix (normally "a").
19697libext=$libext
19698
19699# Shared library suffix (normally ".so").
19700shrext_cmds=$lt_shrext_cmds
19701
19702# The commands to extract the exported symbol list from a shared archive.
19703extract_expsyms_cmds=$lt_extract_expsyms_cmds
19704
19705# Variables whose values should be saved in libtool wrapper scripts and
19706# restored at link time.
19707variables_saved_for_relink=$lt_variables_saved_for_relink
19708
19709# Do we need the "lib" prefix for modules?
19710need_lib_prefix=$need_lib_prefix
19711
19712# Do we need a version for libraries?
19713need_version=$need_version
19714
19715# Library versioning type.
19716version_type=$version_type
19717
19718# Shared library runtime path variable.
19719runpath_var=$runpath_var
19720
19721# Shared library path variable.
19722shlibpath_var=$shlibpath_var
19723
19724# Is shlibpath searched before the hard-coded library search path?
19725shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19726
19727# Format of library name prefix.
19728libname_spec=$lt_libname_spec
19729
19730# List of archive names.  First name is the real one, the rest are links.
19731# The last name is the one that the linker finds with -lNAME
19732library_names_spec=$lt_library_names_spec
19733
19734# The coded name of the library, if different from the real name.
19735soname_spec=$lt_soname_spec
19736
19737# Permission mode override for installation of shared libraries.
19738install_override_mode=$lt_install_override_mode
19739
19740# Command to use after installation of a shared archive.
19741postinstall_cmds=$lt_postinstall_cmds
19742
19743# Command to use after uninstallation of a shared archive.
19744postuninstall_cmds=$lt_postuninstall_cmds
19745
19746# Commands used to finish a libtool library installation in a directory.
19747finish_cmds=$lt_finish_cmds
19748
19749# As "finish_cmds", except a single script fragment to be evaled but
19750# not shown.
19751finish_eval=$lt_finish_eval
19752
19753# Whether we should hardcode library paths into libraries.
19754hardcode_into_libs=$hardcode_into_libs
19755
19756# Compile-time system search path for libraries.
19757sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19758
19759# Run-time system search path for libraries.
19760sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19761
19762# Whether dlopen is supported.
19763dlopen_support=$enable_dlopen
19764
19765# Whether dlopen of programs is supported.
19766dlopen_self=$enable_dlopen_self
19767
19768# Whether dlopen of statically linked programs is supported.
19769dlopen_self_static=$enable_dlopen_self_static
19770
19771# Commands to strip libraries.
19772old_striplib=$lt_old_striplib
19773striplib=$lt_striplib
19774
19775
19776# The linker used to build libraries.
19777LD=$lt_LD
19778
19779# How to create reloadable object files.
19780reload_flag=$lt_reload_flag
19781reload_cmds=$lt_reload_cmds
19782
19783# Commands used to build an old-style archive.
19784old_archive_cmds=$lt_old_archive_cmds
19785
19786# A language specific compiler.
19787CC=$lt_compiler
19788
19789# Is the compiler the GNU compiler?
19790with_gcc=$GCC
19791
19792# Compiler flag to turn off builtin functions.
19793no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19794
19795# Additional compiler flags for building library objects.
19796pic_flag=$lt_lt_prog_compiler_pic
19797
19798# How to pass a linker flag through the compiler.
19799wl=$lt_lt_prog_compiler_wl
19800
19801# Compiler flag to prevent dynamic linking.
19802link_static_flag=$lt_lt_prog_compiler_static
19803
19804# Does compiler simultaneously support -c and -o options?
19805compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19806
19807# Whether or not to add -lc for building shared libraries.
19808build_libtool_need_lc=$archive_cmds_need_lc
19809
19810# Whether or not to disallow shared libs when runtime libs are static.
19811allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19812
19813# Compiler flag to allow reflexive dlopens.
19814export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19815
19816# Compiler flag to generate shared objects directly from archives.
19817whole_archive_flag_spec=$lt_whole_archive_flag_spec
19818
19819# Whether the compiler copes with passing no objects directly.
19820compiler_needs_object=$lt_compiler_needs_object
19821
19822# Create an old-style archive from a shared archive.
19823old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19824
19825# Create a temporary old-style archive to link instead of a shared archive.
19826old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19827
19828# Commands used to build a shared archive.
19829archive_cmds=$lt_archive_cmds
19830archive_expsym_cmds=$lt_archive_expsym_cmds
19831
19832# Commands used to build a loadable module if different from building
19833# a shared archive.
19834module_cmds=$lt_module_cmds
19835module_expsym_cmds=$lt_module_expsym_cmds
19836
19837# Whether we are building with GNU ld or not.
19838with_gnu_ld=$lt_with_gnu_ld
19839
19840# Flag that allows shared libraries with undefined symbols to be built.
19841allow_undefined_flag=$lt_allow_undefined_flag
19842
19843# Flag that enforces no undefined symbols.
19844no_undefined_flag=$lt_no_undefined_flag
19845
19846# Flag to hardcode \$libdir into a binary during linking.
19847# This must work even if \$libdir does not exist
19848hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19849
19850# Whether we need a single "-rpath" flag with a separated argument.
19851hardcode_libdir_separator=$lt_hardcode_libdir_separator
19852
19853# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19854# DIR into the resulting binary.
19855hardcode_direct=$hardcode_direct
19856
19857# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19858# DIR into the resulting binary and the resulting library dependency is
19859# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19860# library is relocated.
19861hardcode_direct_absolute=$hardcode_direct_absolute
19862
19863# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19864# into the resulting binary.
19865hardcode_minus_L=$hardcode_minus_L
19866
19867# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19868# into the resulting binary.
19869hardcode_shlibpath_var=$hardcode_shlibpath_var
19870
19871# Set to "yes" if building a shared library automatically hardcodes DIR
19872# into the library and all subsequent libraries and executables linked
19873# against it.
19874hardcode_automatic=$hardcode_automatic
19875
19876# Set to yes if linker adds runtime paths of dependent libraries
19877# to runtime path list.
19878inherit_rpath=$inherit_rpath
19879
19880# Whether libtool must link a program against all its dependency libraries.
19881link_all_deplibs=$link_all_deplibs
19882
19883# Set to "yes" if exported symbols are required.
19884always_export_symbols=$always_export_symbols
19885
19886# The commands to list exported symbols.
19887export_symbols_cmds=$lt_export_symbols_cmds
19888
19889# Symbols that should not be listed in the preloaded symbols.
19890exclude_expsyms=$lt_exclude_expsyms
19891
19892# Symbols that must always be exported.
19893include_expsyms=$lt_include_expsyms
19894
19895# Commands necessary for linking programs (against libraries) with templates.
19896prelink_cmds=$lt_prelink_cmds
19897
19898# Commands necessary for finishing linking programs.
19899postlink_cmds=$lt_postlink_cmds
19900
19901# Specify filename containing input files.
19902file_list_spec=$lt_file_list_spec
19903
19904# How to hardcode a shared library path into an executable.
19905hardcode_action=$hardcode_action
19906
19907# ### END LIBTOOL CONFIG
19908
19909_LT_EOF
19910
19911  case $host_os in
19912  aix3*)
19913    cat <<\_LT_EOF >> "$cfgfile"
19914# AIX sometimes has problems with the GCC collect2 program.  For some
19915# reason, if we set the COLLECT_NAMES environment variable, the problems
19916# vanish in a puff of smoke.
19917if test "X${COLLECT_NAMES+set}" != Xset; then
19918  COLLECT_NAMES=
19919  export COLLECT_NAMES
19920fi
19921_LT_EOF
19922    ;;
19923  esac
19924
19925
19926ltmain="$ac_aux_dir/ltmain.sh"
19927
19928
19929  # We use sed instead of cat because bash on DJGPP gets confused if
19930  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19931  # text mode, it properly converts lines to CR/LF.  This bash problem
19932  # is reportedly fixed, but why not run on old versions too?
19933  sed '$q' "$ltmain" >> "$cfgfile" \
19934     || (rm -f "$cfgfile"; exit 1)
19935
19936  if test x"$xsi_shell" = xyes; then
19937  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19938func_dirname ()\
19939{\
19940\    case ${1} in\
19941\      */*) func_dirname_result="${1%/*}${2}" ;;\
19942\      *  ) func_dirname_result="${3}" ;;\
19943\    esac\
19944} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19945  && mv -f "$cfgfile.tmp" "$cfgfile" \
19946    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19947test 0 -eq $? || _lt_function_replace_fail=:
19948
19949
19950  sed -e '/^func_basename ()$/,/^} # func_basename /c\
19951func_basename ()\
19952{\
19953\    func_basename_result="${1##*/}"\
19954} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19955  && mv -f "$cfgfile.tmp" "$cfgfile" \
19956    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19957test 0 -eq $? || _lt_function_replace_fail=:
19958
19959
19960  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19961func_dirname_and_basename ()\
19962{\
19963\    case ${1} in\
19964\      */*) func_dirname_result="${1%/*}${2}" ;;\
19965\      *  ) func_dirname_result="${3}" ;;\
19966\    esac\
19967\    func_basename_result="${1##*/}"\
19968} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19969  && mv -f "$cfgfile.tmp" "$cfgfile" \
19970    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19971test 0 -eq $? || _lt_function_replace_fail=:
19972
19973
19974  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19975func_stripname ()\
19976{\
19977\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19978\    # positional parameters, so assign one to ordinary parameter first.\
19979\    func_stripname_result=${3}\
19980\    func_stripname_result=${func_stripname_result#"${1}"}\
19981\    func_stripname_result=${func_stripname_result%"${2}"}\
19982} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19983  && mv -f "$cfgfile.tmp" "$cfgfile" \
19984    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19985test 0 -eq $? || _lt_function_replace_fail=:
19986
19987
19988  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19989func_split_long_opt ()\
19990{\
19991\    func_split_long_opt_name=${1%%=*}\
19992\    func_split_long_opt_arg=${1#*=}\
19993} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19994  && mv -f "$cfgfile.tmp" "$cfgfile" \
19995    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19996test 0 -eq $? || _lt_function_replace_fail=:
19997
19998
19999  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20000func_split_short_opt ()\
20001{\
20002\    func_split_short_opt_arg=${1#??}\
20003\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20004} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20005  && mv -f "$cfgfile.tmp" "$cfgfile" \
20006    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20007test 0 -eq $? || _lt_function_replace_fail=:
20008
20009
20010  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20011func_lo2o ()\
20012{\
20013\    case ${1} in\
20014\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20015\      *)    func_lo2o_result=${1} ;;\
20016\    esac\
20017} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20018  && mv -f "$cfgfile.tmp" "$cfgfile" \
20019    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20020test 0 -eq $? || _lt_function_replace_fail=:
20021
20022
20023  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20024func_xform ()\
20025{\
20026    func_xform_result=${1%.*}.lo\
20027} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20028  && mv -f "$cfgfile.tmp" "$cfgfile" \
20029    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20030test 0 -eq $? || _lt_function_replace_fail=:
20031
20032
20033  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20034func_arith ()\
20035{\
20036    func_arith_result=$(( $* ))\
20037} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20038  && mv -f "$cfgfile.tmp" "$cfgfile" \
20039    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20040test 0 -eq $? || _lt_function_replace_fail=:
20041
20042
20043  sed -e '/^func_len ()$/,/^} # func_len /c\
20044func_len ()\
20045{\
20046    func_len_result=${#1}\
20047} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20048  && mv -f "$cfgfile.tmp" "$cfgfile" \
20049    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20050test 0 -eq $? || _lt_function_replace_fail=:
20051
20052fi
20053
20054if test x"$lt_shell_append" = xyes; then
20055  sed -e '/^func_append ()$/,/^} # func_append /c\
20056func_append ()\
20057{\
20058    eval "${1}+=\\${2}"\
20059} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20060  && mv -f "$cfgfile.tmp" "$cfgfile" \
20061    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20062test 0 -eq $? || _lt_function_replace_fail=:
20063
20064
20065  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20066func_append_quoted ()\
20067{\
20068\    func_quote_for_eval "${2}"\
20069\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20070} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20071  && mv -f "$cfgfile.tmp" "$cfgfile" \
20072    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20073test 0 -eq $? || _lt_function_replace_fail=:
20074
20075
20076  # Save a `func_append' function call where possible by direct use of '+='
20077  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20078    && mv -f "$cfgfile.tmp" "$cfgfile" \
20079      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20080  test 0 -eq $? || _lt_function_replace_fail=:
20081else
20082  # Save a `func_append' function call even when '+=' is not available
20083  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20084    && mv -f "$cfgfile.tmp" "$cfgfile" \
20085      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20086  test 0 -eq $? || _lt_function_replace_fail=:
20087fi
20088
20089if test x"$_lt_function_replace_fail" = x":"; then
20090  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20091$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20092fi
20093
20094
20095   mv -f "$cfgfile" "$ofile" ||
20096    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20097  chmod +x "$ofile"
20098
20099 ;;
20100
20101  esac
20102done # for ac_tag
20103
20104
20105as_fn_exit 0
20106_ACEOF
20107ac_clean_files=$ac_clean_files_save
20108
20109test $ac_write_fail = 0 ||
20110  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20111
20112
20113# configure is writing to config.log, and then calls config.status.
20114# config.status does its own redirection, appending to config.log.
20115# Unfortunately, on DOS this fails, as config.log is still kept open
20116# by configure, so config.status won't be able to write to it; its
20117# output is simply discarded.  So we exec the FD to /dev/null,
20118# effectively closing config.log, so it can be properly (re)opened and
20119# appended to by config.status.  When coming back to configure, we
20120# need to make the FD available again.
20121if test "$no_create" != yes; then
20122  ac_cs_success=:
20123  ac_config_status_args=
20124  test "$silent" = yes &&
20125    ac_config_status_args="$ac_config_status_args --quiet"
20126  exec 5>/dev/null
20127  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20128  exec 5>>config.log
20129  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20130  # would make configure fail if this is the last instruction.
20131  $ac_cs_success || as_fn_exit 1
20132fi
20133if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20134  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20135$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20136fi
20137
20138