configure revision 61b3db43
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libXfont 1.4.8.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *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
550as_awk_strverscmp='
551  # Use only awk features that work with 7th edition Unix awk (1978).
552  # My, what an old awk you have, Mr. Solaris!
553  END {
554    while (length(v1) && length(v2)) {
555      # Set d1 to be the next thing to compare from v1, and likewise for d2.
556      # Normally this is a single character, but if v1 and v2 contain digits,
557      # compare them as integers and fractions as strverscmp does.
558      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
559	# Split v1 and v2 into their leading digit string components d1 and d2,
560	# and advance v1 and v2 past the leading digit strings.
561	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
562	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
563	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
564	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
565	if (d1 ~ /^0/) {
566	  if (d2 ~ /^0/) {
567	    # Compare two fractions.
568	    while (d1 ~ /^0/ && d2 ~ /^0/) {
569	      d1 = substr(d1, 2); len1--
570	      d2 = substr(d2, 2); len2--
571	    }
572	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
573	      # The two components differ in length, and the common prefix
574	      # contains only leading zeros.  Consider the longer to be less.
575	      d1 = -len1
576	      d2 = -len2
577	    } else {
578	      # Otherwise, compare as strings.
579	      d1 = "x" d1
580	      d2 = "x" d2
581	    }
582	  } else {
583	    # A fraction is less than an integer.
584	    exit 1
585	  }
586	} else {
587	  if (d2 ~ /^0/) {
588	    # An integer is greater than a fraction.
589	    exit 2
590	  } else {
591	    # Compare two integers.
592	    d1 += 0
593	    d2 += 0
594	  }
595	}
596      } else {
597	# The normal case, without worrying about digits.
598	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
599	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
600      }
601      if (d1 < d2) exit 1
602      if (d1 > d2) exit 2
603    }
604    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
605    # which mishandles some comparisons of empty strings to integers.
606    if (length(v2)) exit 1
607    if (length(v1)) exit 2
608  }
609'
610
611test -n "$DJDIR" || exec 7<&0 </dev/null
612exec 6>&1
613
614# Name of the host.
615# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616# so uname gets run too.
617ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
618
619#
620# Initializations.
621#
622ac_default_prefix=/usr/local
623ac_clean_files=
624ac_config_libobj_dir=.
625LIBOBJS=
626cross_compiling=no
627subdirs=
628MFLAGS=
629MAKEFLAGS=
630
631# Identity of this package.
632PACKAGE_NAME='libXfont'
633PACKAGE_TARNAME='libXfont'
634PACKAGE_VERSION='1.4.8'
635PACKAGE_STRING='libXfont 1.4.8'
636PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
637PACKAGE_URL=''
638
639ac_unique_file="Makefile.am"
640# Factoring default headers for most tests.
641ac_includes_default="\
642#include <stdio.h>
643#ifdef HAVE_SYS_TYPES_H
644# include <sys/types.h>
645#endif
646#ifdef HAVE_SYS_STAT_H
647# include <sys/stat.h>
648#endif
649#ifdef STDC_HEADERS
650# include <stdlib.h>
651# include <stddef.h>
652#else
653# ifdef HAVE_STDLIB_H
654#  include <stdlib.h>
655# endif
656#endif
657#ifdef HAVE_STRING_H
658# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
659#  include <memory.h>
660# endif
661# include <string.h>
662#endif
663#ifdef HAVE_STRINGS_H
664# include <strings.h>
665#endif
666#ifdef HAVE_INTTYPES_H
667# include <inttypes.h>
668#endif
669#ifdef HAVE_STDINT_H
670# include <stdint.h>
671#endif
672#ifdef HAVE_UNISTD_H
673# include <unistd.h>
674#endif"
675
676ac_subst_vars='am__EXEEXT_FALSE
677am__EXEEXT_TRUE
678LTLIBOBJS
679LIBOBJS
680OS_CFLAGS
681XFONT_LIBS
682XFONT_CFLAGS
683MATH_LIBS
684XFONT_FC_FALSE
685XFONT_FC_TRUE
686XFONT_FONTFILE_FALSE
687XFONT_FONTFILE_TRUE
688XFONT_BITMAP_FALSE
689XFONT_BITMAP_TRUE
690XFONT_SNFFORMAT_FALSE
691XFONT_SNFFORMAT_TRUE
692XFONT_BDFFORMAT_FALSE
693XFONT_BDFFORMAT_TRUE
694XFONT_PCFFORMAT_FALSE
695XFONT_PCFFORMAT_TRUE
696XFONT_BUILTINS_FALSE
697XFONT_BUILTINS_TRUE
698Z_LIBS
699X_BZIP2_FONT_COMPRESSION_FALSE
700X_BZIP2_FONT_COMPRESSION_TRUE
701X_GZIP_FONT_COMPRESSION
702FREETYPE_REQUIRES
703ft_config
704FREETYPE_LIBS
705FREETYPE_CFLAGS
706XFONT_FREETYPE_FALSE
707XFONT_FREETYPE_TRUE
708HAVE_STYLESHEETS_FALSE
709HAVE_STYLESHEETS_TRUE
710XSL_STYLESHEET
711STYLESHEET_SRCDIR
712XORG_SGML_PATH
713HAVE_FOP_FALSE
714HAVE_FOP_TRUE
715FOP
716HAVE_XMLTO_FALSE
717HAVE_XMLTO_TRUE
718HAVE_XMLTO_TEXT_FALSE
719HAVE_XMLTO_TEXT_TRUE
720XMLTO
721ENABLE_DEVEL_DOCS_FALSE
722ENABLE_DEVEL_DOCS_TRUE
723MAN_SUBSTS
724XORG_MAN_PAGE
725ADMIN_MAN_DIR
726DRIVER_MAN_DIR
727MISC_MAN_DIR
728FILE_MAN_DIR
729LIB_MAN_DIR
730APP_MAN_DIR
731ADMIN_MAN_SUFFIX
732DRIVER_MAN_SUFFIX
733MISC_MAN_SUFFIX
734FILE_MAN_SUFFIX
735LIB_MAN_SUFFIX
736APP_MAN_SUFFIX
737INSTALL_CMD
738PKG_CONFIG
739CHANGELOG_CMD
740STRICT_CFLAGS
741CWARNFLAGS
742BASE_CFLAGS
743OTOOL64
744OTOOL
745LIPO
746NMEDIT
747DSYMUTIL
748MANIFEST_TOOL
749RANLIB
750ac_ct_AR
751AR
752DLLTOOL
753OBJDUMP
754LN_S
755NM
756ac_ct_DUMPBIN
757DUMPBIN
758LD
759FGREP
760SED
761host_os
762host_vendor
763host_cpu
764host
765build_os
766build_vendor
767build_cpu
768build
769LIBTOOL
770EGREP
771GREP
772CPP
773am__fastdepCC_FALSE
774am__fastdepCC_TRUE
775CCDEPMODE
776am__nodep
777AMDEPBACKSLASH
778AMDEP_FALSE
779AMDEP_TRUE
780am__quote
781am__include
782DEPDIR
783OBJEXT
784EXEEXT
785ac_ct_CC
786CPPFLAGS
787LDFLAGS
788CFLAGS
789CC
790AM_BACKSLASH
791AM_DEFAULT_VERBOSITY
792AM_DEFAULT_V
793AM_V
794am__untar
795am__tar
796AMTAR
797am__leading_dot
798SET_MAKE
799AWK
800mkdir_p
801MKDIR_P
802INSTALL_STRIP_PROGRAM
803STRIP
804install_sh
805MAKEINFO
806AUTOHEADER
807AUTOMAKE
808AUTOCONF
809ACLOCAL
810VERSION
811PACKAGE
812CYGPATH_W
813am__isrc
814INSTALL_DATA
815INSTALL_SCRIPT
816INSTALL_PROGRAM
817target_alias
818host_alias
819build_alias
820LIBS
821ECHO_T
822ECHO_N
823ECHO_C
824DEFS
825mandir
826localedir
827libdir
828psdir
829pdfdir
830dvidir
831htmldir
832infodir
833docdir
834oldincludedir
835includedir
836localstatedir
837sharedstatedir
838sysconfdir
839datadir
840datarootdir
841libexecdir
842sbindir
843bindir
844program_transform_name
845prefix
846exec_prefix
847PACKAGE_URL
848PACKAGE_BUGREPORT
849PACKAGE_STRING
850PACKAGE_VERSION
851PACKAGE_TARNAME
852PACKAGE_NAME
853PATH_SEPARATOR
854SHELL'
855ac_subst_files=''
856ac_user_opts='
857enable_option_checking
858enable_silent_rules
859enable_dependency_tracking
860enable_shared
861enable_static
862with_pic
863enable_fast_install
864with_gnu_ld
865with_sysroot
866enable_libtool_lock
867enable_selective_werror
868enable_strict_compilation
869enable_devel_docs
870with_xmlto
871with_fop
872enable_freetype
873with_freetype_config
874with_bzip2
875enable_builtins
876enable_pcfformat
877enable_bdfformat
878enable_snfformat
879enable_fc
880enable_unix_transport
881enable_tcp_transport
882enable_ipv6
883enable_local_transport
884'
885      ac_precious_vars='build_alias
886host_alias
887target_alias
888CC
889CFLAGS
890LDFLAGS
891LIBS
892CPPFLAGS
893CPP
894PKG_CONFIG
895XMLTO
896FOP
897FREETYPE_CFLAGS
898FREETYPE_LIBS
899XFONT_CFLAGS
900XFONT_LIBS'
901
902
903# Initialize some variables set by options.
904ac_init_help=
905ac_init_version=false
906ac_unrecognized_opts=
907ac_unrecognized_sep=
908# The variables have the same names as the options, with
909# dashes changed to underlines.
910cache_file=/dev/null
911exec_prefix=NONE
912no_create=
913no_recursion=
914prefix=NONE
915program_prefix=NONE
916program_suffix=NONE
917program_transform_name=s,x,x,
918silent=
919site=
920srcdir=
921verbose=
922x_includes=NONE
923x_libraries=NONE
924
925# Installation directory options.
926# These are left unexpanded so users can "make install exec_prefix=/foo"
927# and all the variables that are supposed to be based on exec_prefix
928# by default will actually change.
929# Use braces instead of parens because sh, perl, etc. also accept them.
930# (The list follows the same order as the GNU Coding Standards.)
931bindir='${exec_prefix}/bin'
932sbindir='${exec_prefix}/sbin'
933libexecdir='${exec_prefix}/libexec'
934datarootdir='${prefix}/share'
935datadir='${datarootdir}'
936sysconfdir='${prefix}/etc'
937sharedstatedir='${prefix}/com'
938localstatedir='${prefix}/var'
939includedir='${prefix}/include'
940oldincludedir='/usr/include'
941docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
942infodir='${datarootdir}/info'
943htmldir='${docdir}'
944dvidir='${docdir}'
945pdfdir='${docdir}'
946psdir='${docdir}'
947libdir='${exec_prefix}/lib'
948localedir='${datarootdir}/locale'
949mandir='${datarootdir}/man'
950
951ac_prev=
952ac_dashdash=
953for ac_option
954do
955  # If the previous option needs an argument, assign it.
956  if test -n "$ac_prev"; then
957    eval $ac_prev=\$ac_option
958    ac_prev=
959    continue
960  fi
961
962  case $ac_option in
963  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964  *=)   ac_optarg= ;;
965  *)    ac_optarg=yes ;;
966  esac
967
968  # Accept the important Cygnus configure options, so we can diagnose typos.
969
970  case $ac_dashdash$ac_option in
971  --)
972    ac_dashdash=yes ;;
973
974  -bindir | --bindir | --bindi | --bind | --bin | --bi)
975    ac_prev=bindir ;;
976  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977    bindir=$ac_optarg ;;
978
979  -build | --build | --buil | --bui | --bu)
980    ac_prev=build_alias ;;
981  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982    build_alias=$ac_optarg ;;
983
984  -cache-file | --cache-file | --cache-fil | --cache-fi \
985  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986    ac_prev=cache_file ;;
987  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989    cache_file=$ac_optarg ;;
990
991  --config-cache | -C)
992    cache_file=config.cache ;;
993
994  -datadir | --datadir | --datadi | --datad)
995    ac_prev=datadir ;;
996  -datadir=* | --datadir=* | --datadi=* | --datad=*)
997    datadir=$ac_optarg ;;
998
999  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000  | --dataroo | --dataro | --datar)
1001    ac_prev=datarootdir ;;
1002  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004    datarootdir=$ac_optarg ;;
1005
1006  -disable-* | --disable-*)
1007    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008    # Reject names that are not valid shell variable names.
1009    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010      as_fn_error $? "invalid feature name: $ac_useropt"
1011    ac_useropt_orig=$ac_useropt
1012    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013    case $ac_user_opts in
1014      *"
1015"enable_$ac_useropt"
1016"*) ;;
1017      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018	 ac_unrecognized_sep=', ';;
1019    esac
1020    eval enable_$ac_useropt=no ;;
1021
1022  -docdir | --docdir | --docdi | --doc | --do)
1023    ac_prev=docdir ;;
1024  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025    docdir=$ac_optarg ;;
1026
1027  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028    ac_prev=dvidir ;;
1029  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030    dvidir=$ac_optarg ;;
1031
1032  -enable-* | --enable-*)
1033    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034    # Reject names that are not valid shell variable names.
1035    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036      as_fn_error $? "invalid feature name: $ac_useropt"
1037    ac_useropt_orig=$ac_useropt
1038    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039    case $ac_user_opts in
1040      *"
1041"enable_$ac_useropt"
1042"*) ;;
1043      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044	 ac_unrecognized_sep=', ';;
1045    esac
1046    eval enable_$ac_useropt=\$ac_optarg ;;
1047
1048  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050  | --exec | --exe | --ex)
1051    ac_prev=exec_prefix ;;
1052  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054  | --exec=* | --exe=* | --ex=*)
1055    exec_prefix=$ac_optarg ;;
1056
1057  -gas | --gas | --ga | --g)
1058    # Obsolete; use --with-gas.
1059    with_gas=yes ;;
1060
1061  -help | --help | --hel | --he | -h)
1062    ac_init_help=long ;;
1063  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064    ac_init_help=recursive ;;
1065  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066    ac_init_help=short ;;
1067
1068  -host | --host | --hos | --ho)
1069    ac_prev=host_alias ;;
1070  -host=* | --host=* | --hos=* | --ho=*)
1071    host_alias=$ac_optarg ;;
1072
1073  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074    ac_prev=htmldir ;;
1075  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076  | --ht=*)
1077    htmldir=$ac_optarg ;;
1078
1079  -includedir | --includedir | --includedi | --included | --include \
1080  | --includ | --inclu | --incl | --inc)
1081    ac_prev=includedir ;;
1082  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083  | --includ=* | --inclu=* | --incl=* | --inc=*)
1084    includedir=$ac_optarg ;;
1085
1086  -infodir | --infodir | --infodi | --infod | --info | --inf)
1087    ac_prev=infodir ;;
1088  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1089    infodir=$ac_optarg ;;
1090
1091  -libdir | --libdir | --libdi | --libd)
1092    ac_prev=libdir ;;
1093  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1094    libdir=$ac_optarg ;;
1095
1096  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097  | --libexe | --libex | --libe)
1098    ac_prev=libexecdir ;;
1099  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100  | --libexe=* | --libex=* | --libe=*)
1101    libexecdir=$ac_optarg ;;
1102
1103  -localedir | --localedir | --localedi | --localed | --locale)
1104    ac_prev=localedir ;;
1105  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106    localedir=$ac_optarg ;;
1107
1108  -localstatedir | --localstatedir | --localstatedi | --localstated \
1109  | --localstate | --localstat | --localsta | --localst | --locals)
1110    ac_prev=localstatedir ;;
1111  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1112  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1113    localstatedir=$ac_optarg ;;
1114
1115  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116    ac_prev=mandir ;;
1117  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1118    mandir=$ac_optarg ;;
1119
1120  -nfp | --nfp | --nf)
1121    # Obsolete; use --without-fp.
1122    with_fp=no ;;
1123
1124  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1125  | --no-cr | --no-c | -n)
1126    no_create=yes ;;
1127
1128  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130    no_recursion=yes ;;
1131
1132  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134  | --oldin | --oldi | --old | --ol | --o)
1135    ac_prev=oldincludedir ;;
1136  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1139    oldincludedir=$ac_optarg ;;
1140
1141  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142    ac_prev=prefix ;;
1143  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1144    prefix=$ac_optarg ;;
1145
1146  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147  | --program-pre | --program-pr | --program-p)
1148    ac_prev=program_prefix ;;
1149  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1151    program_prefix=$ac_optarg ;;
1152
1153  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154  | --program-suf | --program-su | --program-s)
1155    ac_prev=program_suffix ;;
1156  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1158    program_suffix=$ac_optarg ;;
1159
1160  -program-transform-name | --program-transform-name \
1161  | --program-transform-nam | --program-transform-na \
1162  | --program-transform-n | --program-transform- \
1163  | --program-transform | --program-transfor \
1164  | --program-transfo | --program-transf \
1165  | --program-trans | --program-tran \
1166  | --progr-tra | --program-tr | --program-t)
1167    ac_prev=program_transform_name ;;
1168  -program-transform-name=* | --program-transform-name=* \
1169  | --program-transform-nam=* | --program-transform-na=* \
1170  | --program-transform-n=* | --program-transform-=* \
1171  | --program-transform=* | --program-transfor=* \
1172  | --program-transfo=* | --program-transf=* \
1173  | --program-trans=* | --program-tran=* \
1174  | --progr-tra=* | --program-tr=* | --program-t=*)
1175    program_transform_name=$ac_optarg ;;
1176
1177  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178    ac_prev=pdfdir ;;
1179  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180    pdfdir=$ac_optarg ;;
1181
1182  -psdir | --psdir | --psdi | --psd | --ps)
1183    ac_prev=psdir ;;
1184  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185    psdir=$ac_optarg ;;
1186
1187  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188  | -silent | --silent | --silen | --sile | --sil)
1189    silent=yes ;;
1190
1191  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192    ac_prev=sbindir ;;
1193  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194  | --sbi=* | --sb=*)
1195    sbindir=$ac_optarg ;;
1196
1197  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199  | --sharedst | --shareds | --shared | --share | --shar \
1200  | --sha | --sh)
1201    ac_prev=sharedstatedir ;;
1202  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205  | --sha=* | --sh=*)
1206    sharedstatedir=$ac_optarg ;;
1207
1208  -site | --site | --sit)
1209    ac_prev=site ;;
1210  -site=* | --site=* | --sit=*)
1211    site=$ac_optarg ;;
1212
1213  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214    ac_prev=srcdir ;;
1215  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1216    srcdir=$ac_optarg ;;
1217
1218  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219  | --syscon | --sysco | --sysc | --sys | --sy)
1220    ac_prev=sysconfdir ;;
1221  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1223    sysconfdir=$ac_optarg ;;
1224
1225  -target | --target | --targe | --targ | --tar | --ta | --t)
1226    ac_prev=target_alias ;;
1227  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1228    target_alias=$ac_optarg ;;
1229
1230  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231    verbose=yes ;;
1232
1233  -version | --version | --versio | --versi | --vers | -V)
1234    ac_init_version=: ;;
1235
1236  -with-* | --with-*)
1237    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238    # Reject names that are not valid shell variable names.
1239    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240      as_fn_error $? "invalid package name: $ac_useropt"
1241    ac_useropt_orig=$ac_useropt
1242    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243    case $ac_user_opts in
1244      *"
1245"with_$ac_useropt"
1246"*) ;;
1247      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248	 ac_unrecognized_sep=', ';;
1249    esac
1250    eval with_$ac_useropt=\$ac_optarg ;;
1251
1252  -without-* | --without-*)
1253    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1254    # Reject names that are not valid shell variable names.
1255    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256      as_fn_error $? "invalid package name: $ac_useropt"
1257    ac_useropt_orig=$ac_useropt
1258    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259    case $ac_user_opts in
1260      *"
1261"with_$ac_useropt"
1262"*) ;;
1263      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264	 ac_unrecognized_sep=', ';;
1265    esac
1266    eval with_$ac_useropt=no ;;
1267
1268  --x)
1269    # Obsolete; use --with-x.
1270    with_x=yes ;;
1271
1272  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273  | --x-incl | --x-inc | --x-in | --x-i)
1274    ac_prev=x_includes ;;
1275  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277    x_includes=$ac_optarg ;;
1278
1279  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281    ac_prev=x_libraries ;;
1282  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284    x_libraries=$ac_optarg ;;
1285
1286  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1287Try \`$0 --help' for more information"
1288    ;;
1289
1290  *=*)
1291    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292    # Reject names that are not valid shell variable names.
1293    case $ac_envvar in #(
1294      '' | [0-9]* | *[!_$as_cr_alnum]* )
1295      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1296    esac
1297    eval $ac_envvar=\$ac_optarg
1298    export $ac_envvar ;;
1299
1300  *)
1301    # FIXME: should be removed in autoconf 3.0.
1302    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1306    ;;
1307
1308  esac
1309done
1310
1311if test -n "$ac_prev"; then
1312  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313  as_fn_error $? "missing argument to $ac_option"
1314fi
1315
1316if test -n "$ac_unrecognized_opts"; then
1317  case $enable_option_checking in
1318    no) ;;
1319    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1320    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1321  esac
1322fi
1323
1324# Check all directory arguments for consistency.
1325for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326		datadir sysconfdir sharedstatedir localstatedir includedir \
1327		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328		libdir localedir mandir
1329do
1330  eval ac_val=\$$ac_var
1331  # Remove trailing slashes.
1332  case $ac_val in
1333    */ )
1334      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335      eval $ac_var=\$ac_val;;
1336  esac
1337  # Be sure to have absolute directory names.
1338  case $ac_val in
1339    [\\/$]* | ?:[\\/]* )  continue;;
1340    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341  esac
1342  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1343done
1344
1345# There might be people who depend on the old broken behavior: `$host'
1346# used to hold the argument of --host etc.
1347# FIXME: To remove some day.
1348build=$build_alias
1349host=$host_alias
1350target=$target_alias
1351
1352# FIXME: To remove some day.
1353if test "x$host_alias" != x; then
1354  if test "x$build_alias" = x; then
1355    cross_compiling=maybe
1356    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1357    If a cross compiler is detected then cross compile mode will be used" >&2
1358  elif test "x$build_alias" != "x$host_alias"; then
1359    cross_compiling=yes
1360  fi
1361fi
1362
1363ac_tool_prefix=
1364test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366test "$silent" = yes && exec 6>/dev/null
1367
1368
1369ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370ac_ls_di=`ls -di .` &&
1371ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372  as_fn_error $? "working directory cannot be determined"
1373test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374  as_fn_error $? "pwd does not report name of working directory"
1375
1376
1377# Find the source files, if location was not specified.
1378if test -z "$srcdir"; then
1379  ac_srcdir_defaulted=yes
1380  # Try the directory containing this script, then the parent directory.
1381  ac_confdir=`$as_dirname -- "$as_myself" ||
1382$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383	 X"$as_myself" : 'X\(//\)[^/]' \| \
1384	 X"$as_myself" : 'X\(//\)$' \| \
1385	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386$as_echo X"$as_myself" |
1387    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388	    s//\1/
1389	    q
1390	  }
1391	  /^X\(\/\/\)[^/].*/{
1392	    s//\1/
1393	    q
1394	  }
1395	  /^X\(\/\/\)$/{
1396	    s//\1/
1397	    q
1398	  }
1399	  /^X\(\/\).*/{
1400	    s//\1/
1401	    q
1402	  }
1403	  s/.*/./; q'`
1404  srcdir=$ac_confdir
1405  if test ! -r "$srcdir/$ac_unique_file"; then
1406    srcdir=..
1407  fi
1408else
1409  ac_srcdir_defaulted=no
1410fi
1411if test ! -r "$srcdir/$ac_unique_file"; then
1412  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1414fi
1415ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416ac_abs_confdir=`(
1417	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418	pwd)`
1419# When building in place, set srcdir=.
1420if test "$ac_abs_confdir" = "$ac_pwd"; then
1421  srcdir=.
1422fi
1423# Remove unnecessary trailing slashes from srcdir.
1424# Double slashes in file names in object file debugging info
1425# mess up M-x gdb in Emacs.
1426case $srcdir in
1427*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428esac
1429for ac_var in $ac_precious_vars; do
1430  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431  eval ac_env_${ac_var}_value=\$${ac_var}
1432  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434done
1435
1436#
1437# Report the --help message.
1438#
1439if test "$ac_init_help" = "long"; then
1440  # Omit some internal or obsolete options to make the list less imposing.
1441  # This message is too long to be a string in the A/UX 3.1 sh.
1442  cat <<_ACEOF
1443\`configure' configures libXfont 1.4.8 to adapt to many kinds of systems.
1444
1445Usage: $0 [OPTION]... [VAR=VALUE]...
1446
1447To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448VAR=VALUE.  See below for descriptions of some of the useful variables.
1449
1450Defaults for the options are specified in brackets.
1451
1452Configuration:
1453  -h, --help              display this help and exit
1454      --help=short        display options specific to this package
1455      --help=recursive    display the short help of all the included packages
1456  -V, --version           display version information and exit
1457  -q, --quiet, --silent   do not print \`checking ...' messages
1458      --cache-file=FILE   cache test results in FILE [disabled]
1459  -C, --config-cache      alias for \`--cache-file=config.cache'
1460  -n, --no-create         do not create output files
1461      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1462
1463Installation directories:
1464  --prefix=PREFIX         install architecture-independent files in PREFIX
1465                          [$ac_default_prefix]
1466  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1467                          [PREFIX]
1468
1469By default, \`make install' will install all the files in
1470\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1471an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472for instance \`--prefix=\$HOME'.
1473
1474For better control, use the options below.
1475
1476Fine tuning of the installation directories:
1477  --bindir=DIR            user executables [EPREFIX/bin]
1478  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1479  --libexecdir=DIR        program executables [EPREFIX/libexec]
1480  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1481  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1482  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1483  --libdir=DIR            object code libraries [EPREFIX/lib]
1484  --includedir=DIR        C header files [PREFIX/include]
1485  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1486  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1487  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1488  --infodir=DIR           info documentation [DATAROOTDIR/info]
1489  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1490  --mandir=DIR            man documentation [DATAROOTDIR/man]
1491  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXfont]
1492  --htmldir=DIR           html documentation [DOCDIR]
1493  --dvidir=DIR            dvi documentation [DOCDIR]
1494  --pdfdir=DIR            pdf documentation [DOCDIR]
1495  --psdir=DIR             ps documentation [DOCDIR]
1496_ACEOF
1497
1498  cat <<\_ACEOF
1499
1500Program names:
1501  --program-prefix=PREFIX            prepend PREFIX to installed program names
1502  --program-suffix=SUFFIX            append SUFFIX to installed program names
1503  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1504
1505System types:
1506  --build=BUILD     configure for building on BUILD [guessed]
1507  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1508_ACEOF
1509fi
1510
1511if test -n "$ac_init_help"; then
1512  case $ac_init_help in
1513     short | recursive ) echo "Configuration of libXfont 1.4.8:";;
1514   esac
1515  cat <<\_ACEOF
1516
1517Optional Features:
1518  --disable-option-checking  ignore unrecognized --enable/--with options
1519  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1520  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1521  --enable-silent-rules   less verbose build output (undo: "make V=1")
1522  --disable-silent-rules  verbose build output (undo: "make V=0")
1523  --enable-dependency-tracking
1524                          do not reject slow dependency extractors
1525  --disable-dependency-tracking
1526                          speeds up one-time build
1527  --enable-shared[=PKGS]  build shared libraries [default=yes]
1528  --enable-static[=PKGS]  build static libraries [default=yes]
1529  --enable-fast-install[=PKGS]
1530                          optimize for fast installation [default=yes]
1531  --disable-libtool-lock  avoid locking (might break parallel builds)
1532  --disable-selective-werror
1533                          Turn off selective compiler errors. (default:
1534                          enabled)
1535  --enable-strict-compilation
1536                          Enable all warnings from compiler and make them
1537                          errors (default: disabled)
1538  --enable-devel-docs     Enable building the developer documentation
1539                          (default: yes)
1540 --disable-freetype
1541 --disable-builtins
1542 --disable-pcfformat
1543 --disable-bdfformat
1544 --disable-snfformat
1545 --disable-fc
1546  --enable-unix-transport Enable UNIX domain socket transport
1547  --enable-tcp-transport  Enable TCP socket transport
1548  --enable-ipv6           Enable IPv6 support
1549  --enable-local-transport
1550                          Enable os-specific local transport
1551
1552Optional Packages:
1553  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1554  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1555  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1556                          both]
1557  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1558  --with-sysroot=DIR Search for dependent libraries within DIR
1559                        (or the compiler's sysroot if not specified).
1560  --with-xmlto            Use xmlto to regenerate documentation (default:
1561                          auto)
1562  --with-fop              Use fop to regenerate documentation (default: auto)
1563  --with-freetype-config=PROG   Use FreeType configuration program PROG
1564  --with-bzip2            Support bzip2 compressed bitmap fonts
1565
1566Some influential environment variables:
1567  CC          C compiler command
1568  CFLAGS      C compiler flags
1569  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1570              nonstandard directory <lib dir>
1571  LIBS        libraries to pass to the linker, e.g. -l<library>
1572  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1573              you have headers in a nonstandard directory <include dir>
1574  CPP         C preprocessor
1575  PKG_CONFIG  path to pkg-config utility
1576  XMLTO       Path to xmlto command
1577  FOP         Path to fop command
1578  FREETYPE_CFLAGS
1579              C compiler flags for FREETYPE, overriding pkg-config
1580  FREETYPE_LIBS
1581              linker flags for FREETYPE, overriding pkg-config
1582  XFONT_CFLAGS
1583              C compiler flags for XFONT, overriding pkg-config
1584  XFONT_LIBS  linker flags for XFONT, overriding pkg-config
1585
1586Use these variables to override the choices made by `configure' or to help
1587it to find libraries and programs with nonstandard names/locations.
1588
1589Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1590_ACEOF
1591ac_status=$?
1592fi
1593
1594if test "$ac_init_help" = "recursive"; then
1595  # If there are subdirs, report their specific --help.
1596  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1597    test -d "$ac_dir" ||
1598      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1599      continue
1600    ac_builddir=.
1601
1602case "$ac_dir" in
1603.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604*)
1605  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1606  # A ".." for each directory in $ac_dir_suffix.
1607  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1608  case $ac_top_builddir_sub in
1609  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1611  esac ;;
1612esac
1613ac_abs_top_builddir=$ac_pwd
1614ac_abs_builddir=$ac_pwd$ac_dir_suffix
1615# for backward compatibility:
1616ac_top_builddir=$ac_top_build_prefix
1617
1618case $srcdir in
1619  .)  # We are building in place.
1620    ac_srcdir=.
1621    ac_top_srcdir=$ac_top_builddir_sub
1622    ac_abs_top_srcdir=$ac_pwd ;;
1623  [\\/]* | ?:[\\/]* )  # Absolute name.
1624    ac_srcdir=$srcdir$ac_dir_suffix;
1625    ac_top_srcdir=$srcdir
1626    ac_abs_top_srcdir=$srcdir ;;
1627  *) # Relative name.
1628    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1629    ac_top_srcdir=$ac_top_build_prefix$srcdir
1630    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1631esac
1632ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1633
1634    cd "$ac_dir" || { ac_status=$?; continue; }
1635    # Check for guested configure.
1636    if test -f "$ac_srcdir/configure.gnu"; then
1637      echo &&
1638      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1639    elif test -f "$ac_srcdir/configure"; then
1640      echo &&
1641      $SHELL "$ac_srcdir/configure" --help=recursive
1642    else
1643      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1644    fi || ac_status=$?
1645    cd "$ac_pwd" || { ac_status=$?; break; }
1646  done
1647fi
1648
1649test -n "$ac_init_help" && exit $ac_status
1650if $ac_init_version; then
1651  cat <<\_ACEOF
1652libXfont configure 1.4.8
1653generated by GNU Autoconf 2.68
1654
1655Copyright (C) 2010 Free Software Foundation, Inc.
1656This configure script is free software; the Free Software Foundation
1657gives unlimited permission to copy, distribute and modify it.
1658_ACEOF
1659  exit
1660fi
1661
1662## ------------------------ ##
1663## Autoconf initialization. ##
1664## ------------------------ ##
1665
1666# ac_fn_c_try_compile LINENO
1667# --------------------------
1668# Try to compile conftest.$ac_ext, and return whether this succeeded.
1669ac_fn_c_try_compile ()
1670{
1671  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672  rm -f conftest.$ac_objext
1673  if { { ac_try="$ac_compile"
1674case "(($ac_try" in
1675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676  *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680  (eval "$ac_compile") 2>conftest.err
1681  ac_status=$?
1682  if test -s conftest.err; then
1683    grep -v '^ *+' conftest.err >conftest.er1
1684    cat conftest.er1 >&5
1685    mv -f conftest.er1 conftest.err
1686  fi
1687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688  test $ac_status = 0; } && {
1689	 test -z "$ac_c_werror_flag" ||
1690	 test ! -s conftest.err
1691       } && test -s conftest.$ac_objext; then :
1692  ac_retval=0
1693else
1694  $as_echo "$as_me: failed program was:" >&5
1695sed 's/^/| /' conftest.$ac_ext >&5
1696
1697	ac_retval=1
1698fi
1699  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700  as_fn_set_status $ac_retval
1701
1702} # ac_fn_c_try_compile
1703
1704# ac_fn_c_try_cpp LINENO
1705# ----------------------
1706# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1707ac_fn_c_try_cpp ()
1708{
1709  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710  if { { ac_try="$ac_cpp conftest.$ac_ext"
1711case "(($ac_try" in
1712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713  *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1718  ac_status=$?
1719  if test -s conftest.err; then
1720    grep -v '^ *+' conftest.err >conftest.er1
1721    cat conftest.er1 >&5
1722    mv -f conftest.er1 conftest.err
1723  fi
1724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725  test $ac_status = 0; } > conftest.i && {
1726	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1727	 test ! -s conftest.err
1728       }; then :
1729  ac_retval=0
1730else
1731  $as_echo "$as_me: failed program was:" >&5
1732sed 's/^/| /' conftest.$ac_ext >&5
1733
1734    ac_retval=1
1735fi
1736  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737  as_fn_set_status $ac_retval
1738
1739} # ac_fn_c_try_cpp
1740
1741# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1742# -------------------------------------------------------
1743# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1744# the include files in INCLUDES and setting the cache variable VAR
1745# accordingly.
1746ac_fn_c_check_header_mongrel ()
1747{
1748  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749  if eval \${$3+:} false; then :
1750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751$as_echo_n "checking for $2... " >&6; }
1752if eval \${$3+:} false; then :
1753  $as_echo_n "(cached) " >&6
1754fi
1755eval ac_res=\$$3
1756	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757$as_echo "$ac_res" >&6; }
1758else
1759  # Is the header compilable?
1760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1761$as_echo_n "checking $2 usability... " >&6; }
1762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763/* end confdefs.h.  */
1764$4
1765#include <$2>
1766_ACEOF
1767if ac_fn_c_try_compile "$LINENO"; then :
1768  ac_header_compiler=yes
1769else
1770  ac_header_compiler=no
1771fi
1772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1774$as_echo "$ac_header_compiler" >&6; }
1775
1776# Is the header present?
1777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1778$as_echo_n "checking $2 presence... " >&6; }
1779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780/* end confdefs.h.  */
1781#include <$2>
1782_ACEOF
1783if ac_fn_c_try_cpp "$LINENO"; then :
1784  ac_header_preproc=yes
1785else
1786  ac_header_preproc=no
1787fi
1788rm -f conftest.err conftest.i conftest.$ac_ext
1789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1790$as_echo "$ac_header_preproc" >&6; }
1791
1792# So?  What about this header?
1793case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1794  yes:no: )
1795    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1796$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1797    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1798$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1799    ;;
1800  no:yes:* )
1801    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1802$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1803    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1804$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1805    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1806$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1807    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1808$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1809    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1810$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1811( $as_echo "## ---------------------------------------------------------------------- ##
1812## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1813## ---------------------------------------------------------------------- ##"
1814     ) | sed "s/^/$as_me: WARNING:     /" >&2
1815    ;;
1816esac
1817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818$as_echo_n "checking for $2... " >&6; }
1819if eval \${$3+:} false; then :
1820  $as_echo_n "(cached) " >&6
1821else
1822  eval "$3=\$ac_header_compiler"
1823fi
1824eval ac_res=\$$3
1825	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826$as_echo "$ac_res" >&6; }
1827fi
1828  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829
1830} # ac_fn_c_check_header_mongrel
1831
1832# ac_fn_c_try_run LINENO
1833# ----------------------
1834# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1835# that executables *can* be run.
1836ac_fn_c_try_run ()
1837{
1838  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839  if { { ac_try="$ac_link"
1840case "(($ac_try" in
1841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842  *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846  (eval "$ac_link") 2>&5
1847  ac_status=$?
1848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1850  { { case "(($ac_try" in
1851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852  *) ac_try_echo=$ac_try;;
1853esac
1854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855$as_echo "$ac_try_echo"; } >&5
1856  (eval "$ac_try") 2>&5
1857  ac_status=$?
1858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859  test $ac_status = 0; }; }; then :
1860  ac_retval=0
1861else
1862  $as_echo "$as_me: program exited with status $ac_status" >&5
1863       $as_echo "$as_me: failed program was:" >&5
1864sed 's/^/| /' conftest.$ac_ext >&5
1865
1866       ac_retval=$ac_status
1867fi
1868  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1869  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870  as_fn_set_status $ac_retval
1871
1872} # ac_fn_c_try_run
1873
1874# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1875# -------------------------------------------------------
1876# Tests whether HEADER exists and can be compiled using the include files in
1877# INCLUDES, setting the cache variable VAR accordingly.
1878ac_fn_c_check_header_compile ()
1879{
1880  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882$as_echo_n "checking for $2... " >&6; }
1883if eval \${$3+:} false; then :
1884  $as_echo_n "(cached) " >&6
1885else
1886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887/* end confdefs.h.  */
1888$4
1889#include <$2>
1890_ACEOF
1891if ac_fn_c_try_compile "$LINENO"; then :
1892  eval "$3=yes"
1893else
1894  eval "$3=no"
1895fi
1896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897fi
1898eval ac_res=\$$3
1899	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900$as_echo "$ac_res" >&6; }
1901  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902
1903} # ac_fn_c_check_header_compile
1904
1905# ac_fn_c_try_link LINENO
1906# -----------------------
1907# Try to link conftest.$ac_ext, and return whether this succeeded.
1908ac_fn_c_try_link ()
1909{
1910  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911  rm -f conftest.$ac_objext conftest$ac_exeext
1912  if { { ac_try="$ac_link"
1913case "(($ac_try" in
1914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915  *) ac_try_echo=$ac_try;;
1916esac
1917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918$as_echo "$ac_try_echo"; } >&5
1919  (eval "$ac_link") 2>conftest.err
1920  ac_status=$?
1921  if test -s conftest.err; then
1922    grep -v '^ *+' conftest.err >conftest.er1
1923    cat conftest.er1 >&5
1924    mv -f conftest.er1 conftest.err
1925  fi
1926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927  test $ac_status = 0; } && {
1928	 test -z "$ac_c_werror_flag" ||
1929	 test ! -s conftest.err
1930       } && test -s conftest$ac_exeext && {
1931	 test "$cross_compiling" = yes ||
1932	 $as_test_x conftest$ac_exeext
1933       }; then :
1934  ac_retval=0
1935else
1936  $as_echo "$as_me: failed program was:" >&5
1937sed 's/^/| /' conftest.$ac_ext >&5
1938
1939	ac_retval=1
1940fi
1941  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1942  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1943  # interfere with the next link command; also delete a directory that is
1944  # left behind by Apple's compiler.  We do this before executing the actions.
1945  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1946  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947  as_fn_set_status $ac_retval
1948
1949} # ac_fn_c_try_link
1950
1951# ac_fn_c_check_func LINENO FUNC VAR
1952# ----------------------------------
1953# Tests whether FUNC exists, setting the cache variable VAR accordingly
1954ac_fn_c_check_func ()
1955{
1956  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958$as_echo_n "checking for $2... " >&6; }
1959if eval \${$3+:} false; then :
1960  $as_echo_n "(cached) " >&6
1961else
1962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963/* end confdefs.h.  */
1964/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1965   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1966#define $2 innocuous_$2
1967
1968/* System header to define __stub macros and hopefully few prototypes,
1969    which can conflict with char $2 (); below.
1970    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1971    <limits.h> exists even on freestanding compilers.  */
1972
1973#ifdef __STDC__
1974# include <limits.h>
1975#else
1976# include <assert.h>
1977#endif
1978
1979#undef $2
1980
1981/* Override any GCC internal prototype to avoid an error.
1982   Use char because int might match the return type of a GCC
1983   builtin and then its argument prototype would still apply.  */
1984#ifdef __cplusplus
1985extern "C"
1986#endif
1987char $2 ();
1988/* The GNU C library defines this for functions which it implements
1989    to always fail with ENOSYS.  Some functions are actually named
1990    something starting with __ and the normal name is an alias.  */
1991#if defined __stub_$2 || defined __stub___$2
1992choke me
1993#endif
1994
1995int
1996main ()
1997{
1998return $2 ();
1999  ;
2000  return 0;
2001}
2002_ACEOF
2003if ac_fn_c_try_link "$LINENO"; then :
2004  eval "$3=yes"
2005else
2006  eval "$3=no"
2007fi
2008rm -f core conftest.err conftest.$ac_objext \
2009    conftest$ac_exeext conftest.$ac_ext
2010fi
2011eval ac_res=\$$3
2012	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013$as_echo "$ac_res" >&6; }
2014  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015
2016} # ac_fn_c_check_func
2017
2018# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2019# ---------------------------------------------
2020# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2021# accordingly.
2022ac_fn_c_check_decl ()
2023{
2024  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025  as_decl_name=`echo $2|sed 's/ *(.*//'`
2026  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2028$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2029if eval \${$3+:} false; then :
2030  $as_echo_n "(cached) " >&6
2031else
2032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h.  */
2034$4
2035int
2036main ()
2037{
2038#ifndef $as_decl_name
2039#ifdef __cplusplus
2040  (void) $as_decl_use;
2041#else
2042  (void) $as_decl_name;
2043#endif
2044#endif
2045
2046  ;
2047  return 0;
2048}
2049_ACEOF
2050if ac_fn_c_try_compile "$LINENO"; then :
2051  eval "$3=yes"
2052else
2053  eval "$3=no"
2054fi
2055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056fi
2057eval ac_res=\$$3
2058	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059$as_echo "$ac_res" >&6; }
2060  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061
2062} # ac_fn_c_check_decl
2063
2064# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2065# ----------------------------------------------------
2066# Tries to find if the field MEMBER exists in type AGGR, after including
2067# INCLUDES, setting cache variable VAR accordingly.
2068ac_fn_c_check_member ()
2069{
2070  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2072$as_echo_n "checking for $2.$3... " >&6; }
2073if eval \${$4+:} false; then :
2074  $as_echo_n "(cached) " >&6
2075else
2076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h.  */
2078$5
2079int
2080main ()
2081{
2082static $2 ac_aggr;
2083if (ac_aggr.$3)
2084return 0;
2085  ;
2086  return 0;
2087}
2088_ACEOF
2089if ac_fn_c_try_compile "$LINENO"; then :
2090  eval "$4=yes"
2091else
2092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093/* end confdefs.h.  */
2094$5
2095int
2096main ()
2097{
2098static $2 ac_aggr;
2099if (sizeof ac_aggr.$3)
2100return 0;
2101  ;
2102  return 0;
2103}
2104_ACEOF
2105if ac_fn_c_try_compile "$LINENO"; then :
2106  eval "$4=yes"
2107else
2108  eval "$4=no"
2109fi
2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113fi
2114eval ac_res=\$$4
2115	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116$as_echo "$ac_res" >&6; }
2117  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118
2119} # ac_fn_c_check_member
2120
2121# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2122# -------------------------------------------
2123# Tests whether TYPE exists after having included INCLUDES, setting cache
2124# variable VAR accordingly.
2125ac_fn_c_check_type ()
2126{
2127  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129$as_echo_n "checking for $2... " >&6; }
2130if eval \${$3+:} false; then :
2131  $as_echo_n "(cached) " >&6
2132else
2133  eval "$3=no"
2134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135/* end confdefs.h.  */
2136$4
2137int
2138main ()
2139{
2140if (sizeof ($2))
2141	 return 0;
2142  ;
2143  return 0;
2144}
2145_ACEOF
2146if ac_fn_c_try_compile "$LINENO"; then :
2147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148/* end confdefs.h.  */
2149$4
2150int
2151main ()
2152{
2153if (sizeof (($2)))
2154	    return 0;
2155  ;
2156  return 0;
2157}
2158_ACEOF
2159if ac_fn_c_try_compile "$LINENO"; then :
2160
2161else
2162  eval "$3=yes"
2163fi
2164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165fi
2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167fi
2168eval ac_res=\$$3
2169	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170$as_echo "$ac_res" >&6; }
2171  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172
2173} # ac_fn_c_check_type
2174cat >config.log <<_ACEOF
2175This file contains any messages produced by compilers while
2176running configure, to aid debugging if configure makes a mistake.
2177
2178It was created by libXfont $as_me 1.4.8, which was
2179generated by GNU Autoconf 2.68.  Invocation command line was
2180
2181  $ $0 $@
2182
2183_ACEOF
2184exec 5>>config.log
2185{
2186cat <<_ASUNAME
2187## --------- ##
2188## Platform. ##
2189## --------- ##
2190
2191hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2192uname -m = `(uname -m) 2>/dev/null || echo unknown`
2193uname -r = `(uname -r) 2>/dev/null || echo unknown`
2194uname -s = `(uname -s) 2>/dev/null || echo unknown`
2195uname -v = `(uname -v) 2>/dev/null || echo unknown`
2196
2197/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2198/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2199
2200/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2201/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2202/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2203/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2204/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2205/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2206/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2207
2208_ASUNAME
2209
2210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211for as_dir in $PATH
2212do
2213  IFS=$as_save_IFS
2214  test -z "$as_dir" && as_dir=.
2215    $as_echo "PATH: $as_dir"
2216  done
2217IFS=$as_save_IFS
2218
2219} >&5
2220
2221cat >&5 <<_ACEOF
2222
2223
2224## ----------- ##
2225## Core tests. ##
2226## ----------- ##
2227
2228_ACEOF
2229
2230
2231# Keep a trace of the command line.
2232# Strip out --no-create and --no-recursion so they do not pile up.
2233# Strip out --silent because we don't want to record it for future runs.
2234# Also quote any args containing shell meta-characters.
2235# Make two passes to allow for proper duplicate-argument suppression.
2236ac_configure_args=
2237ac_configure_args0=
2238ac_configure_args1=
2239ac_must_keep_next=false
2240for ac_pass in 1 2
2241do
2242  for ac_arg
2243  do
2244    case $ac_arg in
2245    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2246    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2247    | -silent | --silent | --silen | --sile | --sil)
2248      continue ;;
2249    *\'*)
2250      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2251    esac
2252    case $ac_pass in
2253    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2254    2)
2255      as_fn_append ac_configure_args1 " '$ac_arg'"
2256      if test $ac_must_keep_next = true; then
2257	ac_must_keep_next=false # Got value, back to normal.
2258      else
2259	case $ac_arg in
2260	  *=* | --config-cache | -C | -disable-* | --disable-* \
2261	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2262	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2263	  | -with-* | --with-* | -without-* | --without-* | --x)
2264	    case "$ac_configure_args0 " in
2265	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2266	    esac
2267	    ;;
2268	  -* ) ac_must_keep_next=true ;;
2269	esac
2270      fi
2271      as_fn_append ac_configure_args " '$ac_arg'"
2272      ;;
2273    esac
2274  done
2275done
2276{ ac_configure_args0=; unset ac_configure_args0;}
2277{ ac_configure_args1=; unset ac_configure_args1;}
2278
2279# When interrupted or exit'd, cleanup temporary files, and complete
2280# config.log.  We remove comments because anyway the quotes in there
2281# would cause problems or look ugly.
2282# WARNING: Use '\'' to represent an apostrophe within the trap.
2283# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2284trap 'exit_status=$?
2285  # Save into config.log some information that might help in debugging.
2286  {
2287    echo
2288
2289    $as_echo "## ---------------- ##
2290## Cache variables. ##
2291## ---------------- ##"
2292    echo
2293    # The following way of writing the cache mishandles newlines in values,
2294(
2295  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2296    eval ac_val=\$$ac_var
2297    case $ac_val in #(
2298    *${as_nl}*)
2299      case $ac_var in #(
2300      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2301$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2302      esac
2303      case $ac_var in #(
2304      _ | IFS | as_nl) ;; #(
2305      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2306      *) { eval $ac_var=; unset $ac_var;} ;;
2307      esac ;;
2308    esac
2309  done
2310  (set) 2>&1 |
2311    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2312    *${as_nl}ac_space=\ *)
2313      sed -n \
2314	"s/'\''/'\''\\\\'\'''\''/g;
2315	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2316      ;; #(
2317    *)
2318      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2319      ;;
2320    esac |
2321    sort
2322)
2323    echo
2324
2325    $as_echo "## ----------------- ##
2326## Output variables. ##
2327## ----------------- ##"
2328    echo
2329    for ac_var in $ac_subst_vars
2330    do
2331      eval ac_val=\$$ac_var
2332      case $ac_val in
2333      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334      esac
2335      $as_echo "$ac_var='\''$ac_val'\''"
2336    done | sort
2337    echo
2338
2339    if test -n "$ac_subst_files"; then
2340      $as_echo "## ------------------- ##
2341## File substitutions. ##
2342## ------------------- ##"
2343      echo
2344      for ac_var in $ac_subst_files
2345      do
2346	eval ac_val=\$$ac_var
2347	case $ac_val in
2348	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349	esac
2350	$as_echo "$ac_var='\''$ac_val'\''"
2351      done | sort
2352      echo
2353    fi
2354
2355    if test -s confdefs.h; then
2356      $as_echo "## ----------- ##
2357## confdefs.h. ##
2358## ----------- ##"
2359      echo
2360      cat confdefs.h
2361      echo
2362    fi
2363    test "$ac_signal" != 0 &&
2364      $as_echo "$as_me: caught signal $ac_signal"
2365    $as_echo "$as_me: exit $exit_status"
2366  } >&5
2367  rm -f core *.core core.conftest.* &&
2368    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2369    exit $exit_status
2370' 0
2371for ac_signal in 1 2 13 15; do
2372  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2373done
2374ac_signal=0
2375
2376# confdefs.h avoids OS command line length limits that DEFS can exceed.
2377rm -f -r conftest* confdefs.h
2378
2379$as_echo "/* confdefs.h */" > confdefs.h
2380
2381# Predefined preprocessor variables.
2382
2383cat >>confdefs.h <<_ACEOF
2384#define PACKAGE_NAME "$PACKAGE_NAME"
2385_ACEOF
2386
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2389_ACEOF
2390
2391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE_VERSION "$PACKAGE_VERSION"
2393_ACEOF
2394
2395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE_STRING "$PACKAGE_STRING"
2397_ACEOF
2398
2399cat >>confdefs.h <<_ACEOF
2400#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2401_ACEOF
2402
2403cat >>confdefs.h <<_ACEOF
2404#define PACKAGE_URL "$PACKAGE_URL"
2405_ACEOF
2406
2407
2408# Let the site file select an alternate cache file if it wants to.
2409# Prefer an explicitly selected file to automatically selected ones.
2410ac_site_file1=NONE
2411ac_site_file2=NONE
2412if test -n "$CONFIG_SITE"; then
2413  # We do not want a PATH search for config.site.
2414  case $CONFIG_SITE in #((
2415    -*)  ac_site_file1=./$CONFIG_SITE;;
2416    */*) ac_site_file1=$CONFIG_SITE;;
2417    *)   ac_site_file1=./$CONFIG_SITE;;
2418  esac
2419elif test "x$prefix" != xNONE; then
2420  ac_site_file1=$prefix/share/config.site
2421  ac_site_file2=$prefix/etc/config.site
2422else
2423  ac_site_file1=$ac_default_prefix/share/config.site
2424  ac_site_file2=$ac_default_prefix/etc/config.site
2425fi
2426for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2427do
2428  test "x$ac_site_file" = xNONE && continue
2429  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2430    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2431$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2432    sed 's/^/| /' "$ac_site_file" >&5
2433    . "$ac_site_file" \
2434      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2436as_fn_error $? "failed to load site script $ac_site_file
2437See \`config.log' for more details" "$LINENO" 5; }
2438  fi
2439done
2440
2441if test -r "$cache_file"; then
2442  # Some versions of bash will fail to source /dev/null (special files
2443  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2444  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2445    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2446$as_echo "$as_me: loading cache $cache_file" >&6;}
2447    case $cache_file in
2448      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2449      *)                      . "./$cache_file";;
2450    esac
2451  fi
2452else
2453  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2454$as_echo "$as_me: creating cache $cache_file" >&6;}
2455  >$cache_file
2456fi
2457
2458# Check that the precious variables saved in the cache have kept the same
2459# value.
2460ac_cache_corrupted=false
2461for ac_var in $ac_precious_vars; do
2462  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2463  eval ac_new_set=\$ac_env_${ac_var}_set
2464  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2465  eval ac_new_val=\$ac_env_${ac_var}_value
2466  case $ac_old_set,$ac_new_set in
2467    set,)
2468      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2469$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2470      ac_cache_corrupted=: ;;
2471    ,set)
2472      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2473$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2474      ac_cache_corrupted=: ;;
2475    ,);;
2476    *)
2477      if test "x$ac_old_val" != "x$ac_new_val"; then
2478	# differences in whitespace do not lead to failure.
2479	ac_old_val_w=`echo x $ac_old_val`
2480	ac_new_val_w=`echo x $ac_new_val`
2481	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2482	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2483$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2484	  ac_cache_corrupted=:
2485	else
2486	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2487$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2488	  eval $ac_var=\$ac_old_val
2489	fi
2490	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2491$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2492	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2493$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2494      fi;;
2495  esac
2496  # Pass precious variables to config.status.
2497  if test "$ac_new_set" = set; then
2498    case $ac_new_val in
2499    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2500    *) ac_arg=$ac_var=$ac_new_val ;;
2501    esac
2502    case " $ac_configure_args " in
2503      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2504      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2505    esac
2506  fi
2507done
2508if $ac_cache_corrupted; then
2509  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2511  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2512$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2513  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2514fi
2515## -------------------- ##
2516## Main body of script. ##
2517## -------------------- ##
2518
2519ac_ext=c
2520ac_cpp='$CPP $CPPFLAGS'
2521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524
2525
2526
2527ac_config_headers="$ac_config_headers config.h include/X11/fonts/fontconf.h"
2528
2529
2530# Initialize Automake
2531am__api_version='1.14'
2532
2533ac_aux_dir=
2534for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2535  if test -f "$ac_dir/install-sh"; then
2536    ac_aux_dir=$ac_dir
2537    ac_install_sh="$ac_aux_dir/install-sh -c"
2538    break
2539  elif test -f "$ac_dir/install.sh"; then
2540    ac_aux_dir=$ac_dir
2541    ac_install_sh="$ac_aux_dir/install.sh -c"
2542    break
2543  elif test -f "$ac_dir/shtool"; then
2544    ac_aux_dir=$ac_dir
2545    ac_install_sh="$ac_aux_dir/shtool install -c"
2546    break
2547  fi
2548done
2549if test -z "$ac_aux_dir"; then
2550  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2551fi
2552
2553# These three variables are undocumented and unsupported,
2554# and are intended to be withdrawn in a future Autoconf release.
2555# They can cause serious problems if a builder's source tree is in a directory
2556# whose full name contains unusual characters.
2557ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2558ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2559ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2560
2561
2562# Find a good install program.  We prefer a C program (faster),
2563# so one script is as good as another.  But avoid the broken or
2564# incompatible versions:
2565# SysV /etc/install, /usr/sbin/install
2566# SunOS /usr/etc/install
2567# IRIX /sbin/install
2568# AIX /bin/install
2569# AmigaOS /C/install, which installs bootblocks on floppy discs
2570# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2571# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2572# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2573# OS/2's system install, which has a completely different semantic
2574# ./install, which can be erroneously created by make from ./install.sh.
2575# Reject install programs that cannot install multiple files.
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2577$as_echo_n "checking for a BSD-compatible install... " >&6; }
2578if test -z "$INSTALL"; then
2579if ${ac_cv_path_install+:} false; then :
2580  $as_echo_n "(cached) " >&6
2581else
2582  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585  IFS=$as_save_IFS
2586  test -z "$as_dir" && as_dir=.
2587    # Account for people who put trailing slashes in PATH elements.
2588case $as_dir/ in #((
2589  ./ | .// | /[cC]/* | \
2590  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2591  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2592  /usr/ucb/* ) ;;
2593  *)
2594    # OSF1 and SCO ODT 3.0 have their own names for install.
2595    # Don't use installbsd from OSF since it installs stuff as root
2596    # by default.
2597    for ac_prog in ginstall scoinst install; do
2598      for ac_exec_ext in '' $ac_executable_extensions; do
2599	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2600	  if test $ac_prog = install &&
2601	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2602	    # AIX install.  It has an incompatible calling convention.
2603	    :
2604	  elif test $ac_prog = install &&
2605	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606	    # program-specific install script used by HP pwplus--don't use.
2607	    :
2608	  else
2609	    rm -rf conftest.one conftest.two conftest.dir
2610	    echo one > conftest.one
2611	    echo two > conftest.two
2612	    mkdir conftest.dir
2613	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2614	      test -s conftest.one && test -s conftest.two &&
2615	      test -s conftest.dir/conftest.one &&
2616	      test -s conftest.dir/conftest.two
2617	    then
2618	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2619	      break 3
2620	    fi
2621	  fi
2622	fi
2623      done
2624    done
2625    ;;
2626esac
2627
2628  done
2629IFS=$as_save_IFS
2630
2631rm -rf conftest.one conftest.two conftest.dir
2632
2633fi
2634  if test "${ac_cv_path_install+set}" = set; then
2635    INSTALL=$ac_cv_path_install
2636  else
2637    # As a last resort, use the slow shell script.  Don't cache a
2638    # value for INSTALL within a source directory, because that will
2639    # break other packages using the cache if that directory is
2640    # removed, or if the value is a relative name.
2641    INSTALL=$ac_install_sh
2642  fi
2643fi
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2645$as_echo "$INSTALL" >&6; }
2646
2647# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2648# It thinks the first close brace ends the variable substitution.
2649test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2650
2651test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2652
2653test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2654
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2656$as_echo_n "checking whether build environment is sane... " >&6; }
2657# Reject unsafe characters in $srcdir or the absolute working directory
2658# name.  Accept space and tab only in the latter.
2659am_lf='
2660'
2661case `pwd` in
2662  *[\\\"\#\$\&\'\`$am_lf]*)
2663    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2664esac
2665case $srcdir in
2666  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2667    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2668esac
2669
2670# Do 'set' in a subshell so we don't clobber the current shell's
2671# arguments.  Must try -L first in case configure is actually a
2672# symlink; some systems play weird games with the mod time of symlinks
2673# (eg FreeBSD returns the mod time of the symlink's containing
2674# directory).
2675if (
2676   am_has_slept=no
2677   for am_try in 1 2; do
2678     echo "timestamp, slept: $am_has_slept" > conftest.file
2679     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2680     if test "$*" = "X"; then
2681	# -L didn't work.
2682	set X `ls -t "$srcdir/configure" conftest.file`
2683     fi
2684     if test "$*" != "X $srcdir/configure conftest.file" \
2685	&& test "$*" != "X conftest.file $srcdir/configure"; then
2686
2687	# If neither matched, then we have a broken ls.  This can happen
2688	# if, for instance, CONFIG_SHELL is bash and it inherits a
2689	# broken ls alias from the environment.  This has actually
2690	# happened.  Such a system could not be considered "sane".
2691	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2692  alias in your environment" "$LINENO" 5
2693     fi
2694     if test "$2" = conftest.file || test $am_try -eq 2; then
2695       break
2696     fi
2697     # Just in case.
2698     sleep 1
2699     am_has_slept=yes
2700   done
2701   test "$2" = conftest.file
2702   )
2703then
2704   # Ok.
2705   :
2706else
2707   as_fn_error $? "newly created file is older than distributed files!
2708Check your system clock" "$LINENO" 5
2709fi
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2711$as_echo "yes" >&6; }
2712# If we didn't sleep, we still need to ensure time stamps of config.status and
2713# generated files are strictly newer.
2714am_sleep_pid=
2715if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2716  ( sleep 1 ) &
2717  am_sleep_pid=$!
2718fi
2719
2720rm -f conftest.file
2721
2722test "$program_prefix" != NONE &&
2723  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2724# Use a double $ so make ignores it.
2725test "$program_suffix" != NONE &&
2726  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2727# Double any \ or $.
2728# By default was `s,x,x', remove it if useless.
2729ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2730program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2731
2732# expand $ac_aux_dir to an absolute path
2733am_aux_dir=`cd $ac_aux_dir && pwd`
2734
2735if test x"${MISSING+set}" != xset; then
2736  case $am_aux_dir in
2737  *\ * | *\	*)
2738    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2739  *)
2740    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2741  esac
2742fi
2743# Use eval to expand $SHELL
2744if eval "$MISSING --is-lightweight"; then
2745  am_missing_run="$MISSING "
2746else
2747  am_missing_run=
2748  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2749$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2750fi
2751
2752if test x"${install_sh}" != xset; then
2753  case $am_aux_dir in
2754  *\ * | *\	*)
2755    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2756  *)
2757    install_sh="\${SHELL} $am_aux_dir/install-sh"
2758  esac
2759fi
2760
2761# Installed binaries are usually stripped using 'strip' when the user
2762# run "make install-strip".  However 'strip' might not be the right
2763# tool to use in cross-compilation environments, therefore Automake
2764# will honor the 'STRIP' environment variable to overrule this program.
2765if test "$cross_compiling" != no; then
2766  if test -n "$ac_tool_prefix"; then
2767  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2768set dummy ${ac_tool_prefix}strip; ac_word=$2
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770$as_echo_n "checking for $ac_word... " >&6; }
2771if ${ac_cv_prog_STRIP+:} false; then :
2772  $as_echo_n "(cached) " >&6
2773else
2774  if test -n "$STRIP"; then
2775  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780  IFS=$as_save_IFS
2781  test -z "$as_dir" && as_dir=.
2782    for ac_exec_ext in '' $ac_executable_extensions; do
2783  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786    break 2
2787  fi
2788done
2789  done
2790IFS=$as_save_IFS
2791
2792fi
2793fi
2794STRIP=$ac_cv_prog_STRIP
2795if test -n "$STRIP"; then
2796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2797$as_echo "$STRIP" >&6; }
2798else
2799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800$as_echo "no" >&6; }
2801fi
2802
2803
2804fi
2805if test -z "$ac_cv_prog_STRIP"; then
2806  ac_ct_STRIP=$STRIP
2807  # Extract the first word of "strip", so it can be a program name with args.
2808set dummy strip; ac_word=$2
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810$as_echo_n "checking for $ac_word... " >&6; }
2811if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2812  $as_echo_n "(cached) " >&6
2813else
2814  if test -n "$ac_ct_STRIP"; then
2815  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2816else
2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818for as_dir in $PATH
2819do
2820  IFS=$as_save_IFS
2821  test -z "$as_dir" && as_dir=.
2822    for ac_exec_ext in '' $ac_executable_extensions; do
2823  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824    ac_cv_prog_ac_ct_STRIP="strip"
2825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826    break 2
2827  fi
2828done
2829  done
2830IFS=$as_save_IFS
2831
2832fi
2833fi
2834ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2835if test -n "$ac_ct_STRIP"; then
2836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2837$as_echo "$ac_ct_STRIP" >&6; }
2838else
2839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840$as_echo "no" >&6; }
2841fi
2842
2843  if test "x$ac_ct_STRIP" = x; then
2844    STRIP=":"
2845  else
2846    case $cross_compiling:$ac_tool_warned in
2847yes:)
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2850ac_tool_warned=yes ;;
2851esac
2852    STRIP=$ac_ct_STRIP
2853  fi
2854else
2855  STRIP="$ac_cv_prog_STRIP"
2856fi
2857
2858fi
2859INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2860
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2862$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2863if test -z "$MKDIR_P"; then
2864  if ${ac_cv_path_mkdir+:} false; then :
2865  $as_echo_n "(cached) " >&6
2866else
2867  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2869do
2870  IFS=$as_save_IFS
2871  test -z "$as_dir" && as_dir=.
2872    for ac_prog in mkdir gmkdir; do
2873	 for ac_exec_ext in '' $ac_executable_extensions; do
2874	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2875	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2876	     'mkdir (GNU coreutils) '* | \
2877	     'mkdir (coreutils) '* | \
2878	     'mkdir (fileutils) '4.1*)
2879	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2880	       break 3;;
2881	   esac
2882	 done
2883       done
2884  done
2885IFS=$as_save_IFS
2886
2887fi
2888
2889  test -d ./--version && rmdir ./--version
2890  if test "${ac_cv_path_mkdir+set}" = set; then
2891    MKDIR_P="$ac_cv_path_mkdir -p"
2892  else
2893    # As a last resort, use the slow shell script.  Don't cache a
2894    # value for MKDIR_P within a source directory, because that will
2895    # break other packages using the cache if that directory is
2896    # removed, or if the value is a relative name.
2897    MKDIR_P="$ac_install_sh -d"
2898  fi
2899fi
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2901$as_echo "$MKDIR_P" >&6; }
2902
2903for ac_prog in gawk mawk nawk awk
2904do
2905  # Extract the first word of "$ac_prog", so it can be a program name with args.
2906set dummy $ac_prog; ac_word=$2
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908$as_echo_n "checking for $ac_word... " >&6; }
2909if ${ac_cv_prog_AWK+:} false; then :
2910  $as_echo_n "(cached) " >&6
2911else
2912  if test -n "$AWK"; then
2913  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2914else
2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916for as_dir in $PATH
2917do
2918  IFS=$as_save_IFS
2919  test -z "$as_dir" && as_dir=.
2920    for ac_exec_ext in '' $ac_executable_extensions; do
2921  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922    ac_cv_prog_AWK="$ac_prog"
2923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924    break 2
2925  fi
2926done
2927  done
2928IFS=$as_save_IFS
2929
2930fi
2931fi
2932AWK=$ac_cv_prog_AWK
2933if test -n "$AWK"; then
2934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2935$as_echo "$AWK" >&6; }
2936else
2937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938$as_echo "no" >&6; }
2939fi
2940
2941
2942  test -n "$AWK" && break
2943done
2944
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2946$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2947set x ${MAKE-make}
2948ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2949if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2950  $as_echo_n "(cached) " >&6
2951else
2952  cat >conftest.make <<\_ACEOF
2953SHELL = /bin/sh
2954all:
2955	@echo '@@@%%%=$(MAKE)=@@@%%%'
2956_ACEOF
2957# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2958case `${MAKE-make} -f conftest.make 2>/dev/null` in
2959  *@@@%%%=?*=@@@%%%*)
2960    eval ac_cv_prog_make_${ac_make}_set=yes;;
2961  *)
2962    eval ac_cv_prog_make_${ac_make}_set=no;;
2963esac
2964rm -f conftest.make
2965fi
2966if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2968$as_echo "yes" >&6; }
2969  SET_MAKE=
2970else
2971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972$as_echo "no" >&6; }
2973  SET_MAKE="MAKE=${MAKE-make}"
2974fi
2975
2976rm -rf .tst 2>/dev/null
2977mkdir .tst 2>/dev/null
2978if test -d .tst; then
2979  am__leading_dot=.
2980else
2981  am__leading_dot=_
2982fi
2983rmdir .tst 2>/dev/null
2984
2985# Check whether --enable-silent-rules was given.
2986if test "${enable_silent_rules+set}" = set; then :
2987  enableval=$enable_silent_rules;
2988fi
2989
2990case $enable_silent_rules in # (((
2991  yes) AM_DEFAULT_VERBOSITY=0;;
2992   no) AM_DEFAULT_VERBOSITY=1;;
2993    *) AM_DEFAULT_VERBOSITY=1;;
2994esac
2995am_make=${MAKE-make}
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2997$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2998if ${am_cv_make_support_nested_variables+:} false; then :
2999  $as_echo_n "(cached) " >&6
3000else
3001  if $as_echo 'TRUE=$(BAR$(V))
3002BAR0=false
3003BAR1=true
3004V=1
3005am__doit:
3006	@$(TRUE)
3007.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3008  am_cv_make_support_nested_variables=yes
3009else
3010  am_cv_make_support_nested_variables=no
3011fi
3012fi
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3014$as_echo "$am_cv_make_support_nested_variables" >&6; }
3015if test $am_cv_make_support_nested_variables = yes; then
3016    AM_V='$(V)'
3017  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3018else
3019  AM_V=$AM_DEFAULT_VERBOSITY
3020  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3021fi
3022AM_BACKSLASH='\'
3023
3024if test "`cd $srcdir && pwd`" != "`pwd`"; then
3025  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3026  # is not polluted with repeated "-I."
3027  am__isrc=' -I$(srcdir)'
3028  # test to see if srcdir already configured
3029  if test -f $srcdir/config.status; then
3030    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3031  fi
3032fi
3033
3034# test whether we have cygpath
3035if test -z "$CYGPATH_W"; then
3036  if (cygpath --version) >/dev/null 2>/dev/null; then
3037    CYGPATH_W='cygpath -w'
3038  else
3039    CYGPATH_W=echo
3040  fi
3041fi
3042
3043
3044# Define the identity of the package.
3045 PACKAGE='libXfont'
3046 VERSION='1.4.8'
3047
3048
3049cat >>confdefs.h <<_ACEOF
3050#define PACKAGE "$PACKAGE"
3051_ACEOF
3052
3053
3054cat >>confdefs.h <<_ACEOF
3055#define VERSION "$VERSION"
3056_ACEOF
3057
3058# Some tools Automake needs.
3059
3060ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3061
3062
3063AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3064
3065
3066AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3067
3068
3069AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3070
3071
3072MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3073
3074# For better backward compatibility.  To be removed once Automake 1.9.x
3075# dies out for good.  For more background, see:
3076# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3077# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3078mkdir_p='$(MKDIR_P)'
3079
3080# We need awk for the "check" target.  The system "awk" is bad on
3081# some platforms.
3082# Always define AMTAR for backward compatibility.  Yes, it's still used
3083# in the wild :-(  We should find a proper way to deprecate it ...
3084AMTAR='$${TAR-tar}'
3085
3086
3087# We'll loop over all known methods to create a tar archive until one works.
3088_am_tools='gnutar  pax cpio none'
3089
3090am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3091
3092
3093
3094
3095
3096
3097# POSIX will say in a future version that running "rm -f" with no argument
3098# is OK; and we want to be able to make that assumption in our Makefile
3099# recipes.  So use an aggressive probe to check that the usage we want is
3100# actually supported "in the wild" to an acceptable degree.
3101# See automake bug#10828.
3102# To make any issue more visible, cause the running configure to be aborted
3103# by default if the 'rm' program in use doesn't match our expectations; the
3104# user can still override this though.
3105if rm -f && rm -fr && rm -rf; then : OK; else
3106  cat >&2 <<'END'
3107Oops!
3108
3109Your 'rm' program seems unable to run without file operands specified
3110on the command line, even when the '-f' option is present.  This is contrary
3111to the behaviour of most rm programs out there, and not conforming with
3112the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3113
3114Please tell bug-automake@gnu.org about your system, including the value
3115of your $PATH and any error possibly output before this message.  This
3116can help us improve future automake versions.
3117
3118END
3119  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3120    echo 'Configuration will proceed anyway, since you have set the' >&2
3121    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3122    echo >&2
3123  else
3124    cat >&2 <<'END'
3125Aborting the configuration process, to ensure you take notice of the issue.
3126
3127You can download and install GNU coreutils to get an 'rm' implementation
3128that behaves properly: <http://www.gnu.org/software/coreutils/>.
3129
3130If you want to complete the configuration process using your problematic
3131'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3132to "yes", and re-run configure.
3133
3134END
3135    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3136  fi
3137fi
3138
3139# Set common system defines for POSIX extensions, such as _GNU_SOURCE
3140# Must be called before any macros that run the compiler (like
3141# AC_PROG_LIBTOOL) to avoid autoconf errors.
3142DEPDIR="${am__leading_dot}deps"
3143
3144ac_config_commands="$ac_config_commands depfiles"
3145
3146
3147am_make=${MAKE-make}
3148cat > confinc << 'END'
3149am__doit:
3150	@echo this is the am__doit target
3151.PHONY: am__doit
3152END
3153# If we don't find an include directive, just comment out the code.
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3155$as_echo_n "checking for style of include used by $am_make... " >&6; }
3156am__include="#"
3157am__quote=
3158_am_result=none
3159# First try GNU make style include.
3160echo "include confinc" > confmf
3161# Ignore all kinds of additional output from 'make'.
3162case `$am_make -s -f confmf 2> /dev/null` in #(
3163*the\ am__doit\ target*)
3164  am__include=include
3165  am__quote=
3166  _am_result=GNU
3167  ;;
3168esac
3169# Now try BSD make style include.
3170if test "$am__include" = "#"; then
3171   echo '.include "confinc"' > confmf
3172   case `$am_make -s -f confmf 2> /dev/null` in #(
3173   *the\ am__doit\ target*)
3174     am__include=.include
3175     am__quote="\""
3176     _am_result=BSD
3177     ;;
3178   esac
3179fi
3180
3181
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3183$as_echo "$_am_result" >&6; }
3184rm -f confinc confmf
3185
3186# Check whether --enable-dependency-tracking was given.
3187if test "${enable_dependency_tracking+set}" = set; then :
3188  enableval=$enable_dependency_tracking;
3189fi
3190
3191if test "x$enable_dependency_tracking" != xno; then
3192  am_depcomp="$ac_aux_dir/depcomp"
3193  AMDEPBACKSLASH='\'
3194  am__nodep='_no'
3195fi
3196 if test "x$enable_dependency_tracking" != xno; then
3197  AMDEP_TRUE=
3198  AMDEP_FALSE='#'
3199else
3200  AMDEP_TRUE='#'
3201  AMDEP_FALSE=
3202fi
3203
3204
3205ac_ext=c
3206ac_cpp='$CPP $CPPFLAGS'
3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210if test -n "$ac_tool_prefix"; then
3211  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3212set dummy ${ac_tool_prefix}gcc; ac_word=$2
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214$as_echo_n "checking for $ac_word... " >&6; }
3215if ${ac_cv_prog_CC+:} false; then :
3216  $as_echo_n "(cached) " >&6
3217else
3218  if test -n "$CC"; then
3219  ac_cv_prog_CC="$CC" # Let the user override the test.
3220else
3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222for as_dir in $PATH
3223do
3224  IFS=$as_save_IFS
3225  test -z "$as_dir" && as_dir=.
3226    for ac_exec_ext in '' $ac_executable_extensions; do
3227  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3228    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230    break 2
3231  fi
3232done
3233  done
3234IFS=$as_save_IFS
3235
3236fi
3237fi
3238CC=$ac_cv_prog_CC
3239if test -n "$CC"; then
3240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241$as_echo "$CC" >&6; }
3242else
3243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244$as_echo "no" >&6; }
3245fi
3246
3247
3248fi
3249if test -z "$ac_cv_prog_CC"; then
3250  ac_ct_CC=$CC
3251  # Extract the first word of "gcc", so it can be a program name with args.
3252set dummy gcc; ac_word=$2
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254$as_echo_n "checking for $ac_word... " >&6; }
3255if ${ac_cv_prog_ac_ct_CC+:} false; then :
3256  $as_echo_n "(cached) " >&6
3257else
3258  if test -n "$ac_ct_CC"; then
3259  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3260else
3261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262for as_dir in $PATH
3263do
3264  IFS=$as_save_IFS
3265  test -z "$as_dir" && as_dir=.
3266    for ac_exec_ext in '' $ac_executable_extensions; do
3267  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3268    ac_cv_prog_ac_ct_CC="gcc"
3269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270    break 2
3271  fi
3272done
3273  done
3274IFS=$as_save_IFS
3275
3276fi
3277fi
3278ac_ct_CC=$ac_cv_prog_ac_ct_CC
3279if test -n "$ac_ct_CC"; then
3280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3281$as_echo "$ac_ct_CC" >&6; }
3282else
3283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284$as_echo "no" >&6; }
3285fi
3286
3287  if test "x$ac_ct_CC" = x; then
3288    CC=""
3289  else
3290    case $cross_compiling:$ac_tool_warned in
3291yes:)
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3294ac_tool_warned=yes ;;
3295esac
3296    CC=$ac_ct_CC
3297  fi
3298else
3299  CC="$ac_cv_prog_CC"
3300fi
3301
3302if test -z "$CC"; then
3303          if test -n "$ac_tool_prefix"; then
3304    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3305set dummy ${ac_tool_prefix}cc; ac_word=$2
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307$as_echo_n "checking for $ac_word... " >&6; }
3308if ${ac_cv_prog_CC+:} false; then :
3309  $as_echo_n "(cached) " >&6
3310else
3311  if test -n "$CC"; then
3312  ac_cv_prog_CC="$CC" # Let the user override the test.
3313else
3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315for as_dir in $PATH
3316do
3317  IFS=$as_save_IFS
3318  test -z "$as_dir" && as_dir=.
3319    for ac_exec_ext in '' $ac_executable_extensions; do
3320  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321    ac_cv_prog_CC="${ac_tool_prefix}cc"
3322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323    break 2
3324  fi
3325done
3326  done
3327IFS=$as_save_IFS
3328
3329fi
3330fi
3331CC=$ac_cv_prog_CC
3332if test -n "$CC"; then
3333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334$as_echo "$CC" >&6; }
3335else
3336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337$as_echo "no" >&6; }
3338fi
3339
3340
3341  fi
3342fi
3343if test -z "$CC"; then
3344  # Extract the first word of "cc", so it can be a program name with args.
3345set dummy cc; ac_word=$2
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347$as_echo_n "checking for $ac_word... " >&6; }
3348if ${ac_cv_prog_CC+:} false; then :
3349  $as_echo_n "(cached) " >&6
3350else
3351  if test -n "$CC"; then
3352  ac_cv_prog_CC="$CC" # Let the user override the test.
3353else
3354  ac_prog_rejected=no
3355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356for as_dir in $PATH
3357do
3358  IFS=$as_save_IFS
3359  test -z "$as_dir" && as_dir=.
3360    for ac_exec_ext in '' $ac_executable_extensions; do
3361  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3363       ac_prog_rejected=yes
3364       continue
3365     fi
3366    ac_cv_prog_CC="cc"
3367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3368    break 2
3369  fi
3370done
3371  done
3372IFS=$as_save_IFS
3373
3374if test $ac_prog_rejected = yes; then
3375  # We found a bogon in the path, so make sure we never use it.
3376  set dummy $ac_cv_prog_CC
3377  shift
3378  if test $# != 0; then
3379    # We chose a different compiler from the bogus one.
3380    # However, it has the same basename, so the bogon will be chosen
3381    # first if we set CC to just the basename; use the full file name.
3382    shift
3383    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3384  fi
3385fi
3386fi
3387fi
3388CC=$ac_cv_prog_CC
3389if test -n "$CC"; then
3390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3391$as_echo "$CC" >&6; }
3392else
3393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394$as_echo "no" >&6; }
3395fi
3396
3397
3398fi
3399if test -z "$CC"; then
3400  if test -n "$ac_tool_prefix"; then
3401  for ac_prog in cl.exe
3402  do
3403    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3404set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406$as_echo_n "checking for $ac_word... " >&6; }
3407if ${ac_cv_prog_CC+:} false; then :
3408  $as_echo_n "(cached) " >&6
3409else
3410  if test -n "$CC"; then
3411  ac_cv_prog_CC="$CC" # Let the user override the test.
3412else
3413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414for as_dir in $PATH
3415do
3416  IFS=$as_save_IFS
3417  test -z "$as_dir" && as_dir=.
3418    for ac_exec_ext in '' $ac_executable_extensions; do
3419  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422    break 2
3423  fi
3424done
3425  done
3426IFS=$as_save_IFS
3427
3428fi
3429fi
3430CC=$ac_cv_prog_CC
3431if test -n "$CC"; then
3432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3433$as_echo "$CC" >&6; }
3434else
3435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436$as_echo "no" >&6; }
3437fi
3438
3439
3440    test -n "$CC" && break
3441  done
3442fi
3443if test -z "$CC"; then
3444  ac_ct_CC=$CC
3445  for ac_prog in cl.exe
3446do
3447  # Extract the first word of "$ac_prog", so it can be a program name with args.
3448set dummy $ac_prog; ac_word=$2
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3450$as_echo_n "checking for $ac_word... " >&6; }
3451if ${ac_cv_prog_ac_ct_CC+:} false; then :
3452  $as_echo_n "(cached) " >&6
3453else
3454  if test -n "$ac_ct_CC"; then
3455  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3456else
3457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458for as_dir in $PATH
3459do
3460  IFS=$as_save_IFS
3461  test -z "$as_dir" && as_dir=.
3462    for ac_exec_ext in '' $ac_executable_extensions; do
3463  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3464    ac_cv_prog_ac_ct_CC="$ac_prog"
3465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466    break 2
3467  fi
3468done
3469  done
3470IFS=$as_save_IFS
3471
3472fi
3473fi
3474ac_ct_CC=$ac_cv_prog_ac_ct_CC
3475if test -n "$ac_ct_CC"; then
3476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3477$as_echo "$ac_ct_CC" >&6; }
3478else
3479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480$as_echo "no" >&6; }
3481fi
3482
3483
3484  test -n "$ac_ct_CC" && break
3485done
3486
3487  if test "x$ac_ct_CC" = x; then
3488    CC=""
3489  else
3490    case $cross_compiling:$ac_tool_warned in
3491yes:)
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3494ac_tool_warned=yes ;;
3495esac
3496    CC=$ac_ct_CC
3497  fi
3498fi
3499
3500fi
3501
3502
3503test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505as_fn_error $? "no acceptable C compiler found in \$PATH
3506See \`config.log' for more details" "$LINENO" 5; }
3507
3508# Provide some information about the compiler.
3509$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3510set X $ac_compile
3511ac_compiler=$2
3512for ac_option in --version -v -V -qversion; do
3513  { { ac_try="$ac_compiler $ac_option >&5"
3514case "(($ac_try" in
3515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516  *) ac_try_echo=$ac_try;;
3517esac
3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519$as_echo "$ac_try_echo"; } >&5
3520  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3521  ac_status=$?
3522  if test -s conftest.err; then
3523    sed '10a\
3524... rest of stderr output deleted ...
3525         10q' conftest.err >conftest.er1
3526    cat conftest.er1 >&5
3527  fi
3528  rm -f conftest.er1 conftest.err
3529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530  test $ac_status = 0; }
3531done
3532
3533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534/* end confdefs.h.  */
3535
3536int
3537main ()
3538{
3539
3540  ;
3541  return 0;
3542}
3543_ACEOF
3544ac_clean_files_save=$ac_clean_files
3545ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3546# Try to create an executable without -o first, disregard a.out.
3547# It will help us diagnose broken compilers, and finding out an intuition
3548# of exeext.
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3550$as_echo_n "checking whether the C compiler works... " >&6; }
3551ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3552
3553# The possible output files:
3554ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3555
3556ac_rmfiles=
3557for ac_file in $ac_files
3558do
3559  case $ac_file in
3560    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3561    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3562  esac
3563done
3564rm -f $ac_rmfiles
3565
3566if { { ac_try="$ac_link_default"
3567case "(($ac_try" in
3568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569  *) ac_try_echo=$ac_try;;
3570esac
3571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572$as_echo "$ac_try_echo"; } >&5
3573  (eval "$ac_link_default") 2>&5
3574  ac_status=$?
3575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576  test $ac_status = 0; }; then :
3577  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3578# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3579# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3580# so that the user can short-circuit this test for compilers unknown to
3581# Autoconf.
3582for ac_file in $ac_files ''
3583do
3584  test -f "$ac_file" || continue
3585  case $ac_file in
3586    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3587	;;
3588    [ab].out )
3589	# We found the default executable, but exeext='' is most
3590	# certainly right.
3591	break;;
3592    *.* )
3593	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3594	then :; else
3595	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3596	fi
3597	# We set ac_cv_exeext here because the later test for it is not
3598	# safe: cross compilers may not add the suffix if given an `-o'
3599	# argument, so we may need to know it at that point already.
3600	# Even if this section looks crufty: it has the advantage of
3601	# actually working.
3602	break;;
3603    * )
3604	break;;
3605  esac
3606done
3607test "$ac_cv_exeext" = no && ac_cv_exeext=
3608
3609else
3610  ac_file=''
3611fi
3612if test -z "$ac_file"; then :
3613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614$as_echo "no" >&6; }
3615$as_echo "$as_me: failed program was:" >&5
3616sed 's/^/| /' conftest.$ac_ext >&5
3617
3618{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620as_fn_error 77 "C compiler cannot create executables
3621See \`config.log' for more details" "$LINENO" 5; }
3622else
3623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3624$as_echo "yes" >&6; }
3625fi
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3627$as_echo_n "checking for C compiler default output file name... " >&6; }
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3629$as_echo "$ac_file" >&6; }
3630ac_exeext=$ac_cv_exeext
3631
3632rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3633ac_clean_files=$ac_clean_files_save
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3635$as_echo_n "checking for suffix of executables... " >&6; }
3636if { { ac_try="$ac_link"
3637case "(($ac_try" in
3638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639  *) ac_try_echo=$ac_try;;
3640esac
3641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642$as_echo "$ac_try_echo"; } >&5
3643  (eval "$ac_link") 2>&5
3644  ac_status=$?
3645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646  test $ac_status = 0; }; then :
3647  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3648# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3649# work properly (i.e., refer to `conftest.exe'), while it won't with
3650# `rm'.
3651for ac_file in conftest.exe conftest conftest.*; do
3652  test -f "$ac_file" || continue
3653  case $ac_file in
3654    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3655    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3656	  break;;
3657    * ) break;;
3658  esac
3659done
3660else
3661  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3664See \`config.log' for more details" "$LINENO" 5; }
3665fi
3666rm -f conftest conftest$ac_cv_exeext
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3668$as_echo "$ac_cv_exeext" >&6; }
3669
3670rm -f conftest.$ac_ext
3671EXEEXT=$ac_cv_exeext
3672ac_exeext=$EXEEXT
3673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674/* end confdefs.h.  */
3675#include <stdio.h>
3676int
3677main ()
3678{
3679FILE *f = fopen ("conftest.out", "w");
3680 return ferror (f) || fclose (f) != 0;
3681
3682  ;
3683  return 0;
3684}
3685_ACEOF
3686ac_clean_files="$ac_clean_files conftest.out"
3687# Check that the compiler produces executables we can run.  If not, either
3688# the compiler is broken, or we cross compile.
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3690$as_echo_n "checking whether we are cross compiling... " >&6; }
3691if test "$cross_compiling" != yes; then
3692  { { ac_try="$ac_link"
3693case "(($ac_try" in
3694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695  *) ac_try_echo=$ac_try;;
3696esac
3697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3698$as_echo "$ac_try_echo"; } >&5
3699  (eval "$ac_link") 2>&5
3700  ac_status=$?
3701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3702  test $ac_status = 0; }
3703  if { ac_try='./conftest$ac_cv_exeext'
3704  { { case "(($ac_try" in
3705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706  *) ac_try_echo=$ac_try;;
3707esac
3708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3709$as_echo "$ac_try_echo"; } >&5
3710  (eval "$ac_try") 2>&5
3711  ac_status=$?
3712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713  test $ac_status = 0; }; }; then
3714    cross_compiling=no
3715  else
3716    if test "$cross_compiling" = maybe; then
3717	cross_compiling=yes
3718    else
3719	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721as_fn_error $? "cannot run C compiled programs.
3722If you meant to cross compile, use \`--host'.
3723See \`config.log' for more details" "$LINENO" 5; }
3724    fi
3725  fi
3726fi
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3728$as_echo "$cross_compiling" >&6; }
3729
3730rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3731ac_clean_files=$ac_clean_files_save
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3733$as_echo_n "checking for suffix of object files... " >&6; }
3734if ${ac_cv_objext+:} false; then :
3735  $as_echo_n "(cached) " >&6
3736else
3737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738/* end confdefs.h.  */
3739
3740int
3741main ()
3742{
3743
3744  ;
3745  return 0;
3746}
3747_ACEOF
3748rm -f conftest.o conftest.obj
3749if { { ac_try="$ac_compile"
3750case "(($ac_try" in
3751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752  *) ac_try_echo=$ac_try;;
3753esac
3754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755$as_echo "$ac_try_echo"; } >&5
3756  (eval "$ac_compile") 2>&5
3757  ac_status=$?
3758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759  test $ac_status = 0; }; then :
3760  for ac_file in conftest.o conftest.obj conftest.*; do
3761  test -f "$ac_file" || continue;
3762  case $ac_file in
3763    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3764    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3765       break;;
3766  esac
3767done
3768else
3769  $as_echo "$as_me: failed program was:" >&5
3770sed 's/^/| /' conftest.$ac_ext >&5
3771
3772{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3774as_fn_error $? "cannot compute suffix of object files: cannot compile
3775See \`config.log' for more details" "$LINENO" 5; }
3776fi
3777rm -f conftest.$ac_cv_objext conftest.$ac_ext
3778fi
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3780$as_echo "$ac_cv_objext" >&6; }
3781OBJEXT=$ac_cv_objext
3782ac_objext=$OBJEXT
3783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3784$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3785if ${ac_cv_c_compiler_gnu+:} false; then :
3786  $as_echo_n "(cached) " >&6
3787else
3788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789/* end confdefs.h.  */
3790
3791int
3792main ()
3793{
3794#ifndef __GNUC__
3795       choke me
3796#endif
3797
3798  ;
3799  return 0;
3800}
3801_ACEOF
3802if ac_fn_c_try_compile "$LINENO"; then :
3803  ac_compiler_gnu=yes
3804else
3805  ac_compiler_gnu=no
3806fi
3807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808ac_cv_c_compiler_gnu=$ac_compiler_gnu
3809
3810fi
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3812$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3813if test $ac_compiler_gnu = yes; then
3814  GCC=yes
3815else
3816  GCC=
3817fi
3818ac_test_CFLAGS=${CFLAGS+set}
3819ac_save_CFLAGS=$CFLAGS
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3821$as_echo_n "checking whether $CC accepts -g... " >&6; }
3822if ${ac_cv_prog_cc_g+:} false; then :
3823  $as_echo_n "(cached) " >&6
3824else
3825  ac_save_c_werror_flag=$ac_c_werror_flag
3826   ac_c_werror_flag=yes
3827   ac_cv_prog_cc_g=no
3828   CFLAGS="-g"
3829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830/* end confdefs.h.  */
3831
3832int
3833main ()
3834{
3835
3836  ;
3837  return 0;
3838}
3839_ACEOF
3840if ac_fn_c_try_compile "$LINENO"; then :
3841  ac_cv_prog_cc_g=yes
3842else
3843  CFLAGS=""
3844      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845/* end confdefs.h.  */
3846
3847int
3848main ()
3849{
3850
3851  ;
3852  return 0;
3853}
3854_ACEOF
3855if ac_fn_c_try_compile "$LINENO"; then :
3856
3857else
3858  ac_c_werror_flag=$ac_save_c_werror_flag
3859	 CFLAGS="-g"
3860	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861/* end confdefs.h.  */
3862
3863int
3864main ()
3865{
3866
3867  ;
3868  return 0;
3869}
3870_ACEOF
3871if ac_fn_c_try_compile "$LINENO"; then :
3872  ac_cv_prog_cc_g=yes
3873fi
3874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875fi
3876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877fi
3878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879   ac_c_werror_flag=$ac_save_c_werror_flag
3880fi
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3882$as_echo "$ac_cv_prog_cc_g" >&6; }
3883if test "$ac_test_CFLAGS" = set; then
3884  CFLAGS=$ac_save_CFLAGS
3885elif test $ac_cv_prog_cc_g = yes; then
3886  if test "$GCC" = yes; then
3887    CFLAGS="-g -O2"
3888  else
3889    CFLAGS="-g"
3890  fi
3891else
3892  if test "$GCC" = yes; then
3893    CFLAGS="-O2"
3894  else
3895    CFLAGS=
3896  fi
3897fi
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3899$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3900if ${ac_cv_prog_cc_c89+:} false; then :
3901  $as_echo_n "(cached) " >&6
3902else
3903  ac_cv_prog_cc_c89=no
3904ac_save_CC=$CC
3905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906/* end confdefs.h.  */
3907#include <stdarg.h>
3908#include <stdio.h>
3909#include <sys/types.h>
3910#include <sys/stat.h>
3911/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3912struct buf { int x; };
3913FILE * (*rcsopen) (struct buf *, struct stat *, int);
3914static char *e (p, i)
3915     char **p;
3916     int i;
3917{
3918  return p[i];
3919}
3920static char *f (char * (*g) (char **, int), char **p, ...)
3921{
3922  char *s;
3923  va_list v;
3924  va_start (v,p);
3925  s = g (p, va_arg (v,int));
3926  va_end (v);
3927  return s;
3928}
3929
3930/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3931   function prototypes and stuff, but not '\xHH' hex character constants.
3932   These don't provoke an error unfortunately, instead are silently treated
3933   as 'x'.  The following induces an error, until -std is added to get
3934   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3935   array size at least.  It's necessary to write '\x00'==0 to get something
3936   that's true only with -std.  */
3937int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3938
3939/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3940   inside strings and character constants.  */
3941#define FOO(x) 'x'
3942int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3943
3944int test (int i, double x);
3945struct s1 {int (*f) (int a);};
3946struct s2 {int (*f) (double a);};
3947int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3948int argc;
3949char **argv;
3950int
3951main ()
3952{
3953return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3954  ;
3955  return 0;
3956}
3957_ACEOF
3958for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3959	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3960do
3961  CC="$ac_save_CC $ac_arg"
3962  if ac_fn_c_try_compile "$LINENO"; then :
3963  ac_cv_prog_cc_c89=$ac_arg
3964fi
3965rm -f core conftest.err conftest.$ac_objext
3966  test "x$ac_cv_prog_cc_c89" != "xno" && break
3967done
3968rm -f conftest.$ac_ext
3969CC=$ac_save_CC
3970
3971fi
3972# AC_CACHE_VAL
3973case "x$ac_cv_prog_cc_c89" in
3974  x)
3975    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3976$as_echo "none needed" >&6; } ;;
3977  xno)
3978    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3979$as_echo "unsupported" >&6; } ;;
3980  *)
3981    CC="$CC $ac_cv_prog_cc_c89"
3982    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3983$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3984esac
3985if test "x$ac_cv_prog_cc_c89" != xno; then :
3986
3987fi
3988
3989ac_ext=c
3990ac_cpp='$CPP $CPPFLAGS'
3991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994
3995ac_ext=c
3996ac_cpp='$CPP $CPPFLAGS'
3997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4001$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4002if ${am_cv_prog_cc_c_o+:} false; then :
4003  $as_echo_n "(cached) " >&6
4004else
4005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006/* end confdefs.h.  */
4007
4008int
4009main ()
4010{
4011
4012  ;
4013  return 0;
4014}
4015_ACEOF
4016  # Make sure it works both with $CC and with simple cc.
4017  # Following AC_PROG_CC_C_O, we do the test twice because some
4018  # compilers refuse to overwrite an existing .o file with -o,
4019  # though they will create one.
4020  am_cv_prog_cc_c_o=yes
4021  for am_i in 1 2; do
4022    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4023   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4024   ac_status=$?
4025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026   (exit $ac_status); } \
4027         && test -f conftest2.$ac_objext; then
4028      : OK
4029    else
4030      am_cv_prog_cc_c_o=no
4031      break
4032    fi
4033  done
4034  rm -f core conftest*
4035  unset am_i
4036fi
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4038$as_echo "$am_cv_prog_cc_c_o" >&6; }
4039if test "$am_cv_prog_cc_c_o" != yes; then
4040   # Losing compiler, so override with the script.
4041   # FIXME: It is wrong to rewrite CC.
4042   # But if we don't then we get into trouble of one sort or another.
4043   # A longer-term fix would be to have automake use am__CC in this case,
4044   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4045   CC="$am_aux_dir/compile $CC"
4046fi
4047ac_ext=c
4048ac_cpp='$CPP $CPPFLAGS'
4049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052
4053
4054depcc="$CC"   am_compiler_list=
4055
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4057$as_echo_n "checking dependency style of $depcc... " >&6; }
4058if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4059  $as_echo_n "(cached) " >&6
4060else
4061  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4062  # We make a subdir and do the tests there.  Otherwise we can end up
4063  # making bogus files that we don't know about and never remove.  For
4064  # instance it was reported that on HP-UX the gcc test will end up
4065  # making a dummy file named 'D' -- because '-MD' means "put the output
4066  # in D".
4067  rm -rf conftest.dir
4068  mkdir conftest.dir
4069  # Copy depcomp to subdir because otherwise we won't find it if we're
4070  # using a relative directory.
4071  cp "$am_depcomp" conftest.dir
4072  cd conftest.dir
4073  # We will build objects and dependencies in a subdirectory because
4074  # it helps to detect inapplicable dependency modes.  For instance
4075  # both Tru64's cc and ICC support -MD to output dependencies as a
4076  # side effect of compilation, but ICC will put the dependencies in
4077  # the current directory while Tru64 will put them in the object
4078  # directory.
4079  mkdir sub
4080
4081  am_cv_CC_dependencies_compiler_type=none
4082  if test "$am_compiler_list" = ""; then
4083     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4084  fi
4085  am__universal=false
4086  case " $depcc " in #(
4087     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4088     esac
4089
4090  for depmode in $am_compiler_list; do
4091    # Setup a source with many dependencies, because some compilers
4092    # like to wrap large dependency lists on column 80 (with \), and
4093    # we should not choose a depcomp mode which is confused by this.
4094    #
4095    # We need to recreate these files for each test, as the compiler may
4096    # overwrite some of them when testing with obscure command lines.
4097    # This happens at least with the AIX C compiler.
4098    : > sub/conftest.c
4099    for i in 1 2 3 4 5 6; do
4100      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4101      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4102      # Solaris 10 /bin/sh.
4103      echo '/* dummy */' > sub/conftst$i.h
4104    done
4105    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4106
4107    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4108    # mode.  It turns out that the SunPro C++ compiler does not properly
4109    # handle '-M -o', and we need to detect this.  Also, some Intel
4110    # versions had trouble with output in subdirs.
4111    am__obj=sub/conftest.${OBJEXT-o}
4112    am__minus_obj="-o $am__obj"
4113    case $depmode in
4114    gcc)
4115      # This depmode causes a compiler race in universal mode.
4116      test "$am__universal" = false || continue
4117      ;;
4118    nosideeffect)
4119      # After this tag, mechanisms are not by side-effect, so they'll
4120      # only be used when explicitly requested.
4121      if test "x$enable_dependency_tracking" = xyes; then
4122	continue
4123      else
4124	break
4125      fi
4126      ;;
4127    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4128      # This compiler won't grok '-c -o', but also, the minuso test has
4129      # not run yet.  These depmodes are late enough in the game, and
4130      # so weak that their functioning should not be impacted.
4131      am__obj=conftest.${OBJEXT-o}
4132      am__minus_obj=
4133      ;;
4134    none) break ;;
4135    esac
4136    if depmode=$depmode \
4137       source=sub/conftest.c object=$am__obj \
4138       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4139       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4140         >/dev/null 2>conftest.err &&
4141       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4142       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4143       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4144       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4145      # icc doesn't choke on unknown options, it will just issue warnings
4146      # or remarks (even with -Werror).  So we grep stderr for any message
4147      # that says an option was ignored or not supported.
4148      # When given -MP, icc 7.0 and 7.1 complain thusly:
4149      #   icc: Command line warning: ignoring option '-M'; no argument required
4150      # The diagnosis changed in icc 8.0:
4151      #   icc: Command line remark: option '-MP' not supported
4152      if (grep 'ignoring option' conftest.err ||
4153          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4154        am_cv_CC_dependencies_compiler_type=$depmode
4155        break
4156      fi
4157    fi
4158  done
4159
4160  cd ..
4161  rm -rf conftest.dir
4162else
4163  am_cv_CC_dependencies_compiler_type=none
4164fi
4165
4166fi
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4168$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4169CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4170
4171 if
4172  test "x$enable_dependency_tracking" != xno \
4173  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4174  am__fastdepCC_TRUE=
4175  am__fastdepCC_FALSE='#'
4176else
4177  am__fastdepCC_TRUE='#'
4178  am__fastdepCC_FALSE=
4179fi
4180
4181
4182
4183ac_ext=c
4184ac_cpp='$CPP $CPPFLAGS'
4185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4189$as_echo_n "checking how to run the C preprocessor... " >&6; }
4190# On Suns, sometimes $CPP names a directory.
4191if test -n "$CPP" && test -d "$CPP"; then
4192  CPP=
4193fi
4194if test -z "$CPP"; then
4195  if ${ac_cv_prog_CPP+:} false; then :
4196  $as_echo_n "(cached) " >&6
4197else
4198      # Double quotes because CPP needs to be expanded
4199    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4200    do
4201      ac_preproc_ok=false
4202for ac_c_preproc_warn_flag in '' yes
4203do
4204  # Use a header file that comes with gcc, so configuring glibc
4205  # with a fresh cross-compiler works.
4206  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4207  # <limits.h> exists even on freestanding compilers.
4208  # On the NeXT, cc -E runs the code through the compiler's parser,
4209  # not just through cpp. "Syntax error" is here to catch this case.
4210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211/* end confdefs.h.  */
4212#ifdef __STDC__
4213# include <limits.h>
4214#else
4215# include <assert.h>
4216#endif
4217		     Syntax error
4218_ACEOF
4219if ac_fn_c_try_cpp "$LINENO"; then :
4220
4221else
4222  # Broken: fails on valid input.
4223continue
4224fi
4225rm -f conftest.err conftest.i conftest.$ac_ext
4226
4227  # OK, works on sane cases.  Now check whether nonexistent headers
4228  # can be detected and how.
4229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230/* end confdefs.h.  */
4231#include <ac_nonexistent.h>
4232_ACEOF
4233if ac_fn_c_try_cpp "$LINENO"; then :
4234  # Broken: success on invalid input.
4235continue
4236else
4237  # Passes both tests.
4238ac_preproc_ok=:
4239break
4240fi
4241rm -f conftest.err conftest.i conftest.$ac_ext
4242
4243done
4244# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4245rm -f conftest.i conftest.err conftest.$ac_ext
4246if $ac_preproc_ok; then :
4247  break
4248fi
4249
4250    done
4251    ac_cv_prog_CPP=$CPP
4252
4253fi
4254  CPP=$ac_cv_prog_CPP
4255else
4256  ac_cv_prog_CPP=$CPP
4257fi
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4259$as_echo "$CPP" >&6; }
4260ac_preproc_ok=false
4261for ac_c_preproc_warn_flag in '' yes
4262do
4263  # Use a header file that comes with gcc, so configuring glibc
4264  # with a fresh cross-compiler works.
4265  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4266  # <limits.h> exists even on freestanding compilers.
4267  # On the NeXT, cc -E runs the code through the compiler's parser,
4268  # not just through cpp. "Syntax error" is here to catch this case.
4269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270/* end confdefs.h.  */
4271#ifdef __STDC__
4272# include <limits.h>
4273#else
4274# include <assert.h>
4275#endif
4276		     Syntax error
4277_ACEOF
4278if ac_fn_c_try_cpp "$LINENO"; then :
4279
4280else
4281  # Broken: fails on valid input.
4282continue
4283fi
4284rm -f conftest.err conftest.i conftest.$ac_ext
4285
4286  # OK, works on sane cases.  Now check whether nonexistent headers
4287  # can be detected and how.
4288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289/* end confdefs.h.  */
4290#include <ac_nonexistent.h>
4291_ACEOF
4292if ac_fn_c_try_cpp "$LINENO"; then :
4293  # Broken: success on invalid input.
4294continue
4295else
4296  # Passes both tests.
4297ac_preproc_ok=:
4298break
4299fi
4300rm -f conftest.err conftest.i conftest.$ac_ext
4301
4302done
4303# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4304rm -f conftest.i conftest.err conftest.$ac_ext
4305if $ac_preproc_ok; then :
4306
4307else
4308  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4310as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4311See \`config.log' for more details" "$LINENO" 5; }
4312fi
4313
4314ac_ext=c
4315ac_cpp='$CPP $CPPFLAGS'
4316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319
4320
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4322$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4323if ${ac_cv_path_GREP+:} false; then :
4324  $as_echo_n "(cached) " >&6
4325else
4326  if test -z "$GREP"; then
4327  ac_path_GREP_found=false
4328  # Loop through the user's path and test for each of PROGNAME-LIST
4329  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4331do
4332  IFS=$as_save_IFS
4333  test -z "$as_dir" && as_dir=.
4334    for ac_prog in grep ggrep; do
4335    for ac_exec_ext in '' $ac_executable_extensions; do
4336      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4337      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4338# Check for GNU ac_path_GREP and select it if it is found.
4339  # Check for GNU $ac_path_GREP
4340case `"$ac_path_GREP" --version 2>&1` in
4341*GNU*)
4342  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4343*)
4344  ac_count=0
4345  $as_echo_n 0123456789 >"conftest.in"
4346  while :
4347  do
4348    cat "conftest.in" "conftest.in" >"conftest.tmp"
4349    mv "conftest.tmp" "conftest.in"
4350    cp "conftest.in" "conftest.nl"
4351    $as_echo 'GREP' >> "conftest.nl"
4352    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4353    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4354    as_fn_arith $ac_count + 1 && ac_count=$as_val
4355    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4356      # Best one so far, save it but keep looking for a better one
4357      ac_cv_path_GREP="$ac_path_GREP"
4358      ac_path_GREP_max=$ac_count
4359    fi
4360    # 10*(2^10) chars as input seems more than enough
4361    test $ac_count -gt 10 && break
4362  done
4363  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4364esac
4365
4366      $ac_path_GREP_found && break 3
4367    done
4368  done
4369  done
4370IFS=$as_save_IFS
4371  if test -z "$ac_cv_path_GREP"; then
4372    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4373  fi
4374else
4375  ac_cv_path_GREP=$GREP
4376fi
4377
4378fi
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4380$as_echo "$ac_cv_path_GREP" >&6; }
4381 GREP="$ac_cv_path_GREP"
4382
4383
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4385$as_echo_n "checking for egrep... " >&6; }
4386if ${ac_cv_path_EGREP+:} false; then :
4387  $as_echo_n "(cached) " >&6
4388else
4389  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4390   then ac_cv_path_EGREP="$GREP -E"
4391   else
4392     if test -z "$EGREP"; then
4393  ac_path_EGREP_found=false
4394  # Loop through the user's path and test for each of PROGNAME-LIST
4395  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4397do
4398  IFS=$as_save_IFS
4399  test -z "$as_dir" && as_dir=.
4400    for ac_prog in egrep; do
4401    for ac_exec_ext in '' $ac_executable_extensions; do
4402      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4403      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4404# Check for GNU ac_path_EGREP and select it if it is found.
4405  # Check for GNU $ac_path_EGREP
4406case `"$ac_path_EGREP" --version 2>&1` in
4407*GNU*)
4408  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4409*)
4410  ac_count=0
4411  $as_echo_n 0123456789 >"conftest.in"
4412  while :
4413  do
4414    cat "conftest.in" "conftest.in" >"conftest.tmp"
4415    mv "conftest.tmp" "conftest.in"
4416    cp "conftest.in" "conftest.nl"
4417    $as_echo 'EGREP' >> "conftest.nl"
4418    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4419    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4420    as_fn_arith $ac_count + 1 && ac_count=$as_val
4421    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4422      # Best one so far, save it but keep looking for a better one
4423      ac_cv_path_EGREP="$ac_path_EGREP"
4424      ac_path_EGREP_max=$ac_count
4425    fi
4426    # 10*(2^10) chars as input seems more than enough
4427    test $ac_count -gt 10 && break
4428  done
4429  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4430esac
4431
4432      $ac_path_EGREP_found && break 3
4433    done
4434  done
4435  done
4436IFS=$as_save_IFS
4437  if test -z "$ac_cv_path_EGREP"; then
4438    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4439  fi
4440else
4441  ac_cv_path_EGREP=$EGREP
4442fi
4443
4444   fi
4445fi
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4447$as_echo "$ac_cv_path_EGREP" >&6; }
4448 EGREP="$ac_cv_path_EGREP"
4449
4450
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4452$as_echo_n "checking for ANSI C header files... " >&6; }
4453if ${ac_cv_header_stdc+:} false; then :
4454  $as_echo_n "(cached) " >&6
4455else
4456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457/* end confdefs.h.  */
4458#include <stdlib.h>
4459#include <stdarg.h>
4460#include <string.h>
4461#include <float.h>
4462
4463int
4464main ()
4465{
4466
4467  ;
4468  return 0;
4469}
4470_ACEOF
4471if ac_fn_c_try_compile "$LINENO"; then :
4472  ac_cv_header_stdc=yes
4473else
4474  ac_cv_header_stdc=no
4475fi
4476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477
4478if test $ac_cv_header_stdc = yes; then
4479  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481/* end confdefs.h.  */
4482#include <string.h>
4483
4484_ACEOF
4485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486  $EGREP "memchr" >/dev/null 2>&1; then :
4487
4488else
4489  ac_cv_header_stdc=no
4490fi
4491rm -f conftest*
4492
4493fi
4494
4495if test $ac_cv_header_stdc = yes; then
4496  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498/* end confdefs.h.  */
4499#include <stdlib.h>
4500
4501_ACEOF
4502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4503  $EGREP "free" >/dev/null 2>&1; then :
4504
4505else
4506  ac_cv_header_stdc=no
4507fi
4508rm -f conftest*
4509
4510fi
4511
4512if test $ac_cv_header_stdc = yes; then
4513  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4514  if test "$cross_compiling" = yes; then :
4515  :
4516else
4517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518/* end confdefs.h.  */
4519#include <ctype.h>
4520#include <stdlib.h>
4521#if ((' ' & 0x0FF) == 0x020)
4522# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4523# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4524#else
4525# define ISLOWER(c) \
4526		   (('a' <= (c) && (c) <= 'i') \
4527		     || ('j' <= (c) && (c) <= 'r') \
4528		     || ('s' <= (c) && (c) <= 'z'))
4529# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4530#endif
4531
4532#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4533int
4534main ()
4535{
4536  int i;
4537  for (i = 0; i < 256; i++)
4538    if (XOR (islower (i), ISLOWER (i))
4539	|| toupper (i) != TOUPPER (i))
4540      return 2;
4541  return 0;
4542}
4543_ACEOF
4544if ac_fn_c_try_run "$LINENO"; then :
4545
4546else
4547  ac_cv_header_stdc=no
4548fi
4549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4550  conftest.$ac_objext conftest.beam conftest.$ac_ext
4551fi
4552
4553fi
4554fi
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4556$as_echo "$ac_cv_header_stdc" >&6; }
4557if test $ac_cv_header_stdc = yes; then
4558
4559$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4560
4561fi
4562
4563# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4564for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4565		  inttypes.h stdint.h unistd.h
4566do :
4567  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4568ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4569"
4570if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4571  cat >>confdefs.h <<_ACEOF
4572#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4573_ACEOF
4574
4575fi
4576
4577done
4578
4579
4580
4581  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4582if test "x$ac_cv_header_minix_config_h" = xyes; then :
4583  MINIX=yes
4584else
4585  MINIX=
4586fi
4587
4588
4589  if test "$MINIX" = yes; then
4590
4591$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4592
4593
4594$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4595
4596
4597$as_echo "#define _MINIX 1" >>confdefs.h
4598
4599  fi
4600
4601
4602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4603$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4604if ${ac_cv_safe_to_define___extensions__+:} false; then :
4605  $as_echo_n "(cached) " >&6
4606else
4607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608/* end confdefs.h.  */
4609
4610#	  define __EXTENSIONS__ 1
4611	  $ac_includes_default
4612int
4613main ()
4614{
4615
4616  ;
4617  return 0;
4618}
4619_ACEOF
4620if ac_fn_c_try_compile "$LINENO"; then :
4621  ac_cv_safe_to_define___extensions__=yes
4622else
4623  ac_cv_safe_to_define___extensions__=no
4624fi
4625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626fi
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4628$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4629  test $ac_cv_safe_to_define___extensions__ = yes &&
4630    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4631
4632  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4633
4634  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4635
4636  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4637
4638  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4639
4640
4641
4642# Initialize libtool
4643case `pwd` in
4644  *\ * | *\	*)
4645    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4646$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4647esac
4648
4649
4650
4651macro_version='2.4.2'
4652macro_revision='1.3337'
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666ltmain="$ac_aux_dir/ltmain.sh"
4667
4668# Make sure we can run config.sub.
4669$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4670  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4671
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4673$as_echo_n "checking build system type... " >&6; }
4674if ${ac_cv_build+:} false; then :
4675  $as_echo_n "(cached) " >&6
4676else
4677  ac_build_alias=$build_alias
4678test "x$ac_build_alias" = x &&
4679  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4680test "x$ac_build_alias" = x &&
4681  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4682ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4683  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4684
4685fi
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4687$as_echo "$ac_cv_build" >&6; }
4688case $ac_cv_build in
4689*-*-*) ;;
4690*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4691esac
4692build=$ac_cv_build
4693ac_save_IFS=$IFS; IFS='-'
4694set x $ac_cv_build
4695shift
4696build_cpu=$1
4697build_vendor=$2
4698shift; shift
4699# Remember, the first character of IFS is used to create $*,
4700# except with old shells:
4701build_os=$*
4702IFS=$ac_save_IFS
4703case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4704
4705
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4707$as_echo_n "checking host system type... " >&6; }
4708if ${ac_cv_host+:} false; then :
4709  $as_echo_n "(cached) " >&6
4710else
4711  if test "x$host_alias" = x; then
4712  ac_cv_host=$ac_cv_build
4713else
4714  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4715    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4716fi
4717
4718fi
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4720$as_echo "$ac_cv_host" >&6; }
4721case $ac_cv_host in
4722*-*-*) ;;
4723*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4724esac
4725host=$ac_cv_host
4726ac_save_IFS=$IFS; IFS='-'
4727set x $ac_cv_host
4728shift
4729host_cpu=$1
4730host_vendor=$2
4731shift; shift
4732# Remember, the first character of IFS is used to create $*,
4733# except with old shells:
4734host_os=$*
4735IFS=$ac_save_IFS
4736case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4737
4738
4739# Backslashify metacharacters that are still active within
4740# double-quoted strings.
4741sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4742
4743# Same as above, but do not quote variable references.
4744double_quote_subst='s/\(["`\\]\)/\\\1/g'
4745
4746# Sed substitution to delay expansion of an escaped shell variable in a
4747# double_quote_subst'ed string.
4748delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4749
4750# Sed substitution to delay expansion of an escaped single quote.
4751delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4752
4753# Sed substitution to avoid accidental globbing in evaled expressions
4754no_glob_subst='s/\*/\\\*/g'
4755
4756ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4757ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4758ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4759
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4761$as_echo_n "checking how to print strings... " >&6; }
4762# Test print first, because it will be a builtin if present.
4763if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4764   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4765  ECHO='print -r --'
4766elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4767  ECHO='printf %s\n'
4768else
4769  # Use this function as a fallback that always works.
4770  func_fallback_echo ()
4771  {
4772    eval 'cat <<_LTECHO_EOF
4773$1
4774_LTECHO_EOF'
4775  }
4776  ECHO='func_fallback_echo'
4777fi
4778
4779# func_echo_all arg...
4780# Invoke $ECHO with all args, space-separated.
4781func_echo_all ()
4782{
4783    $ECHO ""
4784}
4785
4786case "$ECHO" in
4787  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4788$as_echo "printf" >&6; } ;;
4789  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4790$as_echo "print -r" >&6; } ;;
4791  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4792$as_echo "cat" >&6; } ;;
4793esac
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4809$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4810if ${ac_cv_path_SED+:} false; then :
4811  $as_echo_n "(cached) " >&6
4812else
4813            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4814     for ac_i in 1 2 3 4 5 6 7; do
4815       ac_script="$ac_script$as_nl$ac_script"
4816     done
4817     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4818     { ac_script=; unset ac_script;}
4819     if test -z "$SED"; then
4820  ac_path_SED_found=false
4821  # Loop through the user's path and test for each of PROGNAME-LIST
4822  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823for as_dir in $PATH
4824do
4825  IFS=$as_save_IFS
4826  test -z "$as_dir" && as_dir=.
4827    for ac_prog in sed gsed; do
4828    for ac_exec_ext in '' $ac_executable_extensions; do
4829      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4830      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4831# Check for GNU ac_path_SED and select it if it is found.
4832  # Check for GNU $ac_path_SED
4833case `"$ac_path_SED" --version 2>&1` in
4834*GNU*)
4835  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4836*)
4837  ac_count=0
4838  $as_echo_n 0123456789 >"conftest.in"
4839  while :
4840  do
4841    cat "conftest.in" "conftest.in" >"conftest.tmp"
4842    mv "conftest.tmp" "conftest.in"
4843    cp "conftest.in" "conftest.nl"
4844    $as_echo '' >> "conftest.nl"
4845    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4846    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4847    as_fn_arith $ac_count + 1 && ac_count=$as_val
4848    if test $ac_count -gt ${ac_path_SED_max-0}; then
4849      # Best one so far, save it but keep looking for a better one
4850      ac_cv_path_SED="$ac_path_SED"
4851      ac_path_SED_max=$ac_count
4852    fi
4853    # 10*(2^10) chars as input seems more than enough
4854    test $ac_count -gt 10 && break
4855  done
4856  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4857esac
4858
4859      $ac_path_SED_found && break 3
4860    done
4861  done
4862  done
4863IFS=$as_save_IFS
4864  if test -z "$ac_cv_path_SED"; then
4865    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4866  fi
4867else
4868  ac_cv_path_SED=$SED
4869fi
4870
4871fi
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4873$as_echo "$ac_cv_path_SED" >&6; }
4874 SED="$ac_cv_path_SED"
4875  rm -f conftest.sed
4876
4877test -z "$SED" && SED=sed
4878Xsed="$SED -e 1s/^X//"
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4891$as_echo_n "checking for fgrep... " >&6; }
4892if ${ac_cv_path_FGREP+:} false; then :
4893  $as_echo_n "(cached) " >&6
4894else
4895  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4896   then ac_cv_path_FGREP="$GREP -F"
4897   else
4898     if test -z "$FGREP"; then
4899  ac_path_FGREP_found=false
4900  # Loop through the user's path and test for each of PROGNAME-LIST
4901  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4903do
4904  IFS=$as_save_IFS
4905  test -z "$as_dir" && as_dir=.
4906    for ac_prog in fgrep; do
4907    for ac_exec_ext in '' $ac_executable_extensions; do
4908      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4909      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4910# Check for GNU ac_path_FGREP and select it if it is found.
4911  # Check for GNU $ac_path_FGREP
4912case `"$ac_path_FGREP" --version 2>&1` in
4913*GNU*)
4914  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4915*)
4916  ac_count=0
4917  $as_echo_n 0123456789 >"conftest.in"
4918  while :
4919  do
4920    cat "conftest.in" "conftest.in" >"conftest.tmp"
4921    mv "conftest.tmp" "conftest.in"
4922    cp "conftest.in" "conftest.nl"
4923    $as_echo 'FGREP' >> "conftest.nl"
4924    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4925    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4926    as_fn_arith $ac_count + 1 && ac_count=$as_val
4927    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4928      # Best one so far, save it but keep looking for a better one
4929      ac_cv_path_FGREP="$ac_path_FGREP"
4930      ac_path_FGREP_max=$ac_count
4931    fi
4932    # 10*(2^10) chars as input seems more than enough
4933    test $ac_count -gt 10 && break
4934  done
4935  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4936esac
4937
4938      $ac_path_FGREP_found && break 3
4939    done
4940  done
4941  done
4942IFS=$as_save_IFS
4943  if test -z "$ac_cv_path_FGREP"; then
4944    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4945  fi
4946else
4947  ac_cv_path_FGREP=$FGREP
4948fi
4949
4950   fi
4951fi
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4953$as_echo "$ac_cv_path_FGREP" >&6; }
4954 FGREP="$ac_cv_path_FGREP"
4955
4956
4957test -z "$GREP" && GREP=grep
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977# Check whether --with-gnu-ld was given.
4978if test "${with_gnu_ld+set}" = set; then :
4979  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4980else
4981  with_gnu_ld=no
4982fi
4983
4984ac_prog=ld
4985if test "$GCC" = yes; then
4986  # Check if gcc -print-prog-name=ld gives a path.
4987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4988$as_echo_n "checking for ld used by $CC... " >&6; }
4989  case $host in
4990  *-*-mingw*)
4991    # gcc leaves a trailing carriage return which upsets mingw
4992    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4993  *)
4994    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4995  esac
4996  case $ac_prog in
4997    # Accept absolute paths.
4998    [\\/]* | ?:[\\/]*)
4999      re_direlt='/[^/][^/]*/\.\./'
5000      # Canonicalize the pathname of ld
5001      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5002      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5003	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5004      done
5005      test -z "$LD" && LD="$ac_prog"
5006      ;;
5007  "")
5008    # If it fails, then pretend we aren't using GCC.
5009    ac_prog=ld
5010    ;;
5011  *)
5012    # If it is relative, then search for the first ld in PATH.
5013    with_gnu_ld=unknown
5014    ;;
5015  esac
5016elif test "$with_gnu_ld" = yes; then
5017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5018$as_echo_n "checking for GNU ld... " >&6; }
5019else
5020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5021$as_echo_n "checking for non-GNU ld... " >&6; }
5022fi
5023if ${lt_cv_path_LD+:} false; then :
5024  $as_echo_n "(cached) " >&6
5025else
5026  if test -z "$LD"; then
5027  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5028  for ac_dir in $PATH; do
5029    IFS="$lt_save_ifs"
5030    test -z "$ac_dir" && ac_dir=.
5031    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5032      lt_cv_path_LD="$ac_dir/$ac_prog"
5033      # Check to see if the program is GNU ld.  I'd rather use --version,
5034      # but apparently some variants of GNU ld only accept -v.
5035      # Break only if it was the GNU/non-GNU ld that we prefer.
5036      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5037      *GNU* | *'with BFD'*)
5038	test "$with_gnu_ld" != no && break
5039	;;
5040      *)
5041	test "$with_gnu_ld" != yes && break
5042	;;
5043      esac
5044    fi
5045  done
5046  IFS="$lt_save_ifs"
5047else
5048  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5049fi
5050fi
5051
5052LD="$lt_cv_path_LD"
5053if test -n "$LD"; then
5054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5055$as_echo "$LD" >&6; }
5056else
5057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058$as_echo "no" >&6; }
5059fi
5060test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5062$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5063if ${lt_cv_prog_gnu_ld+:} false; then :
5064  $as_echo_n "(cached) " >&6
5065else
5066  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5067case `$LD -v 2>&1 </dev/null` in
5068*GNU* | *'with BFD'*)
5069  lt_cv_prog_gnu_ld=yes
5070  ;;
5071*)
5072  lt_cv_prog_gnu_ld=no
5073  ;;
5074esac
5075fi
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5077$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5078with_gnu_ld=$lt_cv_prog_gnu_ld
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5089$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5090if ${lt_cv_path_NM+:} false; then :
5091  $as_echo_n "(cached) " >&6
5092else
5093  if test -n "$NM"; then
5094  # Let the user override the test.
5095  lt_cv_path_NM="$NM"
5096else
5097  lt_nm_to_check="${ac_tool_prefix}nm"
5098  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5099    lt_nm_to_check="$lt_nm_to_check nm"
5100  fi
5101  for lt_tmp_nm in $lt_nm_to_check; do
5102    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5103    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5104      IFS="$lt_save_ifs"
5105      test -z "$ac_dir" && ac_dir=.
5106      tmp_nm="$ac_dir/$lt_tmp_nm"
5107      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5108	# Check to see if the nm accepts a BSD-compat flag.
5109	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5110	#   nm: unknown option "B" ignored
5111	# Tru64's nm complains that /dev/null is an invalid object file
5112	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5113	*/dev/null* | *'Invalid file or object type'*)
5114	  lt_cv_path_NM="$tmp_nm -B"
5115	  break
5116	  ;;
5117	*)
5118	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5119	  */dev/null*)
5120	    lt_cv_path_NM="$tmp_nm -p"
5121	    break
5122	    ;;
5123	  *)
5124	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5125	    continue # so that we can try to find one that supports BSD flags
5126	    ;;
5127	  esac
5128	  ;;
5129	esac
5130      fi
5131    done
5132    IFS="$lt_save_ifs"
5133  done
5134  : ${lt_cv_path_NM=no}
5135fi
5136fi
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5138$as_echo "$lt_cv_path_NM" >&6; }
5139if test "$lt_cv_path_NM" != "no"; then
5140  NM="$lt_cv_path_NM"
5141else
5142  # Didn't find any BSD compatible name lister, look for dumpbin.
5143  if test -n "$DUMPBIN"; then :
5144    # Let the user override the test.
5145  else
5146    if test -n "$ac_tool_prefix"; then
5147  for ac_prog in dumpbin "link -dump"
5148  do
5149    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5150set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152$as_echo_n "checking for $ac_word... " >&6; }
5153if ${ac_cv_prog_DUMPBIN+:} false; then :
5154  $as_echo_n "(cached) " >&6
5155else
5156  if test -n "$DUMPBIN"; then
5157  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5158else
5159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160for as_dir in $PATH
5161do
5162  IFS=$as_save_IFS
5163  test -z "$as_dir" && as_dir=.
5164    for ac_exec_ext in '' $ac_executable_extensions; do
5165  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168    break 2
5169  fi
5170done
5171  done
5172IFS=$as_save_IFS
5173
5174fi
5175fi
5176DUMPBIN=$ac_cv_prog_DUMPBIN
5177if test -n "$DUMPBIN"; then
5178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5179$as_echo "$DUMPBIN" >&6; }
5180else
5181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182$as_echo "no" >&6; }
5183fi
5184
5185
5186    test -n "$DUMPBIN" && break
5187  done
5188fi
5189if test -z "$DUMPBIN"; then
5190  ac_ct_DUMPBIN=$DUMPBIN
5191  for ac_prog in dumpbin "link -dump"
5192do
5193  # Extract the first word of "$ac_prog", so it can be a program name with args.
5194set dummy $ac_prog; ac_word=$2
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196$as_echo_n "checking for $ac_word... " >&6; }
5197if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5198  $as_echo_n "(cached) " >&6
5199else
5200  if test -n "$ac_ct_DUMPBIN"; then
5201  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5202else
5203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206  IFS=$as_save_IFS
5207  test -z "$as_dir" && as_dir=.
5208    for ac_exec_ext in '' $ac_executable_extensions; do
5209  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212    break 2
5213  fi
5214done
5215  done
5216IFS=$as_save_IFS
5217
5218fi
5219fi
5220ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5221if test -n "$ac_ct_DUMPBIN"; then
5222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5223$as_echo "$ac_ct_DUMPBIN" >&6; }
5224else
5225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226$as_echo "no" >&6; }
5227fi
5228
5229
5230  test -n "$ac_ct_DUMPBIN" && break
5231done
5232
5233  if test "x$ac_ct_DUMPBIN" = x; then
5234    DUMPBIN=":"
5235  else
5236    case $cross_compiling:$ac_tool_warned in
5237yes:)
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5240ac_tool_warned=yes ;;
5241esac
5242    DUMPBIN=$ac_ct_DUMPBIN
5243  fi
5244fi
5245
5246    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5247    *COFF*)
5248      DUMPBIN="$DUMPBIN -symbols"
5249      ;;
5250    *)
5251      DUMPBIN=:
5252      ;;
5253    esac
5254  fi
5255
5256  if test "$DUMPBIN" != ":"; then
5257    NM="$DUMPBIN"
5258  fi
5259fi
5260test -z "$NM" && NM=nm
5261
5262
5263
5264
5265
5266
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5268$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5269if ${lt_cv_nm_interface+:} false; then :
5270  $as_echo_n "(cached) " >&6
5271else
5272  lt_cv_nm_interface="BSD nm"
5273  echo "int some_variable = 0;" > conftest.$ac_ext
5274  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5275  (eval "$ac_compile" 2>conftest.err)
5276  cat conftest.err >&5
5277  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5278  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5279  cat conftest.err >&5
5280  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5281  cat conftest.out >&5
5282  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5283    lt_cv_nm_interface="MS dumpbin"
5284  fi
5285  rm -f conftest*
5286fi
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5288$as_echo "$lt_cv_nm_interface" >&6; }
5289
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5291$as_echo_n "checking whether ln -s works... " >&6; }
5292LN_S=$as_ln_s
5293if test "$LN_S" = "ln -s"; then
5294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5295$as_echo "yes" >&6; }
5296else
5297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5298$as_echo "no, using $LN_S" >&6; }
5299fi
5300
5301# find the maximum length of command line arguments
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5303$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5304if ${lt_cv_sys_max_cmd_len+:} false; then :
5305  $as_echo_n "(cached) " >&6
5306else
5307    i=0
5308  teststring="ABCD"
5309
5310  case $build_os in
5311  msdosdjgpp*)
5312    # On DJGPP, this test can blow up pretty badly due to problems in libc
5313    # (any single argument exceeding 2000 bytes causes a buffer overrun
5314    # during glob expansion).  Even if it were fixed, the result of this
5315    # check would be larger than it should be.
5316    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5317    ;;
5318
5319  gnu*)
5320    # Under GNU Hurd, this test is not required because there is
5321    # no limit to the length of command line arguments.
5322    # Libtool will interpret -1 as no limit whatsoever
5323    lt_cv_sys_max_cmd_len=-1;
5324    ;;
5325
5326  cygwin* | mingw* | cegcc*)
5327    # On Win9x/ME, this test blows up -- it succeeds, but takes
5328    # about 5 minutes as the teststring grows exponentially.
5329    # Worse, since 9x/ME are not pre-emptively multitasking,
5330    # you end up with a "frozen" computer, even though with patience
5331    # the test eventually succeeds (with a max line length of 256k).
5332    # Instead, let's just punt: use the minimum linelength reported by
5333    # all of the supported platforms: 8192 (on NT/2K/XP).
5334    lt_cv_sys_max_cmd_len=8192;
5335    ;;
5336
5337  mint*)
5338    # On MiNT this can take a long time and run out of memory.
5339    lt_cv_sys_max_cmd_len=8192;
5340    ;;
5341
5342  amigaos*)
5343    # On AmigaOS with pdksh, this test takes hours, literally.
5344    # So we just punt and use a minimum line length of 8192.
5345    lt_cv_sys_max_cmd_len=8192;
5346    ;;
5347
5348  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5349    # This has been around since 386BSD, at least.  Likely further.
5350    if test -x /sbin/sysctl; then
5351      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5352    elif test -x /usr/sbin/sysctl; then
5353      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5354    else
5355      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5356    fi
5357    # And add a safety zone
5358    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5359    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5360    ;;
5361
5362  interix*)
5363    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5364    lt_cv_sys_max_cmd_len=196608
5365    ;;
5366
5367  os2*)
5368    # The test takes a long time on OS/2.
5369    lt_cv_sys_max_cmd_len=8192
5370    ;;
5371
5372  osf*)
5373    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5374    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5375    # nice to cause kernel panics so lets avoid the loop below.
5376    # First set a reasonable default.
5377    lt_cv_sys_max_cmd_len=16384
5378    #
5379    if test -x /sbin/sysconfig; then
5380      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5381        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5382      esac
5383    fi
5384    ;;
5385  sco3.2v5*)
5386    lt_cv_sys_max_cmd_len=102400
5387    ;;
5388  sysv5* | sco5v6* | sysv4.2uw2*)
5389    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5390    if test -n "$kargmax"; then
5391      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5392    else
5393      lt_cv_sys_max_cmd_len=32768
5394    fi
5395    ;;
5396  *)
5397    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5398    if test -n "$lt_cv_sys_max_cmd_len"; then
5399      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5400      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5401    else
5402      # Make teststring a little bigger before we do anything with it.
5403      # a 1K string should be a reasonable start.
5404      for i in 1 2 3 4 5 6 7 8 ; do
5405        teststring=$teststring$teststring
5406      done
5407      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5408      # If test is not a shell built-in, we'll probably end up computing a
5409      # maximum length that is only half of the actual maximum length, but
5410      # we can't tell.
5411      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5412	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5413	      test $i != 17 # 1/2 MB should be enough
5414      do
5415        i=`expr $i + 1`
5416        teststring=$teststring$teststring
5417      done
5418      # Only check the string length outside the loop.
5419      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5420      teststring=
5421      # Add a significant safety factor because C++ compilers can tack on
5422      # massive amounts of additional arguments before passing them to the
5423      # linker.  It appears as though 1/2 is a usable value.
5424      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5425    fi
5426    ;;
5427  esac
5428
5429fi
5430
5431if test -n $lt_cv_sys_max_cmd_len ; then
5432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5433$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5434else
5435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5436$as_echo "none" >&6; }
5437fi
5438max_cmd_len=$lt_cv_sys_max_cmd_len
5439
5440
5441
5442
5443
5444
5445: ${CP="cp -f"}
5446: ${MV="mv -f"}
5447: ${RM="rm -f"}
5448
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5450$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5451# Try some XSI features
5452xsi_shell=no
5453( _lt_dummy="a/b/c"
5454  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5455      = c,a/b,b/c, \
5456    && eval 'test $(( 1 + 1 )) -eq 2 \
5457    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5458  && xsi_shell=yes
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5460$as_echo "$xsi_shell" >&6; }
5461
5462
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5464$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5465lt_shell_append=no
5466( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5467    >/dev/null 2>&1 \
5468  && lt_shell_append=yes
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5470$as_echo "$lt_shell_append" >&6; }
5471
5472
5473if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5474  lt_unset=unset
5475else
5476  lt_unset=false
5477fi
5478
5479
5480
5481
5482
5483# test EBCDIC or ASCII
5484case `echo X|tr X '\101'` in
5485 A) # ASCII based system
5486    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5487  lt_SP2NL='tr \040 \012'
5488  lt_NL2SP='tr \015\012 \040\040'
5489  ;;
5490 *) # EBCDIC based system
5491  lt_SP2NL='tr \100 \n'
5492  lt_NL2SP='tr \r\n \100\100'
5493  ;;
5494esac
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5505$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5506if ${lt_cv_to_host_file_cmd+:} false; then :
5507  $as_echo_n "(cached) " >&6
5508else
5509  case $host in
5510  *-*-mingw* )
5511    case $build in
5512      *-*-mingw* ) # actually msys
5513        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5514        ;;
5515      *-*-cygwin* )
5516        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5517        ;;
5518      * ) # otherwise, assume *nix
5519        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5520        ;;
5521    esac
5522    ;;
5523  *-*-cygwin* )
5524    case $build in
5525      *-*-mingw* ) # actually msys
5526        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5527        ;;
5528      *-*-cygwin* )
5529        lt_cv_to_host_file_cmd=func_convert_file_noop
5530        ;;
5531      * ) # otherwise, assume *nix
5532        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5533        ;;
5534    esac
5535    ;;
5536  * ) # unhandled hosts (and "normal" native builds)
5537    lt_cv_to_host_file_cmd=func_convert_file_noop
5538    ;;
5539esac
5540
5541fi
5542
5543to_host_file_cmd=$lt_cv_to_host_file_cmd
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5545$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5546
5547
5548
5549
5550
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5552$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5553if ${lt_cv_to_tool_file_cmd+:} false; then :
5554  $as_echo_n "(cached) " >&6
5555else
5556  #assume ordinary cross tools, or native build.
5557lt_cv_to_tool_file_cmd=func_convert_file_noop
5558case $host in
5559  *-*-mingw* )
5560    case $build in
5561      *-*-mingw* ) # actually msys
5562        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5563        ;;
5564    esac
5565    ;;
5566esac
5567
5568fi
5569
5570to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5572$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5573
5574
5575
5576
5577
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5579$as_echo_n "checking for $LD option to reload object files... " >&6; }
5580if ${lt_cv_ld_reload_flag+:} false; then :
5581  $as_echo_n "(cached) " >&6
5582else
5583  lt_cv_ld_reload_flag='-r'
5584fi
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5586$as_echo "$lt_cv_ld_reload_flag" >&6; }
5587reload_flag=$lt_cv_ld_reload_flag
5588case $reload_flag in
5589"" | " "*) ;;
5590*) reload_flag=" $reload_flag" ;;
5591esac
5592reload_cmds='$LD$reload_flag -o $output$reload_objs'
5593case $host_os in
5594  cygwin* | mingw* | pw32* | cegcc*)
5595    if test "$GCC" != yes; then
5596      reload_cmds=false
5597    fi
5598    ;;
5599  darwin*)
5600    if test "$GCC" = yes; then
5601      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5602    else
5603      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5604    fi
5605    ;;
5606esac
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616if test -n "$ac_tool_prefix"; then
5617  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5618set dummy ${ac_tool_prefix}objdump; ac_word=$2
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620$as_echo_n "checking for $ac_word... " >&6; }
5621if ${ac_cv_prog_OBJDUMP+:} false; then :
5622  $as_echo_n "(cached) " >&6
5623else
5624  if test -n "$OBJDUMP"; then
5625  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5626else
5627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628for as_dir in $PATH
5629do
5630  IFS=$as_save_IFS
5631  test -z "$as_dir" && as_dir=.
5632    for ac_exec_ext in '' $ac_executable_extensions; do
5633  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5634    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636    break 2
5637  fi
5638done
5639  done
5640IFS=$as_save_IFS
5641
5642fi
5643fi
5644OBJDUMP=$ac_cv_prog_OBJDUMP
5645if test -n "$OBJDUMP"; then
5646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5647$as_echo "$OBJDUMP" >&6; }
5648else
5649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650$as_echo "no" >&6; }
5651fi
5652
5653
5654fi
5655if test -z "$ac_cv_prog_OBJDUMP"; then
5656  ac_ct_OBJDUMP=$OBJDUMP
5657  # Extract the first word of "objdump", so it can be a program name with args.
5658set dummy objdump; ac_word=$2
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660$as_echo_n "checking for $ac_word... " >&6; }
5661if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5662  $as_echo_n "(cached) " >&6
5663else
5664  if test -n "$ac_ct_OBJDUMP"; then
5665  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5666else
5667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668for as_dir in $PATH
5669do
5670  IFS=$as_save_IFS
5671  test -z "$as_dir" && as_dir=.
5672    for ac_exec_ext in '' $ac_executable_extensions; do
5673  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5674    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676    break 2
5677  fi
5678done
5679  done
5680IFS=$as_save_IFS
5681
5682fi
5683fi
5684ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5685if test -n "$ac_ct_OBJDUMP"; then
5686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5687$as_echo "$ac_ct_OBJDUMP" >&6; }
5688else
5689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690$as_echo "no" >&6; }
5691fi
5692
5693  if test "x$ac_ct_OBJDUMP" = x; then
5694    OBJDUMP="false"
5695  else
5696    case $cross_compiling:$ac_tool_warned in
5697yes:)
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5700ac_tool_warned=yes ;;
5701esac
5702    OBJDUMP=$ac_ct_OBJDUMP
5703  fi
5704else
5705  OBJDUMP="$ac_cv_prog_OBJDUMP"
5706fi
5707
5708test -z "$OBJDUMP" && OBJDUMP=objdump
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5719$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5720if ${lt_cv_deplibs_check_method+:} false; then :
5721  $as_echo_n "(cached) " >&6
5722else
5723  lt_cv_file_magic_cmd='$MAGIC_CMD'
5724lt_cv_file_magic_test_file=
5725lt_cv_deplibs_check_method='unknown'
5726# Need to set the preceding variable on all platforms that support
5727# interlibrary dependencies.
5728# 'none' -- dependencies not supported.
5729# `unknown' -- same as none, but documents that we really don't know.
5730# 'pass_all' -- all dependencies passed with no checks.
5731# 'test_compile' -- check by making test program.
5732# 'file_magic [[regex]]' -- check by looking for files in library path
5733# which responds to the $file_magic_cmd with a given extended regex.
5734# If you have `file' or equivalent on your system and you're not sure
5735# whether `pass_all' will *always* work, you probably want this one.
5736
5737case $host_os in
5738aix[4-9]*)
5739  lt_cv_deplibs_check_method=pass_all
5740  ;;
5741
5742beos*)
5743  lt_cv_deplibs_check_method=pass_all
5744  ;;
5745
5746bsdi[45]*)
5747  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5748  lt_cv_file_magic_cmd='/usr/bin/file -L'
5749  lt_cv_file_magic_test_file=/shlib/libc.so
5750  ;;
5751
5752cygwin*)
5753  # func_win32_libid is a shell function defined in ltmain.sh
5754  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5755  lt_cv_file_magic_cmd='func_win32_libid'
5756  ;;
5757
5758mingw* | pw32*)
5759  # Base MSYS/MinGW do not provide the 'file' command needed by
5760  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5761  # unless we find 'file', for example because we are cross-compiling.
5762  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5763  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5764    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5765    lt_cv_file_magic_cmd='func_win32_libid'
5766  else
5767    # Keep this pattern in sync with the one in func_win32_libid.
5768    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5769    lt_cv_file_magic_cmd='$OBJDUMP -f'
5770  fi
5771  ;;
5772
5773cegcc*)
5774  # use the weaker test based on 'objdump'. See mingw*.
5775  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5776  lt_cv_file_magic_cmd='$OBJDUMP -f'
5777  ;;
5778
5779darwin* | rhapsody*)
5780  lt_cv_deplibs_check_method=pass_all
5781  ;;
5782
5783freebsd* | dragonfly*)
5784  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5785    case $host_cpu in
5786    i*86 )
5787      # Not sure whether the presence of OpenBSD here was a mistake.
5788      # Let's accept both of them until this is cleared up.
5789      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5790      lt_cv_file_magic_cmd=/usr/bin/file
5791      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5792      ;;
5793    esac
5794  else
5795    lt_cv_deplibs_check_method=pass_all
5796  fi
5797  ;;
5798
5799gnu*)
5800  lt_cv_deplibs_check_method=pass_all
5801  ;;
5802
5803haiku*)
5804  lt_cv_deplibs_check_method=pass_all
5805  ;;
5806
5807hpux10.20* | hpux11*)
5808  lt_cv_file_magic_cmd=/usr/bin/file
5809  case $host_cpu in
5810  ia64*)
5811    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5812    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5813    ;;
5814  hppa*64*)
5815    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]'
5816    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5817    ;;
5818  *)
5819    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5820    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5821    ;;
5822  esac
5823  ;;
5824
5825interix[3-9]*)
5826  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5827  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5828  ;;
5829
5830irix5* | irix6* | nonstopux*)
5831  case $LD in
5832  *-32|*"-32 ") libmagic=32-bit;;
5833  *-n32|*"-n32 ") libmagic=N32;;
5834  *-64|*"-64 ") libmagic=64-bit;;
5835  *) libmagic=never-match;;
5836  esac
5837  lt_cv_deplibs_check_method=pass_all
5838  ;;
5839
5840# This must be glibc/ELF.
5841linux* | k*bsd*-gnu | kopensolaris*-gnu)
5842  lt_cv_deplibs_check_method=pass_all
5843  ;;
5844
5845netbsd*)
5846  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5847    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5848  else
5849    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5850  fi
5851  ;;
5852
5853newos6*)
5854  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5855  lt_cv_file_magic_cmd=/usr/bin/file
5856  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5857  ;;
5858
5859*nto* | *qnx*)
5860  lt_cv_deplibs_check_method=pass_all
5861  ;;
5862
5863openbsd*)
5864  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5865    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5866  else
5867    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5868  fi
5869  ;;
5870
5871osf3* | osf4* | osf5*)
5872  lt_cv_deplibs_check_method=pass_all
5873  ;;
5874
5875rdos*)
5876  lt_cv_deplibs_check_method=pass_all
5877  ;;
5878
5879solaris*)
5880  lt_cv_deplibs_check_method=pass_all
5881  ;;
5882
5883sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5884  lt_cv_deplibs_check_method=pass_all
5885  ;;
5886
5887sysv4 | sysv4.3*)
5888  case $host_vendor in
5889  motorola)
5890    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]'
5891    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5892    ;;
5893  ncr)
5894    lt_cv_deplibs_check_method=pass_all
5895    ;;
5896  sequent)
5897    lt_cv_file_magic_cmd='/bin/file'
5898    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5899    ;;
5900  sni)
5901    lt_cv_file_magic_cmd='/bin/file'
5902    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5903    lt_cv_file_magic_test_file=/lib/libc.so
5904    ;;
5905  siemens)
5906    lt_cv_deplibs_check_method=pass_all
5907    ;;
5908  pc)
5909    lt_cv_deplibs_check_method=pass_all
5910    ;;
5911  esac
5912  ;;
5913
5914tpf*)
5915  lt_cv_deplibs_check_method=pass_all
5916  ;;
5917esac
5918
5919fi
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5921$as_echo "$lt_cv_deplibs_check_method" >&6; }
5922
5923file_magic_glob=
5924want_nocaseglob=no
5925if test "$build" = "$host"; then
5926  case $host_os in
5927  mingw* | pw32*)
5928    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5929      want_nocaseglob=yes
5930    else
5931      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5932    fi
5933    ;;
5934  esac
5935fi
5936
5937file_magic_cmd=$lt_cv_file_magic_cmd
5938deplibs_check_method=$lt_cv_deplibs_check_method
5939test -z "$deplibs_check_method" && deplibs_check_method=unknown
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962if test -n "$ac_tool_prefix"; then
5963  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5964set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5966$as_echo_n "checking for $ac_word... " >&6; }
5967if ${ac_cv_prog_DLLTOOL+:} false; then :
5968  $as_echo_n "(cached) " >&6
5969else
5970  if test -n "$DLLTOOL"; then
5971  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5972else
5973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974for as_dir in $PATH
5975do
5976  IFS=$as_save_IFS
5977  test -z "$as_dir" && as_dir=.
5978    for ac_exec_ext in '' $ac_executable_extensions; do
5979  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5980    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5982    break 2
5983  fi
5984done
5985  done
5986IFS=$as_save_IFS
5987
5988fi
5989fi
5990DLLTOOL=$ac_cv_prog_DLLTOOL
5991if test -n "$DLLTOOL"; then
5992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5993$as_echo "$DLLTOOL" >&6; }
5994else
5995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996$as_echo "no" >&6; }
5997fi
5998
5999
6000fi
6001if test -z "$ac_cv_prog_DLLTOOL"; then
6002  ac_ct_DLLTOOL=$DLLTOOL
6003  # Extract the first word of "dlltool", so it can be a program name with args.
6004set dummy dlltool; ac_word=$2
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006$as_echo_n "checking for $ac_word... " >&6; }
6007if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6008  $as_echo_n "(cached) " >&6
6009else
6010  if test -n "$ac_ct_DLLTOOL"; then
6011  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6012else
6013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014for as_dir in $PATH
6015do
6016  IFS=$as_save_IFS
6017  test -z "$as_dir" && as_dir=.
6018    for ac_exec_ext in '' $ac_executable_extensions; do
6019  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022    break 2
6023  fi
6024done
6025  done
6026IFS=$as_save_IFS
6027
6028fi
6029fi
6030ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6031if test -n "$ac_ct_DLLTOOL"; then
6032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6033$as_echo "$ac_ct_DLLTOOL" >&6; }
6034else
6035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036$as_echo "no" >&6; }
6037fi
6038
6039  if test "x$ac_ct_DLLTOOL" = x; then
6040    DLLTOOL="false"
6041  else
6042    case $cross_compiling:$ac_tool_warned in
6043yes:)
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6046ac_tool_warned=yes ;;
6047esac
6048    DLLTOOL=$ac_ct_DLLTOOL
6049  fi
6050else
6051  DLLTOOL="$ac_cv_prog_DLLTOOL"
6052fi
6053
6054test -z "$DLLTOOL" && DLLTOOL=dlltool
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6066$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6067if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6068  $as_echo_n "(cached) " >&6
6069else
6070  lt_cv_sharedlib_from_linklib_cmd='unknown'
6071
6072case $host_os in
6073cygwin* | mingw* | pw32* | cegcc*)
6074  # two different shell functions defined in ltmain.sh
6075  # decide which to use based on capabilities of $DLLTOOL
6076  case `$DLLTOOL --help 2>&1` in
6077  *--identify-strict*)
6078    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6079    ;;
6080  *)
6081    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6082    ;;
6083  esac
6084  ;;
6085*)
6086  # fallback: assume linklib IS sharedlib
6087  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6088  ;;
6089esac
6090
6091fi
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6093$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6094sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6095test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6096
6097
6098
6099
6100
6101
6102
6103if test -n "$ac_tool_prefix"; then
6104  for ac_prog in ar
6105  do
6106    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6107set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6109$as_echo_n "checking for $ac_word... " >&6; }
6110if ${ac_cv_prog_AR+:} false; then :
6111  $as_echo_n "(cached) " >&6
6112else
6113  if test -n "$AR"; then
6114  ac_cv_prog_AR="$AR" # Let the user override the test.
6115else
6116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117for as_dir in $PATH
6118do
6119  IFS=$as_save_IFS
6120  test -z "$as_dir" && as_dir=.
6121    for ac_exec_ext in '' $ac_executable_extensions; do
6122  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6123    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125    break 2
6126  fi
6127done
6128  done
6129IFS=$as_save_IFS
6130
6131fi
6132fi
6133AR=$ac_cv_prog_AR
6134if test -n "$AR"; then
6135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6136$as_echo "$AR" >&6; }
6137else
6138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6139$as_echo "no" >&6; }
6140fi
6141
6142
6143    test -n "$AR" && break
6144  done
6145fi
6146if test -z "$AR"; then
6147  ac_ct_AR=$AR
6148  for ac_prog in ar
6149do
6150  # Extract the first word of "$ac_prog", so it can be a program name with args.
6151set dummy $ac_prog; ac_word=$2
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153$as_echo_n "checking for $ac_word... " >&6; }
6154if ${ac_cv_prog_ac_ct_AR+:} false; then :
6155  $as_echo_n "(cached) " >&6
6156else
6157  if test -n "$ac_ct_AR"; then
6158  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6159else
6160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161for as_dir in $PATH
6162do
6163  IFS=$as_save_IFS
6164  test -z "$as_dir" && as_dir=.
6165    for ac_exec_ext in '' $ac_executable_extensions; do
6166  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6167    ac_cv_prog_ac_ct_AR="$ac_prog"
6168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169    break 2
6170  fi
6171done
6172  done
6173IFS=$as_save_IFS
6174
6175fi
6176fi
6177ac_ct_AR=$ac_cv_prog_ac_ct_AR
6178if test -n "$ac_ct_AR"; then
6179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6180$as_echo "$ac_ct_AR" >&6; }
6181else
6182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183$as_echo "no" >&6; }
6184fi
6185
6186
6187  test -n "$ac_ct_AR" && break
6188done
6189
6190  if test "x$ac_ct_AR" = x; then
6191    AR="false"
6192  else
6193    case $cross_compiling:$ac_tool_warned in
6194yes:)
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6197ac_tool_warned=yes ;;
6198esac
6199    AR=$ac_ct_AR
6200  fi
6201fi
6202
6203: ${AR=ar}
6204: ${AR_FLAGS=cru}
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6217$as_echo_n "checking for archiver @FILE support... " >&6; }
6218if ${lt_cv_ar_at_file+:} false; then :
6219  $as_echo_n "(cached) " >&6
6220else
6221  lt_cv_ar_at_file=no
6222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223/* end confdefs.h.  */
6224
6225int
6226main ()
6227{
6228
6229  ;
6230  return 0;
6231}
6232_ACEOF
6233if ac_fn_c_try_compile "$LINENO"; then :
6234  echo conftest.$ac_objext > conftest.lst
6235      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6236      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6237  (eval $lt_ar_try) 2>&5
6238  ac_status=$?
6239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6240  test $ac_status = 0; }
6241      if test "$ac_status" -eq 0; then
6242	# Ensure the archiver fails upon bogus file names.
6243	rm -f conftest.$ac_objext libconftest.a
6244	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6245  (eval $lt_ar_try) 2>&5
6246  ac_status=$?
6247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6248  test $ac_status = 0; }
6249	if test "$ac_status" -ne 0; then
6250          lt_cv_ar_at_file=@
6251        fi
6252      fi
6253      rm -f conftest.* libconftest.a
6254
6255fi
6256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257
6258fi
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6260$as_echo "$lt_cv_ar_at_file" >&6; }
6261
6262if test "x$lt_cv_ar_at_file" = xno; then
6263  archiver_list_spec=
6264else
6265  archiver_list_spec=$lt_cv_ar_at_file
6266fi
6267
6268
6269
6270
6271
6272
6273
6274if test -n "$ac_tool_prefix"; then
6275  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6276set dummy ${ac_tool_prefix}strip; ac_word=$2
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278$as_echo_n "checking for $ac_word... " >&6; }
6279if ${ac_cv_prog_STRIP+:} false; then :
6280  $as_echo_n "(cached) " >&6
6281else
6282  if test -n "$STRIP"; then
6283  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6284else
6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286for as_dir in $PATH
6287do
6288  IFS=$as_save_IFS
6289  test -z "$as_dir" && as_dir=.
6290    for ac_exec_ext in '' $ac_executable_extensions; do
6291  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6292    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6293    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294    break 2
6295  fi
6296done
6297  done
6298IFS=$as_save_IFS
6299
6300fi
6301fi
6302STRIP=$ac_cv_prog_STRIP
6303if test -n "$STRIP"; then
6304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6305$as_echo "$STRIP" >&6; }
6306else
6307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308$as_echo "no" >&6; }
6309fi
6310
6311
6312fi
6313if test -z "$ac_cv_prog_STRIP"; then
6314  ac_ct_STRIP=$STRIP
6315  # Extract the first word of "strip", so it can be a program name with args.
6316set dummy strip; ac_word=$2
6317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318$as_echo_n "checking for $ac_word... " >&6; }
6319if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6320  $as_echo_n "(cached) " >&6
6321else
6322  if test -n "$ac_ct_STRIP"; then
6323  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6324else
6325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326for as_dir in $PATH
6327do
6328  IFS=$as_save_IFS
6329  test -z "$as_dir" && as_dir=.
6330    for ac_exec_ext in '' $ac_executable_extensions; do
6331  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6332    ac_cv_prog_ac_ct_STRIP="strip"
6333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334    break 2
6335  fi
6336done
6337  done
6338IFS=$as_save_IFS
6339
6340fi
6341fi
6342ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6343if test -n "$ac_ct_STRIP"; then
6344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6345$as_echo "$ac_ct_STRIP" >&6; }
6346else
6347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348$as_echo "no" >&6; }
6349fi
6350
6351  if test "x$ac_ct_STRIP" = x; then
6352    STRIP=":"
6353  else
6354    case $cross_compiling:$ac_tool_warned in
6355yes:)
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6358ac_tool_warned=yes ;;
6359esac
6360    STRIP=$ac_ct_STRIP
6361  fi
6362else
6363  STRIP="$ac_cv_prog_STRIP"
6364fi
6365
6366test -z "$STRIP" && STRIP=:
6367
6368
6369
6370
6371
6372
6373if test -n "$ac_tool_prefix"; then
6374  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6375set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6377$as_echo_n "checking for $ac_word... " >&6; }
6378if ${ac_cv_prog_RANLIB+:} false; then :
6379  $as_echo_n "(cached) " >&6
6380else
6381  if test -n "$RANLIB"; then
6382  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6383else
6384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385for as_dir in $PATH
6386do
6387  IFS=$as_save_IFS
6388  test -z "$as_dir" && as_dir=.
6389    for ac_exec_ext in '' $ac_executable_extensions; do
6390  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6391    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6392    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6393    break 2
6394  fi
6395done
6396  done
6397IFS=$as_save_IFS
6398
6399fi
6400fi
6401RANLIB=$ac_cv_prog_RANLIB
6402if test -n "$RANLIB"; then
6403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6404$as_echo "$RANLIB" >&6; }
6405else
6406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407$as_echo "no" >&6; }
6408fi
6409
6410
6411fi
6412if test -z "$ac_cv_prog_RANLIB"; then
6413  ac_ct_RANLIB=$RANLIB
6414  # Extract the first word of "ranlib", so it can be a program name with args.
6415set dummy ranlib; ac_word=$2
6416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417$as_echo_n "checking for $ac_word... " >&6; }
6418if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6419  $as_echo_n "(cached) " >&6
6420else
6421  if test -n "$ac_ct_RANLIB"; then
6422  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6423else
6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425for as_dir in $PATH
6426do
6427  IFS=$as_save_IFS
6428  test -z "$as_dir" && as_dir=.
6429    for ac_exec_ext in '' $ac_executable_extensions; do
6430  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431    ac_cv_prog_ac_ct_RANLIB="ranlib"
6432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433    break 2
6434  fi
6435done
6436  done
6437IFS=$as_save_IFS
6438
6439fi
6440fi
6441ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6442if test -n "$ac_ct_RANLIB"; then
6443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6444$as_echo "$ac_ct_RANLIB" >&6; }
6445else
6446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447$as_echo "no" >&6; }
6448fi
6449
6450  if test "x$ac_ct_RANLIB" = x; then
6451    RANLIB=":"
6452  else
6453    case $cross_compiling:$ac_tool_warned in
6454yes:)
6455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6457ac_tool_warned=yes ;;
6458esac
6459    RANLIB=$ac_ct_RANLIB
6460  fi
6461else
6462  RANLIB="$ac_cv_prog_RANLIB"
6463fi
6464
6465test -z "$RANLIB" && RANLIB=:
6466
6467
6468
6469
6470
6471
6472# Determine commands to create old-style static archives.
6473old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6474old_postinstall_cmds='chmod 644 $oldlib'
6475old_postuninstall_cmds=
6476
6477if test -n "$RANLIB"; then
6478  case $host_os in
6479  openbsd*)
6480    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6481    ;;
6482  *)
6483    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6484    ;;
6485  esac
6486  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6487fi
6488
6489case $host_os in
6490  darwin*)
6491    lock_old_archive_extraction=yes ;;
6492  *)
6493    lock_old_archive_extraction=no ;;
6494esac
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534# If no C compiler was specified, use CC.
6535LTCC=${LTCC-"$CC"}
6536
6537# If no C compiler flags were specified, use CFLAGS.
6538LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6539
6540# Allow CC to be a program name with arguments.
6541compiler=$CC
6542
6543
6544# Check for command to grab the raw symbol name followed by C symbol from nm.
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6546$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6547if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6548  $as_echo_n "(cached) " >&6
6549else
6550
6551# These are sane defaults that work on at least a few old systems.
6552# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6553
6554# Character class describing NM global symbol codes.
6555symcode='[BCDEGRST]'
6556
6557# Regexp to match symbols that can be accessed directly from C.
6558sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6559
6560# Define system-specific variables.
6561case $host_os in
6562aix*)
6563  symcode='[BCDT]'
6564  ;;
6565cygwin* | mingw* | pw32* | cegcc*)
6566  symcode='[ABCDGISTW]'
6567  ;;
6568hpux*)
6569  if test "$host_cpu" = ia64; then
6570    symcode='[ABCDEGRST]'
6571  fi
6572  ;;
6573irix* | nonstopux*)
6574  symcode='[BCDEGRST]'
6575  ;;
6576osf*)
6577  symcode='[BCDEGQRST]'
6578  ;;
6579solaris*)
6580  symcode='[BDRT]'
6581  ;;
6582sco3.2v5*)
6583  symcode='[DT]'
6584  ;;
6585sysv4.2uw2*)
6586  symcode='[DT]'
6587  ;;
6588sysv5* | sco5v6* | unixware* | OpenUNIX*)
6589  symcode='[ABDT]'
6590  ;;
6591sysv4)
6592  symcode='[DFNSTU]'
6593  ;;
6594esac
6595
6596# If we're using GNU nm, then use its standard symbol codes.
6597case `$NM -V 2>&1` in
6598*GNU* | *'with BFD'*)
6599  symcode='[ABCDGIRSTW]' ;;
6600esac
6601
6602# Transform an extracted symbol line into a proper C declaration.
6603# Some systems (esp. on ia64) link data and code symbols differently,
6604# so use this general approach.
6605lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6606
6607# Transform an extracted symbol line into symbol name and symbol address
6608lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6609lt_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'"
6610
6611# Handle CRLF in mingw tool chain
6612opt_cr=
6613case $build_os in
6614mingw*)
6615  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6616  ;;
6617esac
6618
6619# Try without a prefix underscore, then with it.
6620for ac_symprfx in "" "_"; do
6621
6622  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6623  symxfrm="\\1 $ac_symprfx\\2 \\2"
6624
6625  # Write the raw and C identifiers.
6626  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6627    # Fake it for dumpbin and say T for any non-static function
6628    # and D for any global variable.
6629    # Also find C++ and __fastcall symbols from MSVC++,
6630    # which start with @ or ?.
6631    lt_cv_sys_global_symbol_pipe="$AWK '"\
6632"     {last_section=section; section=\$ 3};"\
6633"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6634"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6635"     \$ 0!~/External *\|/{next};"\
6636"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6637"     {if(hide[section]) next};"\
6638"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6639"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6640"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6641"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6642"     ' prfx=^$ac_symprfx"
6643  else
6644    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6645  fi
6646  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6647
6648  # Check to see that the pipe works correctly.
6649  pipe_works=no
6650
6651  rm -f conftest*
6652  cat > conftest.$ac_ext <<_LT_EOF
6653#ifdef __cplusplus
6654extern "C" {
6655#endif
6656char nm_test_var;
6657void nm_test_func(void);
6658void nm_test_func(void){}
6659#ifdef __cplusplus
6660}
6661#endif
6662int main(){nm_test_var='a';nm_test_func();return(0);}
6663_LT_EOF
6664
6665  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6666  (eval $ac_compile) 2>&5
6667  ac_status=$?
6668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6669  test $ac_status = 0; }; then
6670    # Now try to grab the symbols.
6671    nlist=conftest.nm
6672    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6673  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6674  ac_status=$?
6675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6676  test $ac_status = 0; } && test -s "$nlist"; then
6677      # Try sorting and uniquifying the output.
6678      if sort "$nlist" | uniq > "$nlist"T; then
6679	mv -f "$nlist"T "$nlist"
6680      else
6681	rm -f "$nlist"T
6682      fi
6683
6684      # Make sure that we snagged all the symbols we need.
6685      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6686	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6687	  cat <<_LT_EOF > conftest.$ac_ext
6688/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6689#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6690/* DATA imports from DLLs on WIN32 con't be const, because runtime
6691   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6692# define LT_DLSYM_CONST
6693#elif defined(__osf__)
6694/* This system does not cope well with relocations in const data.  */
6695# define LT_DLSYM_CONST
6696#else
6697# define LT_DLSYM_CONST const
6698#endif
6699
6700#ifdef __cplusplus
6701extern "C" {
6702#endif
6703
6704_LT_EOF
6705	  # Now generate the symbol file.
6706	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6707
6708	  cat <<_LT_EOF >> conftest.$ac_ext
6709
6710/* The mapping between symbol names and symbols.  */
6711LT_DLSYM_CONST struct {
6712  const char *name;
6713  void       *address;
6714}
6715lt__PROGRAM__LTX_preloaded_symbols[] =
6716{
6717  { "@PROGRAM@", (void *) 0 },
6718_LT_EOF
6719	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6720	  cat <<\_LT_EOF >> conftest.$ac_ext
6721  {0, (void *) 0}
6722};
6723
6724/* This works around a problem in FreeBSD linker */
6725#ifdef FREEBSD_WORKAROUND
6726static const void *lt_preloaded_setup() {
6727  return lt__PROGRAM__LTX_preloaded_symbols;
6728}
6729#endif
6730
6731#ifdef __cplusplus
6732}
6733#endif
6734_LT_EOF
6735	  # Now try linking the two files.
6736	  mv conftest.$ac_objext conftstm.$ac_objext
6737	  lt_globsym_save_LIBS=$LIBS
6738	  lt_globsym_save_CFLAGS=$CFLAGS
6739	  LIBS="conftstm.$ac_objext"
6740	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6741	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6742  (eval $ac_link) 2>&5
6743  ac_status=$?
6744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6745  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6746	    pipe_works=yes
6747	  fi
6748	  LIBS=$lt_globsym_save_LIBS
6749	  CFLAGS=$lt_globsym_save_CFLAGS
6750	else
6751	  echo "cannot find nm_test_func in $nlist" >&5
6752	fi
6753      else
6754	echo "cannot find nm_test_var in $nlist" >&5
6755      fi
6756    else
6757      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6758    fi
6759  else
6760    echo "$progname: failed program was:" >&5
6761    cat conftest.$ac_ext >&5
6762  fi
6763  rm -rf conftest* conftst*
6764
6765  # Do not use the global_symbol_pipe unless it works.
6766  if test "$pipe_works" = yes; then
6767    break
6768  else
6769    lt_cv_sys_global_symbol_pipe=
6770  fi
6771done
6772
6773fi
6774
6775if test -z "$lt_cv_sys_global_symbol_pipe"; then
6776  lt_cv_sys_global_symbol_to_cdecl=
6777fi
6778if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6780$as_echo "failed" >&6; }
6781else
6782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6783$as_echo "ok" >&6; }
6784fi
6785
6786# Response file support.
6787if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6788  nm_file_list_spec='@'
6789elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6790  nm_file_list_spec='@'
6791fi
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6820$as_echo_n "checking for sysroot... " >&6; }
6821
6822# Check whether --with-sysroot was given.
6823if test "${with_sysroot+set}" = set; then :
6824  withval=$with_sysroot;
6825else
6826  with_sysroot=no
6827fi
6828
6829
6830lt_sysroot=
6831case ${with_sysroot} in #(
6832 yes)
6833   if test "$GCC" = yes; then
6834     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6835   fi
6836   ;; #(
6837 /*)
6838   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6839   ;; #(
6840 no|'')
6841   ;; #(
6842 *)
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6844$as_echo "${with_sysroot}" >&6; }
6845   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6846   ;;
6847esac
6848
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6850$as_echo "${lt_sysroot:-no}" >&6; }
6851
6852
6853
6854
6855
6856# Check whether --enable-libtool-lock was given.
6857if test "${enable_libtool_lock+set}" = set; then :
6858  enableval=$enable_libtool_lock;
6859fi
6860
6861test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6862
6863# Some flags need to be propagated to the compiler or linker for good
6864# libtool support.
6865case $host in
6866ia64-*-hpux*)
6867  # Find out which ABI we are using.
6868  echo 'int i;' > conftest.$ac_ext
6869  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6870  (eval $ac_compile) 2>&5
6871  ac_status=$?
6872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6873  test $ac_status = 0; }; then
6874    case `/usr/bin/file conftest.$ac_objext` in
6875      *ELF-32*)
6876	HPUX_IA64_MODE="32"
6877	;;
6878      *ELF-64*)
6879	HPUX_IA64_MODE="64"
6880	;;
6881    esac
6882  fi
6883  rm -rf conftest*
6884  ;;
6885*-*-irix6*)
6886  # Find out which ABI we are using.
6887  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6888  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6889  (eval $ac_compile) 2>&5
6890  ac_status=$?
6891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6892  test $ac_status = 0; }; then
6893    if test "$lt_cv_prog_gnu_ld" = yes; then
6894      case `/usr/bin/file conftest.$ac_objext` in
6895	*32-bit*)
6896	  LD="${LD-ld} -melf32bsmip"
6897	  ;;
6898	*N32*)
6899	  LD="${LD-ld} -melf32bmipn32"
6900	  ;;
6901	*64-bit*)
6902	  LD="${LD-ld} -melf64bmip"
6903	;;
6904      esac
6905    else
6906      case `/usr/bin/file conftest.$ac_objext` in
6907	*32-bit*)
6908	  LD="${LD-ld} -32"
6909	  ;;
6910	*N32*)
6911	  LD="${LD-ld} -n32"
6912	  ;;
6913	*64-bit*)
6914	  LD="${LD-ld} -64"
6915	  ;;
6916      esac
6917    fi
6918  fi
6919  rm -rf conftest*
6920  ;;
6921
6922x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6923s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6924  # Find out which ABI we are using.
6925  echo 'int i;' > conftest.$ac_ext
6926  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6927  (eval $ac_compile) 2>&5
6928  ac_status=$?
6929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6930  test $ac_status = 0; }; then
6931    case `/usr/bin/file conftest.o` in
6932      *32-bit*)
6933	case $host in
6934	  x86_64-*kfreebsd*-gnu)
6935	    LD="${LD-ld} -m elf_i386_fbsd"
6936	    ;;
6937	  x86_64-*linux*)
6938	    LD="${LD-ld} -m elf_i386"
6939	    ;;
6940	  ppc64-*linux*|powerpc64-*linux*)
6941	    LD="${LD-ld} -m elf32ppclinux"
6942	    ;;
6943	  s390x-*linux*)
6944	    LD="${LD-ld} -m elf_s390"
6945	    ;;
6946	  sparc64-*linux*)
6947	    LD="${LD-ld} -m elf32_sparc"
6948	    ;;
6949	esac
6950	;;
6951      *64-bit*)
6952	case $host in
6953	  x86_64-*kfreebsd*-gnu)
6954	    LD="${LD-ld} -m elf_x86_64_fbsd"
6955	    ;;
6956	  x86_64-*linux*)
6957	    LD="${LD-ld} -m elf_x86_64"
6958	    ;;
6959	  ppc*-*linux*|powerpc*-*linux*)
6960	    LD="${LD-ld} -m elf64ppc"
6961	    ;;
6962	  s390*-*linux*|s390*-*tpf*)
6963	    LD="${LD-ld} -m elf64_s390"
6964	    ;;
6965	  sparc*-*linux*)
6966	    LD="${LD-ld} -m elf64_sparc"
6967	    ;;
6968	esac
6969	;;
6970    esac
6971  fi
6972  rm -rf conftest*
6973  ;;
6974
6975*-*-sco3.2v5*)
6976  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6977  SAVE_CFLAGS="$CFLAGS"
6978  CFLAGS="$CFLAGS -belf"
6979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6980$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6981if ${lt_cv_cc_needs_belf+:} false; then :
6982  $as_echo_n "(cached) " >&6
6983else
6984  ac_ext=c
6985ac_cpp='$CPP $CPPFLAGS'
6986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6988ac_compiler_gnu=$ac_cv_c_compiler_gnu
6989
6990     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991/* end confdefs.h.  */
6992
6993int
6994main ()
6995{
6996
6997  ;
6998  return 0;
6999}
7000_ACEOF
7001if ac_fn_c_try_link "$LINENO"; then :
7002  lt_cv_cc_needs_belf=yes
7003else
7004  lt_cv_cc_needs_belf=no
7005fi
7006rm -f core conftest.err conftest.$ac_objext \
7007    conftest$ac_exeext conftest.$ac_ext
7008     ac_ext=c
7009ac_cpp='$CPP $CPPFLAGS'
7010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7012ac_compiler_gnu=$ac_cv_c_compiler_gnu
7013
7014fi
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7016$as_echo "$lt_cv_cc_needs_belf" >&6; }
7017  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7018    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7019    CFLAGS="$SAVE_CFLAGS"
7020  fi
7021  ;;
7022*-*solaris*)
7023  # Find out which ABI we are using.
7024  echo 'int i;' > conftest.$ac_ext
7025  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7026  (eval $ac_compile) 2>&5
7027  ac_status=$?
7028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7029  test $ac_status = 0; }; then
7030    case `/usr/bin/file conftest.o` in
7031    *64-bit*)
7032      case $lt_cv_prog_gnu_ld in
7033      yes*)
7034        case $host in
7035        i?86-*-solaris*)
7036          LD="${LD-ld} -m elf_x86_64"
7037          ;;
7038        sparc*-*-solaris*)
7039          LD="${LD-ld} -m elf64_sparc"
7040          ;;
7041        esac
7042        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7043        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7044          LD="${LD-ld}_sol2"
7045        fi
7046        ;;
7047      *)
7048	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7049	  LD="${LD-ld} -64"
7050	fi
7051	;;
7052      esac
7053      ;;
7054    esac
7055  fi
7056  rm -rf conftest*
7057  ;;
7058esac
7059
7060need_locks="$enable_libtool_lock"
7061
7062if test -n "$ac_tool_prefix"; then
7063  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7064set dummy ${ac_tool_prefix}mt; ac_word=$2
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066$as_echo_n "checking for $ac_word... " >&6; }
7067if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7068  $as_echo_n "(cached) " >&6
7069else
7070  if test -n "$MANIFEST_TOOL"; then
7071  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7072else
7073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074for as_dir in $PATH
7075do
7076  IFS=$as_save_IFS
7077  test -z "$as_dir" && as_dir=.
7078    for ac_exec_ext in '' $ac_executable_extensions; do
7079  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082    break 2
7083  fi
7084done
7085  done
7086IFS=$as_save_IFS
7087
7088fi
7089fi
7090MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7091if test -n "$MANIFEST_TOOL"; then
7092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7093$as_echo "$MANIFEST_TOOL" >&6; }
7094else
7095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096$as_echo "no" >&6; }
7097fi
7098
7099
7100fi
7101if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7102  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7103  # Extract the first word of "mt", so it can be a program name with args.
7104set dummy mt; ac_word=$2
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106$as_echo_n "checking for $ac_word... " >&6; }
7107if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7108  $as_echo_n "(cached) " >&6
7109else
7110  if test -n "$ac_ct_MANIFEST_TOOL"; then
7111  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7112else
7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116  IFS=$as_save_IFS
7117  test -z "$as_dir" && as_dir=.
7118    for ac_exec_ext in '' $ac_executable_extensions; do
7119  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122    break 2
7123  fi
7124done
7125  done
7126IFS=$as_save_IFS
7127
7128fi
7129fi
7130ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7131if test -n "$ac_ct_MANIFEST_TOOL"; then
7132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7133$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7134else
7135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136$as_echo "no" >&6; }
7137fi
7138
7139  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7140    MANIFEST_TOOL=":"
7141  else
7142    case $cross_compiling:$ac_tool_warned in
7143yes:)
7144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7146ac_tool_warned=yes ;;
7147esac
7148    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7149  fi
7150else
7151  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7152fi
7153
7154test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7156$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7157if ${lt_cv_path_mainfest_tool+:} false; then :
7158  $as_echo_n "(cached) " >&6
7159else
7160  lt_cv_path_mainfest_tool=no
7161  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7162  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7163  cat conftest.err >&5
7164  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7165    lt_cv_path_mainfest_tool=yes
7166  fi
7167  rm -f conftest*
7168fi
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7170$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7171if test "x$lt_cv_path_mainfest_tool" != xyes; then
7172  MANIFEST_TOOL=:
7173fi
7174
7175
7176
7177
7178
7179
7180  case $host_os in
7181    rhapsody* | darwin*)
7182    if test -n "$ac_tool_prefix"; then
7183  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7184set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186$as_echo_n "checking for $ac_word... " >&6; }
7187if ${ac_cv_prog_DSYMUTIL+:} false; then :
7188  $as_echo_n "(cached) " >&6
7189else
7190  if test -n "$DSYMUTIL"; then
7191  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7192else
7193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196  IFS=$as_save_IFS
7197  test -z "$as_dir" && as_dir=.
7198    for ac_exec_ext in '' $ac_executable_extensions; do
7199  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7200    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202    break 2
7203  fi
7204done
7205  done
7206IFS=$as_save_IFS
7207
7208fi
7209fi
7210DSYMUTIL=$ac_cv_prog_DSYMUTIL
7211if test -n "$DSYMUTIL"; then
7212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7213$as_echo "$DSYMUTIL" >&6; }
7214else
7215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216$as_echo "no" >&6; }
7217fi
7218
7219
7220fi
7221if test -z "$ac_cv_prog_DSYMUTIL"; then
7222  ac_ct_DSYMUTIL=$DSYMUTIL
7223  # Extract the first word of "dsymutil", so it can be a program name with args.
7224set dummy dsymutil; ac_word=$2
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226$as_echo_n "checking for $ac_word... " >&6; }
7227if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7228  $as_echo_n "(cached) " >&6
7229else
7230  if test -n "$ac_ct_DSYMUTIL"; then
7231  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7232else
7233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234for as_dir in $PATH
7235do
7236  IFS=$as_save_IFS
7237  test -z "$as_dir" && as_dir=.
7238    for ac_exec_ext in '' $ac_executable_extensions; do
7239  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7240    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242    break 2
7243  fi
7244done
7245  done
7246IFS=$as_save_IFS
7247
7248fi
7249fi
7250ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7251if test -n "$ac_ct_DSYMUTIL"; then
7252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7253$as_echo "$ac_ct_DSYMUTIL" >&6; }
7254else
7255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256$as_echo "no" >&6; }
7257fi
7258
7259  if test "x$ac_ct_DSYMUTIL" = x; then
7260    DSYMUTIL=":"
7261  else
7262    case $cross_compiling:$ac_tool_warned in
7263yes:)
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7266ac_tool_warned=yes ;;
7267esac
7268    DSYMUTIL=$ac_ct_DSYMUTIL
7269  fi
7270else
7271  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7272fi
7273
7274    if test -n "$ac_tool_prefix"; then
7275  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7276set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278$as_echo_n "checking for $ac_word... " >&6; }
7279if ${ac_cv_prog_NMEDIT+:} false; then :
7280  $as_echo_n "(cached) " >&6
7281else
7282  if test -n "$NMEDIT"; then
7283  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7284else
7285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286for as_dir in $PATH
7287do
7288  IFS=$as_save_IFS
7289  test -z "$as_dir" && as_dir=.
7290    for ac_exec_ext in '' $ac_executable_extensions; do
7291  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7292    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7293    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294    break 2
7295  fi
7296done
7297  done
7298IFS=$as_save_IFS
7299
7300fi
7301fi
7302NMEDIT=$ac_cv_prog_NMEDIT
7303if test -n "$NMEDIT"; then
7304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7305$as_echo "$NMEDIT" >&6; }
7306else
7307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308$as_echo "no" >&6; }
7309fi
7310
7311
7312fi
7313if test -z "$ac_cv_prog_NMEDIT"; then
7314  ac_ct_NMEDIT=$NMEDIT
7315  # Extract the first word of "nmedit", so it can be a program name with args.
7316set dummy nmedit; ac_word=$2
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318$as_echo_n "checking for $ac_word... " >&6; }
7319if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7320  $as_echo_n "(cached) " >&6
7321else
7322  if test -n "$ac_ct_NMEDIT"; then
7323  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7324else
7325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326for as_dir in $PATH
7327do
7328  IFS=$as_save_IFS
7329  test -z "$as_dir" && as_dir=.
7330    for ac_exec_ext in '' $ac_executable_extensions; do
7331  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7332    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334    break 2
7335  fi
7336done
7337  done
7338IFS=$as_save_IFS
7339
7340fi
7341fi
7342ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7343if test -n "$ac_ct_NMEDIT"; then
7344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7345$as_echo "$ac_ct_NMEDIT" >&6; }
7346else
7347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348$as_echo "no" >&6; }
7349fi
7350
7351  if test "x$ac_ct_NMEDIT" = x; then
7352    NMEDIT=":"
7353  else
7354    case $cross_compiling:$ac_tool_warned in
7355yes:)
7356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7358ac_tool_warned=yes ;;
7359esac
7360    NMEDIT=$ac_ct_NMEDIT
7361  fi
7362else
7363  NMEDIT="$ac_cv_prog_NMEDIT"
7364fi
7365
7366    if test -n "$ac_tool_prefix"; then
7367  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7368set dummy ${ac_tool_prefix}lipo; ac_word=$2
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370$as_echo_n "checking for $ac_word... " >&6; }
7371if ${ac_cv_prog_LIPO+:} false; then :
7372  $as_echo_n "(cached) " >&6
7373else
7374  if test -n "$LIPO"; then
7375  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7376else
7377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378for as_dir in $PATH
7379do
7380  IFS=$as_save_IFS
7381  test -z "$as_dir" && as_dir=.
7382    for ac_exec_ext in '' $ac_executable_extensions; do
7383  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7384    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7385    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386    break 2
7387  fi
7388done
7389  done
7390IFS=$as_save_IFS
7391
7392fi
7393fi
7394LIPO=$ac_cv_prog_LIPO
7395if test -n "$LIPO"; then
7396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7397$as_echo "$LIPO" >&6; }
7398else
7399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400$as_echo "no" >&6; }
7401fi
7402
7403
7404fi
7405if test -z "$ac_cv_prog_LIPO"; then
7406  ac_ct_LIPO=$LIPO
7407  # Extract the first word of "lipo", so it can be a program name with args.
7408set dummy lipo; ac_word=$2
7409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410$as_echo_n "checking for $ac_word... " >&6; }
7411if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7412  $as_echo_n "(cached) " >&6
7413else
7414  if test -n "$ac_ct_LIPO"; then
7415  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7416else
7417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418for as_dir in $PATH
7419do
7420  IFS=$as_save_IFS
7421  test -z "$as_dir" && as_dir=.
7422    for ac_exec_ext in '' $ac_executable_extensions; do
7423  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7424    ac_cv_prog_ac_ct_LIPO="lipo"
7425    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426    break 2
7427  fi
7428done
7429  done
7430IFS=$as_save_IFS
7431
7432fi
7433fi
7434ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7435if test -n "$ac_ct_LIPO"; then
7436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7437$as_echo "$ac_ct_LIPO" >&6; }
7438else
7439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440$as_echo "no" >&6; }
7441fi
7442
7443  if test "x$ac_ct_LIPO" = x; then
7444    LIPO=":"
7445  else
7446    case $cross_compiling:$ac_tool_warned in
7447yes:)
7448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7450ac_tool_warned=yes ;;
7451esac
7452    LIPO=$ac_ct_LIPO
7453  fi
7454else
7455  LIPO="$ac_cv_prog_LIPO"
7456fi
7457
7458    if test -n "$ac_tool_prefix"; then
7459  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7460set dummy ${ac_tool_prefix}otool; ac_word=$2
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462$as_echo_n "checking for $ac_word... " >&6; }
7463if ${ac_cv_prog_OTOOL+:} false; then :
7464  $as_echo_n "(cached) " >&6
7465else
7466  if test -n "$OTOOL"; then
7467  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7468else
7469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472  IFS=$as_save_IFS
7473  test -z "$as_dir" && as_dir=.
7474    for ac_exec_ext in '' $ac_executable_extensions; do
7475  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478    break 2
7479  fi
7480done
7481  done
7482IFS=$as_save_IFS
7483
7484fi
7485fi
7486OTOOL=$ac_cv_prog_OTOOL
7487if test -n "$OTOOL"; then
7488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7489$as_echo "$OTOOL" >&6; }
7490else
7491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492$as_echo "no" >&6; }
7493fi
7494
7495
7496fi
7497if test -z "$ac_cv_prog_OTOOL"; then
7498  ac_ct_OTOOL=$OTOOL
7499  # Extract the first word of "otool", so it can be a program name with args.
7500set dummy otool; ac_word=$2
7501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502$as_echo_n "checking for $ac_word... " >&6; }
7503if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7504  $as_echo_n "(cached) " >&6
7505else
7506  if test -n "$ac_ct_OTOOL"; then
7507  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7508else
7509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510for as_dir in $PATH
7511do
7512  IFS=$as_save_IFS
7513  test -z "$as_dir" && as_dir=.
7514    for ac_exec_ext in '' $ac_executable_extensions; do
7515  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7516    ac_cv_prog_ac_ct_OTOOL="otool"
7517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518    break 2
7519  fi
7520done
7521  done
7522IFS=$as_save_IFS
7523
7524fi
7525fi
7526ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7527if test -n "$ac_ct_OTOOL"; then
7528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7529$as_echo "$ac_ct_OTOOL" >&6; }
7530else
7531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532$as_echo "no" >&6; }
7533fi
7534
7535  if test "x$ac_ct_OTOOL" = x; then
7536    OTOOL=":"
7537  else
7538    case $cross_compiling:$ac_tool_warned in
7539yes:)
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7542ac_tool_warned=yes ;;
7543esac
7544    OTOOL=$ac_ct_OTOOL
7545  fi
7546else
7547  OTOOL="$ac_cv_prog_OTOOL"
7548fi
7549
7550    if test -n "$ac_tool_prefix"; then
7551  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7552set dummy ${ac_tool_prefix}otool64; ac_word=$2
7553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554$as_echo_n "checking for $ac_word... " >&6; }
7555if ${ac_cv_prog_OTOOL64+:} false; then :
7556  $as_echo_n "(cached) " >&6
7557else
7558  if test -n "$OTOOL64"; then
7559  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7560else
7561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562for as_dir in $PATH
7563do
7564  IFS=$as_save_IFS
7565  test -z "$as_dir" && as_dir=.
7566    for ac_exec_ext in '' $ac_executable_extensions; do
7567  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570    break 2
7571  fi
7572done
7573  done
7574IFS=$as_save_IFS
7575
7576fi
7577fi
7578OTOOL64=$ac_cv_prog_OTOOL64
7579if test -n "$OTOOL64"; then
7580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7581$as_echo "$OTOOL64" >&6; }
7582else
7583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584$as_echo "no" >&6; }
7585fi
7586
7587
7588fi
7589if test -z "$ac_cv_prog_OTOOL64"; then
7590  ac_ct_OTOOL64=$OTOOL64
7591  # Extract the first word of "otool64", so it can be a program name with args.
7592set dummy otool64; ac_word=$2
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594$as_echo_n "checking for $ac_word... " >&6; }
7595if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7596  $as_echo_n "(cached) " >&6
7597else
7598  if test -n "$ac_ct_OTOOL64"; then
7599  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7600else
7601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602for as_dir in $PATH
7603do
7604  IFS=$as_save_IFS
7605  test -z "$as_dir" && as_dir=.
7606    for ac_exec_ext in '' $ac_executable_extensions; do
7607  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7608    ac_cv_prog_ac_ct_OTOOL64="otool64"
7609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610    break 2
7611  fi
7612done
7613  done
7614IFS=$as_save_IFS
7615
7616fi
7617fi
7618ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7619if test -n "$ac_ct_OTOOL64"; then
7620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7621$as_echo "$ac_ct_OTOOL64" >&6; }
7622else
7623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624$as_echo "no" >&6; }
7625fi
7626
7627  if test "x$ac_ct_OTOOL64" = x; then
7628    OTOOL64=":"
7629  else
7630    case $cross_compiling:$ac_tool_warned in
7631yes:)
7632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7634ac_tool_warned=yes ;;
7635esac
7636    OTOOL64=$ac_ct_OTOOL64
7637  fi
7638else
7639  OTOOL64="$ac_cv_prog_OTOOL64"
7640fi
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7669$as_echo_n "checking for -single_module linker flag... " >&6; }
7670if ${lt_cv_apple_cc_single_mod+:} false; then :
7671  $as_echo_n "(cached) " >&6
7672else
7673  lt_cv_apple_cc_single_mod=no
7674      if test -z "${LT_MULTI_MODULE}"; then
7675	# By default we will add the -single_module flag. You can override
7676	# by either setting the environment variable LT_MULTI_MODULE
7677	# non-empty at configure time, or by adding -multi_module to the
7678	# link flags.
7679	rm -rf libconftest.dylib*
7680	echo "int foo(void){return 1;}" > conftest.c
7681	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7682-dynamiclib -Wl,-single_module conftest.c" >&5
7683	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7684	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7685        _lt_result=$?
7686	# If there is a non-empty error log, and "single_module"
7687	# appears in it, assume the flag caused a linker warning
7688        if test -s conftest.err && $GREP single_module conftest.err; then
7689	  cat conftest.err >&5
7690	# Otherwise, if the output was created with a 0 exit code from
7691	# the compiler, it worked.
7692	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7693	  lt_cv_apple_cc_single_mod=yes
7694	else
7695	  cat conftest.err >&5
7696	fi
7697	rm -rf libconftest.dylib*
7698	rm -f conftest.*
7699      fi
7700fi
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7702$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7703
7704    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7705$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7706if ${lt_cv_ld_exported_symbols_list+:} false; then :
7707  $as_echo_n "(cached) " >&6
7708else
7709  lt_cv_ld_exported_symbols_list=no
7710      save_LDFLAGS=$LDFLAGS
7711      echo "_main" > conftest.sym
7712      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7713      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714/* end confdefs.h.  */
7715
7716int
7717main ()
7718{
7719
7720  ;
7721  return 0;
7722}
7723_ACEOF
7724if ac_fn_c_try_link "$LINENO"; then :
7725  lt_cv_ld_exported_symbols_list=yes
7726else
7727  lt_cv_ld_exported_symbols_list=no
7728fi
7729rm -f core conftest.err conftest.$ac_objext \
7730    conftest$ac_exeext conftest.$ac_ext
7731	LDFLAGS="$save_LDFLAGS"
7732
7733fi
7734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7735$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7736
7737    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7738$as_echo_n "checking for -force_load linker flag... " >&6; }
7739if ${lt_cv_ld_force_load+:} false; then :
7740  $as_echo_n "(cached) " >&6
7741else
7742  lt_cv_ld_force_load=no
7743      cat > conftest.c << _LT_EOF
7744int forced_loaded() { return 2;}
7745_LT_EOF
7746      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7747      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7748      echo "$AR cru libconftest.a conftest.o" >&5
7749      $AR cru libconftest.a conftest.o 2>&5
7750      echo "$RANLIB libconftest.a" >&5
7751      $RANLIB libconftest.a 2>&5
7752      cat > conftest.c << _LT_EOF
7753int main() { return 0;}
7754_LT_EOF
7755      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7756      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7757      _lt_result=$?
7758      if test -s conftest.err && $GREP force_load conftest.err; then
7759	cat conftest.err >&5
7760      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7761	lt_cv_ld_force_load=yes
7762      else
7763	cat conftest.err >&5
7764      fi
7765        rm -f conftest.err libconftest.a conftest conftest.c
7766        rm -rf conftest.dSYM
7767
7768fi
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7770$as_echo "$lt_cv_ld_force_load" >&6; }
7771    case $host_os in
7772    rhapsody* | darwin1.[012])
7773      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7774    darwin1.*)
7775      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7776    darwin*) # darwin 5.x on
7777      # if running on 10.5 or later, the deployment target defaults
7778      # to the OS version, if on x86, and 10.4, the deployment
7779      # target defaults to 10.4. Don't you love it?
7780      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7781	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7782	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7783	10.[012]*)
7784	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7785	10.*)
7786	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7787      esac
7788    ;;
7789  esac
7790    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7791      _lt_dar_single_mod='$single_module'
7792    fi
7793    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7794      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7795    else
7796      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7797    fi
7798    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7799      _lt_dsymutil='~$DSYMUTIL $lib || :'
7800    else
7801      _lt_dsymutil=
7802    fi
7803    ;;
7804  esac
7805
7806for ac_header in dlfcn.h
7807do :
7808  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7809"
7810if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7811  cat >>confdefs.h <<_ACEOF
7812#define HAVE_DLFCN_H 1
7813_ACEOF
7814
7815fi
7816
7817done
7818
7819
7820
7821
7822
7823# Set options
7824
7825
7826
7827        enable_dlopen=no
7828
7829
7830  enable_win32_dll=no
7831
7832
7833            # Check whether --enable-shared was given.
7834if test "${enable_shared+set}" = set; then :
7835  enableval=$enable_shared; p=${PACKAGE-default}
7836    case $enableval in
7837    yes) enable_shared=yes ;;
7838    no) enable_shared=no ;;
7839    *)
7840      enable_shared=no
7841      # Look at the argument we got.  We use all the common list separators.
7842      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7843      for pkg in $enableval; do
7844	IFS="$lt_save_ifs"
7845	if test "X$pkg" = "X$p"; then
7846	  enable_shared=yes
7847	fi
7848      done
7849      IFS="$lt_save_ifs"
7850      ;;
7851    esac
7852else
7853  enable_shared=yes
7854fi
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864  # Check whether --enable-static was given.
7865if test "${enable_static+set}" = set; then :
7866  enableval=$enable_static; p=${PACKAGE-default}
7867    case $enableval in
7868    yes) enable_static=yes ;;
7869    no) enable_static=no ;;
7870    *)
7871     enable_static=no
7872      # Look at the argument we got.  We use all the common list separators.
7873      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7874      for pkg in $enableval; do
7875	IFS="$lt_save_ifs"
7876	if test "X$pkg" = "X$p"; then
7877	  enable_static=yes
7878	fi
7879      done
7880      IFS="$lt_save_ifs"
7881      ;;
7882    esac
7883else
7884  enable_static=yes
7885fi
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896# Check whether --with-pic was given.
7897if test "${with_pic+set}" = set; then :
7898  withval=$with_pic; lt_p=${PACKAGE-default}
7899    case $withval in
7900    yes|no) pic_mode=$withval ;;
7901    *)
7902      pic_mode=default
7903      # Look at the argument we got.  We use all the common list separators.
7904      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7905      for lt_pkg in $withval; do
7906	IFS="$lt_save_ifs"
7907	if test "X$lt_pkg" = "X$lt_p"; then
7908	  pic_mode=yes
7909	fi
7910      done
7911      IFS="$lt_save_ifs"
7912      ;;
7913    esac
7914else
7915  pic_mode=default
7916fi
7917
7918
7919test -z "$pic_mode" && pic_mode=default
7920
7921
7922
7923
7924
7925
7926
7927  # Check whether --enable-fast-install was given.
7928if test "${enable_fast_install+set}" = set; then :
7929  enableval=$enable_fast_install; p=${PACKAGE-default}
7930    case $enableval in
7931    yes) enable_fast_install=yes ;;
7932    no) enable_fast_install=no ;;
7933    *)
7934      enable_fast_install=no
7935      # Look at the argument we got.  We use all the common list separators.
7936      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7937      for pkg in $enableval; do
7938	IFS="$lt_save_ifs"
7939	if test "X$pkg" = "X$p"; then
7940	  enable_fast_install=yes
7941	fi
7942      done
7943      IFS="$lt_save_ifs"
7944      ;;
7945    esac
7946else
7947  enable_fast_install=yes
7948fi
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960# This can be used to rebuild libtool when needed
7961LIBTOOL_DEPS="$ltmain"
7962
7963# Always use our own libtool.
7964LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995test -z "$LN_S" && LN_S="ln -s"
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010if test -n "${ZSH_VERSION+set}" ; then
8011   setopt NO_GLOB_SUBST
8012fi
8013
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8015$as_echo_n "checking for objdir... " >&6; }
8016if ${lt_cv_objdir+:} false; then :
8017  $as_echo_n "(cached) " >&6
8018else
8019  rm -f .libs 2>/dev/null
8020mkdir .libs 2>/dev/null
8021if test -d .libs; then
8022  lt_cv_objdir=.libs
8023else
8024  # MS-DOS does not allow filenames that begin with a dot.
8025  lt_cv_objdir=_libs
8026fi
8027rmdir .libs 2>/dev/null
8028fi
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8030$as_echo "$lt_cv_objdir" >&6; }
8031objdir=$lt_cv_objdir
8032
8033
8034
8035
8036
8037cat >>confdefs.h <<_ACEOF
8038#define LT_OBJDIR "$lt_cv_objdir/"
8039_ACEOF
8040
8041
8042
8043
8044case $host_os in
8045aix3*)
8046  # AIX sometimes has problems with the GCC collect2 program.  For some
8047  # reason, if we set the COLLECT_NAMES environment variable, the problems
8048  # vanish in a puff of smoke.
8049  if test "X${COLLECT_NAMES+set}" != Xset; then
8050    COLLECT_NAMES=
8051    export COLLECT_NAMES
8052  fi
8053  ;;
8054esac
8055
8056# Global variables:
8057ofile=libtool
8058can_build_shared=yes
8059
8060# All known linkers require a `.a' archive for static linking (except MSVC,
8061# which needs '.lib').
8062libext=a
8063
8064with_gnu_ld="$lt_cv_prog_gnu_ld"
8065
8066old_CC="$CC"
8067old_CFLAGS="$CFLAGS"
8068
8069# Set sane defaults for various variables
8070test -z "$CC" && CC=cc
8071test -z "$LTCC" && LTCC=$CC
8072test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8073test -z "$LD" && LD=ld
8074test -z "$ac_objext" && ac_objext=o
8075
8076for cc_temp in $compiler""; do
8077  case $cc_temp in
8078    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8079    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8080    \-*) ;;
8081    *) break;;
8082  esac
8083done
8084cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8085
8086
8087# Only perform the check for file, if the check method requires it
8088test -z "$MAGIC_CMD" && MAGIC_CMD=file
8089case $deplibs_check_method in
8090file_magic*)
8091  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8092    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8093$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8094if ${lt_cv_path_MAGIC_CMD+:} false; then :
8095  $as_echo_n "(cached) " >&6
8096else
8097  case $MAGIC_CMD in
8098[\\/*] |  ?:[\\/]*)
8099  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8100  ;;
8101*)
8102  lt_save_MAGIC_CMD="$MAGIC_CMD"
8103  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8104  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8105  for ac_dir in $ac_dummy; do
8106    IFS="$lt_save_ifs"
8107    test -z "$ac_dir" && ac_dir=.
8108    if test -f $ac_dir/${ac_tool_prefix}file; then
8109      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8110      if test -n "$file_magic_test_file"; then
8111	case $deplibs_check_method in
8112	"file_magic "*)
8113	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8114	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8115	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8116	    $EGREP "$file_magic_regex" > /dev/null; then
8117	    :
8118	  else
8119	    cat <<_LT_EOF 1>&2
8120
8121*** Warning: the command libtool uses to detect shared libraries,
8122*** $file_magic_cmd, produces output that libtool cannot recognize.
8123*** The result is that libtool may fail to recognize shared libraries
8124*** as such.  This will affect the creation of libtool libraries that
8125*** depend on shared libraries, but programs linked with such libtool
8126*** libraries will work regardless of this problem.  Nevertheless, you
8127*** may want to report the problem to your system manager and/or to
8128*** bug-libtool@gnu.org
8129
8130_LT_EOF
8131	  fi ;;
8132	esac
8133      fi
8134      break
8135    fi
8136  done
8137  IFS="$lt_save_ifs"
8138  MAGIC_CMD="$lt_save_MAGIC_CMD"
8139  ;;
8140esac
8141fi
8142
8143MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8144if test -n "$MAGIC_CMD"; then
8145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8146$as_echo "$MAGIC_CMD" >&6; }
8147else
8148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149$as_echo "no" >&6; }
8150fi
8151
8152
8153
8154
8155
8156if test -z "$lt_cv_path_MAGIC_CMD"; then
8157  if test -n "$ac_tool_prefix"; then
8158    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8159$as_echo_n "checking for file... " >&6; }
8160if ${lt_cv_path_MAGIC_CMD+:} false; then :
8161  $as_echo_n "(cached) " >&6
8162else
8163  case $MAGIC_CMD in
8164[\\/*] |  ?:[\\/]*)
8165  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8166  ;;
8167*)
8168  lt_save_MAGIC_CMD="$MAGIC_CMD"
8169  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8170  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8171  for ac_dir in $ac_dummy; do
8172    IFS="$lt_save_ifs"
8173    test -z "$ac_dir" && ac_dir=.
8174    if test -f $ac_dir/file; then
8175      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8176      if test -n "$file_magic_test_file"; then
8177	case $deplibs_check_method in
8178	"file_magic "*)
8179	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8180	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8181	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8182	    $EGREP "$file_magic_regex" > /dev/null; then
8183	    :
8184	  else
8185	    cat <<_LT_EOF 1>&2
8186
8187*** Warning: the command libtool uses to detect shared libraries,
8188*** $file_magic_cmd, produces output that libtool cannot recognize.
8189*** The result is that libtool may fail to recognize shared libraries
8190*** as such.  This will affect the creation of libtool libraries that
8191*** depend on shared libraries, but programs linked with such libtool
8192*** libraries will work regardless of this problem.  Nevertheless, you
8193*** may want to report the problem to your system manager and/or to
8194*** bug-libtool@gnu.org
8195
8196_LT_EOF
8197	  fi ;;
8198	esac
8199      fi
8200      break
8201    fi
8202  done
8203  IFS="$lt_save_ifs"
8204  MAGIC_CMD="$lt_save_MAGIC_CMD"
8205  ;;
8206esac
8207fi
8208
8209MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8210if test -n "$MAGIC_CMD"; then
8211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8212$as_echo "$MAGIC_CMD" >&6; }
8213else
8214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215$as_echo "no" >&6; }
8216fi
8217
8218
8219  else
8220    MAGIC_CMD=:
8221  fi
8222fi
8223
8224  fi
8225  ;;
8226esac
8227
8228# Use C for the default configuration in the libtool script
8229
8230lt_save_CC="$CC"
8231ac_ext=c
8232ac_cpp='$CPP $CPPFLAGS'
8233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8235ac_compiler_gnu=$ac_cv_c_compiler_gnu
8236
8237
8238# Source file extension for C test sources.
8239ac_ext=c
8240
8241# Object file extension for compiled C test sources.
8242objext=o
8243objext=$objext
8244
8245# Code to be used in simple compile tests
8246lt_simple_compile_test_code="int some_variable = 0;"
8247
8248# Code to be used in simple link tests
8249lt_simple_link_test_code='int main(){return(0);}'
8250
8251
8252
8253
8254
8255
8256
8257# If no C compiler was specified, use CC.
8258LTCC=${LTCC-"$CC"}
8259
8260# If no C compiler flags were specified, use CFLAGS.
8261LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8262
8263# Allow CC to be a program name with arguments.
8264compiler=$CC
8265
8266# Save the default compiler, since it gets overwritten when the other
8267# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8268compiler_DEFAULT=$CC
8269
8270# save warnings/boilerplate of simple test code
8271ac_outfile=conftest.$ac_objext
8272echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8273eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8274_lt_compiler_boilerplate=`cat conftest.err`
8275$RM conftest*
8276
8277ac_outfile=conftest.$ac_objext
8278echo "$lt_simple_link_test_code" >conftest.$ac_ext
8279eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8280_lt_linker_boilerplate=`cat conftest.err`
8281$RM -r conftest*
8282
8283
8284if test -n "$compiler"; then
8285
8286lt_prog_compiler_no_builtin_flag=
8287
8288if test "$GCC" = yes; then
8289  case $cc_basename in
8290  nvcc*)
8291    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8292  *)
8293    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8294  esac
8295
8296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8297$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8298if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8299  $as_echo_n "(cached) " >&6
8300else
8301  lt_cv_prog_compiler_rtti_exceptions=no
8302   ac_outfile=conftest.$ac_objext
8303   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8304   lt_compiler_flag="-fno-rtti -fno-exceptions"
8305   # Insert the option either (1) after the last *FLAGS variable, or
8306   # (2) before a word containing "conftest.", or (3) at the end.
8307   # Note that $ac_compile itself does not contain backslashes and begins
8308   # with a dollar sign (not a hyphen), so the echo should work correctly.
8309   # The option is referenced via a variable to avoid confusing sed.
8310   lt_compile=`echo "$ac_compile" | $SED \
8311   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8312   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8313   -e 's:$: $lt_compiler_flag:'`
8314   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8315   (eval "$lt_compile" 2>conftest.err)
8316   ac_status=$?
8317   cat conftest.err >&5
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   if (exit $ac_status) && test -s "$ac_outfile"; then
8320     # The compiler can only warn and ignore the option if not recognized
8321     # So say no if there are warnings other than the usual output.
8322     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8323     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8324     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8325       lt_cv_prog_compiler_rtti_exceptions=yes
8326     fi
8327   fi
8328   $RM conftest*
8329
8330fi
8331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8332$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8333
8334if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8335    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8336else
8337    :
8338fi
8339
8340fi
8341
8342
8343
8344
8345
8346
8347  lt_prog_compiler_wl=
8348lt_prog_compiler_pic=
8349lt_prog_compiler_static=
8350
8351
8352  if test "$GCC" = yes; then
8353    lt_prog_compiler_wl='-Wl,'
8354    lt_prog_compiler_static='-static'
8355
8356    case $host_os in
8357      aix*)
8358      # All AIX code is PIC.
8359      if test "$host_cpu" = ia64; then
8360	# AIX 5 now supports IA64 processor
8361	lt_prog_compiler_static='-Bstatic'
8362      fi
8363      ;;
8364
8365    amigaos*)
8366      case $host_cpu in
8367      powerpc)
8368            # see comment about AmigaOS4 .so support
8369            lt_prog_compiler_pic='-fPIC'
8370        ;;
8371      m68k)
8372            # FIXME: we need at least 68020 code to build shared libraries, but
8373            # adding the `-m68020' flag to GCC prevents building anything better,
8374            # like `-m68040'.
8375            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8376        ;;
8377      esac
8378      ;;
8379
8380    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8381      # PIC is the default for these OSes.
8382      ;;
8383
8384    mingw* | cygwin* | pw32* | os2* | cegcc*)
8385      # This hack is so that the source file can tell whether it is being
8386      # built for inclusion in a dll (and should export symbols for example).
8387      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8388      # (--disable-auto-import) libraries
8389      lt_prog_compiler_pic='-DDLL_EXPORT'
8390      ;;
8391
8392    darwin* | rhapsody*)
8393      # PIC is the default on this platform
8394      # Common symbols not allowed in MH_DYLIB files
8395      lt_prog_compiler_pic='-fno-common'
8396      ;;
8397
8398    haiku*)
8399      # PIC is the default for Haiku.
8400      # The "-static" flag exists, but is broken.
8401      lt_prog_compiler_static=
8402      ;;
8403
8404    hpux*)
8405      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8406      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8407      # sets the default TLS model and affects inlining.
8408      case $host_cpu in
8409      hppa*64*)
8410	# +Z the default
8411	;;
8412      *)
8413	lt_prog_compiler_pic='-fPIC'
8414	;;
8415      esac
8416      ;;
8417
8418    interix[3-9]*)
8419      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8420      # Instead, we relocate shared libraries at runtime.
8421      ;;
8422
8423    msdosdjgpp*)
8424      # Just because we use GCC doesn't mean we suddenly get shared libraries
8425      # on systems that don't support them.
8426      lt_prog_compiler_can_build_shared=no
8427      enable_shared=no
8428      ;;
8429
8430    *nto* | *qnx*)
8431      # QNX uses GNU C++, but need to define -shared option too, otherwise
8432      # it will coredump.
8433      lt_prog_compiler_pic='-fPIC -shared'
8434      ;;
8435
8436    sysv4*MP*)
8437      if test -d /usr/nec; then
8438	lt_prog_compiler_pic=-Kconform_pic
8439      fi
8440      ;;
8441
8442    *)
8443      lt_prog_compiler_pic='-fPIC'
8444      ;;
8445    esac
8446
8447    case $cc_basename in
8448    nvcc*) # Cuda Compiler Driver 2.2
8449      lt_prog_compiler_wl='-Xlinker '
8450      if test -n "$lt_prog_compiler_pic"; then
8451        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8452      fi
8453      ;;
8454    esac
8455  else
8456    # PORTME Check for flag to pass linker flags through the system compiler.
8457    case $host_os in
8458    aix*)
8459      lt_prog_compiler_wl='-Wl,'
8460      if test "$host_cpu" = ia64; then
8461	# AIX 5 now supports IA64 processor
8462	lt_prog_compiler_static='-Bstatic'
8463      else
8464	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8465      fi
8466      ;;
8467
8468    mingw* | cygwin* | pw32* | os2* | cegcc*)
8469      # This hack is so that the source file can tell whether it is being
8470      # built for inclusion in a dll (and should export symbols for example).
8471      lt_prog_compiler_pic='-DDLL_EXPORT'
8472      ;;
8473
8474    hpux9* | hpux10* | hpux11*)
8475      lt_prog_compiler_wl='-Wl,'
8476      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8477      # not for PA HP-UX.
8478      case $host_cpu in
8479      hppa*64*|ia64*)
8480	# +Z the default
8481	;;
8482      *)
8483	lt_prog_compiler_pic='+Z'
8484	;;
8485      esac
8486      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8487      lt_prog_compiler_static='${wl}-a ${wl}archive'
8488      ;;
8489
8490    irix5* | irix6* | nonstopux*)
8491      lt_prog_compiler_wl='-Wl,'
8492      # PIC (with -KPIC) is the default.
8493      lt_prog_compiler_static='-non_shared'
8494      ;;
8495
8496    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8497      case $cc_basename in
8498      # old Intel for x86_64 which still supported -KPIC.
8499      ecc*)
8500	lt_prog_compiler_wl='-Wl,'
8501	lt_prog_compiler_pic='-KPIC'
8502	lt_prog_compiler_static='-static'
8503        ;;
8504      # icc used to be incompatible with GCC.
8505      # ICC 10 doesn't accept -KPIC any more.
8506      icc* | ifort*)
8507	lt_prog_compiler_wl='-Wl,'
8508	lt_prog_compiler_pic='-fPIC'
8509	lt_prog_compiler_static='-static'
8510        ;;
8511      # Lahey Fortran 8.1.
8512      lf95*)
8513	lt_prog_compiler_wl='-Wl,'
8514	lt_prog_compiler_pic='--shared'
8515	lt_prog_compiler_static='--static'
8516	;;
8517      nagfor*)
8518	# NAG Fortran compiler
8519	lt_prog_compiler_wl='-Wl,-Wl,,'
8520	lt_prog_compiler_pic='-PIC'
8521	lt_prog_compiler_static='-Bstatic'
8522	;;
8523      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8524        # Portland Group compilers (*not* the Pentium gcc compiler,
8525	# which looks to be a dead project)
8526	lt_prog_compiler_wl='-Wl,'
8527	lt_prog_compiler_pic='-fpic'
8528	lt_prog_compiler_static='-Bstatic'
8529        ;;
8530      ccc*)
8531        lt_prog_compiler_wl='-Wl,'
8532        # All Alpha code is PIC.
8533        lt_prog_compiler_static='-non_shared'
8534        ;;
8535      xl* | bgxl* | bgf* | mpixl*)
8536	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8537	lt_prog_compiler_wl='-Wl,'
8538	lt_prog_compiler_pic='-qpic'
8539	lt_prog_compiler_static='-qstaticlink'
8540	;;
8541      *)
8542	case `$CC -V 2>&1 | sed 5q` in
8543	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8544	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8545	  lt_prog_compiler_pic='-KPIC'
8546	  lt_prog_compiler_static='-Bstatic'
8547	  lt_prog_compiler_wl=''
8548	  ;;
8549	*Sun\ F* | *Sun*Fortran*)
8550	  lt_prog_compiler_pic='-KPIC'
8551	  lt_prog_compiler_static='-Bstatic'
8552	  lt_prog_compiler_wl='-Qoption ld '
8553	  ;;
8554	*Sun\ C*)
8555	  # Sun C 5.9
8556	  lt_prog_compiler_pic='-KPIC'
8557	  lt_prog_compiler_static='-Bstatic'
8558	  lt_prog_compiler_wl='-Wl,'
8559	  ;;
8560        *Intel*\ [CF]*Compiler*)
8561	  lt_prog_compiler_wl='-Wl,'
8562	  lt_prog_compiler_pic='-fPIC'
8563	  lt_prog_compiler_static='-static'
8564	  ;;
8565	*Portland\ Group*)
8566	  lt_prog_compiler_wl='-Wl,'
8567	  lt_prog_compiler_pic='-fpic'
8568	  lt_prog_compiler_static='-Bstatic'
8569	  ;;
8570	esac
8571	;;
8572      esac
8573      ;;
8574
8575    newsos6)
8576      lt_prog_compiler_pic='-KPIC'
8577      lt_prog_compiler_static='-Bstatic'
8578      ;;
8579
8580    *nto* | *qnx*)
8581      # QNX uses GNU C++, but need to define -shared option too, otherwise
8582      # it will coredump.
8583      lt_prog_compiler_pic='-fPIC -shared'
8584      ;;
8585
8586    osf3* | osf4* | osf5*)
8587      lt_prog_compiler_wl='-Wl,'
8588      # All OSF/1 code is PIC.
8589      lt_prog_compiler_static='-non_shared'
8590      ;;
8591
8592    rdos*)
8593      lt_prog_compiler_static='-non_shared'
8594      ;;
8595
8596    solaris*)
8597      lt_prog_compiler_pic='-KPIC'
8598      lt_prog_compiler_static='-Bstatic'
8599      case $cc_basename in
8600      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8601	lt_prog_compiler_wl='-Qoption ld ';;
8602      *)
8603	lt_prog_compiler_wl='-Wl,';;
8604      esac
8605      ;;
8606
8607    sunos4*)
8608      lt_prog_compiler_wl='-Qoption ld '
8609      lt_prog_compiler_pic='-PIC'
8610      lt_prog_compiler_static='-Bstatic'
8611      ;;
8612
8613    sysv4 | sysv4.2uw2* | sysv4.3*)
8614      lt_prog_compiler_wl='-Wl,'
8615      lt_prog_compiler_pic='-KPIC'
8616      lt_prog_compiler_static='-Bstatic'
8617      ;;
8618
8619    sysv4*MP*)
8620      if test -d /usr/nec ;then
8621	lt_prog_compiler_pic='-Kconform_pic'
8622	lt_prog_compiler_static='-Bstatic'
8623      fi
8624      ;;
8625
8626    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8627      lt_prog_compiler_wl='-Wl,'
8628      lt_prog_compiler_pic='-KPIC'
8629      lt_prog_compiler_static='-Bstatic'
8630      ;;
8631
8632    unicos*)
8633      lt_prog_compiler_wl='-Wl,'
8634      lt_prog_compiler_can_build_shared=no
8635      ;;
8636
8637    uts4*)
8638      lt_prog_compiler_pic='-pic'
8639      lt_prog_compiler_static='-Bstatic'
8640      ;;
8641
8642    *)
8643      lt_prog_compiler_can_build_shared=no
8644      ;;
8645    esac
8646  fi
8647
8648case $host_os in
8649  # For platforms which do not support PIC, -DPIC is meaningless:
8650  *djgpp*)
8651    lt_prog_compiler_pic=
8652    ;;
8653  *)
8654    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8655    ;;
8656esac
8657
8658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8659$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8660if ${lt_cv_prog_compiler_pic+:} false; then :
8661  $as_echo_n "(cached) " >&6
8662else
8663  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8664fi
8665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8666$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8667lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8668
8669#
8670# Check to make sure the PIC flag actually works.
8671#
8672if test -n "$lt_prog_compiler_pic"; then
8673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8674$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8675if ${lt_cv_prog_compiler_pic_works+:} false; then :
8676  $as_echo_n "(cached) " >&6
8677else
8678  lt_cv_prog_compiler_pic_works=no
8679   ac_outfile=conftest.$ac_objext
8680   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8681   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8682   # Insert the option either (1) after the last *FLAGS variable, or
8683   # (2) before a word containing "conftest.", or (3) at the end.
8684   # Note that $ac_compile itself does not contain backslashes and begins
8685   # with a dollar sign (not a hyphen), so the echo should work correctly.
8686   # The option is referenced via a variable to avoid confusing sed.
8687   lt_compile=`echo "$ac_compile" | $SED \
8688   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8689   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8690   -e 's:$: $lt_compiler_flag:'`
8691   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8692   (eval "$lt_compile" 2>conftest.err)
8693   ac_status=$?
8694   cat conftest.err >&5
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   if (exit $ac_status) && test -s "$ac_outfile"; then
8697     # The compiler can only warn and ignore the option if not recognized
8698     # So say no if there are warnings other than the usual output.
8699     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8700     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8701     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8702       lt_cv_prog_compiler_pic_works=yes
8703     fi
8704   fi
8705   $RM conftest*
8706
8707fi
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8709$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8710
8711if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8712    case $lt_prog_compiler_pic in
8713     "" | " "*) ;;
8714     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8715     esac
8716else
8717    lt_prog_compiler_pic=
8718     lt_prog_compiler_can_build_shared=no
8719fi
8720
8721fi
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733#
8734# Check to make sure the static flag actually works.
8735#
8736wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8738$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8739if ${lt_cv_prog_compiler_static_works+:} false; then :
8740  $as_echo_n "(cached) " >&6
8741else
8742  lt_cv_prog_compiler_static_works=no
8743   save_LDFLAGS="$LDFLAGS"
8744   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8745   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8746   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8747     # The linker can only warn and ignore the option if not recognized
8748     # So say no if there are warnings
8749     if test -s conftest.err; then
8750       # Append any errors to the config.log.
8751       cat conftest.err 1>&5
8752       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8753       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8754       if diff conftest.exp conftest.er2 >/dev/null; then
8755         lt_cv_prog_compiler_static_works=yes
8756       fi
8757     else
8758       lt_cv_prog_compiler_static_works=yes
8759     fi
8760   fi
8761   $RM -r conftest*
8762   LDFLAGS="$save_LDFLAGS"
8763
8764fi
8765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8766$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8767
8768if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8769    :
8770else
8771    lt_prog_compiler_static=
8772fi
8773
8774
8775
8776
8777
8778
8779
8780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8781$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8782if ${lt_cv_prog_compiler_c_o+:} false; then :
8783  $as_echo_n "(cached) " >&6
8784else
8785  lt_cv_prog_compiler_c_o=no
8786   $RM -r conftest 2>/dev/null
8787   mkdir conftest
8788   cd conftest
8789   mkdir out
8790   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8791
8792   lt_compiler_flag="-o out/conftest2.$ac_objext"
8793   # Insert the option either (1) after the last *FLAGS variable, or
8794   # (2) before a word containing "conftest.", or (3) at the end.
8795   # Note that $ac_compile itself does not contain backslashes and begins
8796   # with a dollar sign (not a hyphen), so the echo should work correctly.
8797   lt_compile=`echo "$ac_compile" | $SED \
8798   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8799   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8800   -e 's:$: $lt_compiler_flag:'`
8801   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8802   (eval "$lt_compile" 2>out/conftest.err)
8803   ac_status=$?
8804   cat out/conftest.err >&5
8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8807   then
8808     # The compiler can only warn and ignore the option if not recognized
8809     # So say no if there are warnings
8810     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8811     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8812     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8813       lt_cv_prog_compiler_c_o=yes
8814     fi
8815   fi
8816   chmod u+w . 2>&5
8817   $RM conftest*
8818   # SGI C++ compiler will create directory out/ii_files/ for
8819   # template instantiation
8820   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8821   $RM out/* && rmdir out
8822   cd ..
8823   $RM -r conftest
8824   $RM conftest*
8825
8826fi
8827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8828$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8829
8830
8831
8832
8833
8834
8835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8836$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8837if ${lt_cv_prog_compiler_c_o+:} false; then :
8838  $as_echo_n "(cached) " >&6
8839else
8840  lt_cv_prog_compiler_c_o=no
8841   $RM -r conftest 2>/dev/null
8842   mkdir conftest
8843   cd conftest
8844   mkdir out
8845   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8846
8847   lt_compiler_flag="-o out/conftest2.$ac_objext"
8848   # Insert the option either (1) after the last *FLAGS variable, or
8849   # (2) before a word containing "conftest.", or (3) at the end.
8850   # Note that $ac_compile itself does not contain backslashes and begins
8851   # with a dollar sign (not a hyphen), so the echo should work correctly.
8852   lt_compile=`echo "$ac_compile" | $SED \
8853   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8854   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8855   -e 's:$: $lt_compiler_flag:'`
8856   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8857   (eval "$lt_compile" 2>out/conftest.err)
8858   ac_status=$?
8859   cat out/conftest.err >&5
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8862   then
8863     # The compiler can only warn and ignore the option if not recognized
8864     # So say no if there are warnings
8865     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8866     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8867     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8868       lt_cv_prog_compiler_c_o=yes
8869     fi
8870   fi
8871   chmod u+w . 2>&5
8872   $RM conftest*
8873   # SGI C++ compiler will create directory out/ii_files/ for
8874   # template instantiation
8875   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8876   $RM out/* && rmdir out
8877   cd ..
8878   $RM -r conftest
8879   $RM conftest*
8880
8881fi
8882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8883$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8884
8885
8886
8887
8888hard_links="nottested"
8889if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8890  # do not overwrite the value of need_locks provided by the user
8891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8892$as_echo_n "checking if we can lock with hard links... " >&6; }
8893  hard_links=yes
8894  $RM conftest*
8895  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8896  touch conftest.a
8897  ln conftest.a conftest.b 2>&5 || hard_links=no
8898  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8900$as_echo "$hard_links" >&6; }
8901  if test "$hard_links" = no; then
8902    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8903$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8904    need_locks=warn
8905  fi
8906else
8907  need_locks=no
8908fi
8909
8910
8911
8912
8913
8914
8915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8916$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8917
8918  runpath_var=
8919  allow_undefined_flag=
8920  always_export_symbols=no
8921  archive_cmds=
8922  archive_expsym_cmds=
8923  compiler_needs_object=no
8924  enable_shared_with_static_runtimes=no
8925  export_dynamic_flag_spec=
8926  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8927  hardcode_automatic=no
8928  hardcode_direct=no
8929  hardcode_direct_absolute=no
8930  hardcode_libdir_flag_spec=
8931  hardcode_libdir_separator=
8932  hardcode_minus_L=no
8933  hardcode_shlibpath_var=unsupported
8934  inherit_rpath=no
8935  link_all_deplibs=unknown
8936  module_cmds=
8937  module_expsym_cmds=
8938  old_archive_from_new_cmds=
8939  old_archive_from_expsyms_cmds=
8940  thread_safe_flag_spec=
8941  whole_archive_flag_spec=
8942  # include_expsyms should be a list of space-separated symbols to be *always*
8943  # included in the symbol list
8944  include_expsyms=
8945  # exclude_expsyms can be an extended regexp of symbols to exclude
8946  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8947  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8948  # as well as any symbol that contains `d'.
8949  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8950  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8951  # platforms (ab)use it in PIC code, but their linkers get confused if
8952  # the symbol is explicitly referenced.  Since portable code cannot
8953  # rely on this symbol name, it's probably fine to never include it in
8954  # preloaded symbol tables.
8955  # Exclude shared library initialization/finalization symbols.
8956  extract_expsyms_cmds=
8957
8958  case $host_os in
8959  cygwin* | mingw* | pw32* | cegcc*)
8960    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8961    # When not using gcc, we currently assume that we are using
8962    # Microsoft Visual C++.
8963    if test "$GCC" != yes; then
8964      with_gnu_ld=no
8965    fi
8966    ;;
8967  interix*)
8968    # we just hope/assume this is gcc and not c89 (= MSVC++)
8969    with_gnu_ld=yes
8970    ;;
8971  openbsd*)
8972    with_gnu_ld=no
8973    ;;
8974  esac
8975
8976  ld_shlibs=yes
8977
8978  # On some targets, GNU ld is compatible enough with the native linker
8979  # that we're better off using the native interface for both.
8980  lt_use_gnu_ld_interface=no
8981  if test "$with_gnu_ld" = yes; then
8982    case $host_os in
8983      aix*)
8984	# The AIX port of GNU ld has always aspired to compatibility
8985	# with the native linker.  However, as the warning in the GNU ld
8986	# block says, versions before 2.19.5* couldn't really create working
8987	# shared libraries, regardless of the interface used.
8988	case `$LD -v 2>&1` in
8989	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8990	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8991	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8992	  *)
8993	    lt_use_gnu_ld_interface=yes
8994	    ;;
8995	esac
8996	;;
8997      *)
8998	lt_use_gnu_ld_interface=yes
8999	;;
9000    esac
9001  fi
9002
9003  if test "$lt_use_gnu_ld_interface" = yes; then
9004    # If archive_cmds runs LD, not CC, wlarc should be empty
9005    wlarc='${wl}'
9006
9007    # Set some defaults for GNU ld with shared library support. These
9008    # are reset later if shared libraries are not supported. Putting them
9009    # here allows them to be overridden if necessary.
9010    runpath_var=LD_RUN_PATH
9011    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9012    export_dynamic_flag_spec='${wl}--export-dynamic'
9013    # ancient GNU ld didn't support --whole-archive et. al.
9014    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9015      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9016    else
9017      whole_archive_flag_spec=
9018    fi
9019    supports_anon_versioning=no
9020    case `$LD -v 2>&1` in
9021      *GNU\ gold*) supports_anon_versioning=yes ;;
9022      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9023      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9024      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9025      *\ 2.11.*) ;; # other 2.11 versions
9026      *) supports_anon_versioning=yes ;;
9027    esac
9028
9029    # See if GNU ld supports shared libraries.
9030    case $host_os in
9031    aix[3-9]*)
9032      # On AIX/PPC, the GNU linker is very broken
9033      if test "$host_cpu" != ia64; then
9034	ld_shlibs=no
9035	cat <<_LT_EOF 1>&2
9036
9037*** Warning: the GNU linker, at least up to release 2.19, is reported
9038*** to be unable to reliably create shared libraries on AIX.
9039*** Therefore, libtool is disabling shared libraries support.  If you
9040*** really care for shared libraries, you may want to install binutils
9041*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9042*** You will then need to restart the configuration process.
9043
9044_LT_EOF
9045      fi
9046      ;;
9047
9048    amigaos*)
9049      case $host_cpu in
9050      powerpc)
9051            # see comment about AmigaOS4 .so support
9052            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9053            archive_expsym_cmds=''
9054        ;;
9055      m68k)
9056            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)'
9057            hardcode_libdir_flag_spec='-L$libdir'
9058            hardcode_minus_L=yes
9059        ;;
9060      esac
9061      ;;
9062
9063    beos*)
9064      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9065	allow_undefined_flag=unsupported
9066	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9067	# support --undefined.  This deserves some investigation.  FIXME
9068	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9069      else
9070	ld_shlibs=no
9071      fi
9072      ;;
9073
9074    cygwin* | mingw* | pw32* | cegcc*)
9075      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9076      # as there is no search path for DLLs.
9077      hardcode_libdir_flag_spec='-L$libdir'
9078      export_dynamic_flag_spec='${wl}--export-all-symbols'
9079      allow_undefined_flag=unsupported
9080      always_export_symbols=no
9081      enable_shared_with_static_runtimes=yes
9082      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'
9083      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9084
9085      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9086        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9087	# If the export-symbols file already is a .def file (1st line
9088	# is EXPORTS), use it as is; otherwise, prepend...
9089	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9090	  cp $export_symbols $output_objdir/$soname.def;
9091	else
9092	  echo EXPORTS > $output_objdir/$soname.def;
9093	  cat $export_symbols >> $output_objdir/$soname.def;
9094	fi~
9095	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9096      else
9097	ld_shlibs=no
9098      fi
9099      ;;
9100
9101    haiku*)
9102      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9103      link_all_deplibs=yes
9104      ;;
9105
9106    interix[3-9]*)
9107      hardcode_direct=no
9108      hardcode_shlibpath_var=no
9109      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9110      export_dynamic_flag_spec='${wl}-E'
9111      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9112      # Instead, shared libraries are loaded at an image base (0x10000000 by
9113      # default) and relocated if they conflict, which is a slow very memory
9114      # consuming and fragmenting process.  To avoid this, we pick a random,
9115      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9116      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9117      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9118      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'
9119      ;;
9120
9121    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9122      tmp_diet=no
9123      if test "$host_os" = linux-dietlibc; then
9124	case $cc_basename in
9125	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9126	esac
9127      fi
9128      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9129	 && test "$tmp_diet" = no
9130      then
9131	tmp_addflag=' $pic_flag'
9132	tmp_sharedflag='-shared'
9133	case $cc_basename,$host_cpu in
9134        pgcc*)				# Portland Group C compiler
9135	  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'
9136	  tmp_addflag=' $pic_flag'
9137	  ;;
9138	pgf77* | pgf90* | pgf95* | pgfortran*)
9139					# Portland Group f77 and f90 compilers
9140	  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'
9141	  tmp_addflag=' $pic_flag -Mnomain' ;;
9142	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9143	  tmp_addflag=' -i_dynamic' ;;
9144	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9145	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9146	ifc* | ifort*)			# Intel Fortran compiler
9147	  tmp_addflag=' -nofor_main' ;;
9148	lf95*)				# Lahey Fortran 8.1
9149	  whole_archive_flag_spec=
9150	  tmp_sharedflag='--shared' ;;
9151	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9152	  tmp_sharedflag='-qmkshrobj'
9153	  tmp_addflag= ;;
9154	nvcc*)	# Cuda Compiler Driver 2.2
9155	  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'
9156	  compiler_needs_object=yes
9157	  ;;
9158	esac
9159	case `$CC -V 2>&1 | sed 5q` in
9160	*Sun\ C*)			# Sun C 5.9
9161	  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'
9162	  compiler_needs_object=yes
9163	  tmp_sharedflag='-G' ;;
9164	*Sun\ F*)			# Sun Fortran 8.3
9165	  tmp_sharedflag='-G' ;;
9166	esac
9167	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9168
9169        if test "x$supports_anon_versioning" = xyes; then
9170          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9171	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9172	    echo "local: *; };" >> $output_objdir/$libname.ver~
9173	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9174        fi
9175
9176	case $cc_basename in
9177	xlf* | bgf* | bgxlf* | mpixlf*)
9178	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9179	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9180	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9181	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9182	  if test "x$supports_anon_versioning" = xyes; then
9183	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9184	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9185	      echo "local: *; };" >> $output_objdir/$libname.ver~
9186	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9187	  fi
9188	  ;;
9189	esac
9190      else
9191        ld_shlibs=no
9192      fi
9193      ;;
9194
9195    netbsd*)
9196      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9197	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9198	wlarc=
9199      else
9200	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9202      fi
9203      ;;
9204
9205    solaris*)
9206      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9207	ld_shlibs=no
9208	cat <<_LT_EOF 1>&2
9209
9210*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9211*** create shared libraries on Solaris systems.  Therefore, libtool
9212*** is disabling shared libraries support.  We urge you to upgrade GNU
9213*** binutils to release 2.9.1 or newer.  Another option is to modify
9214*** your PATH or compiler configuration so that the native linker is
9215*** used, and then restart.
9216
9217_LT_EOF
9218      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9219	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9220	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9221      else
9222	ld_shlibs=no
9223      fi
9224      ;;
9225
9226    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9227      case `$LD -v 2>&1` in
9228        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9229	ld_shlibs=no
9230	cat <<_LT_EOF 1>&2
9231
9232*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9233*** reliably create shared libraries on SCO systems.  Therefore, libtool
9234*** is disabling shared libraries support.  We urge you to upgrade GNU
9235*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9236*** your PATH or compiler configuration so that the native linker is
9237*** used, and then restart.
9238
9239_LT_EOF
9240	;;
9241	*)
9242	  # For security reasons, it is highly recommended that you always
9243	  # use absolute paths for naming shared libraries, and exclude the
9244	  # DT_RUNPATH tag from executables and libraries.  But doing so
9245	  # requires that you compile everything twice, which is a pain.
9246	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9247	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9248	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9249	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9250	  else
9251	    ld_shlibs=no
9252	  fi
9253	;;
9254      esac
9255      ;;
9256
9257    sunos4*)
9258      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9259      wlarc=
9260      hardcode_direct=yes
9261      hardcode_shlibpath_var=no
9262      ;;
9263
9264    *)
9265      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9266	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9267	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9268      else
9269	ld_shlibs=no
9270      fi
9271      ;;
9272    esac
9273
9274    if test "$ld_shlibs" = no; then
9275      runpath_var=
9276      hardcode_libdir_flag_spec=
9277      export_dynamic_flag_spec=
9278      whole_archive_flag_spec=
9279    fi
9280  else
9281    # PORTME fill in a description of your system's linker (not GNU ld)
9282    case $host_os in
9283    aix3*)
9284      allow_undefined_flag=unsupported
9285      always_export_symbols=yes
9286      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'
9287      # Note: this linker hardcodes the directories in LIBPATH if there
9288      # are no directories specified by -L.
9289      hardcode_minus_L=yes
9290      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9291	# Neither direct hardcoding nor static linking is supported with a
9292	# broken collect2.
9293	hardcode_direct=unsupported
9294      fi
9295      ;;
9296
9297    aix[4-9]*)
9298      if test "$host_cpu" = ia64; then
9299	# On IA64, the linker does run time linking by default, so we don't
9300	# have to do anything special.
9301	aix_use_runtimelinking=no
9302	exp_sym_flag='-Bexport'
9303	no_entry_flag=""
9304      else
9305	# If we're using GNU nm, then we don't want the "-C" option.
9306	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9307	# Also, AIX nm treats weak defined symbols like other global
9308	# defined symbols, whereas GNU nm marks them as "W".
9309	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9310	  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'
9311	else
9312	  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'
9313	fi
9314	aix_use_runtimelinking=no
9315
9316	# Test if we are trying to use run time linking or normal
9317	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9318	# need to do runtime linking.
9319	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9320	  for ld_flag in $LDFLAGS; do
9321	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9322	    aix_use_runtimelinking=yes
9323	    break
9324	  fi
9325	  done
9326	  ;;
9327	esac
9328
9329	exp_sym_flag='-bexport'
9330	no_entry_flag='-bnoentry'
9331      fi
9332
9333      # When large executables or shared objects are built, AIX ld can
9334      # have problems creating the table of contents.  If linking a library
9335      # or program results in "error TOC overflow" add -mminimal-toc to
9336      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9337      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9338
9339      archive_cmds=''
9340      hardcode_direct=yes
9341      hardcode_direct_absolute=yes
9342      hardcode_libdir_separator=':'
9343      link_all_deplibs=yes
9344      file_list_spec='${wl}-f,'
9345
9346      if test "$GCC" = yes; then
9347	case $host_os in aix4.[012]|aix4.[012].*)
9348	# We only want to do this on AIX 4.2 and lower, the check
9349	# below for broken collect2 doesn't work under 4.3+
9350	  collect2name=`${CC} -print-prog-name=collect2`
9351	  if test -f "$collect2name" &&
9352	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9353	  then
9354	  # We have reworked collect2
9355	  :
9356	  else
9357	  # We have old collect2
9358	  hardcode_direct=unsupported
9359	  # It fails to find uninstalled libraries when the uninstalled
9360	  # path is not listed in the libpath.  Setting hardcode_minus_L
9361	  # to unsupported forces relinking
9362	  hardcode_minus_L=yes
9363	  hardcode_libdir_flag_spec='-L$libdir'
9364	  hardcode_libdir_separator=
9365	  fi
9366	  ;;
9367	esac
9368	shared_flag='-shared'
9369	if test "$aix_use_runtimelinking" = yes; then
9370	  shared_flag="$shared_flag "'${wl}-G'
9371	fi
9372      else
9373	# not using gcc
9374	if test "$host_cpu" = ia64; then
9375	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9376	# chokes on -Wl,-G. The following line is correct:
9377	  shared_flag='-G'
9378	else
9379	  if test "$aix_use_runtimelinking" = yes; then
9380	    shared_flag='${wl}-G'
9381	  else
9382	    shared_flag='${wl}-bM:SRE'
9383	  fi
9384	fi
9385      fi
9386
9387      export_dynamic_flag_spec='${wl}-bexpall'
9388      # It seems that -bexpall does not export symbols beginning with
9389      # underscore (_), so it is better to generate a list of symbols to export.
9390      always_export_symbols=yes
9391      if test "$aix_use_runtimelinking" = yes; then
9392	# Warning - without using the other runtime loading flags (-brtl),
9393	# -berok will link without error, but may produce a broken library.
9394	allow_undefined_flag='-berok'
9395        # Determine the default libpath from the value encoded in an
9396        # empty executable.
9397        if test "${lt_cv_aix_libpath+set}" = set; then
9398  aix_libpath=$lt_cv_aix_libpath
9399else
9400  if ${lt_cv_aix_libpath_+:} false; then :
9401  $as_echo_n "(cached) " >&6
9402else
9403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404/* end confdefs.h.  */
9405
9406int
9407main ()
9408{
9409
9410  ;
9411  return 0;
9412}
9413_ACEOF
9414if ac_fn_c_try_link "$LINENO"; then :
9415
9416  lt_aix_libpath_sed='
9417      /Import File Strings/,/^$/ {
9418	  /^0/ {
9419	      s/^0  *\([^ ]*\) *$/\1/
9420	      p
9421	  }
9422      }'
9423  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9424  # Check for a 64-bit object if we didn't find anything.
9425  if test -z "$lt_cv_aix_libpath_"; then
9426    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9427  fi
9428fi
9429rm -f core conftest.err conftest.$ac_objext \
9430    conftest$ac_exeext conftest.$ac_ext
9431  if test -z "$lt_cv_aix_libpath_"; then
9432    lt_cv_aix_libpath_="/usr/lib:/lib"
9433  fi
9434
9435fi
9436
9437  aix_libpath=$lt_cv_aix_libpath_
9438fi
9439
9440        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9441        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"
9442      else
9443	if test "$host_cpu" = ia64; then
9444	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9445	  allow_undefined_flag="-z nodefs"
9446	  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"
9447	else
9448	 # Determine the default libpath from the value encoded in an
9449	 # empty executable.
9450	 if test "${lt_cv_aix_libpath+set}" = set; then
9451  aix_libpath=$lt_cv_aix_libpath
9452else
9453  if ${lt_cv_aix_libpath_+:} false; then :
9454  $as_echo_n "(cached) " >&6
9455else
9456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457/* end confdefs.h.  */
9458
9459int
9460main ()
9461{
9462
9463  ;
9464  return 0;
9465}
9466_ACEOF
9467if ac_fn_c_try_link "$LINENO"; then :
9468
9469  lt_aix_libpath_sed='
9470      /Import File Strings/,/^$/ {
9471	  /^0/ {
9472	      s/^0  *\([^ ]*\) *$/\1/
9473	      p
9474	  }
9475      }'
9476  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9477  # Check for a 64-bit object if we didn't find anything.
9478  if test -z "$lt_cv_aix_libpath_"; then
9479    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9480  fi
9481fi
9482rm -f core conftest.err conftest.$ac_objext \
9483    conftest$ac_exeext conftest.$ac_ext
9484  if test -z "$lt_cv_aix_libpath_"; then
9485    lt_cv_aix_libpath_="/usr/lib:/lib"
9486  fi
9487
9488fi
9489
9490  aix_libpath=$lt_cv_aix_libpath_
9491fi
9492
9493	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9494	  # Warning - without using the other run time loading flags,
9495	  # -berok will link without error, but may produce a broken library.
9496	  no_undefined_flag=' ${wl}-bernotok'
9497	  allow_undefined_flag=' ${wl}-berok'
9498	  if test "$with_gnu_ld" = yes; then
9499	    # We only use this code for GNU lds that support --whole-archive.
9500	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9501	  else
9502	    # Exported symbols can be pulled into shared objects from archives
9503	    whole_archive_flag_spec='$convenience'
9504	  fi
9505	  archive_cmds_need_lc=yes
9506	  # This is similar to how AIX traditionally builds its shared libraries.
9507	  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'
9508	fi
9509      fi
9510      ;;
9511
9512    amigaos*)
9513      case $host_cpu in
9514      powerpc)
9515            # see comment about AmigaOS4 .so support
9516            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9517            archive_expsym_cmds=''
9518        ;;
9519      m68k)
9520            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)'
9521            hardcode_libdir_flag_spec='-L$libdir'
9522            hardcode_minus_L=yes
9523        ;;
9524      esac
9525      ;;
9526
9527    bsdi[45]*)
9528      export_dynamic_flag_spec=-rdynamic
9529      ;;
9530
9531    cygwin* | mingw* | pw32* | cegcc*)
9532      # When not using gcc, we currently assume that we are using
9533      # Microsoft Visual C++.
9534      # hardcode_libdir_flag_spec is actually meaningless, as there is
9535      # no search path for DLLs.
9536      case $cc_basename in
9537      cl*)
9538	# Native MSVC
9539	hardcode_libdir_flag_spec=' '
9540	allow_undefined_flag=unsupported
9541	always_export_symbols=yes
9542	file_list_spec='@'
9543	# Tell ltmain to make .lib files, not .a files.
9544	libext=lib
9545	# Tell ltmain to make .dll files, not .so files.
9546	shrext_cmds=".dll"
9547	# FIXME: Setting linknames here is a bad hack.
9548	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9549	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9550	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9551	  else
9552	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9553	  fi~
9554	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9555	  linknames='
9556	# The linker will not automatically build a static lib if we build a DLL.
9557	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9558	enable_shared_with_static_runtimes=yes
9559	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9560	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9561	# Don't use ranlib
9562	old_postinstall_cmds='chmod 644 $oldlib'
9563	postlink_cmds='lt_outputfile="@OUTPUT@"~
9564	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9565	  case $lt_outputfile in
9566	    *.exe|*.EXE) ;;
9567	    *)
9568	      lt_outputfile="$lt_outputfile.exe"
9569	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9570	      ;;
9571	  esac~
9572	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9573	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9574	    $RM "$lt_outputfile.manifest";
9575	  fi'
9576	;;
9577      *)
9578	# Assume MSVC wrapper
9579	hardcode_libdir_flag_spec=' '
9580	allow_undefined_flag=unsupported
9581	# Tell ltmain to make .lib files, not .a files.
9582	libext=lib
9583	# Tell ltmain to make .dll files, not .so files.
9584	shrext_cmds=".dll"
9585	# FIXME: Setting linknames here is a bad hack.
9586	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9587	# The linker will automatically build a .lib file if we build a DLL.
9588	old_archive_from_new_cmds='true'
9589	# FIXME: Should let the user specify the lib program.
9590	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9591	enable_shared_with_static_runtimes=yes
9592	;;
9593      esac
9594      ;;
9595
9596    darwin* | rhapsody*)
9597
9598
9599  archive_cmds_need_lc=no
9600  hardcode_direct=no
9601  hardcode_automatic=yes
9602  hardcode_shlibpath_var=unsupported
9603  if test "$lt_cv_ld_force_load" = "yes"; then
9604    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\"`'
9605
9606  else
9607    whole_archive_flag_spec=''
9608  fi
9609  link_all_deplibs=yes
9610  allow_undefined_flag="$_lt_dar_allow_undefined"
9611  case $cc_basename in
9612     ifort*) _lt_dar_can_shared=yes ;;
9613     *) _lt_dar_can_shared=$GCC ;;
9614  esac
9615  if test "$_lt_dar_can_shared" = "yes"; then
9616    output_verbose_link_cmd=func_echo_all
9617    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9618    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9619    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}"
9620    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}"
9621
9622  else
9623  ld_shlibs=no
9624  fi
9625
9626      ;;
9627
9628    dgux*)
9629      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9630      hardcode_libdir_flag_spec='-L$libdir'
9631      hardcode_shlibpath_var=no
9632      ;;
9633
9634    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9635    # support.  Future versions do this automatically, but an explicit c++rt0.o
9636    # does not break anything, and helps significantly (at the cost of a little
9637    # extra space).
9638    freebsd2.2*)
9639      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9640      hardcode_libdir_flag_spec='-R$libdir'
9641      hardcode_direct=yes
9642      hardcode_shlibpath_var=no
9643      ;;
9644
9645    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9646    freebsd2.*)
9647      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9648      hardcode_direct=yes
9649      hardcode_minus_L=yes
9650      hardcode_shlibpath_var=no
9651      ;;
9652
9653    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9654    freebsd* | dragonfly*)
9655      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9656      hardcode_libdir_flag_spec='-R$libdir'
9657      hardcode_direct=yes
9658      hardcode_shlibpath_var=no
9659      ;;
9660
9661    hpux9*)
9662      if test "$GCC" = yes; then
9663	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'
9664      else
9665	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'
9666      fi
9667      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9668      hardcode_libdir_separator=:
9669      hardcode_direct=yes
9670
9671      # hardcode_minus_L: Not really in the search PATH,
9672      # but as the default location of the library.
9673      hardcode_minus_L=yes
9674      export_dynamic_flag_spec='${wl}-E'
9675      ;;
9676
9677    hpux10*)
9678      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9679	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9680      else
9681	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9682      fi
9683      if test "$with_gnu_ld" = no; then
9684	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9685	hardcode_libdir_separator=:
9686	hardcode_direct=yes
9687	hardcode_direct_absolute=yes
9688	export_dynamic_flag_spec='${wl}-E'
9689	# hardcode_minus_L: Not really in the search PATH,
9690	# but as the default location of the library.
9691	hardcode_minus_L=yes
9692      fi
9693      ;;
9694
9695    hpux11*)
9696      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9697	case $host_cpu in
9698	hppa*64*)
9699	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9700	  ;;
9701	ia64*)
9702	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9703	  ;;
9704	*)
9705	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9706	  ;;
9707	esac
9708      else
9709	case $host_cpu in
9710	hppa*64*)
9711	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9712	  ;;
9713	ia64*)
9714	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9715	  ;;
9716	*)
9717
9718	  # Older versions of the 11.00 compiler do not understand -b yet
9719	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9720	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9721$as_echo_n "checking if $CC understands -b... " >&6; }
9722if ${lt_cv_prog_compiler__b+:} false; then :
9723  $as_echo_n "(cached) " >&6
9724else
9725  lt_cv_prog_compiler__b=no
9726   save_LDFLAGS="$LDFLAGS"
9727   LDFLAGS="$LDFLAGS -b"
9728   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9729   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9730     # The linker can only warn and ignore the option if not recognized
9731     # So say no if there are warnings
9732     if test -s conftest.err; then
9733       # Append any errors to the config.log.
9734       cat conftest.err 1>&5
9735       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9736       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9737       if diff conftest.exp conftest.er2 >/dev/null; then
9738         lt_cv_prog_compiler__b=yes
9739       fi
9740     else
9741       lt_cv_prog_compiler__b=yes
9742     fi
9743   fi
9744   $RM -r conftest*
9745   LDFLAGS="$save_LDFLAGS"
9746
9747fi
9748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9749$as_echo "$lt_cv_prog_compiler__b" >&6; }
9750
9751if test x"$lt_cv_prog_compiler__b" = xyes; then
9752    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9753else
9754    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9755fi
9756
9757	  ;;
9758	esac
9759      fi
9760      if test "$with_gnu_ld" = no; then
9761	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9762	hardcode_libdir_separator=:
9763
9764	case $host_cpu in
9765	hppa*64*|ia64*)
9766	  hardcode_direct=no
9767	  hardcode_shlibpath_var=no
9768	  ;;
9769	*)
9770	  hardcode_direct=yes
9771	  hardcode_direct_absolute=yes
9772	  export_dynamic_flag_spec='${wl}-E'
9773
9774	  # hardcode_minus_L: Not really in the search PATH,
9775	  # but as the default location of the library.
9776	  hardcode_minus_L=yes
9777	  ;;
9778	esac
9779      fi
9780      ;;
9781
9782    irix5* | irix6* | nonstopux*)
9783      if test "$GCC" = yes; then
9784	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'
9785	# Try to use the -exported_symbol ld option, if it does not
9786	# work, assume that -exports_file does not work either and
9787	# implicitly export all symbols.
9788	# This should be the same for all languages, so no per-tag cache variable.
9789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9790$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9791if ${lt_cv_irix_exported_symbol+:} false; then :
9792  $as_echo_n "(cached) " >&6
9793else
9794  save_LDFLAGS="$LDFLAGS"
9795	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9796	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797/* end confdefs.h.  */
9798int foo (void) { return 0; }
9799_ACEOF
9800if ac_fn_c_try_link "$LINENO"; then :
9801  lt_cv_irix_exported_symbol=yes
9802else
9803  lt_cv_irix_exported_symbol=no
9804fi
9805rm -f core conftest.err conftest.$ac_objext \
9806    conftest$ac_exeext conftest.$ac_ext
9807           LDFLAGS="$save_LDFLAGS"
9808fi
9809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9810$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9811	if test "$lt_cv_irix_exported_symbol" = yes; then
9812          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'
9813	fi
9814      else
9815	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'
9816	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'
9817      fi
9818      archive_cmds_need_lc='no'
9819      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9820      hardcode_libdir_separator=:
9821      inherit_rpath=yes
9822      link_all_deplibs=yes
9823      ;;
9824
9825    netbsd*)
9826      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9827	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9828      else
9829	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9830      fi
9831      hardcode_libdir_flag_spec='-R$libdir'
9832      hardcode_direct=yes
9833      hardcode_shlibpath_var=no
9834      ;;
9835
9836    newsos6)
9837      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9838      hardcode_direct=yes
9839      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9840      hardcode_libdir_separator=:
9841      hardcode_shlibpath_var=no
9842      ;;
9843
9844    *nto* | *qnx*)
9845      ;;
9846
9847    openbsd*)
9848      if test -f /usr/libexec/ld.so; then
9849	hardcode_direct=yes
9850	hardcode_shlibpath_var=no
9851	hardcode_direct_absolute=yes
9852	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9853	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9854	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9855	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9856	  export_dynamic_flag_spec='${wl}-E'
9857	else
9858	  case $host_os in
9859	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9860	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9861	     hardcode_libdir_flag_spec='-R$libdir'
9862	     ;;
9863	   *)
9864	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9865	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9866	     ;;
9867	  esac
9868	fi
9869      else
9870	ld_shlibs=no
9871      fi
9872      ;;
9873
9874    os2*)
9875      hardcode_libdir_flag_spec='-L$libdir'
9876      hardcode_minus_L=yes
9877      allow_undefined_flag=unsupported
9878      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'
9879      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9880      ;;
9881
9882    osf3*)
9883      if test "$GCC" = yes; then
9884	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9885	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'
9886      else
9887	allow_undefined_flag=' -expect_unresolved \*'
9888	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'
9889      fi
9890      archive_cmds_need_lc='no'
9891      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9892      hardcode_libdir_separator=:
9893      ;;
9894
9895    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9896      if test "$GCC" = yes; then
9897	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9898	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'
9899	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9900      else
9901	allow_undefined_flag=' -expect_unresolved \*'
9902	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'
9903	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~
9904	$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'
9905
9906	# Both c and cxx compiler support -rpath directly
9907	hardcode_libdir_flag_spec='-rpath $libdir'
9908      fi
9909      archive_cmds_need_lc='no'
9910      hardcode_libdir_separator=:
9911      ;;
9912
9913    solaris*)
9914      no_undefined_flag=' -z defs'
9915      if test "$GCC" = yes; then
9916	wlarc='${wl}'
9917	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9918	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9919	  $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'
9920      else
9921	case `$CC -V 2>&1` in
9922	*"Compilers 5.0"*)
9923	  wlarc=''
9924	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9925	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9926	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9927	  ;;
9928	*)
9929	  wlarc='${wl}'
9930	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9931	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9932	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9933	  ;;
9934	esac
9935      fi
9936      hardcode_libdir_flag_spec='-R$libdir'
9937      hardcode_shlibpath_var=no
9938      case $host_os in
9939      solaris2.[0-5] | solaris2.[0-5].*) ;;
9940      *)
9941	# The compiler driver will combine and reorder linker options,
9942	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9943	# but is careful enough not to reorder.
9944	# Supported since Solaris 2.6 (maybe 2.5.1?)
9945	if test "$GCC" = yes; then
9946	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9947	else
9948	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9949	fi
9950	;;
9951      esac
9952      link_all_deplibs=yes
9953      ;;
9954
9955    sunos4*)
9956      if test "x$host_vendor" = xsequent; then
9957	# Use $CC to link under sequent, because it throws in some extra .o
9958	# files that make .init and .fini sections work.
9959	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9960      else
9961	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9962      fi
9963      hardcode_libdir_flag_spec='-L$libdir'
9964      hardcode_direct=yes
9965      hardcode_minus_L=yes
9966      hardcode_shlibpath_var=no
9967      ;;
9968
9969    sysv4)
9970      case $host_vendor in
9971	sni)
9972	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9973	  hardcode_direct=yes # is this really true???
9974	;;
9975	siemens)
9976	  ## LD is ld it makes a PLAMLIB
9977	  ## CC just makes a GrossModule.
9978	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9979	  reload_cmds='$CC -r -o $output$reload_objs'
9980	  hardcode_direct=no
9981        ;;
9982	motorola)
9983	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9984	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9985	;;
9986      esac
9987      runpath_var='LD_RUN_PATH'
9988      hardcode_shlibpath_var=no
9989      ;;
9990
9991    sysv4.3*)
9992      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9993      hardcode_shlibpath_var=no
9994      export_dynamic_flag_spec='-Bexport'
9995      ;;
9996
9997    sysv4*MP*)
9998      if test -d /usr/nec; then
9999	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000	hardcode_shlibpath_var=no
10001	runpath_var=LD_RUN_PATH
10002	hardcode_runpath_var=yes
10003	ld_shlibs=yes
10004      fi
10005      ;;
10006
10007    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10008      no_undefined_flag='${wl}-z,text'
10009      archive_cmds_need_lc=no
10010      hardcode_shlibpath_var=no
10011      runpath_var='LD_RUN_PATH'
10012
10013      if test "$GCC" = yes; then
10014	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10015	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10016      else
10017	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10018	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10019      fi
10020      ;;
10021
10022    sysv5* | sco3.2v5* | sco5v6*)
10023      # Note: We can NOT use -z defs as we might desire, because we do not
10024      # link with -lc, and that would cause any symbols used from libc to
10025      # always be unresolved, which means just about no library would
10026      # ever link correctly.  If we're not using GNU ld we use -z text
10027      # though, which does catch some bad symbols but isn't as heavy-handed
10028      # as -z defs.
10029      no_undefined_flag='${wl}-z,text'
10030      allow_undefined_flag='${wl}-z,nodefs'
10031      archive_cmds_need_lc=no
10032      hardcode_shlibpath_var=no
10033      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10034      hardcode_libdir_separator=':'
10035      link_all_deplibs=yes
10036      export_dynamic_flag_spec='${wl}-Bexport'
10037      runpath_var='LD_RUN_PATH'
10038
10039      if test "$GCC" = yes; then
10040	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10041	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10042      else
10043	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10044	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10045      fi
10046      ;;
10047
10048    uts4*)
10049      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10050      hardcode_libdir_flag_spec='-L$libdir'
10051      hardcode_shlibpath_var=no
10052      ;;
10053
10054    *)
10055      ld_shlibs=no
10056      ;;
10057    esac
10058
10059    if test x$host_vendor = xsni; then
10060      case $host in
10061      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10062	export_dynamic_flag_spec='${wl}-Blargedynsym'
10063	;;
10064      esac
10065    fi
10066  fi
10067
10068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10069$as_echo "$ld_shlibs" >&6; }
10070test "$ld_shlibs" = no && can_build_shared=no
10071
10072with_gnu_ld=$with_gnu_ld
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088#
10089# Do we need to explicitly link libc?
10090#
10091case "x$archive_cmds_need_lc" in
10092x|xyes)
10093  # Assume -lc should be added
10094  archive_cmds_need_lc=yes
10095
10096  if test "$enable_shared" = yes && test "$GCC" = yes; then
10097    case $archive_cmds in
10098    *'~'*)
10099      # FIXME: we may have to deal with multi-command sequences.
10100      ;;
10101    '$CC '*)
10102      # Test whether the compiler implicitly links with -lc since on some
10103      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10104      # to ld, don't add -lc before -lgcc.
10105      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10106$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10107if ${lt_cv_archive_cmds_need_lc+:} false; then :
10108  $as_echo_n "(cached) " >&6
10109else
10110  $RM conftest*
10111	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10112
10113	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10114  (eval $ac_compile) 2>&5
10115  ac_status=$?
10116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10117  test $ac_status = 0; } 2>conftest.err; then
10118	  soname=conftest
10119	  lib=conftest
10120	  libobjs=conftest.$ac_objext
10121	  deplibs=
10122	  wl=$lt_prog_compiler_wl
10123	  pic_flag=$lt_prog_compiler_pic
10124	  compiler_flags=-v
10125	  linker_flags=-v
10126	  verstring=
10127	  output_objdir=.
10128	  libname=conftest
10129	  lt_save_allow_undefined_flag=$allow_undefined_flag
10130	  allow_undefined_flag=
10131	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10132  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10133  ac_status=$?
10134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10135  test $ac_status = 0; }
10136	  then
10137	    lt_cv_archive_cmds_need_lc=no
10138	  else
10139	    lt_cv_archive_cmds_need_lc=yes
10140	  fi
10141	  allow_undefined_flag=$lt_save_allow_undefined_flag
10142	else
10143	  cat conftest.err 1>&5
10144	fi
10145	$RM conftest*
10146
10147fi
10148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10149$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10150      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10151      ;;
10152    esac
10153  fi
10154  ;;
10155esac
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10309$as_echo_n "checking dynamic linker characteristics... " >&6; }
10310
10311if test "$GCC" = yes; then
10312  case $host_os in
10313    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10314    *) lt_awk_arg="/^libraries:/" ;;
10315  esac
10316  case $host_os in
10317    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10318    *) lt_sed_strip_eq="s,=/,/,g" ;;
10319  esac
10320  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10321  case $lt_search_path_spec in
10322  *\;*)
10323    # if the path contains ";" then we assume it to be the separator
10324    # otherwise default to the standard path separator (i.e. ":") - it is
10325    # assumed that no part of a normal pathname contains ";" but that should
10326    # okay in the real world where ";" in dirpaths is itself problematic.
10327    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10328    ;;
10329  *)
10330    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10331    ;;
10332  esac
10333  # Ok, now we have the path, separated by spaces, we can step through it
10334  # and add multilib dir if necessary.
10335  lt_tmp_lt_search_path_spec=
10336  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10337  for lt_sys_path in $lt_search_path_spec; do
10338    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10339      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10340    else
10341      test -d "$lt_sys_path" && \
10342	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10343    fi
10344  done
10345  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10346BEGIN {RS=" "; FS="/|\n";} {
10347  lt_foo="";
10348  lt_count=0;
10349  for (lt_i = NF; lt_i > 0; lt_i--) {
10350    if ($lt_i != "" && $lt_i != ".") {
10351      if ($lt_i == "..") {
10352        lt_count++;
10353      } else {
10354        if (lt_count == 0) {
10355          lt_foo="/" $lt_i lt_foo;
10356        } else {
10357          lt_count--;
10358        }
10359      }
10360    }
10361  }
10362  if (lt_foo != "") { lt_freq[lt_foo]++; }
10363  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10364}'`
10365  # AWK program above erroneously prepends '/' to C:/dos/paths
10366  # for these hosts.
10367  case $host_os in
10368    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10369      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10370  esac
10371  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10372else
10373  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10374fi
10375library_names_spec=
10376libname_spec='lib$name'
10377soname_spec=
10378shrext_cmds=".so"
10379postinstall_cmds=
10380postuninstall_cmds=
10381finish_cmds=
10382finish_eval=
10383shlibpath_var=
10384shlibpath_overrides_runpath=unknown
10385version_type=none
10386dynamic_linker="$host_os ld.so"
10387sys_lib_dlsearch_path_spec="/lib /usr/lib"
10388need_lib_prefix=unknown
10389hardcode_into_libs=no
10390
10391# when you set need_version to no, make sure it does not cause -set_version
10392# flags to be left without arguments
10393need_version=unknown
10394
10395case $host_os in
10396aix3*)
10397  version_type=linux # correct to gnu/linux during the next big refactor
10398  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10399  shlibpath_var=LIBPATH
10400
10401  # AIX 3 has no versioning support, so we append a major version to the name.
10402  soname_spec='${libname}${release}${shared_ext}$major'
10403  ;;
10404
10405aix[4-9]*)
10406  version_type=linux # correct to gnu/linux during the next big refactor
10407  need_lib_prefix=no
10408  need_version=no
10409  hardcode_into_libs=yes
10410  if test "$host_cpu" = ia64; then
10411    # AIX 5 supports IA64
10412    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10413    shlibpath_var=LD_LIBRARY_PATH
10414  else
10415    # With GCC up to 2.95.x, collect2 would create an import file
10416    # for dependence libraries.  The import file would start with
10417    # the line `#! .'.  This would cause the generated library to
10418    # depend on `.', always an invalid library.  This was fixed in
10419    # development snapshots of GCC prior to 3.0.
10420    case $host_os in
10421      aix4 | aix4.[01] | aix4.[01].*)
10422      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10423	   echo ' yes '
10424	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10425	:
10426      else
10427	can_build_shared=no
10428      fi
10429      ;;
10430    esac
10431    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10432    # soname into executable. Probably we can add versioning support to
10433    # collect2, so additional links can be useful in future.
10434    if test "$aix_use_runtimelinking" = yes; then
10435      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10436      # instead of lib<name>.a to let people know that these are not
10437      # typical AIX shared libraries.
10438      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439    else
10440      # We preserve .a as extension for shared libraries through AIX4.2
10441      # and later when we are not doing run time linking.
10442      library_names_spec='${libname}${release}.a $libname.a'
10443      soname_spec='${libname}${release}${shared_ext}$major'
10444    fi
10445    shlibpath_var=LIBPATH
10446  fi
10447  ;;
10448
10449amigaos*)
10450  case $host_cpu in
10451  powerpc)
10452    # Since July 2007 AmigaOS4 officially supports .so libraries.
10453    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10454    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455    ;;
10456  m68k)
10457    library_names_spec='$libname.ixlibrary $libname.a'
10458    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10459    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'
10460    ;;
10461  esac
10462  ;;
10463
10464beos*)
10465  library_names_spec='${libname}${shared_ext}'
10466  dynamic_linker="$host_os ld.so"
10467  shlibpath_var=LIBRARY_PATH
10468  ;;
10469
10470bsdi[45]*)
10471  version_type=linux # correct to gnu/linux during the next big refactor
10472  need_version=no
10473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474  soname_spec='${libname}${release}${shared_ext}$major'
10475  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10476  shlibpath_var=LD_LIBRARY_PATH
10477  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10478  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10479  # the default ld.so.conf also contains /usr/contrib/lib and
10480  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10481  # libtool to hard-code these into programs
10482  ;;
10483
10484cygwin* | mingw* | pw32* | cegcc*)
10485  version_type=windows
10486  shrext_cmds=".dll"
10487  need_version=no
10488  need_lib_prefix=no
10489
10490  case $GCC,$cc_basename in
10491  yes,*)
10492    # gcc
10493    library_names_spec='$libname.dll.a'
10494    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10495    postinstall_cmds='base_file=`basename \${file}`~
10496      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10497      dldir=$destdir/`dirname \$dlpath`~
10498      test -d \$dldir || mkdir -p \$dldir~
10499      $install_prog $dir/$dlname \$dldir/$dlname~
10500      chmod a+x \$dldir/$dlname~
10501      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10502        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10503      fi'
10504    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10505      dlpath=$dir/\$dldll~
10506       $RM \$dlpath'
10507    shlibpath_overrides_runpath=yes
10508
10509    case $host_os in
10510    cygwin*)
10511      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10512      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10513
10514      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10515      ;;
10516    mingw* | cegcc*)
10517      # MinGW DLLs use traditional 'lib' prefix
10518      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10519      ;;
10520    pw32*)
10521      # pw32 DLLs use 'pw' prefix rather than 'lib'
10522      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10523      ;;
10524    esac
10525    dynamic_linker='Win32 ld.exe'
10526    ;;
10527
10528  *,cl*)
10529    # Native MSVC
10530    libname_spec='$name'
10531    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10532    library_names_spec='${libname}.dll.lib'
10533
10534    case $build_os in
10535    mingw*)
10536      sys_lib_search_path_spec=
10537      lt_save_ifs=$IFS
10538      IFS=';'
10539      for lt_path in $LIB
10540      do
10541        IFS=$lt_save_ifs
10542        # Let DOS variable expansion print the short 8.3 style file name.
10543        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10544        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10545      done
10546      IFS=$lt_save_ifs
10547      # Convert to MSYS style.
10548      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10549      ;;
10550    cygwin*)
10551      # Convert to unix form, then to dos form, then back to unix form
10552      # but this time dos style (no spaces!) so that the unix form looks
10553      # like /cygdrive/c/PROGRA~1:/cygdr...
10554      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10555      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10556      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10557      ;;
10558    *)
10559      sys_lib_search_path_spec="$LIB"
10560      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10561        # It is most probably a Windows format PATH.
10562        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10563      else
10564        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10565      fi
10566      # FIXME: find the short name or the path components, as spaces are
10567      # common. (e.g. "Program Files" -> "PROGRA~1")
10568      ;;
10569    esac
10570
10571    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10572    postinstall_cmds='base_file=`basename \${file}`~
10573      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10574      dldir=$destdir/`dirname \$dlpath`~
10575      test -d \$dldir || mkdir -p \$dldir~
10576      $install_prog $dir/$dlname \$dldir/$dlname'
10577    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10578      dlpath=$dir/\$dldll~
10579       $RM \$dlpath'
10580    shlibpath_overrides_runpath=yes
10581    dynamic_linker='Win32 link.exe'
10582    ;;
10583
10584  *)
10585    # Assume MSVC wrapper
10586    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10587    dynamic_linker='Win32 ld.exe'
10588    ;;
10589  esac
10590  # FIXME: first we should search . and the directory the executable is in
10591  shlibpath_var=PATH
10592  ;;
10593
10594darwin* | rhapsody*)
10595  dynamic_linker="$host_os dyld"
10596  version_type=darwin
10597  need_lib_prefix=no
10598  need_version=no
10599  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10600  soname_spec='${libname}${release}${major}$shared_ext'
10601  shlibpath_overrides_runpath=yes
10602  shlibpath_var=DYLD_LIBRARY_PATH
10603  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10604
10605  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10606  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10607  ;;
10608
10609dgux*)
10610  version_type=linux # correct to gnu/linux during the next big refactor
10611  need_lib_prefix=no
10612  need_version=no
10613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10614  soname_spec='${libname}${release}${shared_ext}$major'
10615  shlibpath_var=LD_LIBRARY_PATH
10616  ;;
10617
10618freebsd* | dragonfly*)
10619  # DragonFly does not have aout.  When/if they implement a new
10620  # versioning mechanism, adjust this.
10621  if test -x /usr/bin/objformat; then
10622    objformat=`/usr/bin/objformat`
10623  else
10624    case $host_os in
10625    freebsd[23].*) objformat=aout ;;
10626    *) objformat=elf ;;
10627    esac
10628  fi
10629  version_type=freebsd-$objformat
10630  case $version_type in
10631    freebsd-elf*)
10632      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10633      need_version=no
10634      need_lib_prefix=no
10635      ;;
10636    freebsd-*)
10637      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10638      need_version=yes
10639      ;;
10640  esac
10641  shlibpath_var=LD_LIBRARY_PATH
10642  case $host_os in
10643  freebsd2.*)
10644    shlibpath_overrides_runpath=yes
10645    ;;
10646  freebsd3.[01]* | freebsdelf3.[01]*)
10647    shlibpath_overrides_runpath=yes
10648    hardcode_into_libs=yes
10649    ;;
10650  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10651  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10652    shlibpath_overrides_runpath=no
10653    hardcode_into_libs=yes
10654    ;;
10655  *) # from 4.6 on, and DragonFly
10656    shlibpath_overrides_runpath=yes
10657    hardcode_into_libs=yes
10658    ;;
10659  esac
10660  ;;
10661
10662gnu*)
10663  version_type=linux # correct to gnu/linux during the next big refactor
10664  need_lib_prefix=no
10665  need_version=no
10666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10667  soname_spec='${libname}${release}${shared_ext}$major'
10668  shlibpath_var=LD_LIBRARY_PATH
10669  shlibpath_overrides_runpath=no
10670  hardcode_into_libs=yes
10671  ;;
10672
10673haiku*)
10674  version_type=linux # correct to gnu/linux during the next big refactor
10675  need_lib_prefix=no
10676  need_version=no
10677  dynamic_linker="$host_os runtime_loader"
10678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10679  soname_spec='${libname}${release}${shared_ext}$major'
10680  shlibpath_var=LIBRARY_PATH
10681  shlibpath_overrides_runpath=yes
10682  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10683  hardcode_into_libs=yes
10684  ;;
10685
10686hpux9* | hpux10* | hpux11*)
10687  # Give a soname corresponding to the major version so that dld.sl refuses to
10688  # link against other versions.
10689  version_type=sunos
10690  need_lib_prefix=no
10691  need_version=no
10692  case $host_cpu in
10693  ia64*)
10694    shrext_cmds='.so'
10695    hardcode_into_libs=yes
10696    dynamic_linker="$host_os dld.so"
10697    shlibpath_var=LD_LIBRARY_PATH
10698    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10699    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700    soname_spec='${libname}${release}${shared_ext}$major'
10701    if test "X$HPUX_IA64_MODE" = X32; then
10702      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10703    else
10704      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10705    fi
10706    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10707    ;;
10708  hppa*64*)
10709    shrext_cmds='.sl'
10710    hardcode_into_libs=yes
10711    dynamic_linker="$host_os dld.sl"
10712    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10713    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10714    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715    soname_spec='${libname}${release}${shared_ext}$major'
10716    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10717    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10718    ;;
10719  *)
10720    shrext_cmds='.sl'
10721    dynamic_linker="$host_os dld.sl"
10722    shlibpath_var=SHLIB_PATH
10723    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10724    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10725    soname_spec='${libname}${release}${shared_ext}$major'
10726    ;;
10727  esac
10728  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10729  postinstall_cmds='chmod 555 $lib'
10730  # or fails outright, so override atomically:
10731  install_override_mode=555
10732  ;;
10733
10734interix[3-9]*)
10735  version_type=linux # correct to gnu/linux during the next big refactor
10736  need_lib_prefix=no
10737  need_version=no
10738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10739  soname_spec='${libname}${release}${shared_ext}$major'
10740  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10741  shlibpath_var=LD_LIBRARY_PATH
10742  shlibpath_overrides_runpath=no
10743  hardcode_into_libs=yes
10744  ;;
10745
10746irix5* | irix6* | nonstopux*)
10747  case $host_os in
10748    nonstopux*) version_type=nonstopux ;;
10749    *)
10750	if test "$lt_cv_prog_gnu_ld" = yes; then
10751		version_type=linux # correct to gnu/linux during the next big refactor
10752	else
10753		version_type=irix
10754	fi ;;
10755  esac
10756  need_lib_prefix=no
10757  need_version=no
10758  soname_spec='${libname}${release}${shared_ext}$major'
10759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10760  case $host_os in
10761  irix5* | nonstopux*)
10762    libsuff= shlibsuff=
10763    ;;
10764  *)
10765    case $LD in # libtool.m4 will add one of these switches to LD
10766    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10767      libsuff= shlibsuff= libmagic=32-bit;;
10768    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10769      libsuff=32 shlibsuff=N32 libmagic=N32;;
10770    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10771      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10772    *) libsuff= shlibsuff= libmagic=never-match;;
10773    esac
10774    ;;
10775  esac
10776  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10777  shlibpath_overrides_runpath=no
10778  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10779  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10780  hardcode_into_libs=yes
10781  ;;
10782
10783# No shared lib support for Linux oldld, aout, or coff.
10784linux*oldld* | linux*aout* | linux*coff*)
10785  dynamic_linker=no
10786  ;;
10787
10788# This must be glibc/ELF.
10789linux* | k*bsd*-gnu | kopensolaris*-gnu)
10790  version_type=linux # correct to gnu/linux during the next big refactor
10791  need_lib_prefix=no
10792  need_version=no
10793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794  soname_spec='${libname}${release}${shared_ext}$major'
10795  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10796  shlibpath_var=LD_LIBRARY_PATH
10797  shlibpath_overrides_runpath=no
10798
10799  # Some binutils ld are patched to set DT_RUNPATH
10800  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10801  $as_echo_n "(cached) " >&6
10802else
10803  lt_cv_shlibpath_overrides_runpath=no
10804    save_LDFLAGS=$LDFLAGS
10805    save_libdir=$libdir
10806    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10807	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10808    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809/* end confdefs.h.  */
10810
10811int
10812main ()
10813{
10814
10815  ;
10816  return 0;
10817}
10818_ACEOF
10819if ac_fn_c_try_link "$LINENO"; then :
10820  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10821  lt_cv_shlibpath_overrides_runpath=yes
10822fi
10823fi
10824rm -f core conftest.err conftest.$ac_objext \
10825    conftest$ac_exeext conftest.$ac_ext
10826    LDFLAGS=$save_LDFLAGS
10827    libdir=$save_libdir
10828
10829fi
10830
10831  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10832
10833  # This implies no fast_install, which is unacceptable.
10834  # Some rework will be needed to allow for fast_install
10835  # before this can be enabled.
10836  hardcode_into_libs=yes
10837
10838  # Append ld.so.conf contents to the search path
10839  if test -f /etc/ld.so.conf; then
10840    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' ' '`
10841    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10842  fi
10843
10844  # We used to test for /lib/ld.so.1 and disable shared libraries on
10845  # powerpc, because MkLinux only supported shared libraries with the
10846  # GNU dynamic linker.  Since this was broken with cross compilers,
10847  # most powerpc-linux boxes support dynamic linking these days and
10848  # people can always --disable-shared, the test was removed, and we
10849  # assume the GNU/Linux dynamic linker is in use.
10850  dynamic_linker='GNU/Linux ld.so'
10851  ;;
10852
10853netbsd*)
10854  version_type=sunos
10855  need_lib_prefix=no
10856  need_version=no
10857  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10858    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10859    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10860    dynamic_linker='NetBSD (a.out) ld.so'
10861  else
10862    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10863    soname_spec='${libname}${release}${shared_ext}$major'
10864    dynamic_linker='NetBSD ld.elf_so'
10865  fi
10866  shlibpath_var=LD_LIBRARY_PATH
10867  shlibpath_overrides_runpath=yes
10868  hardcode_into_libs=yes
10869  ;;
10870
10871newsos6)
10872  version_type=linux # correct to gnu/linux during the next big refactor
10873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10874  shlibpath_var=LD_LIBRARY_PATH
10875  shlibpath_overrides_runpath=yes
10876  ;;
10877
10878*nto* | *qnx*)
10879  version_type=qnx
10880  need_lib_prefix=no
10881  need_version=no
10882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10883  soname_spec='${libname}${release}${shared_ext}$major'
10884  shlibpath_var=LD_LIBRARY_PATH
10885  shlibpath_overrides_runpath=no
10886  hardcode_into_libs=yes
10887  dynamic_linker='ldqnx.so'
10888  ;;
10889
10890openbsd*)
10891  version_type=sunos
10892  sys_lib_dlsearch_path_spec="/usr/lib"
10893  need_lib_prefix=no
10894  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10895  case $host_os in
10896    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10897    *)				need_version=no  ;;
10898  esac
10899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10900  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10901  shlibpath_var=LD_LIBRARY_PATH
10902  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10903    case $host_os in
10904      openbsd2.[89] | openbsd2.[89].*)
10905	shlibpath_overrides_runpath=no
10906	;;
10907      *)
10908	shlibpath_overrides_runpath=yes
10909	;;
10910      esac
10911  else
10912    shlibpath_overrides_runpath=yes
10913  fi
10914  ;;
10915
10916os2*)
10917  libname_spec='$name'
10918  shrext_cmds=".dll"
10919  need_lib_prefix=no
10920  library_names_spec='$libname${shared_ext} $libname.a'
10921  dynamic_linker='OS/2 ld.exe'
10922  shlibpath_var=LIBPATH
10923  ;;
10924
10925osf3* | osf4* | osf5*)
10926  version_type=osf
10927  need_lib_prefix=no
10928  need_version=no
10929  soname_spec='${libname}${release}${shared_ext}$major'
10930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10931  shlibpath_var=LD_LIBRARY_PATH
10932  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10933  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10934  ;;
10935
10936rdos*)
10937  dynamic_linker=no
10938  ;;
10939
10940solaris*)
10941  version_type=linux # correct to gnu/linux during the next big refactor
10942  need_lib_prefix=no
10943  need_version=no
10944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945  soname_spec='${libname}${release}${shared_ext}$major'
10946  shlibpath_var=LD_LIBRARY_PATH
10947  shlibpath_overrides_runpath=yes
10948  hardcode_into_libs=yes
10949  # ldd complains unless libraries are executable
10950  postinstall_cmds='chmod +x $lib'
10951  ;;
10952
10953sunos4*)
10954  version_type=sunos
10955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10956  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10957  shlibpath_var=LD_LIBRARY_PATH
10958  shlibpath_overrides_runpath=yes
10959  if test "$with_gnu_ld" = yes; then
10960    need_lib_prefix=no
10961  fi
10962  need_version=yes
10963  ;;
10964
10965sysv4 | sysv4.3*)
10966  version_type=linux # correct to gnu/linux during the next big refactor
10967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968  soname_spec='${libname}${release}${shared_ext}$major'
10969  shlibpath_var=LD_LIBRARY_PATH
10970  case $host_vendor in
10971    sni)
10972      shlibpath_overrides_runpath=no
10973      need_lib_prefix=no
10974      runpath_var=LD_RUN_PATH
10975      ;;
10976    siemens)
10977      need_lib_prefix=no
10978      ;;
10979    motorola)
10980      need_lib_prefix=no
10981      need_version=no
10982      shlibpath_overrides_runpath=no
10983      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10984      ;;
10985  esac
10986  ;;
10987
10988sysv4*MP*)
10989  if test -d /usr/nec ;then
10990    version_type=linux # correct to gnu/linux during the next big refactor
10991    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10992    soname_spec='$libname${shared_ext}.$major'
10993    shlibpath_var=LD_LIBRARY_PATH
10994  fi
10995  ;;
10996
10997sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10998  version_type=freebsd-elf
10999  need_lib_prefix=no
11000  need_version=no
11001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11002  soname_spec='${libname}${release}${shared_ext}$major'
11003  shlibpath_var=LD_LIBRARY_PATH
11004  shlibpath_overrides_runpath=yes
11005  hardcode_into_libs=yes
11006  if test "$with_gnu_ld" = yes; then
11007    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11008  else
11009    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11010    case $host_os in
11011      sco3.2v5*)
11012        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11013	;;
11014    esac
11015  fi
11016  sys_lib_dlsearch_path_spec='/usr/lib'
11017  ;;
11018
11019tpf*)
11020  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11021  version_type=linux # correct to gnu/linux during the next big refactor
11022  need_lib_prefix=no
11023  need_version=no
11024  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025  shlibpath_var=LD_LIBRARY_PATH
11026  shlibpath_overrides_runpath=no
11027  hardcode_into_libs=yes
11028  ;;
11029
11030uts4*)
11031  version_type=linux # correct to gnu/linux during the next big refactor
11032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11033  soname_spec='${libname}${release}${shared_ext}$major'
11034  shlibpath_var=LD_LIBRARY_PATH
11035  ;;
11036
11037*)
11038  dynamic_linker=no
11039  ;;
11040esac
11041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11042$as_echo "$dynamic_linker" >&6; }
11043test "$dynamic_linker" = no && can_build_shared=no
11044
11045variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11046if test "$GCC" = yes; then
11047  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11048fi
11049
11050if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11051  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11052fi
11053if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11054  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11055fi
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11149$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11150hardcode_action=
11151if test -n "$hardcode_libdir_flag_spec" ||
11152   test -n "$runpath_var" ||
11153   test "X$hardcode_automatic" = "Xyes" ; then
11154
11155  # We can hardcode non-existent directories.
11156  if test "$hardcode_direct" != no &&
11157     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11158     # have to relink, otherwise we might link with an installed library
11159     # when we should be linking with a yet-to-be-installed one
11160     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11161     test "$hardcode_minus_L" != no; then
11162    # Linking always hardcodes the temporary library directory.
11163    hardcode_action=relink
11164  else
11165    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11166    hardcode_action=immediate
11167  fi
11168else
11169  # We cannot hardcode anything, or else we can only hardcode existing
11170  # directories.
11171  hardcode_action=unsupported
11172fi
11173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11174$as_echo "$hardcode_action" >&6; }
11175
11176if test "$hardcode_action" = relink ||
11177   test "$inherit_rpath" = yes; then
11178  # Fast installation is not supported
11179  enable_fast_install=no
11180elif test "$shlibpath_overrides_runpath" = yes ||
11181     test "$enable_shared" = no; then
11182  # Fast installation is not necessary
11183  enable_fast_install=needless
11184fi
11185
11186
11187
11188
11189
11190
11191  if test "x$enable_dlopen" != xyes; then
11192  enable_dlopen=unknown
11193  enable_dlopen_self=unknown
11194  enable_dlopen_self_static=unknown
11195else
11196  lt_cv_dlopen=no
11197  lt_cv_dlopen_libs=
11198
11199  case $host_os in
11200  beos*)
11201    lt_cv_dlopen="load_add_on"
11202    lt_cv_dlopen_libs=
11203    lt_cv_dlopen_self=yes
11204    ;;
11205
11206  mingw* | pw32* | cegcc*)
11207    lt_cv_dlopen="LoadLibrary"
11208    lt_cv_dlopen_libs=
11209    ;;
11210
11211  cygwin*)
11212    lt_cv_dlopen="dlopen"
11213    lt_cv_dlopen_libs=
11214    ;;
11215
11216  darwin*)
11217  # if libdl is installed we need to link against it
11218    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11219$as_echo_n "checking for dlopen in -ldl... " >&6; }
11220if ${ac_cv_lib_dl_dlopen+:} false; then :
11221  $as_echo_n "(cached) " >&6
11222else
11223  ac_check_lib_save_LIBS=$LIBS
11224LIBS="-ldl  $LIBS"
11225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226/* end confdefs.h.  */
11227
11228/* Override any GCC internal prototype to avoid an error.
11229   Use char because int might match the return type of a GCC
11230   builtin and then its argument prototype would still apply.  */
11231#ifdef __cplusplus
11232extern "C"
11233#endif
11234char dlopen ();
11235int
11236main ()
11237{
11238return dlopen ();
11239  ;
11240  return 0;
11241}
11242_ACEOF
11243if ac_fn_c_try_link "$LINENO"; then :
11244  ac_cv_lib_dl_dlopen=yes
11245else
11246  ac_cv_lib_dl_dlopen=no
11247fi
11248rm -f core conftest.err conftest.$ac_objext \
11249    conftest$ac_exeext conftest.$ac_ext
11250LIBS=$ac_check_lib_save_LIBS
11251fi
11252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11253$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11254if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11255  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11256else
11257
11258    lt_cv_dlopen="dyld"
11259    lt_cv_dlopen_libs=
11260    lt_cv_dlopen_self=yes
11261
11262fi
11263
11264    ;;
11265
11266  *)
11267    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11268if test "x$ac_cv_func_shl_load" = xyes; then :
11269  lt_cv_dlopen="shl_load"
11270else
11271  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11272$as_echo_n "checking for shl_load in -ldld... " >&6; }
11273if ${ac_cv_lib_dld_shl_load+:} false; then :
11274  $as_echo_n "(cached) " >&6
11275else
11276  ac_check_lib_save_LIBS=$LIBS
11277LIBS="-ldld  $LIBS"
11278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279/* end confdefs.h.  */
11280
11281/* Override any GCC internal prototype to avoid an error.
11282   Use char because int might match the return type of a GCC
11283   builtin and then its argument prototype would still apply.  */
11284#ifdef __cplusplus
11285extern "C"
11286#endif
11287char shl_load ();
11288int
11289main ()
11290{
11291return shl_load ();
11292  ;
11293  return 0;
11294}
11295_ACEOF
11296if ac_fn_c_try_link "$LINENO"; then :
11297  ac_cv_lib_dld_shl_load=yes
11298else
11299  ac_cv_lib_dld_shl_load=no
11300fi
11301rm -f core conftest.err conftest.$ac_objext \
11302    conftest$ac_exeext conftest.$ac_ext
11303LIBS=$ac_check_lib_save_LIBS
11304fi
11305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11306$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11307if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11308  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11309else
11310  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11311if test "x$ac_cv_func_dlopen" = xyes; then :
11312  lt_cv_dlopen="dlopen"
11313else
11314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11315$as_echo_n "checking for dlopen in -ldl... " >&6; }
11316if ${ac_cv_lib_dl_dlopen+:} false; then :
11317  $as_echo_n "(cached) " >&6
11318else
11319  ac_check_lib_save_LIBS=$LIBS
11320LIBS="-ldl  $LIBS"
11321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322/* end confdefs.h.  */
11323
11324/* Override any GCC internal prototype to avoid an error.
11325   Use char because int might match the return type of a GCC
11326   builtin and then its argument prototype would still apply.  */
11327#ifdef __cplusplus
11328extern "C"
11329#endif
11330char dlopen ();
11331int
11332main ()
11333{
11334return dlopen ();
11335  ;
11336  return 0;
11337}
11338_ACEOF
11339if ac_fn_c_try_link "$LINENO"; then :
11340  ac_cv_lib_dl_dlopen=yes
11341else
11342  ac_cv_lib_dl_dlopen=no
11343fi
11344rm -f core conftest.err conftest.$ac_objext \
11345    conftest$ac_exeext conftest.$ac_ext
11346LIBS=$ac_check_lib_save_LIBS
11347fi
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11349$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11350if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11351  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11352else
11353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11354$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11355if ${ac_cv_lib_svld_dlopen+:} false; then :
11356  $as_echo_n "(cached) " >&6
11357else
11358  ac_check_lib_save_LIBS=$LIBS
11359LIBS="-lsvld  $LIBS"
11360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361/* end confdefs.h.  */
11362
11363/* Override any GCC internal prototype to avoid an error.
11364   Use char because int might match the return type of a GCC
11365   builtin and then its argument prototype would still apply.  */
11366#ifdef __cplusplus
11367extern "C"
11368#endif
11369char dlopen ();
11370int
11371main ()
11372{
11373return dlopen ();
11374  ;
11375  return 0;
11376}
11377_ACEOF
11378if ac_fn_c_try_link "$LINENO"; then :
11379  ac_cv_lib_svld_dlopen=yes
11380else
11381  ac_cv_lib_svld_dlopen=no
11382fi
11383rm -f core conftest.err conftest.$ac_objext \
11384    conftest$ac_exeext conftest.$ac_ext
11385LIBS=$ac_check_lib_save_LIBS
11386fi
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11388$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11389if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11390  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11391else
11392  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11393$as_echo_n "checking for dld_link in -ldld... " >&6; }
11394if ${ac_cv_lib_dld_dld_link+:} false; then :
11395  $as_echo_n "(cached) " >&6
11396else
11397  ac_check_lib_save_LIBS=$LIBS
11398LIBS="-ldld  $LIBS"
11399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400/* end confdefs.h.  */
11401
11402/* Override any GCC internal prototype to avoid an error.
11403   Use char because int might match the return type of a GCC
11404   builtin and then its argument prototype would still apply.  */
11405#ifdef __cplusplus
11406extern "C"
11407#endif
11408char dld_link ();
11409int
11410main ()
11411{
11412return dld_link ();
11413  ;
11414  return 0;
11415}
11416_ACEOF
11417if ac_fn_c_try_link "$LINENO"; then :
11418  ac_cv_lib_dld_dld_link=yes
11419else
11420  ac_cv_lib_dld_dld_link=no
11421fi
11422rm -f core conftest.err conftest.$ac_objext \
11423    conftest$ac_exeext conftest.$ac_ext
11424LIBS=$ac_check_lib_save_LIBS
11425fi
11426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11427$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11428if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11429  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11430fi
11431
11432
11433fi
11434
11435
11436fi
11437
11438
11439fi
11440
11441
11442fi
11443
11444
11445fi
11446
11447    ;;
11448  esac
11449
11450  if test "x$lt_cv_dlopen" != xno; then
11451    enable_dlopen=yes
11452  else
11453    enable_dlopen=no
11454  fi
11455
11456  case $lt_cv_dlopen in
11457  dlopen)
11458    save_CPPFLAGS="$CPPFLAGS"
11459    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11460
11461    save_LDFLAGS="$LDFLAGS"
11462    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11463
11464    save_LIBS="$LIBS"
11465    LIBS="$lt_cv_dlopen_libs $LIBS"
11466
11467    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11468$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11469if ${lt_cv_dlopen_self+:} false; then :
11470  $as_echo_n "(cached) " >&6
11471else
11472  	  if test "$cross_compiling" = yes; then :
11473  lt_cv_dlopen_self=cross
11474else
11475  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11476  lt_status=$lt_dlunknown
11477  cat > conftest.$ac_ext <<_LT_EOF
11478#line $LINENO "configure"
11479#include "confdefs.h"
11480
11481#if HAVE_DLFCN_H
11482#include <dlfcn.h>
11483#endif
11484
11485#include <stdio.h>
11486
11487#ifdef RTLD_GLOBAL
11488#  define LT_DLGLOBAL		RTLD_GLOBAL
11489#else
11490#  ifdef DL_GLOBAL
11491#    define LT_DLGLOBAL		DL_GLOBAL
11492#  else
11493#    define LT_DLGLOBAL		0
11494#  endif
11495#endif
11496
11497/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11498   find out it does not work in some platform. */
11499#ifndef LT_DLLAZY_OR_NOW
11500#  ifdef RTLD_LAZY
11501#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11502#  else
11503#    ifdef DL_LAZY
11504#      define LT_DLLAZY_OR_NOW		DL_LAZY
11505#    else
11506#      ifdef RTLD_NOW
11507#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11508#      else
11509#        ifdef DL_NOW
11510#          define LT_DLLAZY_OR_NOW	DL_NOW
11511#        else
11512#          define LT_DLLAZY_OR_NOW	0
11513#        endif
11514#      endif
11515#    endif
11516#  endif
11517#endif
11518
11519/* When -fvisbility=hidden is used, assume the code has been annotated
11520   correspondingly for the symbols needed.  */
11521#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11522int fnord () __attribute__((visibility("default")));
11523#endif
11524
11525int fnord () { return 42; }
11526int main ()
11527{
11528  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11529  int status = $lt_dlunknown;
11530
11531  if (self)
11532    {
11533      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11534      else
11535        {
11536	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11537          else puts (dlerror ());
11538	}
11539      /* dlclose (self); */
11540    }
11541  else
11542    puts (dlerror ());
11543
11544  return status;
11545}
11546_LT_EOF
11547  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11548  (eval $ac_link) 2>&5
11549  ac_status=$?
11550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11551  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11552    (./conftest; exit; ) >&5 2>/dev/null
11553    lt_status=$?
11554    case x$lt_status in
11555      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11556      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11557      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11558    esac
11559  else :
11560    # compilation failed
11561    lt_cv_dlopen_self=no
11562  fi
11563fi
11564rm -fr conftest*
11565
11566
11567fi
11568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11569$as_echo "$lt_cv_dlopen_self" >&6; }
11570
11571    if test "x$lt_cv_dlopen_self" = xyes; then
11572      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11573      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11574$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11575if ${lt_cv_dlopen_self_static+:} false; then :
11576  $as_echo_n "(cached) " >&6
11577else
11578  	  if test "$cross_compiling" = yes; then :
11579  lt_cv_dlopen_self_static=cross
11580else
11581  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11582  lt_status=$lt_dlunknown
11583  cat > conftest.$ac_ext <<_LT_EOF
11584#line $LINENO "configure"
11585#include "confdefs.h"
11586
11587#if HAVE_DLFCN_H
11588#include <dlfcn.h>
11589#endif
11590
11591#include <stdio.h>
11592
11593#ifdef RTLD_GLOBAL
11594#  define LT_DLGLOBAL		RTLD_GLOBAL
11595#else
11596#  ifdef DL_GLOBAL
11597#    define LT_DLGLOBAL		DL_GLOBAL
11598#  else
11599#    define LT_DLGLOBAL		0
11600#  endif
11601#endif
11602
11603/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11604   find out it does not work in some platform. */
11605#ifndef LT_DLLAZY_OR_NOW
11606#  ifdef RTLD_LAZY
11607#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11608#  else
11609#    ifdef DL_LAZY
11610#      define LT_DLLAZY_OR_NOW		DL_LAZY
11611#    else
11612#      ifdef RTLD_NOW
11613#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11614#      else
11615#        ifdef DL_NOW
11616#          define LT_DLLAZY_OR_NOW	DL_NOW
11617#        else
11618#          define LT_DLLAZY_OR_NOW	0
11619#        endif
11620#      endif
11621#    endif
11622#  endif
11623#endif
11624
11625/* When -fvisbility=hidden is used, assume the code has been annotated
11626   correspondingly for the symbols needed.  */
11627#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11628int fnord () __attribute__((visibility("default")));
11629#endif
11630
11631int fnord () { return 42; }
11632int main ()
11633{
11634  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11635  int status = $lt_dlunknown;
11636
11637  if (self)
11638    {
11639      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11640      else
11641        {
11642	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11643          else puts (dlerror ());
11644	}
11645      /* dlclose (self); */
11646    }
11647  else
11648    puts (dlerror ());
11649
11650  return status;
11651}
11652_LT_EOF
11653  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11654  (eval $ac_link) 2>&5
11655  ac_status=$?
11656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11657  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11658    (./conftest; exit; ) >&5 2>/dev/null
11659    lt_status=$?
11660    case x$lt_status in
11661      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11662      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11663      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11664    esac
11665  else :
11666    # compilation failed
11667    lt_cv_dlopen_self_static=no
11668  fi
11669fi
11670rm -fr conftest*
11671
11672
11673fi
11674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11675$as_echo "$lt_cv_dlopen_self_static" >&6; }
11676    fi
11677
11678    CPPFLAGS="$save_CPPFLAGS"
11679    LDFLAGS="$save_LDFLAGS"
11680    LIBS="$save_LIBS"
11681    ;;
11682  esac
11683
11684  case $lt_cv_dlopen_self in
11685  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11686  *) enable_dlopen_self=unknown ;;
11687  esac
11688
11689  case $lt_cv_dlopen_self_static in
11690  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11691  *) enable_dlopen_self_static=unknown ;;
11692  esac
11693fi
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711striplib=
11712old_striplib=
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11714$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11715if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11716  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11717  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11719$as_echo "yes" >&6; }
11720else
11721# FIXME - insert some real tests, host_os isn't really good enough
11722  case $host_os in
11723  darwin*)
11724    if test -n "$STRIP" ; then
11725      striplib="$STRIP -x"
11726      old_striplib="$STRIP -S"
11727      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11728$as_echo "yes" >&6; }
11729    else
11730      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731$as_echo "no" >&6; }
11732    fi
11733    ;;
11734  *)
11735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736$as_echo "no" >&6; }
11737    ;;
11738  esac
11739fi
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752  # Report which library types will actually be built
11753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11754$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11756$as_echo "$can_build_shared" >&6; }
11757
11758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11759$as_echo_n "checking whether to build shared libraries... " >&6; }
11760  test "$can_build_shared" = "no" && enable_shared=no
11761
11762  # On AIX, shared libraries and static libraries use the same namespace, and
11763  # are all built from PIC.
11764  case $host_os in
11765  aix3*)
11766    test "$enable_shared" = yes && enable_static=no
11767    if test -n "$RANLIB"; then
11768      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11769      postinstall_cmds='$RANLIB $lib'
11770    fi
11771    ;;
11772
11773  aix[4-9]*)
11774    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11775      test "$enable_shared" = yes && enable_static=no
11776    fi
11777    ;;
11778  esac
11779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11780$as_echo "$enable_shared" >&6; }
11781
11782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11783$as_echo_n "checking whether to build static libraries... " >&6; }
11784  # Make sure either enable_shared or enable_static is yes.
11785  test "$enable_shared" = yes || enable_static=yes
11786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11787$as_echo "$enable_static" >&6; }
11788
11789
11790
11791
11792fi
11793ac_ext=c
11794ac_cpp='$CPP $CPPFLAGS'
11795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11797ac_compiler_gnu=$ac_cv_c_compiler_gnu
11798
11799CC="$lt_save_CC"
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815        ac_config_commands="$ac_config_commands libtool"
11816
11817
11818
11819
11820# Only expand once:
11821
11822
11823
11824# Require xorg-macros minimum of 1.10 for DocBook XML documentation
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11837$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11838if ${ac_cv_prog_cc_c99+:} false; then :
11839  $as_echo_n "(cached) " >&6
11840else
11841  ac_cv_prog_cc_c99=no
11842ac_save_CC=$CC
11843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844/* end confdefs.h.  */
11845#include <stdarg.h>
11846#include <stdbool.h>
11847#include <stdlib.h>
11848#include <wchar.h>
11849#include <stdio.h>
11850
11851// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11852#define debug(...) fprintf (stderr, __VA_ARGS__)
11853#define showlist(...) puts (#__VA_ARGS__)
11854#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11855static void
11856test_varargs_macros (void)
11857{
11858  int x = 1234;
11859  int y = 5678;
11860  debug ("Flag");
11861  debug ("X = %d\n", x);
11862  showlist (The first, second, and third items.);
11863  report (x>y, "x is %d but y is %d", x, y);
11864}
11865
11866// Check long long types.
11867#define BIG64 18446744073709551615ull
11868#define BIG32 4294967295ul
11869#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11870#if !BIG_OK
11871  your preprocessor is broken;
11872#endif
11873#if BIG_OK
11874#else
11875  your preprocessor is broken;
11876#endif
11877static long long int bignum = -9223372036854775807LL;
11878static unsigned long long int ubignum = BIG64;
11879
11880struct incomplete_array
11881{
11882  int datasize;
11883  double data[];
11884};
11885
11886struct named_init {
11887  int number;
11888  const wchar_t *name;
11889  double average;
11890};
11891
11892typedef const char *ccp;
11893
11894static inline int
11895test_restrict (ccp restrict text)
11896{
11897  // See if C++-style comments work.
11898  // Iterate through items via the restricted pointer.
11899  // Also check for declarations in for loops.
11900  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11901    continue;
11902  return 0;
11903}
11904
11905// Check varargs and va_copy.
11906static void
11907test_varargs (const char *format, ...)
11908{
11909  va_list args;
11910  va_start (args, format);
11911  va_list args_copy;
11912  va_copy (args_copy, args);
11913
11914  const char *str;
11915  int number;
11916  float fnumber;
11917
11918  while (*format)
11919    {
11920      switch (*format++)
11921	{
11922	case 's': // string
11923	  str = va_arg (args_copy, const char *);
11924	  break;
11925	case 'd': // int
11926	  number = va_arg (args_copy, int);
11927	  break;
11928	case 'f': // float
11929	  fnumber = va_arg (args_copy, double);
11930	  break;
11931	default:
11932	  break;
11933	}
11934    }
11935  va_end (args_copy);
11936  va_end (args);
11937}
11938
11939int
11940main ()
11941{
11942
11943  // Check bool.
11944  _Bool success = false;
11945
11946  // Check restrict.
11947  if (test_restrict ("String literal") == 0)
11948    success = true;
11949  char *restrict newvar = "Another string";
11950
11951  // Check varargs.
11952  test_varargs ("s, d' f .", "string", 65, 34.234);
11953  test_varargs_macros ();
11954
11955  // Check flexible array members.
11956  struct incomplete_array *ia =
11957    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11958  ia->datasize = 10;
11959  for (int i = 0; i < ia->datasize; ++i)
11960    ia->data[i] = i * 1.234;
11961
11962  // Check named initializers.
11963  struct named_init ni = {
11964    .number = 34,
11965    .name = L"Test wide string",
11966    .average = 543.34343,
11967  };
11968
11969  ni.number = 58;
11970
11971  int dynamic_array[ni.number];
11972  dynamic_array[ni.number - 1] = 543;
11973
11974  // work around unused variable warnings
11975  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11976	  || dynamic_array[ni.number - 1] != 543);
11977
11978  ;
11979  return 0;
11980}
11981_ACEOF
11982for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11983do
11984  CC="$ac_save_CC $ac_arg"
11985  if ac_fn_c_try_compile "$LINENO"; then :
11986  ac_cv_prog_cc_c99=$ac_arg
11987fi
11988rm -f core conftest.err conftest.$ac_objext
11989  test "x$ac_cv_prog_cc_c99" != "xno" && break
11990done
11991rm -f conftest.$ac_ext
11992CC=$ac_save_CC
11993
11994fi
11995# AC_CACHE_VAL
11996case "x$ac_cv_prog_cc_c99" in
11997  x)
11998    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11999$as_echo "none needed" >&6; } ;;
12000  xno)
12001    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12002$as_echo "unsupported" >&6; } ;;
12003  *)
12004    CC="$CC $ac_cv_prog_cc_c99"
12005    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12006$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12007esac
12008if test "x$ac_cv_prog_cc_c99" != xno; then :
12009
12010fi
12011
12012
12013
12014
12015
12016
12017ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12018if test "x$ac_cv_have_decl___clang__" = xyes; then :
12019  CLANGCC="yes"
12020else
12021  CLANGCC="no"
12022fi
12023
12024ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12025if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12026  INTELCC="yes"
12027else
12028  INTELCC="no"
12029fi
12030
12031ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12032if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12033  SUNCC="yes"
12034else
12035  SUNCC="no"
12036fi
12037
12038
12039
12040
12041if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12042	if test -n "$ac_tool_prefix"; then
12043  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12044set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12046$as_echo_n "checking for $ac_word... " >&6; }
12047if ${ac_cv_path_PKG_CONFIG+:} false; then :
12048  $as_echo_n "(cached) " >&6
12049else
12050  case $PKG_CONFIG in
12051  [\\/]* | ?:[\\/]*)
12052  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12053  ;;
12054  *)
12055  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056for as_dir in $PATH
12057do
12058  IFS=$as_save_IFS
12059  test -z "$as_dir" && as_dir=.
12060    for ac_exec_ext in '' $ac_executable_extensions; do
12061  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12062    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12064    break 2
12065  fi
12066done
12067  done
12068IFS=$as_save_IFS
12069
12070  ;;
12071esac
12072fi
12073PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12074if test -n "$PKG_CONFIG"; then
12075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12076$as_echo "$PKG_CONFIG" >&6; }
12077else
12078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079$as_echo "no" >&6; }
12080fi
12081
12082
12083fi
12084if test -z "$ac_cv_path_PKG_CONFIG"; then
12085  ac_pt_PKG_CONFIG=$PKG_CONFIG
12086  # Extract the first word of "pkg-config", so it can be a program name with args.
12087set dummy pkg-config; ac_word=$2
12088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12089$as_echo_n "checking for $ac_word... " >&6; }
12090if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12091  $as_echo_n "(cached) " >&6
12092else
12093  case $ac_pt_PKG_CONFIG in
12094  [\\/]* | ?:[\\/]*)
12095  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12096  ;;
12097  *)
12098  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099for as_dir in $PATH
12100do
12101  IFS=$as_save_IFS
12102  test -z "$as_dir" && as_dir=.
12103    for ac_exec_ext in '' $ac_executable_extensions; do
12104  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12105    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12107    break 2
12108  fi
12109done
12110  done
12111IFS=$as_save_IFS
12112
12113  ;;
12114esac
12115fi
12116ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12117if test -n "$ac_pt_PKG_CONFIG"; then
12118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12119$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12120else
12121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122$as_echo "no" >&6; }
12123fi
12124
12125  if test "x$ac_pt_PKG_CONFIG" = x; then
12126    PKG_CONFIG=""
12127  else
12128    case $cross_compiling:$ac_tool_warned in
12129yes:)
12130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12132ac_tool_warned=yes ;;
12133esac
12134    PKG_CONFIG=$ac_pt_PKG_CONFIG
12135  fi
12136else
12137  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12138fi
12139
12140fi
12141if test -n "$PKG_CONFIG"; then
12142	_pkg_min_version=0.9.0
12143	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12144$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12145	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12146		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12147$as_echo "yes" >&6; }
12148	else
12149		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150$as_echo "no" >&6; }
12151		PKG_CONFIG=""
12152	fi
12153
12154fi
12155
12156
12157
12158
12159
12160# Check whether --enable-selective-werror was given.
12161if test "${enable_selective_werror+set}" = set; then :
12162  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12163else
12164  SELECTIVE_WERROR=yes
12165fi
12166
12167
12168
12169
12170
12171# -v is too short to test reliably with XORG_TESTSET_CFLAG
12172if test "x$SUNCC" = "xyes"; then
12173    BASE_CFLAGS="-v"
12174else
12175    BASE_CFLAGS=""
12176fi
12177
12178# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192xorg_testset_save_CFLAGS="$CFLAGS"
12193
12194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12195	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12196	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12197$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12198if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12199  $as_echo_n "(cached) " >&6
12200else
12201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202/* end confdefs.h.  */
12203int i;
12204_ACEOF
12205if ac_fn_c_try_compile "$LINENO"; then :
12206  xorg_cv_cc_flag_unknown_warning_option=yes
12207else
12208  xorg_cv_cc_flag_unknown_warning_option=no
12209fi
12210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12211fi
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12213$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12214	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12215	CFLAGS="$xorg_testset_save_CFLAGS"
12216fi
12217
12218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12219	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12220		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12221	fi
12222	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12223	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12224$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12225if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12226  $as_echo_n "(cached) " >&6
12227else
12228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229/* end confdefs.h.  */
12230int i;
12231_ACEOF
12232if ac_fn_c_try_compile "$LINENO"; then :
12233  xorg_cv_cc_flag_unused_command_line_argument=yes
12234else
12235  xorg_cv_cc_flag_unused_command_line_argument=no
12236fi
12237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12238fi
12239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12240$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12241	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12242	CFLAGS="$xorg_testset_save_CFLAGS"
12243fi
12244
12245found="no"
12246
12247	if test $found = "no" ; then
12248		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12249			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12250		fi
12251
12252		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12253			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12254		fi
12255
12256		CFLAGS="$CFLAGS -Wall"
12257
12258		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12259$as_echo_n "checking if $CC supports -Wall... " >&6; }
12260		cacheid=xorg_cv_cc_flag__Wall
12261		if eval \${$cacheid+:} false; then :
12262  $as_echo_n "(cached) " >&6
12263else
12264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265/* end confdefs.h.  */
12266int i;
12267int
12268main ()
12269{
12270
12271  ;
12272  return 0;
12273}
12274_ACEOF
12275if ac_fn_c_try_link "$LINENO"; then :
12276  eval $cacheid=yes
12277else
12278  eval $cacheid=no
12279fi
12280rm -f core conftest.err conftest.$ac_objext \
12281    conftest$ac_exeext conftest.$ac_ext
12282fi
12283
12284
12285		CFLAGS="$xorg_testset_save_CFLAGS"
12286
12287		eval supported=\$$cacheid
12288		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12289$as_echo "$supported" >&6; }
12290		if test "$supported" = "yes" ; then
12291			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12292			found="yes"
12293		fi
12294	fi
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310xorg_testset_save_CFLAGS="$CFLAGS"
12311
12312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12313	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12314	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12315$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12316if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12317  $as_echo_n "(cached) " >&6
12318else
12319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320/* end confdefs.h.  */
12321int i;
12322_ACEOF
12323if ac_fn_c_try_compile "$LINENO"; then :
12324  xorg_cv_cc_flag_unknown_warning_option=yes
12325else
12326  xorg_cv_cc_flag_unknown_warning_option=no
12327fi
12328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12329fi
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12331$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12332	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12333	CFLAGS="$xorg_testset_save_CFLAGS"
12334fi
12335
12336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12337	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12338		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12339	fi
12340	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12341	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12342$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12343if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12344  $as_echo_n "(cached) " >&6
12345else
12346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347/* end confdefs.h.  */
12348int i;
12349_ACEOF
12350if ac_fn_c_try_compile "$LINENO"; then :
12351  xorg_cv_cc_flag_unused_command_line_argument=yes
12352else
12353  xorg_cv_cc_flag_unused_command_line_argument=no
12354fi
12355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356fi
12357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12358$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12359	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12360	CFLAGS="$xorg_testset_save_CFLAGS"
12361fi
12362
12363found="no"
12364
12365	if test $found = "no" ; then
12366		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12368		fi
12369
12370		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12372		fi
12373
12374		CFLAGS="$CFLAGS -Wpointer-arith"
12375
12376		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12377$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12378		cacheid=xorg_cv_cc_flag__Wpointer_arith
12379		if eval \${$cacheid+:} false; then :
12380  $as_echo_n "(cached) " >&6
12381else
12382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383/* end confdefs.h.  */
12384int i;
12385int
12386main ()
12387{
12388
12389  ;
12390  return 0;
12391}
12392_ACEOF
12393if ac_fn_c_try_link "$LINENO"; then :
12394  eval $cacheid=yes
12395else
12396  eval $cacheid=no
12397fi
12398rm -f core conftest.err conftest.$ac_objext \
12399    conftest$ac_exeext conftest.$ac_ext
12400fi
12401
12402
12403		CFLAGS="$xorg_testset_save_CFLAGS"
12404
12405		eval supported=\$$cacheid
12406		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12407$as_echo "$supported" >&6; }
12408		if test "$supported" = "yes" ; then
12409			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12410			found="yes"
12411		fi
12412	fi
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428xorg_testset_save_CFLAGS="$CFLAGS"
12429
12430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12431	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12432	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12433$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12434if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12435  $as_echo_n "(cached) " >&6
12436else
12437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438/* end confdefs.h.  */
12439int i;
12440_ACEOF
12441if ac_fn_c_try_compile "$LINENO"; then :
12442  xorg_cv_cc_flag_unknown_warning_option=yes
12443else
12444  xorg_cv_cc_flag_unknown_warning_option=no
12445fi
12446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447fi
12448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12449$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12450	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12451	CFLAGS="$xorg_testset_save_CFLAGS"
12452fi
12453
12454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12455	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12456		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12457	fi
12458	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12459	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12460$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12461if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12462  $as_echo_n "(cached) " >&6
12463else
12464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465/* end confdefs.h.  */
12466int i;
12467_ACEOF
12468if ac_fn_c_try_compile "$LINENO"; then :
12469  xorg_cv_cc_flag_unused_command_line_argument=yes
12470else
12471  xorg_cv_cc_flag_unused_command_line_argument=no
12472fi
12473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12474fi
12475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12476$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12477	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12478	CFLAGS="$xorg_testset_save_CFLAGS"
12479fi
12480
12481found="no"
12482
12483	if test $found = "no" ; then
12484		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12486		fi
12487
12488		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12490		fi
12491
12492		CFLAGS="$CFLAGS -Wmissing-declarations"
12493
12494		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12495$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12496		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12497		if eval \${$cacheid+:} false; then :
12498  $as_echo_n "(cached) " >&6
12499else
12500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501/* end confdefs.h.  */
12502int i;
12503int
12504main ()
12505{
12506
12507  ;
12508  return 0;
12509}
12510_ACEOF
12511if ac_fn_c_try_link "$LINENO"; then :
12512  eval $cacheid=yes
12513else
12514  eval $cacheid=no
12515fi
12516rm -f core conftest.err conftest.$ac_objext \
12517    conftest$ac_exeext conftest.$ac_ext
12518fi
12519
12520
12521		CFLAGS="$xorg_testset_save_CFLAGS"
12522
12523		eval supported=\$$cacheid
12524		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12525$as_echo "$supported" >&6; }
12526		if test "$supported" = "yes" ; then
12527			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12528			found="yes"
12529		fi
12530	fi
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546xorg_testset_save_CFLAGS="$CFLAGS"
12547
12548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12549	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12550	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12551$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12552if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12553  $as_echo_n "(cached) " >&6
12554else
12555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556/* end confdefs.h.  */
12557int i;
12558_ACEOF
12559if ac_fn_c_try_compile "$LINENO"; then :
12560  xorg_cv_cc_flag_unknown_warning_option=yes
12561else
12562  xorg_cv_cc_flag_unknown_warning_option=no
12563fi
12564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12565fi
12566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12567$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12568	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12569	CFLAGS="$xorg_testset_save_CFLAGS"
12570fi
12571
12572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12573	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12574		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12575	fi
12576	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12577	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12578$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12579if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12580  $as_echo_n "(cached) " >&6
12581else
12582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583/* end confdefs.h.  */
12584int i;
12585_ACEOF
12586if ac_fn_c_try_compile "$LINENO"; then :
12587  xorg_cv_cc_flag_unused_command_line_argument=yes
12588else
12589  xorg_cv_cc_flag_unused_command_line_argument=no
12590fi
12591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12592fi
12593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12594$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12595	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12596	CFLAGS="$xorg_testset_save_CFLAGS"
12597fi
12598
12599found="no"
12600
12601	if test $found = "no" ; then
12602		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12603			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12604		fi
12605
12606		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12607			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12608		fi
12609
12610		CFLAGS="$CFLAGS -Wformat=2"
12611
12612		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12613$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12614		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12615		if eval \${$cacheid+:} false; then :
12616  $as_echo_n "(cached) " >&6
12617else
12618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12619/* end confdefs.h.  */
12620int i;
12621int
12622main ()
12623{
12624
12625  ;
12626  return 0;
12627}
12628_ACEOF
12629if ac_fn_c_try_link "$LINENO"; then :
12630  eval $cacheid=yes
12631else
12632  eval $cacheid=no
12633fi
12634rm -f core conftest.err conftest.$ac_objext \
12635    conftest$ac_exeext conftest.$ac_ext
12636fi
12637
12638
12639		CFLAGS="$xorg_testset_save_CFLAGS"
12640
12641		eval supported=\$$cacheid
12642		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12643$as_echo "$supported" >&6; }
12644		if test "$supported" = "yes" ; then
12645			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12646			found="yes"
12647		fi
12648	fi
12649
12650	if test $found = "no" ; then
12651		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12652			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12653		fi
12654
12655		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12656			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12657		fi
12658
12659		CFLAGS="$CFLAGS -Wformat"
12660
12661		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12662$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12663		cacheid=xorg_cv_cc_flag__Wformat
12664		if eval \${$cacheid+:} false; then :
12665  $as_echo_n "(cached) " >&6
12666else
12667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668/* end confdefs.h.  */
12669int i;
12670int
12671main ()
12672{
12673
12674  ;
12675  return 0;
12676}
12677_ACEOF
12678if ac_fn_c_try_link "$LINENO"; then :
12679  eval $cacheid=yes
12680else
12681  eval $cacheid=no
12682fi
12683rm -f core conftest.err conftest.$ac_objext \
12684    conftest$ac_exeext conftest.$ac_ext
12685fi
12686
12687
12688		CFLAGS="$xorg_testset_save_CFLAGS"
12689
12690		eval supported=\$$cacheid
12691		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12692$as_echo "$supported" >&6; }
12693		if test "$supported" = "yes" ; then
12694			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12695			found="yes"
12696		fi
12697	fi
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715xorg_testset_save_CFLAGS="$CFLAGS"
12716
12717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12718	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12719	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12720$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12721if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12722  $as_echo_n "(cached) " >&6
12723else
12724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12725/* end confdefs.h.  */
12726int i;
12727_ACEOF
12728if ac_fn_c_try_compile "$LINENO"; then :
12729  xorg_cv_cc_flag_unknown_warning_option=yes
12730else
12731  xorg_cv_cc_flag_unknown_warning_option=no
12732fi
12733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12734fi
12735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12736$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12737	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12738	CFLAGS="$xorg_testset_save_CFLAGS"
12739fi
12740
12741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12742	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12743		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12744	fi
12745	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12746	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12747$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12748if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12749  $as_echo_n "(cached) " >&6
12750else
12751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752/* end confdefs.h.  */
12753int i;
12754_ACEOF
12755if ac_fn_c_try_compile "$LINENO"; then :
12756  xorg_cv_cc_flag_unused_command_line_argument=yes
12757else
12758  xorg_cv_cc_flag_unused_command_line_argument=no
12759fi
12760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12761fi
12762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12763$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12764	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12765	CFLAGS="$xorg_testset_save_CFLAGS"
12766fi
12767
12768found="no"
12769
12770	if test $found = "no" ; then
12771		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12772			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12773		fi
12774
12775		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12776			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12777		fi
12778
12779		CFLAGS="$CFLAGS -Wstrict-prototypes"
12780
12781		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12782$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12783		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12784		if eval \${$cacheid+:} false; then :
12785  $as_echo_n "(cached) " >&6
12786else
12787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788/* end confdefs.h.  */
12789int i;
12790int
12791main ()
12792{
12793
12794  ;
12795  return 0;
12796}
12797_ACEOF
12798if ac_fn_c_try_link "$LINENO"; then :
12799  eval $cacheid=yes
12800else
12801  eval $cacheid=no
12802fi
12803rm -f core conftest.err conftest.$ac_objext \
12804    conftest$ac_exeext conftest.$ac_ext
12805fi
12806
12807
12808		CFLAGS="$xorg_testset_save_CFLAGS"
12809
12810		eval supported=\$$cacheid
12811		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12812$as_echo "$supported" >&6; }
12813		if test "$supported" = "yes" ; then
12814			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12815			found="yes"
12816		fi
12817	fi
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833xorg_testset_save_CFLAGS="$CFLAGS"
12834
12835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12836	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12837	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12838$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12839if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12840  $as_echo_n "(cached) " >&6
12841else
12842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12843/* end confdefs.h.  */
12844int i;
12845_ACEOF
12846if ac_fn_c_try_compile "$LINENO"; then :
12847  xorg_cv_cc_flag_unknown_warning_option=yes
12848else
12849  xorg_cv_cc_flag_unknown_warning_option=no
12850fi
12851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12852fi
12853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12854$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12855	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12856	CFLAGS="$xorg_testset_save_CFLAGS"
12857fi
12858
12859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12860	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12861		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12862	fi
12863	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12864	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12865$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12866if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12867  $as_echo_n "(cached) " >&6
12868else
12869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870/* end confdefs.h.  */
12871int i;
12872_ACEOF
12873if ac_fn_c_try_compile "$LINENO"; then :
12874  xorg_cv_cc_flag_unused_command_line_argument=yes
12875else
12876  xorg_cv_cc_flag_unused_command_line_argument=no
12877fi
12878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12879fi
12880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12881$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12882	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12883	CFLAGS="$xorg_testset_save_CFLAGS"
12884fi
12885
12886found="no"
12887
12888	if test $found = "no" ; then
12889		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12890			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12891		fi
12892
12893		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12894			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12895		fi
12896
12897		CFLAGS="$CFLAGS -Wmissing-prototypes"
12898
12899		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12900$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12901		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12902		if eval \${$cacheid+:} false; then :
12903  $as_echo_n "(cached) " >&6
12904else
12905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906/* end confdefs.h.  */
12907int i;
12908int
12909main ()
12910{
12911
12912  ;
12913  return 0;
12914}
12915_ACEOF
12916if ac_fn_c_try_link "$LINENO"; then :
12917  eval $cacheid=yes
12918else
12919  eval $cacheid=no
12920fi
12921rm -f core conftest.err conftest.$ac_objext \
12922    conftest$ac_exeext conftest.$ac_ext
12923fi
12924
12925
12926		CFLAGS="$xorg_testset_save_CFLAGS"
12927
12928		eval supported=\$$cacheid
12929		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12930$as_echo "$supported" >&6; }
12931		if test "$supported" = "yes" ; then
12932			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12933			found="yes"
12934		fi
12935	fi
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951xorg_testset_save_CFLAGS="$CFLAGS"
12952
12953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12954	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12955	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12956$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12957if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12958  $as_echo_n "(cached) " >&6
12959else
12960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961/* end confdefs.h.  */
12962int i;
12963_ACEOF
12964if ac_fn_c_try_compile "$LINENO"; then :
12965  xorg_cv_cc_flag_unknown_warning_option=yes
12966else
12967  xorg_cv_cc_flag_unknown_warning_option=no
12968fi
12969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12970fi
12971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12972$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12973	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12974	CFLAGS="$xorg_testset_save_CFLAGS"
12975fi
12976
12977if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12978	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12979		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12980	fi
12981	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12982	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12983$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12984if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12985  $as_echo_n "(cached) " >&6
12986else
12987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988/* end confdefs.h.  */
12989int i;
12990_ACEOF
12991if ac_fn_c_try_compile "$LINENO"; then :
12992  xorg_cv_cc_flag_unused_command_line_argument=yes
12993else
12994  xorg_cv_cc_flag_unused_command_line_argument=no
12995fi
12996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997fi
12998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12999$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13000	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13001	CFLAGS="$xorg_testset_save_CFLAGS"
13002fi
13003
13004found="no"
13005
13006	if test $found = "no" ; then
13007		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13008			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13009		fi
13010
13011		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13012			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13013		fi
13014
13015		CFLAGS="$CFLAGS -Wnested-externs"
13016
13017		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13018$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13019		cacheid=xorg_cv_cc_flag__Wnested_externs
13020		if eval \${$cacheid+:} false; then :
13021  $as_echo_n "(cached) " >&6
13022else
13023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024/* end confdefs.h.  */
13025int i;
13026int
13027main ()
13028{
13029
13030  ;
13031  return 0;
13032}
13033_ACEOF
13034if ac_fn_c_try_link "$LINENO"; then :
13035  eval $cacheid=yes
13036else
13037  eval $cacheid=no
13038fi
13039rm -f core conftest.err conftest.$ac_objext \
13040    conftest$ac_exeext conftest.$ac_ext
13041fi
13042
13043
13044		CFLAGS="$xorg_testset_save_CFLAGS"
13045
13046		eval supported=\$$cacheid
13047		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13048$as_echo "$supported" >&6; }
13049		if test "$supported" = "yes" ; then
13050			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13051			found="yes"
13052		fi
13053	fi
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069xorg_testset_save_CFLAGS="$CFLAGS"
13070
13071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13072	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13073	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13074$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13075if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13076  $as_echo_n "(cached) " >&6
13077else
13078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079/* end confdefs.h.  */
13080int i;
13081_ACEOF
13082if ac_fn_c_try_compile "$LINENO"; then :
13083  xorg_cv_cc_flag_unknown_warning_option=yes
13084else
13085  xorg_cv_cc_flag_unknown_warning_option=no
13086fi
13087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13088fi
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13090$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13091	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13092	CFLAGS="$xorg_testset_save_CFLAGS"
13093fi
13094
13095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13096	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13097		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13098	fi
13099	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13100	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13101$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13102if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13103  $as_echo_n "(cached) " >&6
13104else
13105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106/* end confdefs.h.  */
13107int i;
13108_ACEOF
13109if ac_fn_c_try_compile "$LINENO"; then :
13110  xorg_cv_cc_flag_unused_command_line_argument=yes
13111else
13112  xorg_cv_cc_flag_unused_command_line_argument=no
13113fi
13114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13115fi
13116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13117$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13118	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13119	CFLAGS="$xorg_testset_save_CFLAGS"
13120fi
13121
13122found="no"
13123
13124	if test $found = "no" ; then
13125		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13126			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13127		fi
13128
13129		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13130			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13131		fi
13132
13133		CFLAGS="$CFLAGS -Wbad-function-cast"
13134
13135		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13136$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13137		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13138		if eval \${$cacheid+:} false; then :
13139  $as_echo_n "(cached) " >&6
13140else
13141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142/* end confdefs.h.  */
13143int i;
13144int
13145main ()
13146{
13147
13148  ;
13149  return 0;
13150}
13151_ACEOF
13152if ac_fn_c_try_link "$LINENO"; then :
13153  eval $cacheid=yes
13154else
13155  eval $cacheid=no
13156fi
13157rm -f core conftest.err conftest.$ac_objext \
13158    conftest$ac_exeext conftest.$ac_ext
13159fi
13160
13161
13162		CFLAGS="$xorg_testset_save_CFLAGS"
13163
13164		eval supported=\$$cacheid
13165		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13166$as_echo "$supported" >&6; }
13167		if test "$supported" = "yes" ; then
13168			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13169			found="yes"
13170		fi
13171	fi
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187xorg_testset_save_CFLAGS="$CFLAGS"
13188
13189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13190	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13191	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13192$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13193if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13194  $as_echo_n "(cached) " >&6
13195else
13196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13197/* end confdefs.h.  */
13198int i;
13199_ACEOF
13200if ac_fn_c_try_compile "$LINENO"; then :
13201  xorg_cv_cc_flag_unknown_warning_option=yes
13202else
13203  xorg_cv_cc_flag_unknown_warning_option=no
13204fi
13205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13206fi
13207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13208$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13209	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13210	CFLAGS="$xorg_testset_save_CFLAGS"
13211fi
13212
13213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13214	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13215		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13216	fi
13217	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13218	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13219$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13220if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13221  $as_echo_n "(cached) " >&6
13222else
13223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13224/* end confdefs.h.  */
13225int i;
13226_ACEOF
13227if ac_fn_c_try_compile "$LINENO"; then :
13228  xorg_cv_cc_flag_unused_command_line_argument=yes
13229else
13230  xorg_cv_cc_flag_unused_command_line_argument=no
13231fi
13232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13233fi
13234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13235$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13236	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13237	CFLAGS="$xorg_testset_save_CFLAGS"
13238fi
13239
13240found="no"
13241
13242	if test $found = "no" ; then
13243		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13244			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13245		fi
13246
13247		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13248			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13249		fi
13250
13251		CFLAGS="$CFLAGS -Wold-style-definition"
13252
13253		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13254$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13255		cacheid=xorg_cv_cc_flag__Wold_style_definition
13256		if eval \${$cacheid+:} false; then :
13257  $as_echo_n "(cached) " >&6
13258else
13259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260/* end confdefs.h.  */
13261int i;
13262int
13263main ()
13264{
13265
13266  ;
13267  return 0;
13268}
13269_ACEOF
13270if ac_fn_c_try_link "$LINENO"; then :
13271  eval $cacheid=yes
13272else
13273  eval $cacheid=no
13274fi
13275rm -f core conftest.err conftest.$ac_objext \
13276    conftest$ac_exeext conftest.$ac_ext
13277fi
13278
13279
13280		CFLAGS="$xorg_testset_save_CFLAGS"
13281
13282		eval supported=\$$cacheid
13283		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13284$as_echo "$supported" >&6; }
13285		if test "$supported" = "yes" ; then
13286			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13287			found="yes"
13288		fi
13289	fi
13290
13291	if test $found = "no" ; then
13292		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13293			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13294		fi
13295
13296		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13297			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13298		fi
13299
13300		CFLAGS="$CFLAGS -fd"
13301
13302		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13303$as_echo_n "checking if $CC supports -fd... " >&6; }
13304		cacheid=xorg_cv_cc_flag__fd
13305		if eval \${$cacheid+:} false; then :
13306  $as_echo_n "(cached) " >&6
13307else
13308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309/* end confdefs.h.  */
13310int i;
13311int
13312main ()
13313{
13314
13315  ;
13316  return 0;
13317}
13318_ACEOF
13319if ac_fn_c_try_link "$LINENO"; then :
13320  eval $cacheid=yes
13321else
13322  eval $cacheid=no
13323fi
13324rm -f core conftest.err conftest.$ac_objext \
13325    conftest$ac_exeext conftest.$ac_ext
13326fi
13327
13328
13329		CFLAGS="$xorg_testset_save_CFLAGS"
13330
13331		eval supported=\$$cacheid
13332		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13333$as_echo "$supported" >&6; }
13334		if test "$supported" = "yes" ; then
13335			BASE_CFLAGS="$BASE_CFLAGS -fd"
13336			found="yes"
13337		fi
13338	fi
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354xorg_testset_save_CFLAGS="$CFLAGS"
13355
13356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13357	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13358	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13359$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13360if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13361  $as_echo_n "(cached) " >&6
13362else
13363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364/* end confdefs.h.  */
13365int i;
13366_ACEOF
13367if ac_fn_c_try_compile "$LINENO"; then :
13368  xorg_cv_cc_flag_unknown_warning_option=yes
13369else
13370  xorg_cv_cc_flag_unknown_warning_option=no
13371fi
13372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13373fi
13374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13375$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13376	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13377	CFLAGS="$xorg_testset_save_CFLAGS"
13378fi
13379
13380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13381	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13382		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13383	fi
13384	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13385	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13386$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13387if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13388  $as_echo_n "(cached) " >&6
13389else
13390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391/* end confdefs.h.  */
13392int i;
13393_ACEOF
13394if ac_fn_c_try_compile "$LINENO"; then :
13395  xorg_cv_cc_flag_unused_command_line_argument=yes
13396else
13397  xorg_cv_cc_flag_unused_command_line_argument=no
13398fi
13399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13400fi
13401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13402$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13403	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13404	CFLAGS="$xorg_testset_save_CFLAGS"
13405fi
13406
13407found="no"
13408
13409	if test $found = "no" ; then
13410		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13411			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13412		fi
13413
13414		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13415			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13416		fi
13417
13418		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13419
13420		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13421$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13422		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13423		if eval \${$cacheid+:} false; then :
13424  $as_echo_n "(cached) " >&6
13425else
13426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13427/* end confdefs.h.  */
13428int i;
13429int
13430main ()
13431{
13432
13433  ;
13434  return 0;
13435}
13436_ACEOF
13437if ac_fn_c_try_link "$LINENO"; then :
13438  eval $cacheid=yes
13439else
13440  eval $cacheid=no
13441fi
13442rm -f core conftest.err conftest.$ac_objext \
13443    conftest$ac_exeext conftest.$ac_ext
13444fi
13445
13446
13447		CFLAGS="$xorg_testset_save_CFLAGS"
13448
13449		eval supported=\$$cacheid
13450		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13451$as_echo "$supported" >&6; }
13452		if test "$supported" = "yes" ; then
13453			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13454			found="yes"
13455		fi
13456	fi
13457
13458
13459
13460
13461
13462# This chunk adds additional warnings that could catch undesired effects.
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476xorg_testset_save_CFLAGS="$CFLAGS"
13477
13478if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13479	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13480	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13481$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13482if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13483  $as_echo_n "(cached) " >&6
13484else
13485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13486/* end confdefs.h.  */
13487int i;
13488_ACEOF
13489if ac_fn_c_try_compile "$LINENO"; then :
13490  xorg_cv_cc_flag_unknown_warning_option=yes
13491else
13492  xorg_cv_cc_flag_unknown_warning_option=no
13493fi
13494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13495fi
13496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13497$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13498	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13499	CFLAGS="$xorg_testset_save_CFLAGS"
13500fi
13501
13502if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13503	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13504		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13505	fi
13506	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13507	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13508$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13509if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13510  $as_echo_n "(cached) " >&6
13511else
13512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513/* end confdefs.h.  */
13514int i;
13515_ACEOF
13516if ac_fn_c_try_compile "$LINENO"; then :
13517  xorg_cv_cc_flag_unused_command_line_argument=yes
13518else
13519  xorg_cv_cc_flag_unused_command_line_argument=no
13520fi
13521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13522fi
13523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13524$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13525	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13526	CFLAGS="$xorg_testset_save_CFLAGS"
13527fi
13528
13529found="no"
13530
13531	if test $found = "no" ; then
13532		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13533			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13534		fi
13535
13536		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13537			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13538		fi
13539
13540		CFLAGS="$CFLAGS -Wunused"
13541
13542		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13543$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13544		cacheid=xorg_cv_cc_flag__Wunused
13545		if eval \${$cacheid+:} false; then :
13546  $as_echo_n "(cached) " >&6
13547else
13548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549/* end confdefs.h.  */
13550int i;
13551int
13552main ()
13553{
13554
13555  ;
13556  return 0;
13557}
13558_ACEOF
13559if ac_fn_c_try_link "$LINENO"; then :
13560  eval $cacheid=yes
13561else
13562  eval $cacheid=no
13563fi
13564rm -f core conftest.err conftest.$ac_objext \
13565    conftest$ac_exeext conftest.$ac_ext
13566fi
13567
13568
13569		CFLAGS="$xorg_testset_save_CFLAGS"
13570
13571		eval supported=\$$cacheid
13572		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13573$as_echo "$supported" >&6; }
13574		if test "$supported" = "yes" ; then
13575			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13576			found="yes"
13577		fi
13578	fi
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594xorg_testset_save_CFLAGS="$CFLAGS"
13595
13596if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13597	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13598	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13599$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13600if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13601  $as_echo_n "(cached) " >&6
13602else
13603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604/* end confdefs.h.  */
13605int i;
13606_ACEOF
13607if ac_fn_c_try_compile "$LINENO"; then :
13608  xorg_cv_cc_flag_unknown_warning_option=yes
13609else
13610  xorg_cv_cc_flag_unknown_warning_option=no
13611fi
13612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13613fi
13614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13615$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13616	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13617	CFLAGS="$xorg_testset_save_CFLAGS"
13618fi
13619
13620if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13621	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13622		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13623	fi
13624	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13625	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13626$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13627if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13628  $as_echo_n "(cached) " >&6
13629else
13630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13631/* end confdefs.h.  */
13632int i;
13633_ACEOF
13634if ac_fn_c_try_compile "$LINENO"; then :
13635  xorg_cv_cc_flag_unused_command_line_argument=yes
13636else
13637  xorg_cv_cc_flag_unused_command_line_argument=no
13638fi
13639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13640fi
13641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13642$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13643	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13644	CFLAGS="$xorg_testset_save_CFLAGS"
13645fi
13646
13647found="no"
13648
13649	if test $found = "no" ; then
13650		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13651			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13652		fi
13653
13654		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13655			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13656		fi
13657
13658		CFLAGS="$CFLAGS -Wuninitialized"
13659
13660		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13661$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13662		cacheid=xorg_cv_cc_flag__Wuninitialized
13663		if eval \${$cacheid+:} false; then :
13664  $as_echo_n "(cached) " >&6
13665else
13666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13667/* end confdefs.h.  */
13668int i;
13669int
13670main ()
13671{
13672
13673  ;
13674  return 0;
13675}
13676_ACEOF
13677if ac_fn_c_try_link "$LINENO"; then :
13678  eval $cacheid=yes
13679else
13680  eval $cacheid=no
13681fi
13682rm -f core conftest.err conftest.$ac_objext \
13683    conftest$ac_exeext conftest.$ac_ext
13684fi
13685
13686
13687		CFLAGS="$xorg_testset_save_CFLAGS"
13688
13689		eval supported=\$$cacheid
13690		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13691$as_echo "$supported" >&6; }
13692		if test "$supported" = "yes" ; then
13693			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13694			found="yes"
13695		fi
13696	fi
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712xorg_testset_save_CFLAGS="$CFLAGS"
13713
13714if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13715	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13716	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13717$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13718if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13719  $as_echo_n "(cached) " >&6
13720else
13721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722/* end confdefs.h.  */
13723int i;
13724_ACEOF
13725if ac_fn_c_try_compile "$LINENO"; then :
13726  xorg_cv_cc_flag_unknown_warning_option=yes
13727else
13728  xorg_cv_cc_flag_unknown_warning_option=no
13729fi
13730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13731fi
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13733$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13734	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13735	CFLAGS="$xorg_testset_save_CFLAGS"
13736fi
13737
13738if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13739	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13740		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13741	fi
13742	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13743	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13744$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13745if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13746  $as_echo_n "(cached) " >&6
13747else
13748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749/* end confdefs.h.  */
13750int i;
13751_ACEOF
13752if ac_fn_c_try_compile "$LINENO"; then :
13753  xorg_cv_cc_flag_unused_command_line_argument=yes
13754else
13755  xorg_cv_cc_flag_unused_command_line_argument=no
13756fi
13757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13758fi
13759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13760$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13761	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13762	CFLAGS="$xorg_testset_save_CFLAGS"
13763fi
13764
13765found="no"
13766
13767	if test $found = "no" ; then
13768		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13769			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13770		fi
13771
13772		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13773			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13774		fi
13775
13776		CFLAGS="$CFLAGS -Wshadow"
13777
13778		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13779$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13780		cacheid=xorg_cv_cc_flag__Wshadow
13781		if eval \${$cacheid+:} false; then :
13782  $as_echo_n "(cached) " >&6
13783else
13784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785/* end confdefs.h.  */
13786int i;
13787int
13788main ()
13789{
13790
13791  ;
13792  return 0;
13793}
13794_ACEOF
13795if ac_fn_c_try_link "$LINENO"; then :
13796  eval $cacheid=yes
13797else
13798  eval $cacheid=no
13799fi
13800rm -f core conftest.err conftest.$ac_objext \
13801    conftest$ac_exeext conftest.$ac_ext
13802fi
13803
13804
13805		CFLAGS="$xorg_testset_save_CFLAGS"
13806
13807		eval supported=\$$cacheid
13808		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13809$as_echo "$supported" >&6; }
13810		if test "$supported" = "yes" ; then
13811			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13812			found="yes"
13813		fi
13814	fi
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830xorg_testset_save_CFLAGS="$CFLAGS"
13831
13832if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13833	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13834	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13835$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13836if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13837  $as_echo_n "(cached) " >&6
13838else
13839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13840/* end confdefs.h.  */
13841int i;
13842_ACEOF
13843if ac_fn_c_try_compile "$LINENO"; then :
13844  xorg_cv_cc_flag_unknown_warning_option=yes
13845else
13846  xorg_cv_cc_flag_unknown_warning_option=no
13847fi
13848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13849fi
13850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13851$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13852	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13853	CFLAGS="$xorg_testset_save_CFLAGS"
13854fi
13855
13856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13857	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13858		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13859	fi
13860	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13861	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13862$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13863if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13864  $as_echo_n "(cached) " >&6
13865else
13866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867/* end confdefs.h.  */
13868int i;
13869_ACEOF
13870if ac_fn_c_try_compile "$LINENO"; then :
13871  xorg_cv_cc_flag_unused_command_line_argument=yes
13872else
13873  xorg_cv_cc_flag_unused_command_line_argument=no
13874fi
13875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13876fi
13877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13878$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13879	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13880	CFLAGS="$xorg_testset_save_CFLAGS"
13881fi
13882
13883found="no"
13884
13885	if test $found = "no" ; then
13886		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13887			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13888		fi
13889
13890		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13891			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13892		fi
13893
13894		CFLAGS="$CFLAGS -Wmissing-noreturn"
13895
13896		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13897$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13898		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13899		if eval \${$cacheid+:} false; then :
13900  $as_echo_n "(cached) " >&6
13901else
13902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13903/* end confdefs.h.  */
13904int i;
13905int
13906main ()
13907{
13908
13909  ;
13910  return 0;
13911}
13912_ACEOF
13913if ac_fn_c_try_link "$LINENO"; then :
13914  eval $cacheid=yes
13915else
13916  eval $cacheid=no
13917fi
13918rm -f core conftest.err conftest.$ac_objext \
13919    conftest$ac_exeext conftest.$ac_ext
13920fi
13921
13922
13923		CFLAGS="$xorg_testset_save_CFLAGS"
13924
13925		eval supported=\$$cacheid
13926		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13927$as_echo "$supported" >&6; }
13928		if test "$supported" = "yes" ; then
13929			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13930			found="yes"
13931		fi
13932	fi
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948xorg_testset_save_CFLAGS="$CFLAGS"
13949
13950if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13951	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13952	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13953$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13954if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13955  $as_echo_n "(cached) " >&6
13956else
13957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958/* end confdefs.h.  */
13959int i;
13960_ACEOF
13961if ac_fn_c_try_compile "$LINENO"; then :
13962  xorg_cv_cc_flag_unknown_warning_option=yes
13963else
13964  xorg_cv_cc_flag_unknown_warning_option=no
13965fi
13966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13967fi
13968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13969$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13970	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13971	CFLAGS="$xorg_testset_save_CFLAGS"
13972fi
13973
13974if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13975	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13976		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13977	fi
13978	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13979	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13980$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13981if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13982  $as_echo_n "(cached) " >&6
13983else
13984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985/* end confdefs.h.  */
13986int i;
13987_ACEOF
13988if ac_fn_c_try_compile "$LINENO"; then :
13989  xorg_cv_cc_flag_unused_command_line_argument=yes
13990else
13991  xorg_cv_cc_flag_unused_command_line_argument=no
13992fi
13993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13994fi
13995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13996$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13997	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13998	CFLAGS="$xorg_testset_save_CFLAGS"
13999fi
14000
14001found="no"
14002
14003	if test $found = "no" ; then
14004		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14005			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14006		fi
14007
14008		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14009			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14010		fi
14011
14012		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14013
14014		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14015$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14016		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14017		if eval \${$cacheid+:} false; then :
14018  $as_echo_n "(cached) " >&6
14019else
14020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021/* end confdefs.h.  */
14022int i;
14023int
14024main ()
14025{
14026
14027  ;
14028  return 0;
14029}
14030_ACEOF
14031if ac_fn_c_try_link "$LINENO"; then :
14032  eval $cacheid=yes
14033else
14034  eval $cacheid=no
14035fi
14036rm -f core conftest.err conftest.$ac_objext \
14037    conftest$ac_exeext conftest.$ac_ext
14038fi
14039
14040
14041		CFLAGS="$xorg_testset_save_CFLAGS"
14042
14043		eval supported=\$$cacheid
14044		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14045$as_echo "$supported" >&6; }
14046		if test "$supported" = "yes" ; then
14047			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14048			found="yes"
14049		fi
14050	fi
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066xorg_testset_save_CFLAGS="$CFLAGS"
14067
14068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14069	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14070	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14071$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14072if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14073  $as_echo_n "(cached) " >&6
14074else
14075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076/* end confdefs.h.  */
14077int i;
14078_ACEOF
14079if ac_fn_c_try_compile "$LINENO"; then :
14080  xorg_cv_cc_flag_unknown_warning_option=yes
14081else
14082  xorg_cv_cc_flag_unknown_warning_option=no
14083fi
14084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14085fi
14086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14087$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14088	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14089	CFLAGS="$xorg_testset_save_CFLAGS"
14090fi
14091
14092if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14093	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14094		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14095	fi
14096	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14097	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14098$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14099if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14100  $as_echo_n "(cached) " >&6
14101else
14102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103/* end confdefs.h.  */
14104int i;
14105_ACEOF
14106if ac_fn_c_try_compile "$LINENO"; then :
14107  xorg_cv_cc_flag_unused_command_line_argument=yes
14108else
14109  xorg_cv_cc_flag_unused_command_line_argument=no
14110fi
14111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14112fi
14113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14114$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14115	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14116	CFLAGS="$xorg_testset_save_CFLAGS"
14117fi
14118
14119found="no"
14120
14121	if test $found = "no" ; then
14122		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14123			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14124		fi
14125
14126		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14127			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14128		fi
14129
14130		CFLAGS="$CFLAGS -Wredundant-decls"
14131
14132		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14133$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14134		cacheid=xorg_cv_cc_flag__Wredundant_decls
14135		if eval \${$cacheid+:} false; then :
14136  $as_echo_n "(cached) " >&6
14137else
14138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14139/* end confdefs.h.  */
14140int i;
14141int
14142main ()
14143{
14144
14145  ;
14146  return 0;
14147}
14148_ACEOF
14149if ac_fn_c_try_link "$LINENO"; then :
14150  eval $cacheid=yes
14151else
14152  eval $cacheid=no
14153fi
14154rm -f core conftest.err conftest.$ac_objext \
14155    conftest$ac_exeext conftest.$ac_ext
14156fi
14157
14158
14159		CFLAGS="$xorg_testset_save_CFLAGS"
14160
14161		eval supported=\$$cacheid
14162		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14163$as_echo "$supported" >&6; }
14164		if test "$supported" = "yes" ; then
14165			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14166			found="yes"
14167		fi
14168	fi
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184xorg_testset_save_CFLAGS="$CFLAGS"
14185
14186if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14187	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14189$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14190if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14191  $as_echo_n "(cached) " >&6
14192else
14193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194/* end confdefs.h.  */
14195int i;
14196_ACEOF
14197if ac_fn_c_try_compile "$LINENO"; then :
14198  xorg_cv_cc_flag_unknown_warning_option=yes
14199else
14200  xorg_cv_cc_flag_unknown_warning_option=no
14201fi
14202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14203fi
14204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14205$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14206	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14207	CFLAGS="$xorg_testset_save_CFLAGS"
14208fi
14209
14210if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14211	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14212		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14213	fi
14214	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14215	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14216$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14217if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14218  $as_echo_n "(cached) " >&6
14219else
14220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14221/* end confdefs.h.  */
14222int i;
14223_ACEOF
14224if ac_fn_c_try_compile "$LINENO"; then :
14225  xorg_cv_cc_flag_unused_command_line_argument=yes
14226else
14227  xorg_cv_cc_flag_unused_command_line_argument=no
14228fi
14229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14230fi
14231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14232$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14233	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14234	CFLAGS="$xorg_testset_save_CFLAGS"
14235fi
14236
14237found="no"
14238
14239	if test $found = "no" ; then
14240		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14241			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14242		fi
14243
14244		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14245			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14246		fi
14247
14248		CFLAGS="$CFLAGS -Wlogical-op"
14249
14250		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14251$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14252		cacheid=xorg_cv_cc_flag__Wlogical_op
14253		if eval \${$cacheid+:} false; then :
14254  $as_echo_n "(cached) " >&6
14255else
14256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257/* end confdefs.h.  */
14258int i;
14259int
14260main ()
14261{
14262
14263  ;
14264  return 0;
14265}
14266_ACEOF
14267if ac_fn_c_try_link "$LINENO"; then :
14268  eval $cacheid=yes
14269else
14270  eval $cacheid=no
14271fi
14272rm -f core conftest.err conftest.$ac_objext \
14273    conftest$ac_exeext conftest.$ac_ext
14274fi
14275
14276
14277		CFLAGS="$xorg_testset_save_CFLAGS"
14278
14279		eval supported=\$$cacheid
14280		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14281$as_echo "$supported" >&6; }
14282		if test "$supported" = "yes" ; then
14283			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14284			found="yes"
14285		fi
14286	fi
14287
14288
14289
14290# These are currently disabled because they are noisy.  They will be enabled
14291# in the future once the codebase is sufficiently modernized to silence
14292# them.  For now, I don't want them to drown out the other warnings.
14293# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14294# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14295# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14296
14297# Turn some warnings into errors, so we don't accidently get successful builds
14298# when there are problems that should be fixed.
14299
14300if test "x$SELECTIVE_WERROR" = "xyes" ; then
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314xorg_testset_save_CFLAGS="$CFLAGS"
14315
14316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14317	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14318	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14319$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14320if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14321  $as_echo_n "(cached) " >&6
14322else
14323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324/* end confdefs.h.  */
14325int i;
14326_ACEOF
14327if ac_fn_c_try_compile "$LINENO"; then :
14328  xorg_cv_cc_flag_unknown_warning_option=yes
14329else
14330  xorg_cv_cc_flag_unknown_warning_option=no
14331fi
14332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14333fi
14334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14335$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14336	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14337	CFLAGS="$xorg_testset_save_CFLAGS"
14338fi
14339
14340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14341	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14342		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14343	fi
14344	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14345	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14346$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14347if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14348  $as_echo_n "(cached) " >&6
14349else
14350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351/* end confdefs.h.  */
14352int i;
14353_ACEOF
14354if ac_fn_c_try_compile "$LINENO"; then :
14355  xorg_cv_cc_flag_unused_command_line_argument=yes
14356else
14357  xorg_cv_cc_flag_unused_command_line_argument=no
14358fi
14359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14360fi
14361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14362$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14363	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14364	CFLAGS="$xorg_testset_save_CFLAGS"
14365fi
14366
14367found="no"
14368
14369	if test $found = "no" ; then
14370		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14371			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14372		fi
14373
14374		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14375			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14376		fi
14377
14378		CFLAGS="$CFLAGS -Werror=implicit"
14379
14380		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14381$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14382		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
14383		if eval \${$cacheid+:} false; then :
14384  $as_echo_n "(cached) " >&6
14385else
14386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387/* end confdefs.h.  */
14388int i;
14389int
14390main ()
14391{
14392
14393  ;
14394  return 0;
14395}
14396_ACEOF
14397if ac_fn_c_try_link "$LINENO"; then :
14398  eval $cacheid=yes
14399else
14400  eval $cacheid=no
14401fi
14402rm -f core conftest.err conftest.$ac_objext \
14403    conftest$ac_exeext conftest.$ac_ext
14404fi
14405
14406
14407		CFLAGS="$xorg_testset_save_CFLAGS"
14408
14409		eval supported=\$$cacheid
14410		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14411$as_echo "$supported" >&6; }
14412		if test "$supported" = "yes" ; then
14413			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14414			found="yes"
14415		fi
14416	fi
14417
14418	if test $found = "no" ; then
14419		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14420			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14421		fi
14422
14423		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14424			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14425		fi
14426
14427		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14428
14429		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14430$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14431		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
14432		if eval \${$cacheid+:} false; then :
14433  $as_echo_n "(cached) " >&6
14434else
14435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14436/* end confdefs.h.  */
14437int i;
14438int
14439main ()
14440{
14441
14442  ;
14443  return 0;
14444}
14445_ACEOF
14446if ac_fn_c_try_link "$LINENO"; then :
14447  eval $cacheid=yes
14448else
14449  eval $cacheid=no
14450fi
14451rm -f core conftest.err conftest.$ac_objext \
14452    conftest$ac_exeext conftest.$ac_ext
14453fi
14454
14455
14456		CFLAGS="$xorg_testset_save_CFLAGS"
14457
14458		eval supported=\$$cacheid
14459		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14460$as_echo "$supported" >&6; }
14461		if test "$supported" = "yes" ; then
14462			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14463			found="yes"
14464		fi
14465	fi
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481xorg_testset_save_CFLAGS="$CFLAGS"
14482
14483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14484	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14485	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14486$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14487if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14488  $as_echo_n "(cached) " >&6
14489else
14490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491/* end confdefs.h.  */
14492int i;
14493_ACEOF
14494if ac_fn_c_try_compile "$LINENO"; then :
14495  xorg_cv_cc_flag_unknown_warning_option=yes
14496else
14497  xorg_cv_cc_flag_unknown_warning_option=no
14498fi
14499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14500fi
14501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14502$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14503	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14504	CFLAGS="$xorg_testset_save_CFLAGS"
14505fi
14506
14507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14508	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14509		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14510	fi
14511	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14512	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14513$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14514if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14515  $as_echo_n "(cached) " >&6
14516else
14517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518/* end confdefs.h.  */
14519int i;
14520_ACEOF
14521if ac_fn_c_try_compile "$LINENO"; then :
14522  xorg_cv_cc_flag_unused_command_line_argument=yes
14523else
14524  xorg_cv_cc_flag_unused_command_line_argument=no
14525fi
14526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14527fi
14528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14529$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14530	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14531	CFLAGS="$xorg_testset_save_CFLAGS"
14532fi
14533
14534found="no"
14535
14536	if test $found = "no" ; then
14537		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14538			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14539		fi
14540
14541		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14542			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14543		fi
14544
14545		CFLAGS="$CFLAGS -Werror=nonnull"
14546
14547		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14548$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14549		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
14550		if eval \${$cacheid+:} false; then :
14551  $as_echo_n "(cached) " >&6
14552else
14553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554/* end confdefs.h.  */
14555int i;
14556int
14557main ()
14558{
14559
14560  ;
14561  return 0;
14562}
14563_ACEOF
14564if ac_fn_c_try_link "$LINENO"; then :
14565  eval $cacheid=yes
14566else
14567  eval $cacheid=no
14568fi
14569rm -f core conftest.err conftest.$ac_objext \
14570    conftest$ac_exeext conftest.$ac_ext
14571fi
14572
14573
14574		CFLAGS="$xorg_testset_save_CFLAGS"
14575
14576		eval supported=\$$cacheid
14577		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14578$as_echo "$supported" >&6; }
14579		if test "$supported" = "yes" ; then
14580			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14581			found="yes"
14582		fi
14583	fi
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599xorg_testset_save_CFLAGS="$CFLAGS"
14600
14601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14602	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14603	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14604$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14605if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14606  $as_echo_n "(cached) " >&6
14607else
14608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14609/* end confdefs.h.  */
14610int i;
14611_ACEOF
14612if ac_fn_c_try_compile "$LINENO"; then :
14613  xorg_cv_cc_flag_unknown_warning_option=yes
14614else
14615  xorg_cv_cc_flag_unknown_warning_option=no
14616fi
14617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14618fi
14619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14620$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14621	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14622	CFLAGS="$xorg_testset_save_CFLAGS"
14623fi
14624
14625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14626	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14627		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14628	fi
14629	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14630	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14631$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14632if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14633  $as_echo_n "(cached) " >&6
14634else
14635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636/* end confdefs.h.  */
14637int i;
14638_ACEOF
14639if ac_fn_c_try_compile "$LINENO"; then :
14640  xorg_cv_cc_flag_unused_command_line_argument=yes
14641else
14642  xorg_cv_cc_flag_unused_command_line_argument=no
14643fi
14644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14645fi
14646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14647$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14648	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14649	CFLAGS="$xorg_testset_save_CFLAGS"
14650fi
14651
14652found="no"
14653
14654	if test $found = "no" ; then
14655		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14656			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14657		fi
14658
14659		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14660			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14661		fi
14662
14663		CFLAGS="$CFLAGS -Werror=init-self"
14664
14665		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14666$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14667		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14668		if eval \${$cacheid+:} false; then :
14669  $as_echo_n "(cached) " >&6
14670else
14671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14672/* end confdefs.h.  */
14673int i;
14674int
14675main ()
14676{
14677
14678  ;
14679  return 0;
14680}
14681_ACEOF
14682if ac_fn_c_try_link "$LINENO"; then :
14683  eval $cacheid=yes
14684else
14685  eval $cacheid=no
14686fi
14687rm -f core conftest.err conftest.$ac_objext \
14688    conftest$ac_exeext conftest.$ac_ext
14689fi
14690
14691
14692		CFLAGS="$xorg_testset_save_CFLAGS"
14693
14694		eval supported=\$$cacheid
14695		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14696$as_echo "$supported" >&6; }
14697		if test "$supported" = "yes" ; then
14698			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14699			found="yes"
14700		fi
14701	fi
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717xorg_testset_save_CFLAGS="$CFLAGS"
14718
14719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14720	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14721	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14722$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14723if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14724  $as_echo_n "(cached) " >&6
14725else
14726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727/* end confdefs.h.  */
14728int i;
14729_ACEOF
14730if ac_fn_c_try_compile "$LINENO"; then :
14731  xorg_cv_cc_flag_unknown_warning_option=yes
14732else
14733  xorg_cv_cc_flag_unknown_warning_option=no
14734fi
14735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14736fi
14737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14738$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14739	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14740	CFLAGS="$xorg_testset_save_CFLAGS"
14741fi
14742
14743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14744	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14745		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14746	fi
14747	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14748	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14749$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14750if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14751  $as_echo_n "(cached) " >&6
14752else
14753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14754/* end confdefs.h.  */
14755int i;
14756_ACEOF
14757if ac_fn_c_try_compile "$LINENO"; then :
14758  xorg_cv_cc_flag_unused_command_line_argument=yes
14759else
14760  xorg_cv_cc_flag_unused_command_line_argument=no
14761fi
14762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14763fi
14764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14765$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14766	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14767	CFLAGS="$xorg_testset_save_CFLAGS"
14768fi
14769
14770found="no"
14771
14772	if test $found = "no" ; then
14773		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14774			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14775		fi
14776
14777		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14778			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14779		fi
14780
14781		CFLAGS="$CFLAGS -Werror=main"
14782
14783		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14784$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14785		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14786		if eval \${$cacheid+:} false; then :
14787  $as_echo_n "(cached) " >&6
14788else
14789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14790/* end confdefs.h.  */
14791int i;
14792int
14793main ()
14794{
14795
14796  ;
14797  return 0;
14798}
14799_ACEOF
14800if ac_fn_c_try_link "$LINENO"; then :
14801  eval $cacheid=yes
14802else
14803  eval $cacheid=no
14804fi
14805rm -f core conftest.err conftest.$ac_objext \
14806    conftest$ac_exeext conftest.$ac_ext
14807fi
14808
14809
14810		CFLAGS="$xorg_testset_save_CFLAGS"
14811
14812		eval supported=\$$cacheid
14813		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14814$as_echo "$supported" >&6; }
14815		if test "$supported" = "yes" ; then
14816			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14817			found="yes"
14818		fi
14819	fi
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835xorg_testset_save_CFLAGS="$CFLAGS"
14836
14837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14838	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14839	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14840$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14841if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14842  $as_echo_n "(cached) " >&6
14843else
14844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14845/* end confdefs.h.  */
14846int i;
14847_ACEOF
14848if ac_fn_c_try_compile "$LINENO"; then :
14849  xorg_cv_cc_flag_unknown_warning_option=yes
14850else
14851  xorg_cv_cc_flag_unknown_warning_option=no
14852fi
14853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854fi
14855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14856$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14857	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14858	CFLAGS="$xorg_testset_save_CFLAGS"
14859fi
14860
14861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14862	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14863		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14864	fi
14865	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14866	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14867$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14868if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14869  $as_echo_n "(cached) " >&6
14870else
14871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872/* end confdefs.h.  */
14873int i;
14874_ACEOF
14875if ac_fn_c_try_compile "$LINENO"; then :
14876  xorg_cv_cc_flag_unused_command_line_argument=yes
14877else
14878  xorg_cv_cc_flag_unused_command_line_argument=no
14879fi
14880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14881fi
14882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14883$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14884	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14885	CFLAGS="$xorg_testset_save_CFLAGS"
14886fi
14887
14888found="no"
14889
14890	if test $found = "no" ; then
14891		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14892			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14893		fi
14894
14895		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14896			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14897		fi
14898
14899		CFLAGS="$CFLAGS -Werror=missing-braces"
14900
14901		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14902$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14903		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14904		if eval \${$cacheid+:} false; then :
14905  $as_echo_n "(cached) " >&6
14906else
14907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14908/* end confdefs.h.  */
14909int i;
14910int
14911main ()
14912{
14913
14914  ;
14915  return 0;
14916}
14917_ACEOF
14918if ac_fn_c_try_link "$LINENO"; then :
14919  eval $cacheid=yes
14920else
14921  eval $cacheid=no
14922fi
14923rm -f core conftest.err conftest.$ac_objext \
14924    conftest$ac_exeext conftest.$ac_ext
14925fi
14926
14927
14928		CFLAGS="$xorg_testset_save_CFLAGS"
14929
14930		eval supported=\$$cacheid
14931		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14932$as_echo "$supported" >&6; }
14933		if test "$supported" = "yes" ; then
14934			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14935			found="yes"
14936		fi
14937	fi
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953xorg_testset_save_CFLAGS="$CFLAGS"
14954
14955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14956	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14957	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14958$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14959if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14960  $as_echo_n "(cached) " >&6
14961else
14962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14963/* end confdefs.h.  */
14964int i;
14965_ACEOF
14966if ac_fn_c_try_compile "$LINENO"; then :
14967  xorg_cv_cc_flag_unknown_warning_option=yes
14968else
14969  xorg_cv_cc_flag_unknown_warning_option=no
14970fi
14971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14972fi
14973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14974$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14975	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14976	CFLAGS="$xorg_testset_save_CFLAGS"
14977fi
14978
14979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14980	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14981		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14982	fi
14983	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14984	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14985$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14986if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14987  $as_echo_n "(cached) " >&6
14988else
14989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990/* end confdefs.h.  */
14991int i;
14992_ACEOF
14993if ac_fn_c_try_compile "$LINENO"; then :
14994  xorg_cv_cc_flag_unused_command_line_argument=yes
14995else
14996  xorg_cv_cc_flag_unused_command_line_argument=no
14997fi
14998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14999fi
15000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15001$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15002	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15003	CFLAGS="$xorg_testset_save_CFLAGS"
15004fi
15005
15006found="no"
15007
15008	if test $found = "no" ; then
15009		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15010			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15011		fi
15012
15013		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15014			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15015		fi
15016
15017		CFLAGS="$CFLAGS -Werror=sequence-point"
15018
15019		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15020$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15021		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
15022		if eval \${$cacheid+:} false; then :
15023  $as_echo_n "(cached) " >&6
15024else
15025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15026/* end confdefs.h.  */
15027int i;
15028int
15029main ()
15030{
15031
15032  ;
15033  return 0;
15034}
15035_ACEOF
15036if ac_fn_c_try_link "$LINENO"; then :
15037  eval $cacheid=yes
15038else
15039  eval $cacheid=no
15040fi
15041rm -f core conftest.err conftest.$ac_objext \
15042    conftest$ac_exeext conftest.$ac_ext
15043fi
15044
15045
15046		CFLAGS="$xorg_testset_save_CFLAGS"
15047
15048		eval supported=\$$cacheid
15049		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15050$as_echo "$supported" >&6; }
15051		if test "$supported" = "yes" ; then
15052			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15053			found="yes"
15054		fi
15055	fi
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071xorg_testset_save_CFLAGS="$CFLAGS"
15072
15073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15074	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15075	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15076$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15077if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15078  $as_echo_n "(cached) " >&6
15079else
15080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081/* end confdefs.h.  */
15082int i;
15083_ACEOF
15084if ac_fn_c_try_compile "$LINENO"; then :
15085  xorg_cv_cc_flag_unknown_warning_option=yes
15086else
15087  xorg_cv_cc_flag_unknown_warning_option=no
15088fi
15089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15090fi
15091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15092$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15093	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15094	CFLAGS="$xorg_testset_save_CFLAGS"
15095fi
15096
15097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15098	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15099		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15100	fi
15101	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15102	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15103$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15104if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15105  $as_echo_n "(cached) " >&6
15106else
15107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108/* end confdefs.h.  */
15109int i;
15110_ACEOF
15111if ac_fn_c_try_compile "$LINENO"; then :
15112  xorg_cv_cc_flag_unused_command_line_argument=yes
15113else
15114  xorg_cv_cc_flag_unused_command_line_argument=no
15115fi
15116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15117fi
15118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15119$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15120	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15121	CFLAGS="$xorg_testset_save_CFLAGS"
15122fi
15123
15124found="no"
15125
15126	if test $found = "no" ; then
15127		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15128			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15129		fi
15130
15131		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15132			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15133		fi
15134
15135		CFLAGS="$CFLAGS -Werror=return-type"
15136
15137		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15138$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15139		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
15140		if eval \${$cacheid+:} false; then :
15141  $as_echo_n "(cached) " >&6
15142else
15143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15144/* end confdefs.h.  */
15145int i;
15146int
15147main ()
15148{
15149
15150  ;
15151  return 0;
15152}
15153_ACEOF
15154if ac_fn_c_try_link "$LINENO"; then :
15155  eval $cacheid=yes
15156else
15157  eval $cacheid=no
15158fi
15159rm -f core conftest.err conftest.$ac_objext \
15160    conftest$ac_exeext conftest.$ac_ext
15161fi
15162
15163
15164		CFLAGS="$xorg_testset_save_CFLAGS"
15165
15166		eval supported=\$$cacheid
15167		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15168$as_echo "$supported" >&6; }
15169		if test "$supported" = "yes" ; then
15170			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15171			found="yes"
15172		fi
15173	fi
15174
15175	if test $found = "no" ; then
15176		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15177			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15178		fi
15179
15180		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15181			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15182		fi
15183
15184		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15185
15186		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15187$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15188		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
15189		if eval \${$cacheid+:} false; then :
15190  $as_echo_n "(cached) " >&6
15191else
15192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15193/* end confdefs.h.  */
15194int i;
15195int
15196main ()
15197{
15198
15199  ;
15200  return 0;
15201}
15202_ACEOF
15203if ac_fn_c_try_link "$LINENO"; then :
15204  eval $cacheid=yes
15205else
15206  eval $cacheid=no
15207fi
15208rm -f core conftest.err conftest.$ac_objext \
15209    conftest$ac_exeext conftest.$ac_ext
15210fi
15211
15212
15213		CFLAGS="$xorg_testset_save_CFLAGS"
15214
15215		eval supported=\$$cacheid
15216		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15217$as_echo "$supported" >&6; }
15218		if test "$supported" = "yes" ; then
15219			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15220			found="yes"
15221		fi
15222	fi
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238xorg_testset_save_CFLAGS="$CFLAGS"
15239
15240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15241	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15243$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15244if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15245  $as_echo_n "(cached) " >&6
15246else
15247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15248/* end confdefs.h.  */
15249int i;
15250_ACEOF
15251if ac_fn_c_try_compile "$LINENO"; then :
15252  xorg_cv_cc_flag_unknown_warning_option=yes
15253else
15254  xorg_cv_cc_flag_unknown_warning_option=no
15255fi
15256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15257fi
15258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15259$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15260	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15261	CFLAGS="$xorg_testset_save_CFLAGS"
15262fi
15263
15264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15265	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15266		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15267	fi
15268	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15269	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15270$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15271if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15272  $as_echo_n "(cached) " >&6
15273else
15274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275/* end confdefs.h.  */
15276int i;
15277_ACEOF
15278if ac_fn_c_try_compile "$LINENO"; then :
15279  xorg_cv_cc_flag_unused_command_line_argument=yes
15280else
15281  xorg_cv_cc_flag_unused_command_line_argument=no
15282fi
15283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15284fi
15285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15286$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15287	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15288	CFLAGS="$xorg_testset_save_CFLAGS"
15289fi
15290
15291found="no"
15292
15293	if test $found = "no" ; then
15294		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15295			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15296		fi
15297
15298		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15299			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15300		fi
15301
15302		CFLAGS="$CFLAGS -Werror=trigraphs"
15303
15304		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15305$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15306		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
15307		if eval \${$cacheid+:} false; then :
15308  $as_echo_n "(cached) " >&6
15309else
15310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15311/* end confdefs.h.  */
15312int i;
15313int
15314main ()
15315{
15316
15317  ;
15318  return 0;
15319}
15320_ACEOF
15321if ac_fn_c_try_link "$LINENO"; then :
15322  eval $cacheid=yes
15323else
15324  eval $cacheid=no
15325fi
15326rm -f core conftest.err conftest.$ac_objext \
15327    conftest$ac_exeext conftest.$ac_ext
15328fi
15329
15330
15331		CFLAGS="$xorg_testset_save_CFLAGS"
15332
15333		eval supported=\$$cacheid
15334		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15335$as_echo "$supported" >&6; }
15336		if test "$supported" = "yes" ; then
15337			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15338			found="yes"
15339		fi
15340	fi
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356xorg_testset_save_CFLAGS="$CFLAGS"
15357
15358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15359	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15360	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15361$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15362if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15363  $as_echo_n "(cached) " >&6
15364else
15365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366/* end confdefs.h.  */
15367int i;
15368_ACEOF
15369if ac_fn_c_try_compile "$LINENO"; then :
15370  xorg_cv_cc_flag_unknown_warning_option=yes
15371else
15372  xorg_cv_cc_flag_unknown_warning_option=no
15373fi
15374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15375fi
15376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15377$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15378	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15379	CFLAGS="$xorg_testset_save_CFLAGS"
15380fi
15381
15382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15383	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15384		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15385	fi
15386	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15387	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15388$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15389if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15390  $as_echo_n "(cached) " >&6
15391else
15392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15393/* end confdefs.h.  */
15394int i;
15395_ACEOF
15396if ac_fn_c_try_compile "$LINENO"; then :
15397  xorg_cv_cc_flag_unused_command_line_argument=yes
15398else
15399  xorg_cv_cc_flag_unused_command_line_argument=no
15400fi
15401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15402fi
15403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15404$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15405	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15406	CFLAGS="$xorg_testset_save_CFLAGS"
15407fi
15408
15409found="no"
15410
15411	if test $found = "no" ; then
15412		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15413			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15414		fi
15415
15416		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15417			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15418		fi
15419
15420		CFLAGS="$CFLAGS -Werror=array-bounds"
15421
15422		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15423$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15424		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
15425		if eval \${$cacheid+:} false; then :
15426  $as_echo_n "(cached) " >&6
15427else
15428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15429/* end confdefs.h.  */
15430int i;
15431int
15432main ()
15433{
15434
15435  ;
15436  return 0;
15437}
15438_ACEOF
15439if ac_fn_c_try_link "$LINENO"; then :
15440  eval $cacheid=yes
15441else
15442  eval $cacheid=no
15443fi
15444rm -f core conftest.err conftest.$ac_objext \
15445    conftest$ac_exeext conftest.$ac_ext
15446fi
15447
15448
15449		CFLAGS="$xorg_testset_save_CFLAGS"
15450
15451		eval supported=\$$cacheid
15452		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15453$as_echo "$supported" >&6; }
15454		if test "$supported" = "yes" ; then
15455			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15456			found="yes"
15457		fi
15458	fi
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474xorg_testset_save_CFLAGS="$CFLAGS"
15475
15476if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15477	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15478	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15479$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15480if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15481  $as_echo_n "(cached) " >&6
15482else
15483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15484/* end confdefs.h.  */
15485int i;
15486_ACEOF
15487if ac_fn_c_try_compile "$LINENO"; then :
15488  xorg_cv_cc_flag_unknown_warning_option=yes
15489else
15490  xorg_cv_cc_flag_unknown_warning_option=no
15491fi
15492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15493fi
15494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15495$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15496	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15497	CFLAGS="$xorg_testset_save_CFLAGS"
15498fi
15499
15500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15501	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15502		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15503	fi
15504	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15505	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15506$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15507if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15508  $as_echo_n "(cached) " >&6
15509else
15510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15511/* end confdefs.h.  */
15512int i;
15513_ACEOF
15514if ac_fn_c_try_compile "$LINENO"; then :
15515  xorg_cv_cc_flag_unused_command_line_argument=yes
15516else
15517  xorg_cv_cc_flag_unused_command_line_argument=no
15518fi
15519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15520fi
15521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15522$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15523	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15524	CFLAGS="$xorg_testset_save_CFLAGS"
15525fi
15526
15527found="no"
15528
15529	if test $found = "no" ; then
15530		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15531			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15532		fi
15533
15534		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15535			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15536		fi
15537
15538		CFLAGS="$CFLAGS -Werror=write-strings"
15539
15540		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15541$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15542		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
15543		if eval \${$cacheid+:} false; then :
15544  $as_echo_n "(cached) " >&6
15545else
15546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15547/* end confdefs.h.  */
15548int i;
15549int
15550main ()
15551{
15552
15553  ;
15554  return 0;
15555}
15556_ACEOF
15557if ac_fn_c_try_link "$LINENO"; then :
15558  eval $cacheid=yes
15559else
15560  eval $cacheid=no
15561fi
15562rm -f core conftest.err conftest.$ac_objext \
15563    conftest$ac_exeext conftest.$ac_ext
15564fi
15565
15566
15567		CFLAGS="$xorg_testset_save_CFLAGS"
15568
15569		eval supported=\$$cacheid
15570		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15571$as_echo "$supported" >&6; }
15572		if test "$supported" = "yes" ; then
15573			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15574			found="yes"
15575		fi
15576	fi
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592xorg_testset_save_CFLAGS="$CFLAGS"
15593
15594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15595	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15597$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15598if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15599  $as_echo_n "(cached) " >&6
15600else
15601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602/* end confdefs.h.  */
15603int i;
15604_ACEOF
15605if ac_fn_c_try_compile "$LINENO"; then :
15606  xorg_cv_cc_flag_unknown_warning_option=yes
15607else
15608  xorg_cv_cc_flag_unknown_warning_option=no
15609fi
15610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15611fi
15612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15613$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15614	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15615	CFLAGS="$xorg_testset_save_CFLAGS"
15616fi
15617
15618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15619	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15620		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15621	fi
15622	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15623	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15624$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15625if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15626  $as_echo_n "(cached) " >&6
15627else
15628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15629/* end confdefs.h.  */
15630int i;
15631_ACEOF
15632if ac_fn_c_try_compile "$LINENO"; then :
15633  xorg_cv_cc_flag_unused_command_line_argument=yes
15634else
15635  xorg_cv_cc_flag_unused_command_line_argument=no
15636fi
15637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15638fi
15639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15640$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15641	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15642	CFLAGS="$xorg_testset_save_CFLAGS"
15643fi
15644
15645found="no"
15646
15647	if test $found = "no" ; then
15648		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15649			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15650		fi
15651
15652		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15653			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15654		fi
15655
15656		CFLAGS="$CFLAGS -Werror=address"
15657
15658		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15659$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15660		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15661		if eval \${$cacheid+:} false; then :
15662  $as_echo_n "(cached) " >&6
15663else
15664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15665/* end confdefs.h.  */
15666int i;
15667int
15668main ()
15669{
15670
15671  ;
15672  return 0;
15673}
15674_ACEOF
15675if ac_fn_c_try_link "$LINENO"; then :
15676  eval $cacheid=yes
15677else
15678  eval $cacheid=no
15679fi
15680rm -f core conftest.err conftest.$ac_objext \
15681    conftest$ac_exeext conftest.$ac_ext
15682fi
15683
15684
15685		CFLAGS="$xorg_testset_save_CFLAGS"
15686
15687		eval supported=\$$cacheid
15688		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15689$as_echo "$supported" >&6; }
15690		if test "$supported" = "yes" ; then
15691			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15692			found="yes"
15693		fi
15694	fi
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710xorg_testset_save_CFLAGS="$CFLAGS"
15711
15712if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15713	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15714	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15715$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15716if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15717  $as_echo_n "(cached) " >&6
15718else
15719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720/* end confdefs.h.  */
15721int i;
15722_ACEOF
15723if ac_fn_c_try_compile "$LINENO"; then :
15724  xorg_cv_cc_flag_unknown_warning_option=yes
15725else
15726  xorg_cv_cc_flag_unknown_warning_option=no
15727fi
15728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15729fi
15730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15731$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15732	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15733	CFLAGS="$xorg_testset_save_CFLAGS"
15734fi
15735
15736if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15737	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15738		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15739	fi
15740	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15741	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15742$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15743if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15744  $as_echo_n "(cached) " >&6
15745else
15746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15747/* end confdefs.h.  */
15748int i;
15749_ACEOF
15750if ac_fn_c_try_compile "$LINENO"; then :
15751  xorg_cv_cc_flag_unused_command_line_argument=yes
15752else
15753  xorg_cv_cc_flag_unused_command_line_argument=no
15754fi
15755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15756fi
15757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15758$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15759	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15760	CFLAGS="$xorg_testset_save_CFLAGS"
15761fi
15762
15763found="no"
15764
15765	if test $found = "no" ; then
15766		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15767			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15768		fi
15769
15770		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15771			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15772		fi
15773
15774		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15775
15776		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15777$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15778		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15779		if eval \${$cacheid+:} false; then :
15780  $as_echo_n "(cached) " >&6
15781else
15782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15783/* end confdefs.h.  */
15784int i;
15785int
15786main ()
15787{
15788
15789  ;
15790  return 0;
15791}
15792_ACEOF
15793if ac_fn_c_try_link "$LINENO"; then :
15794  eval $cacheid=yes
15795else
15796  eval $cacheid=no
15797fi
15798rm -f core conftest.err conftest.$ac_objext \
15799    conftest$ac_exeext conftest.$ac_ext
15800fi
15801
15802
15803		CFLAGS="$xorg_testset_save_CFLAGS"
15804
15805		eval supported=\$$cacheid
15806		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15807$as_echo "$supported" >&6; }
15808		if test "$supported" = "yes" ; then
15809			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15810			found="yes"
15811		fi
15812	fi
15813
15814	if test $found = "no" ; then
15815		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15816			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15817		fi
15818
15819		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15820			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15821		fi
15822
15823		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15824
15825		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15826$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15827		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15828		if eval \${$cacheid+:} false; then :
15829  $as_echo_n "(cached) " >&6
15830else
15831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832/* end confdefs.h.  */
15833int i;
15834int
15835main ()
15836{
15837
15838  ;
15839  return 0;
15840}
15841_ACEOF
15842if ac_fn_c_try_link "$LINENO"; then :
15843  eval $cacheid=yes
15844else
15845  eval $cacheid=no
15846fi
15847rm -f core conftest.err conftest.$ac_objext \
15848    conftest$ac_exeext conftest.$ac_ext
15849fi
15850
15851
15852		CFLAGS="$xorg_testset_save_CFLAGS"
15853
15854		eval supported=\$$cacheid
15855		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15856$as_echo "$supported" >&6; }
15857		if test "$supported" = "yes" ; then
15858			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15859			found="yes"
15860		fi
15861	fi
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877xorg_testset_save_CFLAGS="$CFLAGS"
15878
15879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15880	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15881	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15882$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15883if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15884  $as_echo_n "(cached) " >&6
15885else
15886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887/* end confdefs.h.  */
15888int i;
15889_ACEOF
15890if ac_fn_c_try_compile "$LINENO"; then :
15891  xorg_cv_cc_flag_unknown_warning_option=yes
15892else
15893  xorg_cv_cc_flag_unknown_warning_option=no
15894fi
15895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15896fi
15897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15898$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15899	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15900	CFLAGS="$xorg_testset_save_CFLAGS"
15901fi
15902
15903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15904	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15905		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15906	fi
15907	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15909$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15910if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15911  $as_echo_n "(cached) " >&6
15912else
15913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914/* end confdefs.h.  */
15915int i;
15916_ACEOF
15917if ac_fn_c_try_compile "$LINENO"; then :
15918  xorg_cv_cc_flag_unused_command_line_argument=yes
15919else
15920  xorg_cv_cc_flag_unused_command_line_argument=no
15921fi
15922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15923fi
15924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15925$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15926	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15927	CFLAGS="$xorg_testset_save_CFLAGS"
15928fi
15929
15930found="no"
15931
15932	if test $found = "no" ; then
15933		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15934			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15935		fi
15936
15937		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15938			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15939		fi
15940
15941		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15942
15943		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15944$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15945		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15946		if eval \${$cacheid+:} false; then :
15947  $as_echo_n "(cached) " >&6
15948else
15949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950/* end confdefs.h.  */
15951int i;
15952int
15953main ()
15954{
15955
15956  ;
15957  return 0;
15958}
15959_ACEOF
15960if ac_fn_c_try_link "$LINENO"; then :
15961  eval $cacheid=yes
15962else
15963  eval $cacheid=no
15964fi
15965rm -f core conftest.err conftest.$ac_objext \
15966    conftest$ac_exeext conftest.$ac_ext
15967fi
15968
15969
15970		CFLAGS="$xorg_testset_save_CFLAGS"
15971
15972		eval supported=\$$cacheid
15973		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15974$as_echo "$supported" >&6; }
15975		if test "$supported" = "yes" ; then
15976			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15977			found="yes"
15978		fi
15979	fi
15980
15981 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15982else
15983{ $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
15984$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;}
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998xorg_testset_save_CFLAGS="$CFLAGS"
15999
16000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16001	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16002	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16003$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16004if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16005  $as_echo_n "(cached) " >&6
16006else
16007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008/* end confdefs.h.  */
16009int i;
16010_ACEOF
16011if ac_fn_c_try_compile "$LINENO"; then :
16012  xorg_cv_cc_flag_unknown_warning_option=yes
16013else
16014  xorg_cv_cc_flag_unknown_warning_option=no
16015fi
16016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017fi
16018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16019$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16020	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16021	CFLAGS="$xorg_testset_save_CFLAGS"
16022fi
16023
16024if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16025	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16026		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16027	fi
16028	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16029	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16030$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16031if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16032  $as_echo_n "(cached) " >&6
16033else
16034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035/* end confdefs.h.  */
16036int i;
16037_ACEOF
16038if ac_fn_c_try_compile "$LINENO"; then :
16039  xorg_cv_cc_flag_unused_command_line_argument=yes
16040else
16041  xorg_cv_cc_flag_unused_command_line_argument=no
16042fi
16043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044fi
16045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16046$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16047	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16048	CFLAGS="$xorg_testset_save_CFLAGS"
16049fi
16050
16051found="no"
16052
16053	if test $found = "no" ; then
16054		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16055			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16056		fi
16057
16058		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16059			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16060		fi
16061
16062		CFLAGS="$CFLAGS -Wimplicit"
16063
16064		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16065$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16066		cacheid=xorg_cv_cc_flag__Wimplicit
16067		if eval \${$cacheid+:} false; then :
16068  $as_echo_n "(cached) " >&6
16069else
16070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071/* end confdefs.h.  */
16072int i;
16073int
16074main ()
16075{
16076
16077  ;
16078  return 0;
16079}
16080_ACEOF
16081if ac_fn_c_try_link "$LINENO"; then :
16082  eval $cacheid=yes
16083else
16084  eval $cacheid=no
16085fi
16086rm -f core conftest.err conftest.$ac_objext \
16087    conftest$ac_exeext conftest.$ac_ext
16088fi
16089
16090
16091		CFLAGS="$xorg_testset_save_CFLAGS"
16092
16093		eval supported=\$$cacheid
16094		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16095$as_echo "$supported" >&6; }
16096		if test "$supported" = "yes" ; then
16097			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16098			found="yes"
16099		fi
16100	fi
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116xorg_testset_save_CFLAGS="$CFLAGS"
16117
16118if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16119	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16120	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16121$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16122if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16123  $as_echo_n "(cached) " >&6
16124else
16125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126/* end confdefs.h.  */
16127int i;
16128_ACEOF
16129if ac_fn_c_try_compile "$LINENO"; then :
16130  xorg_cv_cc_flag_unknown_warning_option=yes
16131else
16132  xorg_cv_cc_flag_unknown_warning_option=no
16133fi
16134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16135fi
16136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16137$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16138	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16139	CFLAGS="$xorg_testset_save_CFLAGS"
16140fi
16141
16142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16143	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16144		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16145	fi
16146	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16147	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16148$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16149if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16150  $as_echo_n "(cached) " >&6
16151else
16152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16153/* end confdefs.h.  */
16154int i;
16155_ACEOF
16156if ac_fn_c_try_compile "$LINENO"; then :
16157  xorg_cv_cc_flag_unused_command_line_argument=yes
16158else
16159  xorg_cv_cc_flag_unused_command_line_argument=no
16160fi
16161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16162fi
16163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16164$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16165	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16166	CFLAGS="$xorg_testset_save_CFLAGS"
16167fi
16168
16169found="no"
16170
16171	if test $found = "no" ; then
16172		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16173			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16174		fi
16175
16176		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16177			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16178		fi
16179
16180		CFLAGS="$CFLAGS -Wnonnull"
16181
16182		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16183$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16184		cacheid=xorg_cv_cc_flag__Wnonnull
16185		if eval \${$cacheid+:} false; then :
16186  $as_echo_n "(cached) " >&6
16187else
16188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189/* end confdefs.h.  */
16190int i;
16191int
16192main ()
16193{
16194
16195  ;
16196  return 0;
16197}
16198_ACEOF
16199if ac_fn_c_try_link "$LINENO"; then :
16200  eval $cacheid=yes
16201else
16202  eval $cacheid=no
16203fi
16204rm -f core conftest.err conftest.$ac_objext \
16205    conftest$ac_exeext conftest.$ac_ext
16206fi
16207
16208
16209		CFLAGS="$xorg_testset_save_CFLAGS"
16210
16211		eval supported=\$$cacheid
16212		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16213$as_echo "$supported" >&6; }
16214		if test "$supported" = "yes" ; then
16215			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16216			found="yes"
16217		fi
16218	fi
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234xorg_testset_save_CFLAGS="$CFLAGS"
16235
16236if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16237	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16238	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16239$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16240if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16241  $as_echo_n "(cached) " >&6
16242else
16243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244/* end confdefs.h.  */
16245int i;
16246_ACEOF
16247if ac_fn_c_try_compile "$LINENO"; then :
16248  xorg_cv_cc_flag_unknown_warning_option=yes
16249else
16250  xorg_cv_cc_flag_unknown_warning_option=no
16251fi
16252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16253fi
16254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16255$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16256	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16257	CFLAGS="$xorg_testset_save_CFLAGS"
16258fi
16259
16260if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16261	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16262		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16263	fi
16264	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16265	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16266$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16267if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16268  $as_echo_n "(cached) " >&6
16269else
16270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16271/* end confdefs.h.  */
16272int i;
16273_ACEOF
16274if ac_fn_c_try_compile "$LINENO"; then :
16275  xorg_cv_cc_flag_unused_command_line_argument=yes
16276else
16277  xorg_cv_cc_flag_unused_command_line_argument=no
16278fi
16279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16280fi
16281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16282$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16283	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16284	CFLAGS="$xorg_testset_save_CFLAGS"
16285fi
16286
16287found="no"
16288
16289	if test $found = "no" ; then
16290		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16291			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16292		fi
16293
16294		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16295			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16296		fi
16297
16298		CFLAGS="$CFLAGS -Winit-self"
16299
16300		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16301$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16302		cacheid=xorg_cv_cc_flag__Winit_self
16303		if eval \${$cacheid+:} false; then :
16304  $as_echo_n "(cached) " >&6
16305else
16306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307/* end confdefs.h.  */
16308int i;
16309int
16310main ()
16311{
16312
16313  ;
16314  return 0;
16315}
16316_ACEOF
16317if ac_fn_c_try_link "$LINENO"; then :
16318  eval $cacheid=yes
16319else
16320  eval $cacheid=no
16321fi
16322rm -f core conftest.err conftest.$ac_objext \
16323    conftest$ac_exeext conftest.$ac_ext
16324fi
16325
16326
16327		CFLAGS="$xorg_testset_save_CFLAGS"
16328
16329		eval supported=\$$cacheid
16330		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16331$as_echo "$supported" >&6; }
16332		if test "$supported" = "yes" ; then
16333			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16334			found="yes"
16335		fi
16336	fi
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352xorg_testset_save_CFLAGS="$CFLAGS"
16353
16354if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16355	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16356	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16357$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16358if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16359  $as_echo_n "(cached) " >&6
16360else
16361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16362/* end confdefs.h.  */
16363int i;
16364_ACEOF
16365if ac_fn_c_try_compile "$LINENO"; then :
16366  xorg_cv_cc_flag_unknown_warning_option=yes
16367else
16368  xorg_cv_cc_flag_unknown_warning_option=no
16369fi
16370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16371fi
16372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16373$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16374	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16375	CFLAGS="$xorg_testset_save_CFLAGS"
16376fi
16377
16378if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16379	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16380		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16381	fi
16382	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16383	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16384$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16385if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16386  $as_echo_n "(cached) " >&6
16387else
16388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389/* end confdefs.h.  */
16390int i;
16391_ACEOF
16392if ac_fn_c_try_compile "$LINENO"; then :
16393  xorg_cv_cc_flag_unused_command_line_argument=yes
16394else
16395  xorg_cv_cc_flag_unused_command_line_argument=no
16396fi
16397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16398fi
16399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16400$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16401	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16402	CFLAGS="$xorg_testset_save_CFLAGS"
16403fi
16404
16405found="no"
16406
16407	if test $found = "no" ; then
16408		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16409			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16410		fi
16411
16412		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16413			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16414		fi
16415
16416		CFLAGS="$CFLAGS -Wmain"
16417
16418		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16419$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16420		cacheid=xorg_cv_cc_flag__Wmain
16421		if eval \${$cacheid+:} false; then :
16422  $as_echo_n "(cached) " >&6
16423else
16424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425/* end confdefs.h.  */
16426int i;
16427int
16428main ()
16429{
16430
16431  ;
16432  return 0;
16433}
16434_ACEOF
16435if ac_fn_c_try_link "$LINENO"; then :
16436  eval $cacheid=yes
16437else
16438  eval $cacheid=no
16439fi
16440rm -f core conftest.err conftest.$ac_objext \
16441    conftest$ac_exeext conftest.$ac_ext
16442fi
16443
16444
16445		CFLAGS="$xorg_testset_save_CFLAGS"
16446
16447		eval supported=\$$cacheid
16448		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16449$as_echo "$supported" >&6; }
16450		if test "$supported" = "yes" ; then
16451			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16452			found="yes"
16453		fi
16454	fi
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470xorg_testset_save_CFLAGS="$CFLAGS"
16471
16472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16473	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16474	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16475$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16476if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16477  $as_echo_n "(cached) " >&6
16478else
16479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16480/* end confdefs.h.  */
16481int i;
16482_ACEOF
16483if ac_fn_c_try_compile "$LINENO"; then :
16484  xorg_cv_cc_flag_unknown_warning_option=yes
16485else
16486  xorg_cv_cc_flag_unknown_warning_option=no
16487fi
16488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16489fi
16490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16491$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16492	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16493	CFLAGS="$xorg_testset_save_CFLAGS"
16494fi
16495
16496if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16497	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16498		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16499	fi
16500	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16501	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16502$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16503if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16504  $as_echo_n "(cached) " >&6
16505else
16506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16507/* end confdefs.h.  */
16508int i;
16509_ACEOF
16510if ac_fn_c_try_compile "$LINENO"; then :
16511  xorg_cv_cc_flag_unused_command_line_argument=yes
16512else
16513  xorg_cv_cc_flag_unused_command_line_argument=no
16514fi
16515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16516fi
16517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16518$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16519	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16520	CFLAGS="$xorg_testset_save_CFLAGS"
16521fi
16522
16523found="no"
16524
16525	if test $found = "no" ; then
16526		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16527			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16528		fi
16529
16530		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16531			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16532		fi
16533
16534		CFLAGS="$CFLAGS -Wmissing-braces"
16535
16536		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16537$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16538		cacheid=xorg_cv_cc_flag__Wmissing_braces
16539		if eval \${$cacheid+:} false; then :
16540  $as_echo_n "(cached) " >&6
16541else
16542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16543/* end confdefs.h.  */
16544int i;
16545int
16546main ()
16547{
16548
16549  ;
16550  return 0;
16551}
16552_ACEOF
16553if ac_fn_c_try_link "$LINENO"; then :
16554  eval $cacheid=yes
16555else
16556  eval $cacheid=no
16557fi
16558rm -f core conftest.err conftest.$ac_objext \
16559    conftest$ac_exeext conftest.$ac_ext
16560fi
16561
16562
16563		CFLAGS="$xorg_testset_save_CFLAGS"
16564
16565		eval supported=\$$cacheid
16566		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16567$as_echo "$supported" >&6; }
16568		if test "$supported" = "yes" ; then
16569			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16570			found="yes"
16571		fi
16572	fi
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588xorg_testset_save_CFLAGS="$CFLAGS"
16589
16590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16591	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16592	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16593$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16594if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16595  $as_echo_n "(cached) " >&6
16596else
16597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16598/* end confdefs.h.  */
16599int i;
16600_ACEOF
16601if ac_fn_c_try_compile "$LINENO"; then :
16602  xorg_cv_cc_flag_unknown_warning_option=yes
16603else
16604  xorg_cv_cc_flag_unknown_warning_option=no
16605fi
16606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16607fi
16608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16609$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16610	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16611	CFLAGS="$xorg_testset_save_CFLAGS"
16612fi
16613
16614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16615	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16616		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16617	fi
16618	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16619	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16620$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16621if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16622  $as_echo_n "(cached) " >&6
16623else
16624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16625/* end confdefs.h.  */
16626int i;
16627_ACEOF
16628if ac_fn_c_try_compile "$LINENO"; then :
16629  xorg_cv_cc_flag_unused_command_line_argument=yes
16630else
16631  xorg_cv_cc_flag_unused_command_line_argument=no
16632fi
16633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16634fi
16635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16636$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16637	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16638	CFLAGS="$xorg_testset_save_CFLAGS"
16639fi
16640
16641found="no"
16642
16643	if test $found = "no" ; then
16644		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16645			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16646		fi
16647
16648		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16649			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16650		fi
16651
16652		CFLAGS="$CFLAGS -Wsequence-point"
16653
16654		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16655$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16656		cacheid=xorg_cv_cc_flag__Wsequence_point
16657		if eval \${$cacheid+:} false; then :
16658  $as_echo_n "(cached) " >&6
16659else
16660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16661/* end confdefs.h.  */
16662int i;
16663int
16664main ()
16665{
16666
16667  ;
16668  return 0;
16669}
16670_ACEOF
16671if ac_fn_c_try_link "$LINENO"; then :
16672  eval $cacheid=yes
16673else
16674  eval $cacheid=no
16675fi
16676rm -f core conftest.err conftest.$ac_objext \
16677    conftest$ac_exeext conftest.$ac_ext
16678fi
16679
16680
16681		CFLAGS="$xorg_testset_save_CFLAGS"
16682
16683		eval supported=\$$cacheid
16684		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16685$as_echo "$supported" >&6; }
16686		if test "$supported" = "yes" ; then
16687			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16688			found="yes"
16689		fi
16690	fi
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706xorg_testset_save_CFLAGS="$CFLAGS"
16707
16708if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16709	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16710	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16711$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16712if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16713  $as_echo_n "(cached) " >&6
16714else
16715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16716/* end confdefs.h.  */
16717int i;
16718_ACEOF
16719if ac_fn_c_try_compile "$LINENO"; then :
16720  xorg_cv_cc_flag_unknown_warning_option=yes
16721else
16722  xorg_cv_cc_flag_unknown_warning_option=no
16723fi
16724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16725fi
16726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16727$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16728	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16729	CFLAGS="$xorg_testset_save_CFLAGS"
16730fi
16731
16732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16733	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16734		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16735	fi
16736	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16737	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16738$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16739if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16740  $as_echo_n "(cached) " >&6
16741else
16742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16743/* end confdefs.h.  */
16744int i;
16745_ACEOF
16746if ac_fn_c_try_compile "$LINENO"; then :
16747  xorg_cv_cc_flag_unused_command_line_argument=yes
16748else
16749  xorg_cv_cc_flag_unused_command_line_argument=no
16750fi
16751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16752fi
16753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16754$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16755	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16756	CFLAGS="$xorg_testset_save_CFLAGS"
16757fi
16758
16759found="no"
16760
16761	if test $found = "no" ; then
16762		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16763			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16764		fi
16765
16766		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16767			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16768		fi
16769
16770		CFLAGS="$CFLAGS -Wreturn-type"
16771
16772		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16773$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16774		cacheid=xorg_cv_cc_flag__Wreturn_type
16775		if eval \${$cacheid+:} false; then :
16776  $as_echo_n "(cached) " >&6
16777else
16778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16779/* end confdefs.h.  */
16780int i;
16781int
16782main ()
16783{
16784
16785  ;
16786  return 0;
16787}
16788_ACEOF
16789if ac_fn_c_try_link "$LINENO"; then :
16790  eval $cacheid=yes
16791else
16792  eval $cacheid=no
16793fi
16794rm -f core conftest.err conftest.$ac_objext \
16795    conftest$ac_exeext conftest.$ac_ext
16796fi
16797
16798
16799		CFLAGS="$xorg_testset_save_CFLAGS"
16800
16801		eval supported=\$$cacheid
16802		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16803$as_echo "$supported" >&6; }
16804		if test "$supported" = "yes" ; then
16805			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16806			found="yes"
16807		fi
16808	fi
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824xorg_testset_save_CFLAGS="$CFLAGS"
16825
16826if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16827	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16828	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16829$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16830if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16831  $as_echo_n "(cached) " >&6
16832else
16833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16834/* end confdefs.h.  */
16835int i;
16836_ACEOF
16837if ac_fn_c_try_compile "$LINENO"; then :
16838  xorg_cv_cc_flag_unknown_warning_option=yes
16839else
16840  xorg_cv_cc_flag_unknown_warning_option=no
16841fi
16842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16843fi
16844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16845$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16846	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16847	CFLAGS="$xorg_testset_save_CFLAGS"
16848fi
16849
16850if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16851	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16852		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16853	fi
16854	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16855	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16856$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16857if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16858  $as_echo_n "(cached) " >&6
16859else
16860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861/* end confdefs.h.  */
16862int i;
16863_ACEOF
16864if ac_fn_c_try_compile "$LINENO"; then :
16865  xorg_cv_cc_flag_unused_command_line_argument=yes
16866else
16867  xorg_cv_cc_flag_unused_command_line_argument=no
16868fi
16869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16870fi
16871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16872$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16873	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16874	CFLAGS="$xorg_testset_save_CFLAGS"
16875fi
16876
16877found="no"
16878
16879	if test $found = "no" ; then
16880		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16881			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16882		fi
16883
16884		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16885			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16886		fi
16887
16888		CFLAGS="$CFLAGS -Wtrigraphs"
16889
16890		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16891$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16892		cacheid=xorg_cv_cc_flag__Wtrigraphs
16893		if eval \${$cacheid+:} false; then :
16894  $as_echo_n "(cached) " >&6
16895else
16896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897/* end confdefs.h.  */
16898int i;
16899int
16900main ()
16901{
16902
16903  ;
16904  return 0;
16905}
16906_ACEOF
16907if ac_fn_c_try_link "$LINENO"; then :
16908  eval $cacheid=yes
16909else
16910  eval $cacheid=no
16911fi
16912rm -f core conftest.err conftest.$ac_objext \
16913    conftest$ac_exeext conftest.$ac_ext
16914fi
16915
16916
16917		CFLAGS="$xorg_testset_save_CFLAGS"
16918
16919		eval supported=\$$cacheid
16920		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16921$as_echo "$supported" >&6; }
16922		if test "$supported" = "yes" ; then
16923			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16924			found="yes"
16925		fi
16926	fi
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942xorg_testset_save_CFLAGS="$CFLAGS"
16943
16944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16945	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16946	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16947$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16948if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16949  $as_echo_n "(cached) " >&6
16950else
16951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16952/* end confdefs.h.  */
16953int i;
16954_ACEOF
16955if ac_fn_c_try_compile "$LINENO"; then :
16956  xorg_cv_cc_flag_unknown_warning_option=yes
16957else
16958  xorg_cv_cc_flag_unknown_warning_option=no
16959fi
16960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16961fi
16962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16963$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16964	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16965	CFLAGS="$xorg_testset_save_CFLAGS"
16966fi
16967
16968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16969	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16970		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16971	fi
16972	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16973	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16974$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16975if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16976  $as_echo_n "(cached) " >&6
16977else
16978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16979/* end confdefs.h.  */
16980int i;
16981_ACEOF
16982if ac_fn_c_try_compile "$LINENO"; then :
16983  xorg_cv_cc_flag_unused_command_line_argument=yes
16984else
16985  xorg_cv_cc_flag_unused_command_line_argument=no
16986fi
16987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16988fi
16989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16990$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16991	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16992	CFLAGS="$xorg_testset_save_CFLAGS"
16993fi
16994
16995found="no"
16996
16997	if test $found = "no" ; then
16998		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16999			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17000		fi
17001
17002		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17003			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17004		fi
17005
17006		CFLAGS="$CFLAGS -Warray-bounds"
17007
17008		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17009$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17010		cacheid=xorg_cv_cc_flag__Warray_bounds
17011		if eval \${$cacheid+:} false; then :
17012  $as_echo_n "(cached) " >&6
17013else
17014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17015/* end confdefs.h.  */
17016int i;
17017int
17018main ()
17019{
17020
17021  ;
17022  return 0;
17023}
17024_ACEOF
17025if ac_fn_c_try_link "$LINENO"; then :
17026  eval $cacheid=yes
17027else
17028  eval $cacheid=no
17029fi
17030rm -f core conftest.err conftest.$ac_objext \
17031    conftest$ac_exeext conftest.$ac_ext
17032fi
17033
17034
17035		CFLAGS="$xorg_testset_save_CFLAGS"
17036
17037		eval supported=\$$cacheid
17038		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17039$as_echo "$supported" >&6; }
17040		if test "$supported" = "yes" ; then
17041			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17042			found="yes"
17043		fi
17044	fi
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060xorg_testset_save_CFLAGS="$CFLAGS"
17061
17062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17063	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17064	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17065$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17066if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17067  $as_echo_n "(cached) " >&6
17068else
17069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17070/* end confdefs.h.  */
17071int i;
17072_ACEOF
17073if ac_fn_c_try_compile "$LINENO"; then :
17074  xorg_cv_cc_flag_unknown_warning_option=yes
17075else
17076  xorg_cv_cc_flag_unknown_warning_option=no
17077fi
17078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17079fi
17080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17081$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17082	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17083	CFLAGS="$xorg_testset_save_CFLAGS"
17084fi
17085
17086if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17087	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17088		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17089	fi
17090	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17091	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17092$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17093if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17094  $as_echo_n "(cached) " >&6
17095else
17096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097/* end confdefs.h.  */
17098int i;
17099_ACEOF
17100if ac_fn_c_try_compile "$LINENO"; then :
17101  xorg_cv_cc_flag_unused_command_line_argument=yes
17102else
17103  xorg_cv_cc_flag_unused_command_line_argument=no
17104fi
17105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17106fi
17107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17108$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17109	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17110	CFLAGS="$xorg_testset_save_CFLAGS"
17111fi
17112
17113found="no"
17114
17115	if test $found = "no" ; then
17116		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17117			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17118		fi
17119
17120		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17121			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17122		fi
17123
17124		CFLAGS="$CFLAGS -Wwrite-strings"
17125
17126		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17127$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17128		cacheid=xorg_cv_cc_flag__Wwrite_strings
17129		if eval \${$cacheid+:} false; then :
17130  $as_echo_n "(cached) " >&6
17131else
17132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17133/* end confdefs.h.  */
17134int i;
17135int
17136main ()
17137{
17138
17139  ;
17140  return 0;
17141}
17142_ACEOF
17143if ac_fn_c_try_link "$LINENO"; then :
17144  eval $cacheid=yes
17145else
17146  eval $cacheid=no
17147fi
17148rm -f core conftest.err conftest.$ac_objext \
17149    conftest$ac_exeext conftest.$ac_ext
17150fi
17151
17152
17153		CFLAGS="$xorg_testset_save_CFLAGS"
17154
17155		eval supported=\$$cacheid
17156		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17157$as_echo "$supported" >&6; }
17158		if test "$supported" = "yes" ; then
17159			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17160			found="yes"
17161		fi
17162	fi
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178xorg_testset_save_CFLAGS="$CFLAGS"
17179
17180if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17181	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17182	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17183$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17184if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17185  $as_echo_n "(cached) " >&6
17186else
17187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17188/* end confdefs.h.  */
17189int i;
17190_ACEOF
17191if ac_fn_c_try_compile "$LINENO"; then :
17192  xorg_cv_cc_flag_unknown_warning_option=yes
17193else
17194  xorg_cv_cc_flag_unknown_warning_option=no
17195fi
17196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17197fi
17198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17199$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17200	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17201	CFLAGS="$xorg_testset_save_CFLAGS"
17202fi
17203
17204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17205	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17206		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17207	fi
17208	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17209	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17210$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17211if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17212  $as_echo_n "(cached) " >&6
17213else
17214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17215/* end confdefs.h.  */
17216int i;
17217_ACEOF
17218if ac_fn_c_try_compile "$LINENO"; then :
17219  xorg_cv_cc_flag_unused_command_line_argument=yes
17220else
17221  xorg_cv_cc_flag_unused_command_line_argument=no
17222fi
17223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17224fi
17225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17226$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17227	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17228	CFLAGS="$xorg_testset_save_CFLAGS"
17229fi
17230
17231found="no"
17232
17233	if test $found = "no" ; then
17234		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17235			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17236		fi
17237
17238		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17239			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17240		fi
17241
17242		CFLAGS="$CFLAGS -Waddress"
17243
17244		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17245$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17246		cacheid=xorg_cv_cc_flag__Waddress
17247		if eval \${$cacheid+:} false; then :
17248  $as_echo_n "(cached) " >&6
17249else
17250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251/* end confdefs.h.  */
17252int i;
17253int
17254main ()
17255{
17256
17257  ;
17258  return 0;
17259}
17260_ACEOF
17261if ac_fn_c_try_link "$LINENO"; then :
17262  eval $cacheid=yes
17263else
17264  eval $cacheid=no
17265fi
17266rm -f core conftest.err conftest.$ac_objext \
17267    conftest$ac_exeext conftest.$ac_ext
17268fi
17269
17270
17271		CFLAGS="$xorg_testset_save_CFLAGS"
17272
17273		eval supported=\$$cacheid
17274		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17275$as_echo "$supported" >&6; }
17276		if test "$supported" = "yes" ; then
17277			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17278			found="yes"
17279		fi
17280	fi
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296xorg_testset_save_CFLAGS="$CFLAGS"
17297
17298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17299	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17300	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17301$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17302if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17303  $as_echo_n "(cached) " >&6
17304else
17305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17306/* end confdefs.h.  */
17307int i;
17308_ACEOF
17309if ac_fn_c_try_compile "$LINENO"; then :
17310  xorg_cv_cc_flag_unknown_warning_option=yes
17311else
17312  xorg_cv_cc_flag_unknown_warning_option=no
17313fi
17314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17315fi
17316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17317$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17318	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17319	CFLAGS="$xorg_testset_save_CFLAGS"
17320fi
17321
17322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17323	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17324		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17325	fi
17326	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17327	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17328$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17329if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17330  $as_echo_n "(cached) " >&6
17331else
17332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17333/* end confdefs.h.  */
17334int i;
17335_ACEOF
17336if ac_fn_c_try_compile "$LINENO"; then :
17337  xorg_cv_cc_flag_unused_command_line_argument=yes
17338else
17339  xorg_cv_cc_flag_unused_command_line_argument=no
17340fi
17341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17342fi
17343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17344$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17345	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17346	CFLAGS="$xorg_testset_save_CFLAGS"
17347fi
17348
17349found="no"
17350
17351	if test $found = "no" ; then
17352		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17353			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17354		fi
17355
17356		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17357			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17358		fi
17359
17360		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17361
17362		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17363$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17364		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17365		if eval \${$cacheid+:} false; then :
17366  $as_echo_n "(cached) " >&6
17367else
17368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17369/* end confdefs.h.  */
17370int i;
17371int
17372main ()
17373{
17374
17375  ;
17376  return 0;
17377}
17378_ACEOF
17379if ac_fn_c_try_link "$LINENO"; then :
17380  eval $cacheid=yes
17381else
17382  eval $cacheid=no
17383fi
17384rm -f core conftest.err conftest.$ac_objext \
17385    conftest$ac_exeext conftest.$ac_ext
17386fi
17387
17388
17389		CFLAGS="$xorg_testset_save_CFLAGS"
17390
17391		eval supported=\$$cacheid
17392		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17393$as_echo "$supported" >&6; }
17394		if test "$supported" = "yes" ; then
17395			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17396			found="yes"
17397		fi
17398	fi
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414xorg_testset_save_CFLAGS="$CFLAGS"
17415
17416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17417	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17419$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17420if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17421  $as_echo_n "(cached) " >&6
17422else
17423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17424/* end confdefs.h.  */
17425int i;
17426_ACEOF
17427if ac_fn_c_try_compile "$LINENO"; then :
17428  xorg_cv_cc_flag_unknown_warning_option=yes
17429else
17430  xorg_cv_cc_flag_unknown_warning_option=no
17431fi
17432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17433fi
17434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17435$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17436	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17437	CFLAGS="$xorg_testset_save_CFLAGS"
17438fi
17439
17440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17441	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17442		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17443	fi
17444	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17445	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17446$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17447if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17448  $as_echo_n "(cached) " >&6
17449else
17450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17451/* end confdefs.h.  */
17452int i;
17453_ACEOF
17454if ac_fn_c_try_compile "$LINENO"; then :
17455  xorg_cv_cc_flag_unused_command_line_argument=yes
17456else
17457  xorg_cv_cc_flag_unused_command_line_argument=no
17458fi
17459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17460fi
17461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17462$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17463	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17464	CFLAGS="$xorg_testset_save_CFLAGS"
17465fi
17466
17467found="no"
17468
17469	if test $found = "no" ; then
17470		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17471			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17472		fi
17473
17474		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17475			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17476		fi
17477
17478		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17479
17480		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17481$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17482		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17483		if eval \${$cacheid+:} false; then :
17484  $as_echo_n "(cached) " >&6
17485else
17486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17487/* end confdefs.h.  */
17488int i;
17489int
17490main ()
17491{
17492
17493  ;
17494  return 0;
17495}
17496_ACEOF
17497if ac_fn_c_try_link "$LINENO"; then :
17498  eval $cacheid=yes
17499else
17500  eval $cacheid=no
17501fi
17502rm -f core conftest.err conftest.$ac_objext \
17503    conftest$ac_exeext conftest.$ac_ext
17504fi
17505
17506
17507		CFLAGS="$xorg_testset_save_CFLAGS"
17508
17509		eval supported=\$$cacheid
17510		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17511$as_echo "$supported" >&6; }
17512		if test "$supported" = "yes" ; then
17513			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17514			found="yes"
17515		fi
17516	fi
17517
17518
17519fi
17520
17521
17522
17523
17524
17525
17526
17527		CWARNFLAGS="$BASE_CFLAGS"
17528		if  test "x$GCC" = xyes ; then
17529		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17530		fi
17531
17532
17533
17534
17535
17536
17537
17538
17539# Check whether --enable-strict-compilation was given.
17540if test "${enable_strict_compilation+set}" = set; then :
17541  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17542else
17543  STRICT_COMPILE=no
17544fi
17545
17546
17547
17548
17549
17550
17551STRICT_CFLAGS=""
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565xorg_testset_save_CFLAGS="$CFLAGS"
17566
17567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17568	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17569	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17570$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17571if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17572  $as_echo_n "(cached) " >&6
17573else
17574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17575/* end confdefs.h.  */
17576int i;
17577_ACEOF
17578if ac_fn_c_try_compile "$LINENO"; then :
17579  xorg_cv_cc_flag_unknown_warning_option=yes
17580else
17581  xorg_cv_cc_flag_unknown_warning_option=no
17582fi
17583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17584fi
17585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17586$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17587	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17588	CFLAGS="$xorg_testset_save_CFLAGS"
17589fi
17590
17591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17592	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17593		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17594	fi
17595	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17597$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17598if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17599  $as_echo_n "(cached) " >&6
17600else
17601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17602/* end confdefs.h.  */
17603int i;
17604_ACEOF
17605if ac_fn_c_try_compile "$LINENO"; then :
17606  xorg_cv_cc_flag_unused_command_line_argument=yes
17607else
17608  xorg_cv_cc_flag_unused_command_line_argument=no
17609fi
17610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17611fi
17612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17613$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17614	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17615	CFLAGS="$xorg_testset_save_CFLAGS"
17616fi
17617
17618found="no"
17619
17620	if test $found = "no" ; then
17621		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17622			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17623		fi
17624
17625		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17626			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17627		fi
17628
17629		CFLAGS="$CFLAGS -pedantic"
17630
17631		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17632$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17633		cacheid=xorg_cv_cc_flag__pedantic
17634		if eval \${$cacheid+:} false; then :
17635  $as_echo_n "(cached) " >&6
17636else
17637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638/* end confdefs.h.  */
17639int i;
17640int
17641main ()
17642{
17643
17644  ;
17645  return 0;
17646}
17647_ACEOF
17648if ac_fn_c_try_link "$LINENO"; then :
17649  eval $cacheid=yes
17650else
17651  eval $cacheid=no
17652fi
17653rm -f core conftest.err conftest.$ac_objext \
17654    conftest$ac_exeext conftest.$ac_ext
17655fi
17656
17657
17658		CFLAGS="$xorg_testset_save_CFLAGS"
17659
17660		eval supported=\$$cacheid
17661		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17662$as_echo "$supported" >&6; }
17663		if test "$supported" = "yes" ; then
17664			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17665			found="yes"
17666		fi
17667	fi
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683xorg_testset_save_CFLAGS="$CFLAGS"
17684
17685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17686	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17687	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17688$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17689if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17690  $as_echo_n "(cached) " >&6
17691else
17692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17693/* end confdefs.h.  */
17694int i;
17695_ACEOF
17696if ac_fn_c_try_compile "$LINENO"; then :
17697  xorg_cv_cc_flag_unknown_warning_option=yes
17698else
17699  xorg_cv_cc_flag_unknown_warning_option=no
17700fi
17701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17702fi
17703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17704$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17705	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17706	CFLAGS="$xorg_testset_save_CFLAGS"
17707fi
17708
17709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17710	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17711		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17712	fi
17713	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17714	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17715$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17716if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17717  $as_echo_n "(cached) " >&6
17718else
17719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17720/* end confdefs.h.  */
17721int i;
17722_ACEOF
17723if ac_fn_c_try_compile "$LINENO"; then :
17724  xorg_cv_cc_flag_unused_command_line_argument=yes
17725else
17726  xorg_cv_cc_flag_unused_command_line_argument=no
17727fi
17728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17729fi
17730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17731$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17732	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17733	CFLAGS="$xorg_testset_save_CFLAGS"
17734fi
17735
17736found="no"
17737
17738	if test $found = "no" ; then
17739		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17740			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17741		fi
17742
17743		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17744			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17745		fi
17746
17747		CFLAGS="$CFLAGS -Werror"
17748
17749		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17750$as_echo_n "checking if $CC supports -Werror... " >&6; }
17751		cacheid=xorg_cv_cc_flag__Werror
17752		if eval \${$cacheid+:} false; then :
17753  $as_echo_n "(cached) " >&6
17754else
17755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17756/* end confdefs.h.  */
17757int i;
17758int
17759main ()
17760{
17761
17762  ;
17763  return 0;
17764}
17765_ACEOF
17766if ac_fn_c_try_link "$LINENO"; then :
17767  eval $cacheid=yes
17768else
17769  eval $cacheid=no
17770fi
17771rm -f core conftest.err conftest.$ac_objext \
17772    conftest$ac_exeext conftest.$ac_ext
17773fi
17774
17775
17776		CFLAGS="$xorg_testset_save_CFLAGS"
17777
17778		eval supported=\$$cacheid
17779		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17780$as_echo "$supported" >&6; }
17781		if test "$supported" = "yes" ; then
17782			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17783			found="yes"
17784		fi
17785	fi
17786
17787	if test $found = "no" ; then
17788		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17789			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17790		fi
17791
17792		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17793			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17794		fi
17795
17796		CFLAGS="$CFLAGS -errwarn"
17797
17798		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17799$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17800		cacheid=xorg_cv_cc_flag__errwarn
17801		if eval \${$cacheid+:} false; then :
17802  $as_echo_n "(cached) " >&6
17803else
17804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17805/* end confdefs.h.  */
17806int i;
17807int
17808main ()
17809{
17810
17811  ;
17812  return 0;
17813}
17814_ACEOF
17815if ac_fn_c_try_link "$LINENO"; then :
17816  eval $cacheid=yes
17817else
17818  eval $cacheid=no
17819fi
17820rm -f core conftest.err conftest.$ac_objext \
17821    conftest$ac_exeext conftest.$ac_ext
17822fi
17823
17824
17825		CFLAGS="$xorg_testset_save_CFLAGS"
17826
17827		eval supported=\$$cacheid
17828		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17829$as_echo "$supported" >&6; }
17830		if test "$supported" = "yes" ; then
17831			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17832			found="yes"
17833		fi
17834	fi
17835
17836
17837
17838# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17839# activate it with -Werror, so we add it here explicitly.
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853xorg_testset_save_CFLAGS="$CFLAGS"
17854
17855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17856	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17857	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17858$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17859if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17860  $as_echo_n "(cached) " >&6
17861else
17862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17863/* end confdefs.h.  */
17864int i;
17865_ACEOF
17866if ac_fn_c_try_compile "$LINENO"; then :
17867  xorg_cv_cc_flag_unknown_warning_option=yes
17868else
17869  xorg_cv_cc_flag_unknown_warning_option=no
17870fi
17871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17872fi
17873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17874$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17875	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17876	CFLAGS="$xorg_testset_save_CFLAGS"
17877fi
17878
17879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17880	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17881		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17882	fi
17883	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17884	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17885$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17886if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17887  $as_echo_n "(cached) " >&6
17888else
17889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17890/* end confdefs.h.  */
17891int i;
17892_ACEOF
17893if ac_fn_c_try_compile "$LINENO"; then :
17894  xorg_cv_cc_flag_unused_command_line_argument=yes
17895else
17896  xorg_cv_cc_flag_unused_command_line_argument=no
17897fi
17898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17899fi
17900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17901$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17902	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17903	CFLAGS="$xorg_testset_save_CFLAGS"
17904fi
17905
17906found="no"
17907
17908	if test $found = "no" ; then
17909		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17910			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17911		fi
17912
17913		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17914			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17915		fi
17916
17917		CFLAGS="$CFLAGS -Werror=attributes"
17918
17919		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17920$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17921		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17922		if eval \${$cacheid+:} false; then :
17923  $as_echo_n "(cached) " >&6
17924else
17925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926/* end confdefs.h.  */
17927int i;
17928int
17929main ()
17930{
17931
17932  ;
17933  return 0;
17934}
17935_ACEOF
17936if ac_fn_c_try_link "$LINENO"; then :
17937  eval $cacheid=yes
17938else
17939  eval $cacheid=no
17940fi
17941rm -f core conftest.err conftest.$ac_objext \
17942    conftest$ac_exeext conftest.$ac_ext
17943fi
17944
17945
17946		CFLAGS="$xorg_testset_save_CFLAGS"
17947
17948		eval supported=\$$cacheid
17949		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17950$as_echo "$supported" >&6; }
17951		if test "$supported" = "yes" ; then
17952			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17953			found="yes"
17954		fi
17955	fi
17956
17957
17958
17959if test "x$STRICT_COMPILE" = "xyes"; then
17960    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17961    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17962fi
17963
17964
17965
17966
17967
17968
17969cat >>confdefs.h <<_ACEOF
17970#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17971_ACEOF
17972
17973	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17974	if test "x$PVM" = "x"; then
17975		PVM="0"
17976	fi
17977
17978cat >>confdefs.h <<_ACEOF
17979#define PACKAGE_VERSION_MINOR $PVM
17980_ACEOF
17981
17982	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17983	if test "x$PVP" = "x"; then
17984		PVP="0"
17985	fi
17986
17987cat >>confdefs.h <<_ACEOF
17988#define PACKAGE_VERSION_PATCHLEVEL $PVP
17989_ACEOF
17990
17991
17992
17993CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17994mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17995|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17996echo 'git directory not found: installing possibly empty changelog.' >&2)"
17997
17998
17999
18000
18001macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18002INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18003mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18004|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18005echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18006
18007
18008
18009
18010
18011
18012if test x$APP_MAN_SUFFIX = x    ; then
18013    APP_MAN_SUFFIX=1
18014fi
18015if test x$APP_MAN_DIR = x    ; then
18016    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18017fi
18018
18019if test x$LIB_MAN_SUFFIX = x    ; then
18020    LIB_MAN_SUFFIX=3
18021fi
18022if test x$LIB_MAN_DIR = x    ; then
18023    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18024fi
18025
18026if test x$FILE_MAN_SUFFIX = x    ; then
18027    case $host_os in
18028	solaris*)	FILE_MAN_SUFFIX=4  ;;
18029	*)		FILE_MAN_SUFFIX=5  ;;
18030    esac
18031fi
18032if test x$FILE_MAN_DIR = x    ; then
18033    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18034fi
18035
18036if test x$MISC_MAN_SUFFIX = x    ; then
18037    case $host_os in
18038	solaris*)	MISC_MAN_SUFFIX=5  ;;
18039	*)		MISC_MAN_SUFFIX=7  ;;
18040    esac
18041fi
18042if test x$MISC_MAN_DIR = x    ; then
18043    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18044fi
18045
18046if test x$DRIVER_MAN_SUFFIX = x    ; then
18047    case $host_os in
18048	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
18049	*)		DRIVER_MAN_SUFFIX=4  ;;
18050    esac
18051fi
18052if test x$DRIVER_MAN_DIR = x    ; then
18053    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18054fi
18055
18056if test x$ADMIN_MAN_SUFFIX = x    ; then
18057    case $host_os in
18058	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
18059	*)		ADMIN_MAN_SUFFIX=8  ;;
18060    esac
18061fi
18062if test x$ADMIN_MAN_DIR = x    ; then
18063    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18064fi
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080XORG_MAN_PAGE="X Version 11"
18081
18082MAN_SUBSTS="\
18083	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18084	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18085	-e 's|__xservername__|Xorg|g' \
18086	-e 's|__xconfigfile__|xorg.conf|g' \
18087	-e 's|__projectroot__|\$(prefix)|g' \
18088	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18089	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18090	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18091	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18092	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18093	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18094	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18095
18096
18097
18098# Check whether --enable-silent-rules was given.
18099if test "${enable_silent_rules+set}" = set; then :
18100  enableval=$enable_silent_rules;
18101fi
18102
18103case $enable_silent_rules in # (((
18104  yes) AM_DEFAULT_VERBOSITY=0;;
18105   no) AM_DEFAULT_VERBOSITY=1;;
18106    *) AM_DEFAULT_VERBOSITY=0;;
18107esac
18108am_make=${MAKE-make}
18109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18110$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18111if ${am_cv_make_support_nested_variables+:} false; then :
18112  $as_echo_n "(cached) " >&6
18113else
18114  if $as_echo 'TRUE=$(BAR$(V))
18115BAR0=false
18116BAR1=true
18117V=1
18118am__doit:
18119	@$(TRUE)
18120.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18121  am_cv_make_support_nested_variables=yes
18122else
18123  am_cv_make_support_nested_variables=no
18124fi
18125fi
18126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18127$as_echo "$am_cv_make_support_nested_variables" >&6; }
18128if test $am_cv_make_support_nested_variables = yes; then
18129    AM_V='$(V)'
18130  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18131else
18132  AM_V=$AM_DEFAULT_VERBOSITY
18133  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18134fi
18135AM_BACKSLASH='\'
18136
18137
18138
18139
18140# Check whether --enable-devel-docs was given.
18141if test "${enable_devel_docs+set}" = set; then :
18142  enableval=$enable_devel_docs; build_devel_docs=$enableval
18143else
18144  build_devel_docs=yes
18145fi
18146
18147
18148 if test x$build_devel_docs = xyes; then
18149  ENABLE_DEVEL_DOCS_TRUE=
18150  ENABLE_DEVEL_DOCS_FALSE='#'
18151else
18152  ENABLE_DEVEL_DOCS_TRUE='#'
18153  ENABLE_DEVEL_DOCS_FALSE=
18154fi
18155
18156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
18157$as_echo_n "checking whether to build developer documentation... " >&6; }
18158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
18159$as_echo "$build_devel_docs" >&6; }
18160
18161
18162
18163
18164
18165# Check whether --with-xmlto was given.
18166if test "${with_xmlto+set}" = set; then :
18167  withval=$with_xmlto; use_xmlto=$withval
18168else
18169  use_xmlto=auto
18170fi
18171
18172
18173
18174if test "x$use_xmlto" = x"auto"; then
18175   # Extract the first word of "xmlto", so it can be a program name with args.
18176set dummy xmlto; ac_word=$2
18177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18178$as_echo_n "checking for $ac_word... " >&6; }
18179if ${ac_cv_path_XMLTO+:} false; then :
18180  $as_echo_n "(cached) " >&6
18181else
18182  case $XMLTO in
18183  [\\/]* | ?:[\\/]*)
18184  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18185  ;;
18186  *)
18187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18188for as_dir in $PATH
18189do
18190  IFS=$as_save_IFS
18191  test -z "$as_dir" && as_dir=.
18192    for ac_exec_ext in '' $ac_executable_extensions; do
18193  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18194    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18196    break 2
18197  fi
18198done
18199  done
18200IFS=$as_save_IFS
18201
18202  ;;
18203esac
18204fi
18205XMLTO=$ac_cv_path_XMLTO
18206if test -n "$XMLTO"; then
18207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18208$as_echo "$XMLTO" >&6; }
18209else
18210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18211$as_echo "no" >&6; }
18212fi
18213
18214
18215   if test "x$XMLTO" = "x"; then
18216        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
18217$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18218	have_xmlto=no
18219   else
18220        have_xmlto=yes
18221   fi
18222elif test "x$use_xmlto" = x"yes" ; then
18223   # Extract the first word of "xmlto", so it can be a program name with args.
18224set dummy xmlto; ac_word=$2
18225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18226$as_echo_n "checking for $ac_word... " >&6; }
18227if ${ac_cv_path_XMLTO+:} false; then :
18228  $as_echo_n "(cached) " >&6
18229else
18230  case $XMLTO in
18231  [\\/]* | ?:[\\/]*)
18232  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18233  ;;
18234  *)
18235  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18236for as_dir in $PATH
18237do
18238  IFS=$as_save_IFS
18239  test -z "$as_dir" && as_dir=.
18240    for ac_exec_ext in '' $ac_executable_extensions; do
18241  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18242    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18244    break 2
18245  fi
18246done
18247  done
18248IFS=$as_save_IFS
18249
18250  ;;
18251esac
18252fi
18253XMLTO=$ac_cv_path_XMLTO
18254if test -n "$XMLTO"; then
18255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18256$as_echo "$XMLTO" >&6; }
18257else
18258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18259$as_echo "no" >&6; }
18260fi
18261
18262
18263   if test "x$XMLTO" = "x"; then
18264        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18265   fi
18266   have_xmlto=yes
18267elif test "x$use_xmlto" = x"no" ; then
18268   if test "x$XMLTO" != "x"; then
18269      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18270$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18271   fi
18272   have_xmlto=no
18273else
18274   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18275fi
18276
18277# Test for a minimum version of xmlto, if provided.
18278if test "$have_xmlto" = yes; then
18279    # scrape the xmlto version
18280    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18281$as_echo_n "checking the xmlto version... " >&6; }
18282    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18283    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18284$as_echo "$xmlto_version" >&6; }
18285    as_arg_v1=$xmlto_version
18286as_arg_v2=0.0.22
18287awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18288case $? in #(
18289  1) :
18290    if test "x$use_xmlto" = xauto; then
18291            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18292$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18293            have_xmlto=no
18294        else
18295            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18296        fi ;; #(
18297  0) :
18298     ;; #(
18299  2) :
18300     ;; #(
18301  *) :
18302     ;;
18303esac
18304fi
18305
18306# Test for the ability of xmlto to generate a text target
18307have_xmlto_text=no
18308cat > conftest.xml << "EOF"
18309EOF
18310if test "$have_xmlto" = yes; then :
18311  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18312  have_xmlto_text=yes
18313else
18314  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18315$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18316fi
18317fi
18318rm -f conftest.xml
18319 if test $have_xmlto_text = yes; then
18320  HAVE_XMLTO_TEXT_TRUE=
18321  HAVE_XMLTO_TEXT_FALSE='#'
18322else
18323  HAVE_XMLTO_TEXT_TRUE='#'
18324  HAVE_XMLTO_TEXT_FALSE=
18325fi
18326
18327 if test "$have_xmlto" = yes; then
18328  HAVE_XMLTO_TRUE=
18329  HAVE_XMLTO_FALSE='#'
18330else
18331  HAVE_XMLTO_TRUE='#'
18332  HAVE_XMLTO_FALSE=
18333fi
18334
18335
18336
18337
18338
18339
18340# Check whether --with-fop was given.
18341if test "${with_fop+set}" = set; then :
18342  withval=$with_fop; use_fop=$withval
18343else
18344  use_fop=auto
18345fi
18346
18347
18348
18349if test "x$use_fop" = x"auto"; then
18350   # Extract the first word of "fop", so it can be a program name with args.
18351set dummy fop; ac_word=$2
18352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18353$as_echo_n "checking for $ac_word... " >&6; }
18354if ${ac_cv_path_FOP+:} false; then :
18355  $as_echo_n "(cached) " >&6
18356else
18357  case $FOP in
18358  [\\/]* | ?:[\\/]*)
18359  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18360  ;;
18361  *)
18362  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18363for as_dir in $PATH
18364do
18365  IFS=$as_save_IFS
18366  test -z "$as_dir" && as_dir=.
18367    for ac_exec_ext in '' $ac_executable_extensions; do
18368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18369    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18371    break 2
18372  fi
18373done
18374  done
18375IFS=$as_save_IFS
18376
18377  ;;
18378esac
18379fi
18380FOP=$ac_cv_path_FOP
18381if test -n "$FOP"; then
18382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18383$as_echo "$FOP" >&6; }
18384else
18385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18386$as_echo "no" >&6; }
18387fi
18388
18389
18390   if test "x$FOP" = "x"; then
18391        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
18392$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
18393	have_fop=no
18394   else
18395        have_fop=yes
18396   fi
18397elif test "x$use_fop" = x"yes" ; then
18398   # Extract the first word of "fop", so it can be a program name with args.
18399set dummy fop; ac_word=$2
18400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18401$as_echo_n "checking for $ac_word... " >&6; }
18402if ${ac_cv_path_FOP+:} false; then :
18403  $as_echo_n "(cached) " >&6
18404else
18405  case $FOP in
18406  [\\/]* | ?:[\\/]*)
18407  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18408  ;;
18409  *)
18410  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18411for as_dir in $PATH
18412do
18413  IFS=$as_save_IFS
18414  test -z "$as_dir" && as_dir=.
18415    for ac_exec_ext in '' $ac_executable_extensions; do
18416  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18417    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18419    break 2
18420  fi
18421done
18422  done
18423IFS=$as_save_IFS
18424
18425  ;;
18426esac
18427fi
18428FOP=$ac_cv_path_FOP
18429if test -n "$FOP"; then
18430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18431$as_echo "$FOP" >&6; }
18432else
18433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18434$as_echo "no" >&6; }
18435fi
18436
18437
18438   if test "x$FOP" = "x"; then
18439        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18440   fi
18441   have_fop=yes
18442elif test "x$use_fop" = x"no" ; then
18443   if test "x$FOP" != "x"; then
18444      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18445$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18446   fi
18447   have_fop=no
18448else
18449   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18450fi
18451
18452# Test for a minimum version of fop, if provided.
18453
18454 if test "$have_fop" = yes; then
18455  HAVE_FOP_TRUE=
18456  HAVE_FOP_FALSE='#'
18457else
18458  HAVE_FOP_TRUE='#'
18459  HAVE_FOP_FALSE=
18460fi
18461
18462
18463
18464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.7" >&5
18465$as_echo_n "checking for X.Org SGML entities >= 1.7... " >&6; }
18466XORG_SGML_PATH=
18467if test -n "$PKG_CONFIG" && \
18468    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.7\""; } >&5
18469  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.7") 2>&5
18470  ac_status=$?
18471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18472  test $ac_status = 0; }; then
18473  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18474else
18475  :
18476
18477fi
18478
18479# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18480# the path and the name of the doc stylesheet
18481if test "x$XORG_SGML_PATH" != "x" ; then
18482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18483$as_echo "$XORG_SGML_PATH" >&6; }
18484   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18485   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18486else
18487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18488$as_echo "no" >&6; }
18489fi
18490
18491
18492
18493
18494 if test "x$XSL_STYLESHEET" != "x"; then
18495  HAVE_STYLESHEETS_TRUE=
18496  HAVE_STYLESHEETS_FALSE='#'
18497else
18498  HAVE_STYLESHEETS_TRUE='#'
18499  HAVE_STYLESHEETS_FALSE=
18500fi
18501
18502
18503
18504# Checks for header files.
18505for ac_header in endian.h poll.h sys/poll.h
18506do :
18507  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18508ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18509if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18510  cat >>confdefs.h <<_ACEOF
18511#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18512_ACEOF
18513
18514fi
18515
18516done
18517
18518
18519# Checks for library functions.
18520for ac_func in poll readlink
18521do :
18522  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18523ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18524if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18525  cat >>confdefs.h <<_ACEOF
18526#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18527_ACEOF
18528
18529fi
18530done
18531
18532
18533# If the first PKG_CHECK_MODULES appears inside a conditional, pkg-config
18534# must first be located explicitly.
18535
18536
18537if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18538	if test -n "$ac_tool_prefix"; then
18539  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18540set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18542$as_echo_n "checking for $ac_word... " >&6; }
18543if ${ac_cv_path_PKG_CONFIG+:} false; then :
18544  $as_echo_n "(cached) " >&6
18545else
18546  case $PKG_CONFIG in
18547  [\\/]* | ?:[\\/]*)
18548  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18549  ;;
18550  *)
18551  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18552for as_dir in $PATH
18553do
18554  IFS=$as_save_IFS
18555  test -z "$as_dir" && as_dir=.
18556    for ac_exec_ext in '' $ac_executable_extensions; do
18557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18558    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18560    break 2
18561  fi
18562done
18563  done
18564IFS=$as_save_IFS
18565
18566  ;;
18567esac
18568fi
18569PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18570if test -n "$PKG_CONFIG"; then
18571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18572$as_echo "$PKG_CONFIG" >&6; }
18573else
18574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18575$as_echo "no" >&6; }
18576fi
18577
18578
18579fi
18580if test -z "$ac_cv_path_PKG_CONFIG"; then
18581  ac_pt_PKG_CONFIG=$PKG_CONFIG
18582  # Extract the first word of "pkg-config", so it can be a program name with args.
18583set dummy pkg-config; ac_word=$2
18584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18585$as_echo_n "checking for $ac_word... " >&6; }
18586if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18587  $as_echo_n "(cached) " >&6
18588else
18589  case $ac_pt_PKG_CONFIG in
18590  [\\/]* | ?:[\\/]*)
18591  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18592  ;;
18593  *)
18594  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18595for as_dir in $PATH
18596do
18597  IFS=$as_save_IFS
18598  test -z "$as_dir" && as_dir=.
18599    for ac_exec_ext in '' $ac_executable_extensions; do
18600  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18601    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18603    break 2
18604  fi
18605done
18606  done
18607IFS=$as_save_IFS
18608
18609  ;;
18610esac
18611fi
18612ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18613if test -n "$ac_pt_PKG_CONFIG"; then
18614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18615$as_echo "$ac_pt_PKG_CONFIG" >&6; }
18616else
18617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18618$as_echo "no" >&6; }
18619fi
18620
18621  if test "x$ac_pt_PKG_CONFIG" = x; then
18622    PKG_CONFIG=""
18623  else
18624    case $cross_compiling:$ac_tool_warned in
18625yes:)
18626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18628ac_tool_warned=yes ;;
18629esac
18630    PKG_CONFIG=$ac_pt_PKG_CONFIG
18631  fi
18632else
18633  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18634fi
18635
18636fi
18637if test -n "$PKG_CONFIG"; then
18638	_pkg_min_version=0.9.0
18639	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18640$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18641	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18642		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18643$as_echo "yes" >&6; }
18644	else
18645		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18646$as_echo "no" >&6; }
18647		PKG_CONFIG=""
18648	fi
18649
18650fi
18651
18652#
18653# select libraries to include
18654#
18655
18656XFONT_FONTFILE=no
18657
18658#
18659# FreeType for all scalable (OpenType, TrueType, PostScript) and
18660# some bitmap formats (BDF & PCF)
18661#
18662# Check whether --enable-freetype was given.
18663if test "${enable_freetype+set}" = set; then :
18664  enableval=$enable_freetype; XFONT_FREETYPE=$enableval
18665else
18666  XFONT_FREETYPE=yes
18667fi
18668
18669 if test x$XFONT_FREETYPE = xyes; then
18670  XFONT_FREETYPE_TRUE=
18671  XFONT_FREETYPE_FALSE='#'
18672else
18673  XFONT_FREETYPE_TRUE='#'
18674  XFONT_FREETYPE_FALSE=
18675fi
18676
18677if test x$XFONT_FREETYPE = xyes; then
18678
18679$as_echo "#define XFONT_FREETYPE 1" >>confdefs.h
18680
18681
18682# Check whether --with-freetype-config was given.
18683if test "${with_freetype_config+set}" = set; then :
18684  withval=$with_freetype_config; freetype_config=$withval
18685else
18686  freetype_config=auto
18687fi
18688
18689
18690	if test "$freetype_config" = "auto" ; then
18691
18692pkg_failed=no
18693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
18694$as_echo_n "checking for FREETYPE... " >&6; }
18695
18696if test -n "$FREETYPE_CFLAGS"; then
18697    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
18698 elif test -n "$PKG_CONFIG"; then
18699    if test -n "$PKG_CONFIG" && \
18700    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
18701  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
18702  ac_status=$?
18703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18704  test $ac_status = 0; }; then
18705  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
18706else
18707  pkg_failed=yes
18708fi
18709 else
18710    pkg_failed=untried
18711fi
18712if test -n "$FREETYPE_LIBS"; then
18713    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
18714 elif test -n "$PKG_CONFIG"; then
18715    if test -n "$PKG_CONFIG" && \
18716    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
18717  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
18718  ac_status=$?
18719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18720  test $ac_status = 0; }; then
18721  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
18722else
18723  pkg_failed=yes
18724fi
18725 else
18726    pkg_failed=untried
18727fi
18728
18729
18730
18731if test $pkg_failed = yes; then
18732
18733if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18734        _pkg_short_errors_supported=yes
18735else
18736        _pkg_short_errors_supported=no
18737fi
18738        if test $_pkg_short_errors_supported = yes; then
18739	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
18740        else
18741	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
18742        fi
18743	# Put the nasty error message in config.log where it belongs
18744	echo "$FREETYPE_PKG_ERRORS" >&5
18745
18746	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18747$as_echo "no" >&6; }
18748                freetype_config=yes
18749elif test $pkg_failed = untried; then
18750	freetype_config=yes
18751else
18752	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
18753	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
18754        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18755$as_echo "yes" >&6; }
18756	freetype_config=no
18757fi
18758	fi
18759
18760	if test "$freetype_config" = "yes"; then
18761		# Extract the first word of "freetype-config", so it can be a program name with args.
18762set dummy freetype-config; ac_word=$2
18763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18764$as_echo_n "checking for $ac_word... " >&6; }
18765if ${ac_cv_path_ft_config+:} false; then :
18766  $as_echo_n "(cached) " >&6
18767else
18768  case $ft_config in
18769  [\\/]* | ?:[\\/]*)
18770  ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path.
18771  ;;
18772  *)
18773  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18774for as_dir in $PATH
18775do
18776  IFS=$as_save_IFS
18777  test -z "$as_dir" && as_dir=.
18778    for ac_exec_ext in '' $ac_executable_extensions; do
18779  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18780    ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext"
18781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18782    break 2
18783  fi
18784done
18785  done
18786IFS=$as_save_IFS
18787
18788  test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no"
18789  ;;
18790esac
18791fi
18792ft_config=$ac_cv_path_ft_config
18793if test -n "$ft_config"; then
18794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_config" >&5
18795$as_echo "$ft_config" >&6; }
18796else
18797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18798$as_echo "no" >&6; }
18799fi
18800
18801
18802		if test "$ft_config" = "no"; then
18803			as_fn_error $? "You must have freetype installed; see http://www.freetype.org/" "$LINENO" 5
18804		fi
18805	else
18806		ft_config="$freetype_config"
18807	fi
18808
18809	if test "$freetype_config" != "no"; then
18810		FREETYPE_CFLAGS="`$ft_config --cflags`"
18811		FREETYPE_LIBS="`$ft_config --libs`"
18812	fi
18813	FREETYPE_REQUIRES="freetype2"
18814	XFONT_FONTFILE=yes
18815else
18816	FREETYPE_CFLAGS=""
18817	FREETYPE_LIBS=""
18818	FREETYPE_REQUIRES=""
18819fi
18820
18821
18822
18823
18824#
18825# Bitmap fonts in files:
18826#	Builtins (gzipped pcf format in .text segment)
18827#	PCF
18828#	BDF
18829#	SNF
18830#
18831
18832
18833$as_echo "#define X_GZIP_FONT_COMPRESSION 1" >>confdefs.h
18834
18835X_GZIP_FONT_COMPRESSION=1
18836
18837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
18838$as_echo_n "checking for gzopen in -lz... " >&6; }
18839if ${ac_cv_lib_z_gzopen+:} false; then :
18840  $as_echo_n "(cached) " >&6
18841else
18842  ac_check_lib_save_LIBS=$LIBS
18843LIBS="-lz  $LIBS"
18844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18845/* end confdefs.h.  */
18846
18847/* Override any GCC internal prototype to avoid an error.
18848   Use char because int might match the return type of a GCC
18849   builtin and then its argument prototype would still apply.  */
18850#ifdef __cplusplus
18851extern "C"
18852#endif
18853char gzopen ();
18854int
18855main ()
18856{
18857return gzopen ();
18858  ;
18859  return 0;
18860}
18861_ACEOF
18862if ac_fn_c_try_link "$LINENO"; then :
18863  ac_cv_lib_z_gzopen=yes
18864else
18865  ac_cv_lib_z_gzopen=no
18866fi
18867rm -f core conftest.err conftest.$ac_objext \
18868    conftest$ac_exeext conftest.$ac_ext
18869LIBS=$ac_check_lib_save_LIBS
18870fi
18871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
18872$as_echo "$ac_cv_lib_z_gzopen" >&6; }
18873if test "x$ac_cv_lib_z_gzopen" = xyes; then :
18874  Z_LIBS=-lz
18875else
18876  as_fn_error $? "*** zlib is required" "$LINENO" 5
18877fi
18878
18879
18880
18881# Check whether --with-bzip2 was given.
18882if test "${with_bzip2+set}" = set; then :
18883  withval=$with_bzip2;
18884else
18885  with_bzip2=no
18886fi
18887
18888if test "x$with_bzip2" = xyes; then
18889	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
18890$as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; }
18891if ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then :
18892  $as_echo_n "(cached) " >&6
18893else
18894  ac_check_lib_save_LIBS=$LIBS
18895LIBS="-lbz2  $LIBS"
18896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18897/* end confdefs.h.  */
18898
18899/* Override any GCC internal prototype to avoid an error.
18900   Use char because int might match the return type of a GCC
18901   builtin and then its argument prototype would still apply.  */
18902#ifdef __cplusplus
18903extern "C"
18904#endif
18905char BZ2_bzopen ();
18906int
18907main ()
18908{
18909return BZ2_bzopen ();
18910  ;
18911  return 0;
18912}
18913_ACEOF
18914if ac_fn_c_try_link "$LINENO"; then :
18915  ac_cv_lib_bz2_BZ2_bzopen=yes
18916else
18917  ac_cv_lib_bz2_BZ2_bzopen=no
18918fi
18919rm -f core conftest.err conftest.$ac_objext \
18920    conftest$ac_exeext conftest.$ac_ext
18921LIBS=$ac_check_lib_save_LIBS
18922fi
18923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
18924$as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
18925if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then :
18926  Z_LIBS="$Z_LIBS -lbz2"
18927else
18928  as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5
18929fi
18930
18931
18932$as_echo "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h
18933
18934fi
18935 if test "x$with_bzip2" = xyes ; then
18936  X_BZIP2_FONT_COMPRESSION_TRUE=
18937  X_BZIP2_FONT_COMPRESSION_FALSE='#'
18938else
18939  X_BZIP2_FONT_COMPRESSION_TRUE='#'
18940  X_BZIP2_FONT_COMPRESSION_FALSE=
18941fi
18942
18943
18944
18945# Check whether --enable-builtins was given.
18946if test "${enable_builtins+set}" = set; then :
18947  enableval=$enable_builtins; XFONT_BUILTINS=$enableval
18948else
18949  XFONT_BUILTINS=yes
18950fi
18951
18952 if test "x$XFONT_BUILTINS" = xyes ; then
18953  XFONT_BUILTINS_TRUE=
18954  XFONT_BUILTINS_FALSE='#'
18955else
18956  XFONT_BUILTINS_TRUE='#'
18957  XFONT_BUILTINS_FALSE=
18958fi
18959
18960if test "x$XFONT_BUILTINS" = xyes; then
18961
18962$as_echo "#define XFONT_BUILTINS 1" >>confdefs.h
18963
18964	XFONT_BITMAP=yes
18965fi
18966
18967# Check whether --enable-pcfformat was given.
18968if test "${enable_pcfformat+set}" = set; then :
18969  enableval=$enable_pcfformat; XFONT_PCFFORMAT=$enableval
18970else
18971  XFONT_PCFFORMAT=yes
18972fi
18973
18974 if test "x$XFONT_PCFFORMAT" = xyes; then
18975  XFONT_PCFFORMAT_TRUE=
18976  XFONT_PCFFORMAT_FALSE='#'
18977else
18978  XFONT_PCFFORMAT_TRUE='#'
18979  XFONT_PCFFORMAT_FALSE=
18980fi
18981
18982if test "x$XFONT_PCFFORMAT" = xyes; then
18983
18984$as_echo "#define XFONT_PCFFORMAT 1" >>confdefs.h
18985
18986	XFONT_BITMAP=yes
18987fi
18988
18989# Check whether --enable-bdfformat was given.
18990if test "${enable_bdfformat+set}" = set; then :
18991  enableval=$enable_bdfformat; XFONT_BDFFORMAT=$enableval
18992else
18993  XFONT_BDFFORMAT=yes
18994fi
18995
18996 if test "x$XFONT_BDFFORMAT" = xyes; then
18997  XFONT_BDFFORMAT_TRUE=
18998  XFONT_BDFFORMAT_FALSE='#'
18999else
19000  XFONT_BDFFORMAT_TRUE='#'
19001  XFONT_BDFFORMAT_FALSE=
19002fi
19003
19004if test "x$XFONT_BDFFORMAT" = xyes; then
19005
19006$as_echo "#define XFONT_BDFFORMAT 1" >>confdefs.h
19007
19008	XFONT_BITMAP=yes
19009fi
19010
19011# Check whether --enable-snfformat was given.
19012if test "${enable_snfformat+set}" = set; then :
19013  enableval=$enable_snfformat; XFONT_SNFFORMAT=$enableval
19014else
19015  XFONT_SNFFORMAT=yes
19016fi
19017
19018 if test "x$XFONT_SNFFORMAT" = xyes; then
19019  XFONT_SNFFORMAT_TRUE=
19020  XFONT_SNFFORMAT_FALSE='#'
19021else
19022  XFONT_SNFFORMAT_TRUE='#'
19023  XFONT_SNFFORMAT_FALSE=
19024fi
19025
19026if test "x$XFONT_SNFFORMAT" = xyes; then
19027
19028$as_echo "#define XFONT_SNFFORMAT 1" >>confdefs.h
19029
19030	XFONT_BITMAP=yes
19031fi
19032
19033 if test "x$XFONT_BITMAP" = xyes ; then
19034  XFONT_BITMAP_TRUE=
19035  XFONT_BITMAP_FALSE='#'
19036else
19037  XFONT_BITMAP_TRUE='#'
19038  XFONT_BITMAP_FALSE=
19039fi
19040
19041if test "x$XFONT_BITMAP" = xyes; then
19042
19043$as_echo "#define XFONT_BITMAP 1" >>confdefs.h
19044
19045	XFONT_FONTFILE=yes
19046fi
19047
19048 if test "x$XFONT_FONTFILE" = xyes; then
19049  XFONT_FONTFILE_TRUE=
19050  XFONT_FONTFILE_FALSE='#'
19051else
19052  XFONT_FONTFILE_TRUE='#'
19053  XFONT_FONTFILE_FALSE=
19054fi
19055
19056if test "x$XFONT_FONTFILE" = xyes; then
19057
19058$as_echo "#define XFONT_FONTFILE 1" >>confdefs.h
19059
19060fi
19061
19062#
19063# Support connection to font servers?
19064#
19065
19066# Check whether --enable-fc was given.
19067if test "${enable_fc+set}" = set; then :
19068  enableval=$enable_fc; XFONT_FC=$enableval
19069else
19070  XFONT_FC=yes
19071fi
19072
19073 if test "x$XFONT_FC" = xyes; then
19074  XFONT_FC_TRUE=
19075  XFONT_FC_FALSE='#'
19076else
19077  XFONT_FC_TRUE='#'
19078  XFONT_FC_FALSE=
19079fi
19080
19081if test "x$XFONT_FC" = xyes; then
19082
19083$as_echo "#define XFONT_FC 1" >>confdefs.h
19084
19085fi
19086
19087
19088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5
19089$as_echo_n "checking for hypot in -lm... " >&6; }
19090if ${ac_cv_lib_m_hypot+:} false; then :
19091  $as_echo_n "(cached) " >&6
19092else
19093  ac_check_lib_save_LIBS=$LIBS
19094LIBS="-lm  $LIBS"
19095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19096/* end confdefs.h.  */
19097
19098/* Override any GCC internal prototype to avoid an error.
19099   Use char because int might match the return type of a GCC
19100   builtin and then its argument prototype would still apply.  */
19101#ifdef __cplusplus
19102extern "C"
19103#endif
19104char hypot ();
19105int
19106main ()
19107{
19108return hypot ();
19109  ;
19110  return 0;
19111}
19112_ACEOF
19113if ac_fn_c_try_link "$LINENO"; then :
19114  ac_cv_lib_m_hypot=yes
19115else
19116  ac_cv_lib_m_hypot=no
19117fi
19118rm -f core conftest.err conftest.$ac_objext \
19119    conftest$ac_exeext conftest.$ac_ext
19120LIBS=$ac_check_lib_save_LIBS
19121fi
19122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5
19123$as_echo "$ac_cv_lib_m_hypot" >&6; }
19124if test "x$ac_cv_lib_m_hypot" = xyes; then :
19125  MATH_LIBS=-lm
19126
19127else
19128  as_fn_error $? "*** libm is required" "$LINENO" 5
19129fi
19130
19131
19132
19133pkg_failed=no
19134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFONT" >&5
19135$as_echo_n "checking for XFONT... " >&6; }
19136
19137if test -n "$XFONT_CFLAGS"; then
19138    pkg_cv_XFONT_CFLAGS="$XFONT_CFLAGS"
19139 elif test -n "$PKG_CONFIG"; then
19140    if test -n "$PKG_CONFIG" && \
19141    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto < 2.1.3 fontenc\""; } >&5
19142  ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto < 2.1.3 fontenc") 2>&5
19143  ac_status=$?
19144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19145  test $ac_status = 0; }; then
19146  pkg_cv_XFONT_CFLAGS=`$PKG_CONFIG --cflags "xproto xtrans fontsproto < 2.1.3 fontenc" 2>/dev/null`
19147else
19148  pkg_failed=yes
19149fi
19150 else
19151    pkg_failed=untried
19152fi
19153if test -n "$XFONT_LIBS"; then
19154    pkg_cv_XFONT_LIBS="$XFONT_LIBS"
19155 elif test -n "$PKG_CONFIG"; then
19156    if test -n "$PKG_CONFIG" && \
19157    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto < 2.1.3 fontenc\""; } >&5
19158  ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto < 2.1.3 fontenc") 2>&5
19159  ac_status=$?
19160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19161  test $ac_status = 0; }; then
19162  pkg_cv_XFONT_LIBS=`$PKG_CONFIG --libs "xproto xtrans fontsproto < 2.1.3 fontenc" 2>/dev/null`
19163else
19164  pkg_failed=yes
19165fi
19166 else
19167    pkg_failed=untried
19168fi
19169
19170
19171
19172if test $pkg_failed = yes; then
19173
19174if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19175        _pkg_short_errors_supported=yes
19176else
19177        _pkg_short_errors_supported=no
19178fi
19179        if test $_pkg_short_errors_supported = yes; then
19180	        XFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto xtrans fontsproto < 2.1.3 fontenc" 2>&1`
19181        else
19182	        XFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto xtrans fontsproto < 2.1.3 fontenc" 2>&1`
19183        fi
19184	# Put the nasty error message in config.log where it belongs
19185	echo "$XFONT_PKG_ERRORS" >&5
19186
19187	as_fn_error $? "Package requirements (xproto xtrans fontsproto < 2.1.3 fontenc) were not met:
19188
19189$XFONT_PKG_ERRORS
19190
19191Consider adjusting the PKG_CONFIG_PATH environment variable if you
19192installed software in a non-standard prefix.
19193
19194Alternatively, you may set the environment variables XFONT_CFLAGS
19195and XFONT_LIBS to avoid the need to call pkg-config.
19196See the pkg-config man page for more details.
19197" "$LINENO" 5
19198elif test $pkg_failed = untried; then
19199	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19201as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19202is in your PATH or set the PKG_CONFIG environment variable to the full
19203path to pkg-config.
19204
19205Alternatively, you may set the environment variables XFONT_CFLAGS
19206and XFONT_LIBS to avoid the need to call pkg-config.
19207See the pkg-config man page for more details.
19208
19209To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19210See \`config.log' for more details" "$LINENO" 5; }
19211else
19212	XFONT_CFLAGS=$pkg_cv_XFONT_CFLAGS
19213	XFONT_LIBS=$pkg_cv_XFONT_LIBS
19214        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19215$as_echo "yes" >&6; }
19216	:
19217fi
19218
19219# Transport selection macro from xtrans.m4
19220
19221
19222 case $host_os in
19223	mingw*)	unixdef="no"   ;;
19224	*)	unixdef="yes"  ;;
19225 esac
19226 # Check whether --enable-unix-transport was given.
19227if test "${enable_unix_transport+set}" = set; then :
19228  enableval=$enable_unix_transport; UNIXCONN=$enableval
19229else
19230  UNIXCONN=$unixdef
19231fi
19232
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
19234$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
19235 if test "$UNIXCONN" = "yes"; then
19236
19237$as_echo "#define UNIXCONN 1" >>confdefs.h
19238
19239 fi
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
19241$as_echo "$UNIXCONN" >&6; }
19242 # Check whether --enable-tcp-transport was given.
19243if test "${enable_tcp_transport+set}" = set; then :
19244  enableval=$enable_tcp_transport; TCPCONN=$enableval
19245else
19246  TCPCONN=yes
19247fi
19248
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
19250$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
19252$as_echo "$TCPCONN" >&6; }
19253 if test "$TCPCONN" = "yes"; then
19254
19255$as_echo "#define TCPCONN 1" >>confdefs.h
19256
19257
19258 # SVR4 hides these in libraries other than libc
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19260$as_echo_n "checking for library containing socket... " >&6; }
19261if ${ac_cv_search_socket+:} false; then :
19262  $as_echo_n "(cached) " >&6
19263else
19264  ac_func_search_save_LIBS=$LIBS
19265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19266/* end confdefs.h.  */
19267
19268/* Override any GCC internal prototype to avoid an error.
19269   Use char because int might match the return type of a GCC
19270   builtin and then its argument prototype would still apply.  */
19271#ifdef __cplusplus
19272extern "C"
19273#endif
19274char socket ();
19275int
19276main ()
19277{
19278return socket ();
19279  ;
19280  return 0;
19281}
19282_ACEOF
19283for ac_lib in '' socket; do
19284  if test -z "$ac_lib"; then
19285    ac_res="none required"
19286  else
19287    ac_res=-l$ac_lib
19288    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19289  fi
19290  if ac_fn_c_try_link "$LINENO"; then :
19291  ac_cv_search_socket=$ac_res
19292fi
19293rm -f core conftest.err conftest.$ac_objext \
19294    conftest$ac_exeext
19295  if ${ac_cv_search_socket+:} false; then :
19296  break
19297fi
19298done
19299if ${ac_cv_search_socket+:} false; then :
19300
19301else
19302  ac_cv_search_socket=no
19303fi
19304rm conftest.$ac_ext
19305LIBS=$ac_func_search_save_LIBS
19306fi
19307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19308$as_echo "$ac_cv_search_socket" >&6; }
19309ac_res=$ac_cv_search_socket
19310if test "$ac_res" != no; then :
19311  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19312
19313fi
19314
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19316$as_echo_n "checking for library containing gethostbyname... " >&6; }
19317if ${ac_cv_search_gethostbyname+:} false; then :
19318  $as_echo_n "(cached) " >&6
19319else
19320  ac_func_search_save_LIBS=$LIBS
19321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19322/* end confdefs.h.  */
19323
19324/* Override any GCC internal prototype to avoid an error.
19325   Use char because int might match the return type of a GCC
19326   builtin and then its argument prototype would still apply.  */
19327#ifdef __cplusplus
19328extern "C"
19329#endif
19330char gethostbyname ();
19331int
19332main ()
19333{
19334return gethostbyname ();
19335  ;
19336  return 0;
19337}
19338_ACEOF
19339for ac_lib in '' nsl; do
19340  if test -z "$ac_lib"; then
19341    ac_res="none required"
19342  else
19343    ac_res=-l$ac_lib
19344    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19345  fi
19346  if ac_fn_c_try_link "$LINENO"; then :
19347  ac_cv_search_gethostbyname=$ac_res
19348fi
19349rm -f core conftest.err conftest.$ac_objext \
19350    conftest$ac_exeext
19351  if ${ac_cv_search_gethostbyname+:} false; then :
19352  break
19353fi
19354done
19355if ${ac_cv_search_gethostbyname+:} false; then :
19356
19357else
19358  ac_cv_search_gethostbyname=no
19359fi
19360rm conftest.$ac_ext
19361LIBS=$ac_func_search_save_LIBS
19362fi
19363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19364$as_echo "$ac_cv_search_gethostbyname" >&6; }
19365ac_res=$ac_cv_search_gethostbyname
19366if test "$ac_res" != no; then :
19367  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19368
19369fi
19370
19371 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
19372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
19373$as_echo_n "checking for main in -lws2_32... " >&6; }
19374if ${ac_cv_lib_ws2_32_main+:} false; then :
19375  $as_echo_n "(cached) " >&6
19376else
19377  ac_check_lib_save_LIBS=$LIBS
19378LIBS="-lws2_32  $LIBS"
19379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19380/* end confdefs.h.  */
19381
19382
19383int
19384main ()
19385{
19386return main ();
19387  ;
19388  return 0;
19389}
19390_ACEOF
19391if ac_fn_c_try_link "$LINENO"; then :
19392  ac_cv_lib_ws2_32_main=yes
19393else
19394  ac_cv_lib_ws2_32_main=no
19395fi
19396rm -f core conftest.err conftest.$ac_objext \
19397    conftest$ac_exeext conftest.$ac_ext
19398LIBS=$ac_check_lib_save_LIBS
19399fi
19400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
19401$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
19402if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
19403  cat >>confdefs.h <<_ACEOF
19404#define HAVE_LIBWS2_32 1
19405_ACEOF
19406
19407  LIBS="-lws2_32 $LIBS"
19408
19409fi
19410
19411 fi
19412
19413 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
19414 # Check whether --enable-ipv6 was given.
19415if test "${enable_ipv6+set}" = set; then :
19416  enableval=$enable_ipv6; IPV6CONN=$enableval
19417else
19418  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
19419if test "x$ac_cv_func_getaddrinfo" = xyes; then :
19420  IPV6CONN=yes
19421else
19422  IPV6CONN=no
19423fi
19424
19425fi
19426
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
19428$as_echo_n "checking if IPv6 support should be built... " >&6; }
19429 if test "$IPV6CONN" = "yes"; then
19430
19431$as_echo "#define IPv6 1" >>confdefs.h
19432
19433 fi
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
19435$as_echo "$IPV6CONN" >&6; }
19436
19437 # 4.3BSD-Reno added a new member to struct sockaddr_in
19438 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
19439#include <sys/types.h>
19440#include <sys/socket.h>
19441#include <netinet/in.h>
19442
19443"
19444if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
19445
19446$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
19447
19448fi
19449
19450
19451 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
19452 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19453$ac_includes_default
19454#include <sys/socket.h>
19455"
19456if test "x$ac_cv_type_socklen_t" = xyes; then :
19457
19458cat >>confdefs.h <<_ACEOF
19459#define HAVE_SOCKLEN_T 1
19460_ACEOF
19461
19462
19463fi
19464
19465
19466 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
19467 # _XOPEN_SOURCE to get it (such as on Solaris)
19468 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19469$ac_includes_default
19470#include <sys/socket.h>
19471
19472"
19473if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19474
19475fi
19476
19477 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
19478 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19479     unset ac_cv_member_struct_msghdr_msg_control
19480     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
19481$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
19482     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19483#define _XOPEN_SOURCE 600
19484$ac_includes_default
19485#include <sys/socket.h>
19486
19487"
19488if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19489
19490$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
19491
19492
19493fi
19494
19495 fi
19496 # If that didn't work, fall back to XPG5/UNIX98 with C89
19497 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19498     unset ac_cv_member_struct_msghdr_msg_control
19499     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
19500$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
19501     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19502#define _XOPEN_SOURCE 500
19503$ac_includes_default
19504#include <sys/socket.h>
19505
19506"
19507if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19508
19509$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
19510
19511
19512fi
19513
19514 fi
19515
19516
19517
19518 fi
19519 case $host_os in
19520	solaris*|sco*|sysv4*)	localdef="yes" ;;
19521	*)			localdef="no"  ;;
19522 esac
19523 # Check whether --enable-local-transport was given.
19524if test "${enable_local_transport+set}" = set; then :
19525  enableval=$enable_local_transport; LOCALCONN=$enableval
19526else
19527  LOCALCONN=$localdef
19528fi
19529
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
19531$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
19533$as_echo "$LOCALCONN" >&6; }
19534 if test "$LOCALCONN" = "yes"; then
19535
19536$as_echo "#define LOCALCONN 1" >>confdefs.h
19537
19538 fi
19539
19540
19541
19542case $host_os in
19543    linux*)
19544        OS_CFLAGS="-D_XOPEN_SOURCE"
19545        ;;
19546    darwin*)
19547        OS_CFLAGS="-Wl,-flat_namespace"
19548	;;
19549    *)
19550        OS_CFLAGS=
19551        ;;
19552esac
19553
19554
19555ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/fontfile/Makefile src/FreeType/Makefile src/builtins/Makefile src/bitmap/Makefile src/fc/Makefile src/util/Makefile src/stubs/Makefile xfont.pc"
19556
19557cat >confcache <<\_ACEOF
19558# This file is a shell script that caches the results of configure
19559# tests run on this system so they can be shared between configure
19560# scripts and configure runs, see configure's option --config-cache.
19561# It is not useful on other systems.  If it contains results you don't
19562# want to keep, you may remove or edit it.
19563#
19564# config.status only pays attention to the cache file if you give it
19565# the --recheck option to rerun configure.
19566#
19567# `ac_cv_env_foo' variables (set or unset) will be overridden when
19568# loading this file, other *unset* `ac_cv_foo' will be assigned the
19569# following values.
19570
19571_ACEOF
19572
19573# The following way of writing the cache mishandles newlines in values,
19574# but we know of no workaround that is simple, portable, and efficient.
19575# So, we kill variables containing newlines.
19576# Ultrix sh set writes to stderr and can't be redirected directly,
19577# and sets the high bit in the cache file unless we assign to the vars.
19578(
19579  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19580    eval ac_val=\$$ac_var
19581    case $ac_val in #(
19582    *${as_nl}*)
19583      case $ac_var in #(
19584      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19585$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19586      esac
19587      case $ac_var in #(
19588      _ | IFS | as_nl) ;; #(
19589      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19590      *) { eval $ac_var=; unset $ac_var;} ;;
19591      esac ;;
19592    esac
19593  done
19594
19595  (set) 2>&1 |
19596    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19597    *${as_nl}ac_space=\ *)
19598      # `set' does not quote correctly, so add quotes: double-quote
19599      # substitution turns \\\\ into \\, and sed turns \\ into \.
19600      sed -n \
19601	"s/'/'\\\\''/g;
19602	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19603      ;; #(
19604    *)
19605      # `set' quotes correctly as required by POSIX, so do not add quotes.
19606      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19607      ;;
19608    esac |
19609    sort
19610) |
19611  sed '
19612     /^ac_cv_env_/b end
19613     t clear
19614     :clear
19615     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19616     t end
19617     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19618     :end' >>confcache
19619if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19620  if test -w "$cache_file"; then
19621    if test "x$cache_file" != "x/dev/null"; then
19622      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19623$as_echo "$as_me: updating cache $cache_file" >&6;}
19624      if test ! -f "$cache_file" || test -h "$cache_file"; then
19625	cat confcache >"$cache_file"
19626      else
19627        case $cache_file in #(
19628        */* | ?:*)
19629	  mv -f confcache "$cache_file"$$ &&
19630	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19631        *)
19632	  mv -f confcache "$cache_file" ;;
19633	esac
19634      fi
19635    fi
19636  else
19637    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19638$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19639  fi
19640fi
19641rm -f confcache
19642
19643test "x$prefix" = xNONE && prefix=$ac_default_prefix
19644# Let make expand exec_prefix.
19645test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19646
19647DEFS=-DHAVE_CONFIG_H
19648
19649ac_libobjs=
19650ac_ltlibobjs=
19651U=
19652for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19653  # 1. Remove the extension, and $U if already installed.
19654  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19655  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19656  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19657  #    will be set to the directory where LIBOBJS objects are built.
19658  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19659  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19660done
19661LIBOBJS=$ac_libobjs
19662
19663LTLIBOBJS=$ac_ltlibobjs
19664
19665
19666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19667$as_echo_n "checking that generated files are newer than configure... " >&6; }
19668   if test -n "$am_sleep_pid"; then
19669     # Hide warnings about reused PIDs.
19670     wait $am_sleep_pid 2>/dev/null
19671   fi
19672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19673$as_echo "done" >&6; }
19674 if test -n "$EXEEXT"; then
19675  am__EXEEXT_TRUE=
19676  am__EXEEXT_FALSE='#'
19677else
19678  am__EXEEXT_TRUE='#'
19679  am__EXEEXT_FALSE=
19680fi
19681
19682if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19683  as_fn_error $? "conditional \"AMDEP\" was never defined.
19684Usually this means the macro was only invoked conditionally." "$LINENO" 5
19685fi
19686if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19687  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19688Usually this means the macro was only invoked conditionally." "$LINENO" 5
19689fi
19690if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
19691  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
19692Usually this means the macro was only invoked conditionally." "$LINENO" 5
19693fi
19694if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
19695  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
19696Usually this means the macro was only invoked conditionally." "$LINENO" 5
19697fi
19698if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
19699  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
19700Usually this means the macro was only invoked conditionally." "$LINENO" 5
19701fi
19702if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
19703  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
19704Usually this means the macro was only invoked conditionally." "$LINENO" 5
19705fi
19706if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
19707  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
19708Usually this means the macro was only invoked conditionally." "$LINENO" 5
19709fi
19710if test -z "${XFONT_FREETYPE_TRUE}" && test -z "${XFONT_FREETYPE_FALSE}"; then
19711  as_fn_error $? "conditional \"XFONT_FREETYPE\" was never defined.
19712Usually this means the macro was only invoked conditionally." "$LINENO" 5
19713fi
19714if test -z "${X_BZIP2_FONT_COMPRESSION_TRUE}" && test -z "${X_BZIP2_FONT_COMPRESSION_FALSE}"; then
19715  as_fn_error $? "conditional \"X_BZIP2_FONT_COMPRESSION\" was never defined.
19716Usually this means the macro was only invoked conditionally." "$LINENO" 5
19717fi
19718if test -z "${XFONT_BUILTINS_TRUE}" && test -z "${XFONT_BUILTINS_FALSE}"; then
19719  as_fn_error $? "conditional \"XFONT_BUILTINS\" was never defined.
19720Usually this means the macro was only invoked conditionally." "$LINENO" 5
19721fi
19722if test -z "${XFONT_PCFFORMAT_TRUE}" && test -z "${XFONT_PCFFORMAT_FALSE}"; then
19723  as_fn_error $? "conditional \"XFONT_PCFFORMAT\" was never defined.
19724Usually this means the macro was only invoked conditionally." "$LINENO" 5
19725fi
19726if test -z "${XFONT_BDFFORMAT_TRUE}" && test -z "${XFONT_BDFFORMAT_FALSE}"; then
19727  as_fn_error $? "conditional \"XFONT_BDFFORMAT\" was never defined.
19728Usually this means the macro was only invoked conditionally." "$LINENO" 5
19729fi
19730if test -z "${XFONT_SNFFORMAT_TRUE}" && test -z "${XFONT_SNFFORMAT_FALSE}"; then
19731  as_fn_error $? "conditional \"XFONT_SNFFORMAT\" was never defined.
19732Usually this means the macro was only invoked conditionally." "$LINENO" 5
19733fi
19734if test -z "${XFONT_BITMAP_TRUE}" && test -z "${XFONT_BITMAP_FALSE}"; then
19735  as_fn_error $? "conditional \"XFONT_BITMAP\" was never defined.
19736Usually this means the macro was only invoked conditionally." "$LINENO" 5
19737fi
19738if test -z "${XFONT_FONTFILE_TRUE}" && test -z "${XFONT_FONTFILE_FALSE}"; then
19739  as_fn_error $? "conditional \"XFONT_FONTFILE\" was never defined.
19740Usually this means the macro was only invoked conditionally." "$LINENO" 5
19741fi
19742if test -z "${XFONT_FC_TRUE}" && test -z "${XFONT_FC_FALSE}"; then
19743  as_fn_error $? "conditional \"XFONT_FC\" was never defined.
19744Usually this means the macro was only invoked conditionally." "$LINENO" 5
19745fi
19746
19747: "${CONFIG_STATUS=./config.status}"
19748ac_write_fail=0
19749ac_clean_files_save=$ac_clean_files
19750ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19751{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19752$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19753as_write_fail=0
19754cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19755#! $SHELL
19756# Generated by $as_me.
19757# Run this file to recreate the current configuration.
19758# Compiler output produced by configure, useful for debugging
19759# configure, is in config.log if it exists.
19760
19761debug=false
19762ac_cs_recheck=false
19763ac_cs_silent=false
19764
19765SHELL=\${CONFIG_SHELL-$SHELL}
19766export SHELL
19767_ASEOF
19768cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19769## -------------------- ##
19770## M4sh Initialization. ##
19771## -------------------- ##
19772
19773# Be more Bourne compatible
19774DUALCASE=1; export DUALCASE # for MKS sh
19775if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19776  emulate sh
19777  NULLCMD=:
19778  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19779  # is contrary to our usage.  Disable this feature.
19780  alias -g '${1+"$@"}'='"$@"'
19781  setopt NO_GLOB_SUBST
19782else
19783  case `(set -o) 2>/dev/null` in #(
19784  *posix*) :
19785    set -o posix ;; #(
19786  *) :
19787     ;;
19788esac
19789fi
19790
19791
19792as_nl='
19793'
19794export as_nl
19795# Printing a long string crashes Solaris 7 /usr/bin/printf.
19796as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19797as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19798as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19799# Prefer a ksh shell builtin over an external printf program on Solaris,
19800# but without wasting forks for bash or zsh.
19801if test -z "$BASH_VERSION$ZSH_VERSION" \
19802    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19803  as_echo='print -r --'
19804  as_echo_n='print -rn --'
19805elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19806  as_echo='printf %s\n'
19807  as_echo_n='printf %s'
19808else
19809  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19810    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19811    as_echo_n='/usr/ucb/echo -n'
19812  else
19813    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19814    as_echo_n_body='eval
19815      arg=$1;
19816      case $arg in #(
19817      *"$as_nl"*)
19818	expr "X$arg" : "X\\(.*\\)$as_nl";
19819	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19820      esac;
19821      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19822    '
19823    export as_echo_n_body
19824    as_echo_n='sh -c $as_echo_n_body as_echo'
19825  fi
19826  export as_echo_body
19827  as_echo='sh -c $as_echo_body as_echo'
19828fi
19829
19830# The user is always right.
19831if test "${PATH_SEPARATOR+set}" != set; then
19832  PATH_SEPARATOR=:
19833  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19834    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19835      PATH_SEPARATOR=';'
19836  }
19837fi
19838
19839
19840# IFS
19841# We need space, tab and new line, in precisely that order.  Quoting is
19842# there to prevent editors from complaining about space-tab.
19843# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19844# splitting by setting IFS to empty value.)
19845IFS=" ""	$as_nl"
19846
19847# Find who we are.  Look in the path if we contain no directory separator.
19848as_myself=
19849case $0 in #((
19850  *[\\/]* ) as_myself=$0 ;;
19851  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19852for as_dir in $PATH
19853do
19854  IFS=$as_save_IFS
19855  test -z "$as_dir" && as_dir=.
19856    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19857  done
19858IFS=$as_save_IFS
19859
19860     ;;
19861esac
19862# We did not find ourselves, most probably we were run as `sh COMMAND'
19863# in which case we are not to be found in the path.
19864if test "x$as_myself" = x; then
19865  as_myself=$0
19866fi
19867if test ! -f "$as_myself"; then
19868  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19869  exit 1
19870fi
19871
19872# Unset variables that we do not need and which cause bugs (e.g. in
19873# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19874# suppresses any "Segmentation fault" message there.  '((' could
19875# trigger a bug in pdksh 5.2.14.
19876for as_var in BASH_ENV ENV MAIL MAILPATH
19877do eval test x\${$as_var+set} = xset \
19878  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19879done
19880PS1='$ '
19881PS2='> '
19882PS4='+ '
19883
19884# NLS nuisances.
19885LC_ALL=C
19886export LC_ALL
19887LANGUAGE=C
19888export LANGUAGE
19889
19890# CDPATH.
19891(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19892
19893
19894# as_fn_error STATUS ERROR [LINENO LOG_FD]
19895# ----------------------------------------
19896# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19897# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19898# script with STATUS, using 1 if that was 0.
19899as_fn_error ()
19900{
19901  as_status=$1; test $as_status -eq 0 && as_status=1
19902  if test "$4"; then
19903    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19904    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19905  fi
19906  $as_echo "$as_me: error: $2" >&2
19907  as_fn_exit $as_status
19908} # as_fn_error
19909
19910
19911# as_fn_set_status STATUS
19912# -----------------------
19913# Set $? to STATUS, without forking.
19914as_fn_set_status ()
19915{
19916  return $1
19917} # as_fn_set_status
19918
19919# as_fn_exit STATUS
19920# -----------------
19921# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19922as_fn_exit ()
19923{
19924  set +e
19925  as_fn_set_status $1
19926  exit $1
19927} # as_fn_exit
19928
19929# as_fn_unset VAR
19930# ---------------
19931# Portably unset VAR.
19932as_fn_unset ()
19933{
19934  { eval $1=; unset $1;}
19935}
19936as_unset=as_fn_unset
19937# as_fn_append VAR VALUE
19938# ----------------------
19939# Append the text in VALUE to the end of the definition contained in VAR. Take
19940# advantage of any shell optimizations that allow amortized linear growth over
19941# repeated appends, instead of the typical quadratic growth present in naive
19942# implementations.
19943if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19944  eval 'as_fn_append ()
19945  {
19946    eval $1+=\$2
19947  }'
19948else
19949  as_fn_append ()
19950  {
19951    eval $1=\$$1\$2
19952  }
19953fi # as_fn_append
19954
19955# as_fn_arith ARG...
19956# ------------------
19957# Perform arithmetic evaluation on the ARGs, and store the result in the
19958# global $as_val. Take advantage of shells that can avoid forks. The arguments
19959# must be portable across $(()) and expr.
19960if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19961  eval 'as_fn_arith ()
19962  {
19963    as_val=$(( $* ))
19964  }'
19965else
19966  as_fn_arith ()
19967  {
19968    as_val=`expr "$@" || test $? -eq 1`
19969  }
19970fi # as_fn_arith
19971
19972
19973if expr a : '\(a\)' >/dev/null 2>&1 &&
19974   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19975  as_expr=expr
19976else
19977  as_expr=false
19978fi
19979
19980if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19981  as_basename=basename
19982else
19983  as_basename=false
19984fi
19985
19986if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19987  as_dirname=dirname
19988else
19989  as_dirname=false
19990fi
19991
19992as_me=`$as_basename -- "$0" ||
19993$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19994	 X"$0" : 'X\(//\)$' \| \
19995	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19996$as_echo X/"$0" |
19997    sed '/^.*\/\([^/][^/]*\)\/*$/{
19998	    s//\1/
19999	    q
20000	  }
20001	  /^X\/\(\/\/\)$/{
20002	    s//\1/
20003	    q
20004	  }
20005	  /^X\/\(\/\).*/{
20006	    s//\1/
20007	    q
20008	  }
20009	  s/.*/./; q'`
20010
20011# Avoid depending upon Character Ranges.
20012as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20013as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20014as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20015as_cr_digits='0123456789'
20016as_cr_alnum=$as_cr_Letters$as_cr_digits
20017
20018ECHO_C= ECHO_N= ECHO_T=
20019case `echo -n x` in #(((((
20020-n*)
20021  case `echo 'xy\c'` in
20022  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20023  xy)  ECHO_C='\c';;
20024  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20025       ECHO_T='	';;
20026  esac;;
20027*)
20028  ECHO_N='-n';;
20029esac
20030
20031rm -f conf$$ conf$$.exe conf$$.file
20032if test -d conf$$.dir; then
20033  rm -f conf$$.dir/conf$$.file
20034else
20035  rm -f conf$$.dir
20036  mkdir conf$$.dir 2>/dev/null
20037fi
20038if (echo >conf$$.file) 2>/dev/null; then
20039  if ln -s conf$$.file conf$$ 2>/dev/null; then
20040    as_ln_s='ln -s'
20041    # ... but there are two gotchas:
20042    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20043    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20044    # In both cases, we have to default to `cp -p'.
20045    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20046      as_ln_s='cp -p'
20047  elif ln conf$$.file conf$$ 2>/dev/null; then
20048    as_ln_s=ln
20049  else
20050    as_ln_s='cp -p'
20051  fi
20052else
20053  as_ln_s='cp -p'
20054fi
20055rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20056rmdir conf$$.dir 2>/dev/null
20057
20058
20059# as_fn_mkdir_p
20060# -------------
20061# Create "$as_dir" as a directory, including parents if necessary.
20062as_fn_mkdir_p ()
20063{
20064
20065  case $as_dir in #(
20066  -*) as_dir=./$as_dir;;
20067  esac
20068  test -d "$as_dir" || eval $as_mkdir_p || {
20069    as_dirs=
20070    while :; do
20071      case $as_dir in #(
20072      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20073      *) as_qdir=$as_dir;;
20074      esac
20075      as_dirs="'$as_qdir' $as_dirs"
20076      as_dir=`$as_dirname -- "$as_dir" ||
20077$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20078	 X"$as_dir" : 'X\(//\)[^/]' \| \
20079	 X"$as_dir" : 'X\(//\)$' \| \
20080	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20081$as_echo X"$as_dir" |
20082    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20083	    s//\1/
20084	    q
20085	  }
20086	  /^X\(\/\/\)[^/].*/{
20087	    s//\1/
20088	    q
20089	  }
20090	  /^X\(\/\/\)$/{
20091	    s//\1/
20092	    q
20093	  }
20094	  /^X\(\/\).*/{
20095	    s//\1/
20096	    q
20097	  }
20098	  s/.*/./; q'`
20099      test -d "$as_dir" && break
20100    done
20101    test -z "$as_dirs" || eval "mkdir $as_dirs"
20102  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20103
20104
20105} # as_fn_mkdir_p
20106if mkdir -p . 2>/dev/null; then
20107  as_mkdir_p='mkdir -p "$as_dir"'
20108else
20109  test -d ./-p && rmdir ./-p
20110  as_mkdir_p=false
20111fi
20112
20113if test -x / >/dev/null 2>&1; then
20114  as_test_x='test -x'
20115else
20116  if ls -dL / >/dev/null 2>&1; then
20117    as_ls_L_option=L
20118  else
20119    as_ls_L_option=
20120  fi
20121  as_test_x='
20122    eval sh -c '\''
20123      if test -d "$1"; then
20124	test -d "$1/.";
20125      else
20126	case $1 in #(
20127	-*)set "./$1";;
20128	esac;
20129	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20130	???[sx]*):;;*)false;;esac;fi
20131    '\'' sh
20132  '
20133fi
20134as_executable_p=$as_test_x
20135
20136# Sed expression to map a string onto a valid CPP name.
20137as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20138
20139# Sed expression to map a string onto a valid variable name.
20140as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20141
20142
20143exec 6>&1
20144## ----------------------------------- ##
20145## Main body of $CONFIG_STATUS script. ##
20146## ----------------------------------- ##
20147_ASEOF
20148test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20149
20150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20151# Save the log message, to keep $0 and so on meaningful, and to
20152# report actual input values of CONFIG_FILES etc. instead of their
20153# values after options handling.
20154ac_log="
20155This file was extended by libXfont $as_me 1.4.8, which was
20156generated by GNU Autoconf 2.68.  Invocation command line was
20157
20158  CONFIG_FILES    = $CONFIG_FILES
20159  CONFIG_HEADERS  = $CONFIG_HEADERS
20160  CONFIG_LINKS    = $CONFIG_LINKS
20161  CONFIG_COMMANDS = $CONFIG_COMMANDS
20162  $ $0 $@
20163
20164on `(hostname || uname -n) 2>/dev/null | sed 1q`
20165"
20166
20167_ACEOF
20168
20169case $ac_config_files in *"
20170"*) set x $ac_config_files; shift; ac_config_files=$*;;
20171esac
20172
20173case $ac_config_headers in *"
20174"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20175esac
20176
20177
20178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20179# Files that config.status was made for.
20180config_files="$ac_config_files"
20181config_headers="$ac_config_headers"
20182config_commands="$ac_config_commands"
20183
20184_ACEOF
20185
20186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20187ac_cs_usage="\
20188\`$as_me' instantiates files and other configuration actions
20189from templates according to the current configuration.  Unless the files
20190and actions are specified as TAGs, all are instantiated by default.
20191
20192Usage: $0 [OPTION]... [TAG]...
20193
20194  -h, --help       print this help, then exit
20195  -V, --version    print version number and configuration settings, then exit
20196      --config     print configuration, then exit
20197  -q, --quiet, --silent
20198                   do not print progress messages
20199  -d, --debug      don't remove temporary files
20200      --recheck    update $as_me by reconfiguring in the same conditions
20201      --file=FILE[:TEMPLATE]
20202                   instantiate the configuration file FILE
20203      --header=FILE[:TEMPLATE]
20204                   instantiate the configuration header FILE
20205
20206Configuration files:
20207$config_files
20208
20209Configuration headers:
20210$config_headers
20211
20212Configuration commands:
20213$config_commands
20214
20215Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
20216
20217_ACEOF
20218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20219ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20220ac_cs_version="\\
20221libXfont config.status 1.4.8
20222configured by $0, generated by GNU Autoconf 2.68,
20223  with options \\"\$ac_cs_config\\"
20224
20225Copyright (C) 2010 Free Software Foundation, Inc.
20226This config.status script is free software; the Free Software Foundation
20227gives unlimited permission to copy, distribute and modify it."
20228
20229ac_pwd='$ac_pwd'
20230srcdir='$srcdir'
20231INSTALL='$INSTALL'
20232MKDIR_P='$MKDIR_P'
20233AWK='$AWK'
20234test -n "\$AWK" || AWK=awk
20235_ACEOF
20236
20237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20238# The default lists apply if the user does not specify any file.
20239ac_need_defaults=:
20240while test $# != 0
20241do
20242  case $1 in
20243  --*=?*)
20244    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20245    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20246    ac_shift=:
20247    ;;
20248  --*=)
20249    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20250    ac_optarg=
20251    ac_shift=:
20252    ;;
20253  *)
20254    ac_option=$1
20255    ac_optarg=$2
20256    ac_shift=shift
20257    ;;
20258  esac
20259
20260  case $ac_option in
20261  # Handling of the options.
20262  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20263    ac_cs_recheck=: ;;
20264  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20265    $as_echo "$ac_cs_version"; exit ;;
20266  --config | --confi | --conf | --con | --co | --c )
20267    $as_echo "$ac_cs_config"; exit ;;
20268  --debug | --debu | --deb | --de | --d | -d )
20269    debug=: ;;
20270  --file | --fil | --fi | --f )
20271    $ac_shift
20272    case $ac_optarg in
20273    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20274    '') as_fn_error $? "missing file argument" ;;
20275    esac
20276    as_fn_append CONFIG_FILES " '$ac_optarg'"
20277    ac_need_defaults=false;;
20278  --header | --heade | --head | --hea )
20279    $ac_shift
20280    case $ac_optarg in
20281    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20282    esac
20283    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20284    ac_need_defaults=false;;
20285  --he | --h)
20286    # Conflict between --help and --header
20287    as_fn_error $? "ambiguous option: \`$1'
20288Try \`$0 --help' for more information.";;
20289  --help | --hel | -h )
20290    $as_echo "$ac_cs_usage"; exit ;;
20291  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20292  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20293    ac_cs_silent=: ;;
20294
20295  # This is an error.
20296  -*) as_fn_error $? "unrecognized option: \`$1'
20297Try \`$0 --help' for more information." ;;
20298
20299  *) as_fn_append ac_config_targets " $1"
20300     ac_need_defaults=false ;;
20301
20302  esac
20303  shift
20304done
20305
20306ac_configure_extra_args=
20307
20308if $ac_cs_silent; then
20309  exec 6>/dev/null
20310  ac_configure_extra_args="$ac_configure_extra_args --silent"
20311fi
20312
20313_ACEOF
20314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20315if \$ac_cs_recheck; then
20316  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20317  shift
20318  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20319  CONFIG_SHELL='$SHELL'
20320  export CONFIG_SHELL
20321  exec "\$@"
20322fi
20323
20324_ACEOF
20325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20326exec 5>>config.log
20327{
20328  echo
20329  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20330## Running $as_me. ##
20331_ASBOX
20332  $as_echo "$ac_log"
20333} >&5
20334
20335_ACEOF
20336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20337#
20338# INIT-COMMANDS
20339#
20340AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20341
20342
20343# The HP-UX ksh and POSIX shell print the target directory to stdout
20344# if CDPATH is set.
20345(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20346
20347sed_quote_subst='$sed_quote_subst'
20348double_quote_subst='$double_quote_subst'
20349delay_variable_subst='$delay_variable_subst'
20350macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20351macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20352enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20353enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20354pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20355enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20356SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20357ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20358PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20359host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20360host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20361host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20362build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20363build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20364build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20365SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20366Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20367GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20368EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20369FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20370LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20371NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20372LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20373max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20374ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20375exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20376lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20377lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20378lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20379lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20380lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20381reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20382reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20383OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20384deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20385file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20386file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20387want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20388DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20389sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20390AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20391AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20392archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20393STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20394RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20395old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20396old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20397old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20398lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20399CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20400CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20401compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20402GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20403lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20404lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20405lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20406lt_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"`'
20407nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20408lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20409objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20410MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20411lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20412lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20413lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20414lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20415lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20416need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20417MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20418DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20419NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20420LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20421OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20422OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20423libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20424shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20425extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20426archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20427enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20428export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20429whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20430compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20431old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20432old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20433archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20434archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20435module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20436module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20437with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20438allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20439no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20440hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20441hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20442hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20443hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20444hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20445hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20446hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20447inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20448link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20449always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20450export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20451exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20452include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20453prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20454postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20455file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20456variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20457need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20458need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20459version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20460runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20461shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20462shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20463libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20464library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20465soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20466install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20467postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20468postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20469finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20470finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20471hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20472sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20473sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20474hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20475enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20476enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20477enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20478old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20479striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20480
20481LTCC='$LTCC'
20482LTCFLAGS='$LTCFLAGS'
20483compiler='$compiler_DEFAULT'
20484
20485# A function that is used when there is no print builtin or printf.
20486func_fallback_echo ()
20487{
20488  eval 'cat <<_LTECHO_EOF
20489\$1
20490_LTECHO_EOF'
20491}
20492
20493# Quote evaled strings.
20494for var in SHELL \
20495ECHO \
20496PATH_SEPARATOR \
20497SED \
20498GREP \
20499EGREP \
20500FGREP \
20501LD \
20502NM \
20503LN_S \
20504lt_SP2NL \
20505lt_NL2SP \
20506reload_flag \
20507OBJDUMP \
20508deplibs_check_method \
20509file_magic_cmd \
20510file_magic_glob \
20511want_nocaseglob \
20512DLLTOOL \
20513sharedlib_from_linklib_cmd \
20514AR \
20515AR_FLAGS \
20516archiver_list_spec \
20517STRIP \
20518RANLIB \
20519CC \
20520CFLAGS \
20521compiler \
20522lt_cv_sys_global_symbol_pipe \
20523lt_cv_sys_global_symbol_to_cdecl \
20524lt_cv_sys_global_symbol_to_c_name_address \
20525lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20526nm_file_list_spec \
20527lt_prog_compiler_no_builtin_flag \
20528lt_prog_compiler_pic \
20529lt_prog_compiler_wl \
20530lt_prog_compiler_static \
20531lt_cv_prog_compiler_c_o \
20532need_locks \
20533MANIFEST_TOOL \
20534DSYMUTIL \
20535NMEDIT \
20536LIPO \
20537OTOOL \
20538OTOOL64 \
20539shrext_cmds \
20540export_dynamic_flag_spec \
20541whole_archive_flag_spec \
20542compiler_needs_object \
20543with_gnu_ld \
20544allow_undefined_flag \
20545no_undefined_flag \
20546hardcode_libdir_flag_spec \
20547hardcode_libdir_separator \
20548exclude_expsyms \
20549include_expsyms \
20550file_list_spec \
20551variables_saved_for_relink \
20552libname_spec \
20553library_names_spec \
20554soname_spec \
20555install_override_mode \
20556finish_eval \
20557old_striplib \
20558striplib; do
20559    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20560    *[\\\\\\\`\\"\\\$]*)
20561      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20562      ;;
20563    *)
20564      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20565      ;;
20566    esac
20567done
20568
20569# Double-quote double-evaled strings.
20570for var in reload_cmds \
20571old_postinstall_cmds \
20572old_postuninstall_cmds \
20573old_archive_cmds \
20574extract_expsyms_cmds \
20575old_archive_from_new_cmds \
20576old_archive_from_expsyms_cmds \
20577archive_cmds \
20578archive_expsym_cmds \
20579module_cmds \
20580module_expsym_cmds \
20581export_symbols_cmds \
20582prelink_cmds \
20583postlink_cmds \
20584postinstall_cmds \
20585postuninstall_cmds \
20586finish_cmds \
20587sys_lib_search_path_spec \
20588sys_lib_dlsearch_path_spec; do
20589    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20590    *[\\\\\\\`\\"\\\$]*)
20591      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20592      ;;
20593    *)
20594      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20595      ;;
20596    esac
20597done
20598
20599ac_aux_dir='$ac_aux_dir'
20600xsi_shell='$xsi_shell'
20601lt_shell_append='$lt_shell_append'
20602
20603# See if we are running on zsh, and set the options which allow our
20604# commands through without removal of \ escapes INIT.
20605if test -n "\${ZSH_VERSION+set}" ; then
20606   setopt NO_GLOB_SUBST
20607fi
20608
20609
20610    PACKAGE='$PACKAGE'
20611    VERSION='$VERSION'
20612    TIMESTAMP='$TIMESTAMP'
20613    RM='$RM'
20614    ofile='$ofile'
20615
20616
20617
20618
20619_ACEOF
20620
20621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20622
20623# Handling of arguments.
20624for ac_config_target in $ac_config_targets
20625do
20626  case $ac_config_target in
20627    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20628    "include/X11/fonts/fontconf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/fonts/fontconf.h" ;;
20629    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20630    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20631    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20632    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20633    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20634    "src/fontfile/Makefile") CONFIG_FILES="$CONFIG_FILES src/fontfile/Makefile" ;;
20635    "src/FreeType/Makefile") CONFIG_FILES="$CONFIG_FILES src/FreeType/Makefile" ;;
20636    "src/builtins/Makefile") CONFIG_FILES="$CONFIG_FILES src/builtins/Makefile" ;;
20637    "src/bitmap/Makefile") CONFIG_FILES="$CONFIG_FILES src/bitmap/Makefile" ;;
20638    "src/fc/Makefile") CONFIG_FILES="$CONFIG_FILES src/fc/Makefile" ;;
20639    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
20640    "src/stubs/Makefile") CONFIG_FILES="$CONFIG_FILES src/stubs/Makefile" ;;
20641    "xfont.pc") CONFIG_FILES="$CONFIG_FILES xfont.pc" ;;
20642
20643  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20644  esac
20645done
20646
20647
20648# If the user did not use the arguments to specify the items to instantiate,
20649# then the envvar interface is used.  Set only those that are not.
20650# We use the long form for the default assignment because of an extremely
20651# bizarre bug on SunOS 4.1.3.
20652if $ac_need_defaults; then
20653  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20654  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20655  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20656fi
20657
20658# Have a temporary directory for convenience.  Make it in the build tree
20659# simply because there is no reason against having it here, and in addition,
20660# creating and moving files from /tmp can sometimes cause problems.
20661# Hook for its removal unless debugging.
20662# Note that there is a small window in which the directory will not be cleaned:
20663# after its creation but before its name has been assigned to `$tmp'.
20664$debug ||
20665{
20666  tmp= ac_tmp=
20667  trap 'exit_status=$?
20668  : "${ac_tmp:=$tmp}"
20669  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20670' 0
20671  trap 'as_fn_exit 1' 1 2 13 15
20672}
20673# Create a (secure) tmp directory for tmp files.
20674
20675{
20676  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20677  test -d "$tmp"
20678}  ||
20679{
20680  tmp=./conf$$-$RANDOM
20681  (umask 077 && mkdir "$tmp")
20682} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20683ac_tmp=$tmp
20684
20685# Set up the scripts for CONFIG_FILES section.
20686# No need to generate them if there are no CONFIG_FILES.
20687# This happens for instance with `./config.status config.h'.
20688if test -n "$CONFIG_FILES"; then
20689
20690
20691ac_cr=`echo X | tr X '\015'`
20692# On cygwin, bash can eat \r inside `` if the user requested igncr.
20693# But we know of no other shell where ac_cr would be empty at this
20694# point, so we can use a bashism as a fallback.
20695if test "x$ac_cr" = x; then
20696  eval ac_cr=\$\'\\r\'
20697fi
20698ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20699if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20700  ac_cs_awk_cr='\\r'
20701else
20702  ac_cs_awk_cr=$ac_cr
20703fi
20704
20705echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20706_ACEOF
20707
20708
20709{
20710  echo "cat >conf$$subs.awk <<_ACEOF" &&
20711  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20712  echo "_ACEOF"
20713} >conf$$subs.sh ||
20714  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20715ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20716ac_delim='%!_!# '
20717for ac_last_try in false false false false false :; do
20718  . ./conf$$subs.sh ||
20719    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20720
20721  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20722  if test $ac_delim_n = $ac_delim_num; then
20723    break
20724  elif $ac_last_try; then
20725    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20726  else
20727    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20728  fi
20729done
20730rm -f conf$$subs.sh
20731
20732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20733cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20734_ACEOF
20735sed -n '
20736h
20737s/^/S["/; s/!.*/"]=/
20738p
20739g
20740s/^[^!]*!//
20741:repl
20742t repl
20743s/'"$ac_delim"'$//
20744t delim
20745:nl
20746h
20747s/\(.\{148\}\)..*/\1/
20748t more1
20749s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20750p
20751n
20752b repl
20753:more1
20754s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20755p
20756g
20757s/.\{148\}//
20758t nl
20759:delim
20760h
20761s/\(.\{148\}\)..*/\1/
20762t more2
20763s/["\\]/\\&/g; s/^/"/; s/$/"/
20764p
20765b
20766:more2
20767s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20768p
20769g
20770s/.\{148\}//
20771t delim
20772' <conf$$subs.awk | sed '
20773/^[^""]/{
20774  N
20775  s/\n//
20776}
20777' >>$CONFIG_STATUS || ac_write_fail=1
20778rm -f conf$$subs.awk
20779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20780_ACAWK
20781cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20782  for (key in S) S_is_set[key] = 1
20783  FS = ""
20784
20785}
20786{
20787  line = $ 0
20788  nfields = split(line, field, "@")
20789  substed = 0
20790  len = length(field[1])
20791  for (i = 2; i < nfields; i++) {
20792    key = field[i]
20793    keylen = length(key)
20794    if (S_is_set[key]) {
20795      value = S[key]
20796      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20797      len += length(value) + length(field[++i])
20798      substed = 1
20799    } else
20800      len += 1 + keylen
20801  }
20802
20803  print line
20804}
20805
20806_ACAWK
20807_ACEOF
20808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20809if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20810  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20811else
20812  cat
20813fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20814  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20815_ACEOF
20816
20817# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20818# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20819# trailing colons and then remove the whole line if VPATH becomes empty
20820# (actually we leave an empty line to preserve line numbers).
20821if test "x$srcdir" = x.; then
20822  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20823h
20824s///
20825s/^/:/
20826s/[	 ]*$/:/
20827s/:\$(srcdir):/:/g
20828s/:\${srcdir}:/:/g
20829s/:@srcdir@:/:/g
20830s/^:*//
20831s/:*$//
20832x
20833s/\(=[	 ]*\).*/\1/
20834G
20835s/\n//
20836s/^[^=]*=[	 ]*$//
20837}'
20838fi
20839
20840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20841fi # test -n "$CONFIG_FILES"
20842
20843# Set up the scripts for CONFIG_HEADERS section.
20844# No need to generate them if there are no CONFIG_HEADERS.
20845# This happens for instance with `./config.status Makefile'.
20846if test -n "$CONFIG_HEADERS"; then
20847cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20848BEGIN {
20849_ACEOF
20850
20851# Transform confdefs.h into an awk script `defines.awk', embedded as
20852# here-document in config.status, that substitutes the proper values into
20853# config.h.in to produce config.h.
20854
20855# Create a delimiter string that does not exist in confdefs.h, to ease
20856# handling of long lines.
20857ac_delim='%!_!# '
20858for ac_last_try in false false :; do
20859  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20860  if test -z "$ac_tt"; then
20861    break
20862  elif $ac_last_try; then
20863    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20864  else
20865    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20866  fi
20867done
20868
20869# For the awk script, D is an array of macro values keyed by name,
20870# likewise P contains macro parameters if any.  Preserve backslash
20871# newline sequences.
20872
20873ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20874sed -n '
20875s/.\{148\}/&'"$ac_delim"'/g
20876t rset
20877:rset
20878s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20879t def
20880d
20881:def
20882s/\\$//
20883t bsnl
20884s/["\\]/\\&/g
20885s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20886D["\1"]=" \3"/p
20887s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20888d
20889:bsnl
20890s/["\\]/\\&/g
20891s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20892D["\1"]=" \3\\\\\\n"\\/p
20893t cont
20894s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20895t cont
20896d
20897:cont
20898n
20899s/.\{148\}/&'"$ac_delim"'/g
20900t clear
20901:clear
20902s/\\$//
20903t bsnlc
20904s/["\\]/\\&/g; s/^/"/; s/$/"/p
20905d
20906:bsnlc
20907s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20908b cont
20909' <confdefs.h | sed '
20910s/'"$ac_delim"'/"\\\
20911"/g' >>$CONFIG_STATUS || ac_write_fail=1
20912
20913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20914  for (key in D) D_is_set[key] = 1
20915  FS = ""
20916}
20917/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20918  line = \$ 0
20919  split(line, arg, " ")
20920  if (arg[1] == "#") {
20921    defundef = arg[2]
20922    mac1 = arg[3]
20923  } else {
20924    defundef = substr(arg[1], 2)
20925    mac1 = arg[2]
20926  }
20927  split(mac1, mac2, "(") #)
20928  macro = mac2[1]
20929  prefix = substr(line, 1, index(line, defundef) - 1)
20930  if (D_is_set[macro]) {
20931    # Preserve the white space surrounding the "#".
20932    print prefix "define", macro P[macro] D[macro]
20933    next
20934  } else {
20935    # Replace #undef with comments.  This is necessary, for example,
20936    # in the case of _POSIX_SOURCE, which is predefined and required
20937    # on some systems where configure will not decide to define it.
20938    if (defundef == "undef") {
20939      print "/*", prefix defundef, macro, "*/"
20940      next
20941    }
20942  }
20943}
20944{ print }
20945_ACAWK
20946_ACEOF
20947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20948  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20949fi # test -n "$CONFIG_HEADERS"
20950
20951
20952eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20953shift
20954for ac_tag
20955do
20956  case $ac_tag in
20957  :[FHLC]) ac_mode=$ac_tag; continue;;
20958  esac
20959  case $ac_mode$ac_tag in
20960  :[FHL]*:*);;
20961  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20962  :[FH]-) ac_tag=-:-;;
20963  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20964  esac
20965  ac_save_IFS=$IFS
20966  IFS=:
20967  set x $ac_tag
20968  IFS=$ac_save_IFS
20969  shift
20970  ac_file=$1
20971  shift
20972
20973  case $ac_mode in
20974  :L) ac_source=$1;;
20975  :[FH])
20976    ac_file_inputs=
20977    for ac_f
20978    do
20979      case $ac_f in
20980      -) ac_f="$ac_tmp/stdin";;
20981      *) # Look for the file first in the build tree, then in the source tree
20982	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20983	 # because $ac_f cannot contain `:'.
20984	 test -f "$ac_f" ||
20985	   case $ac_f in
20986	   [\\/$]*) false;;
20987	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20988	   esac ||
20989	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20990      esac
20991      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20992      as_fn_append ac_file_inputs " '$ac_f'"
20993    done
20994
20995    # Let's still pretend it is `configure' which instantiates (i.e., don't
20996    # use $as_me), people would be surprised to read:
20997    #    /* config.h.  Generated by config.status.  */
20998    configure_input='Generated from '`
20999	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21000	`' by configure.'
21001    if test x"$ac_file" != x-; then
21002      configure_input="$ac_file.  $configure_input"
21003      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21004$as_echo "$as_me: creating $ac_file" >&6;}
21005    fi
21006    # Neutralize special characters interpreted by sed in replacement strings.
21007    case $configure_input in #(
21008    *\&* | *\|* | *\\* )
21009       ac_sed_conf_input=`$as_echo "$configure_input" |
21010       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21011    *) ac_sed_conf_input=$configure_input;;
21012    esac
21013
21014    case $ac_tag in
21015    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21016      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21017    esac
21018    ;;
21019  esac
21020
21021  ac_dir=`$as_dirname -- "$ac_file" ||
21022$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21023	 X"$ac_file" : 'X\(//\)[^/]' \| \
21024	 X"$ac_file" : 'X\(//\)$' \| \
21025	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21026$as_echo X"$ac_file" |
21027    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21028	    s//\1/
21029	    q
21030	  }
21031	  /^X\(\/\/\)[^/].*/{
21032	    s//\1/
21033	    q
21034	  }
21035	  /^X\(\/\/\)$/{
21036	    s//\1/
21037	    q
21038	  }
21039	  /^X\(\/\).*/{
21040	    s//\1/
21041	    q
21042	  }
21043	  s/.*/./; q'`
21044  as_dir="$ac_dir"; as_fn_mkdir_p
21045  ac_builddir=.
21046
21047case "$ac_dir" in
21048.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21049*)
21050  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21051  # A ".." for each directory in $ac_dir_suffix.
21052  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21053  case $ac_top_builddir_sub in
21054  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21055  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21056  esac ;;
21057esac
21058ac_abs_top_builddir=$ac_pwd
21059ac_abs_builddir=$ac_pwd$ac_dir_suffix
21060# for backward compatibility:
21061ac_top_builddir=$ac_top_build_prefix
21062
21063case $srcdir in
21064  .)  # We are building in place.
21065    ac_srcdir=.
21066    ac_top_srcdir=$ac_top_builddir_sub
21067    ac_abs_top_srcdir=$ac_pwd ;;
21068  [\\/]* | ?:[\\/]* )  # Absolute name.
21069    ac_srcdir=$srcdir$ac_dir_suffix;
21070    ac_top_srcdir=$srcdir
21071    ac_abs_top_srcdir=$srcdir ;;
21072  *) # Relative name.
21073    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21074    ac_top_srcdir=$ac_top_build_prefix$srcdir
21075    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21076esac
21077ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21078
21079
21080  case $ac_mode in
21081  :F)
21082  #
21083  # CONFIG_FILE
21084  #
21085
21086  case $INSTALL in
21087  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21088  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21089  esac
21090  ac_MKDIR_P=$MKDIR_P
21091  case $MKDIR_P in
21092  [\\/$]* | ?:[\\/]* ) ;;
21093  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21094  esac
21095_ACEOF
21096
21097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21098# If the template does not know about datarootdir, expand it.
21099# FIXME: This hack should be removed a few years after 2.60.
21100ac_datarootdir_hack=; ac_datarootdir_seen=
21101ac_sed_dataroot='
21102/datarootdir/ {
21103  p
21104  q
21105}
21106/@datadir@/p
21107/@docdir@/p
21108/@infodir@/p
21109/@localedir@/p
21110/@mandir@/p'
21111case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21112*datarootdir*) ac_datarootdir_seen=yes;;
21113*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21114  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21115$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21116_ACEOF
21117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21118  ac_datarootdir_hack='
21119  s&@datadir@&$datadir&g
21120  s&@docdir@&$docdir&g
21121  s&@infodir@&$infodir&g
21122  s&@localedir@&$localedir&g
21123  s&@mandir@&$mandir&g
21124  s&\\\${datarootdir}&$datarootdir&g' ;;
21125esac
21126_ACEOF
21127
21128# Neutralize VPATH when `$srcdir' = `.'.
21129# Shell code in configure.ac might set extrasub.
21130# FIXME: do we really want to maintain this feature?
21131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21132ac_sed_extra="$ac_vpsub
21133$extrasub
21134_ACEOF
21135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21136:t
21137/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21138s|@configure_input@|$ac_sed_conf_input|;t t
21139s&@top_builddir@&$ac_top_builddir_sub&;t t
21140s&@top_build_prefix@&$ac_top_build_prefix&;t t
21141s&@srcdir@&$ac_srcdir&;t t
21142s&@abs_srcdir@&$ac_abs_srcdir&;t t
21143s&@top_srcdir@&$ac_top_srcdir&;t t
21144s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21145s&@builddir@&$ac_builddir&;t t
21146s&@abs_builddir@&$ac_abs_builddir&;t t
21147s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21148s&@INSTALL@&$ac_INSTALL&;t t
21149s&@MKDIR_P@&$ac_MKDIR_P&;t t
21150$ac_datarootdir_hack
21151"
21152eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21153  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21154
21155test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21156  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21157  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21158      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21159  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21160which seems to be undefined.  Please make sure it is defined" >&5
21161$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21162which seems to be undefined.  Please make sure it is defined" >&2;}
21163
21164  rm -f "$ac_tmp/stdin"
21165  case $ac_file in
21166  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21167  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21168  esac \
21169  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21170 ;;
21171  :H)
21172  #
21173  # CONFIG_HEADER
21174  #
21175  if test x"$ac_file" != x-; then
21176    {
21177      $as_echo "/* $configure_input  */" \
21178      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21179    } >"$ac_tmp/config.h" \
21180      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21181    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21182      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21183$as_echo "$as_me: $ac_file is unchanged" >&6;}
21184    else
21185      rm -f "$ac_file"
21186      mv "$ac_tmp/config.h" "$ac_file" \
21187	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21188    fi
21189  else
21190    $as_echo "/* $configure_input  */" \
21191      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21192      || as_fn_error $? "could not create -" "$LINENO" 5
21193  fi
21194# Compute "$ac_file"'s index in $config_headers.
21195_am_arg="$ac_file"
21196_am_stamp_count=1
21197for _am_header in $config_headers :; do
21198  case $_am_header in
21199    $_am_arg | $_am_arg:* )
21200      break ;;
21201    * )
21202      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21203  esac
21204done
21205echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21206$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21207	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21208	 X"$_am_arg" : 'X\(//\)$' \| \
21209	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21210$as_echo X"$_am_arg" |
21211    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21212	    s//\1/
21213	    q
21214	  }
21215	  /^X\(\/\/\)[^/].*/{
21216	    s//\1/
21217	    q
21218	  }
21219	  /^X\(\/\/\)$/{
21220	    s//\1/
21221	    q
21222	  }
21223	  /^X\(\/\).*/{
21224	    s//\1/
21225	    q
21226	  }
21227	  s/.*/./; q'`/stamp-h$_am_stamp_count
21228 ;;
21229
21230  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21231$as_echo "$as_me: executing $ac_file commands" >&6;}
21232 ;;
21233  esac
21234
21235
21236  case $ac_file$ac_mode in
21237    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21238  # Older Autoconf quotes --file arguments for eval, but not when files
21239  # are listed without --file.  Let's play safe and only enable the eval
21240  # if we detect the quoting.
21241  case $CONFIG_FILES in
21242  *\'*) eval set x "$CONFIG_FILES" ;;
21243  *)   set x $CONFIG_FILES ;;
21244  esac
21245  shift
21246  for mf
21247  do
21248    # Strip MF so we end up with the name of the file.
21249    mf=`echo "$mf" | sed -e 's/:.*$//'`
21250    # Check whether this is an Automake generated Makefile or not.
21251    # We used to match only the files named 'Makefile.in', but
21252    # some people rename them; so instead we look at the file content.
21253    # Grep'ing the first line is not enough: some people post-process
21254    # each Makefile.in and add a new line on top of each file to say so.
21255    # Grep'ing the whole file is not good either: AIX grep has a line
21256    # limit of 2048, but all sed's we know have understand at least 4000.
21257    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21258      dirpart=`$as_dirname -- "$mf" ||
21259$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21260	 X"$mf" : 'X\(//\)[^/]' \| \
21261	 X"$mf" : 'X\(//\)$' \| \
21262	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21263$as_echo X"$mf" |
21264    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21265	    s//\1/
21266	    q
21267	  }
21268	  /^X\(\/\/\)[^/].*/{
21269	    s//\1/
21270	    q
21271	  }
21272	  /^X\(\/\/\)$/{
21273	    s//\1/
21274	    q
21275	  }
21276	  /^X\(\/\).*/{
21277	    s//\1/
21278	    q
21279	  }
21280	  s/.*/./; q'`
21281    else
21282      continue
21283    fi
21284    # Extract the definition of DEPDIR, am__include, and am__quote
21285    # from the Makefile without running 'make'.
21286    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21287    test -z "$DEPDIR" && continue
21288    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21289    test -z "$am__include" && continue
21290    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21291    # Find all dependency output files, they are included files with
21292    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21293    # simplest approach to changing $(DEPDIR) to its actual value in the
21294    # expansion.
21295    for file in `sed -n "
21296      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21297	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21298      # Make sure the directory exists.
21299      test -f "$dirpart/$file" && continue
21300      fdir=`$as_dirname -- "$file" ||
21301$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21302	 X"$file" : 'X\(//\)[^/]' \| \
21303	 X"$file" : 'X\(//\)$' \| \
21304	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21305$as_echo X"$file" |
21306    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21307	    s//\1/
21308	    q
21309	  }
21310	  /^X\(\/\/\)[^/].*/{
21311	    s//\1/
21312	    q
21313	  }
21314	  /^X\(\/\/\)$/{
21315	    s//\1/
21316	    q
21317	  }
21318	  /^X\(\/\).*/{
21319	    s//\1/
21320	    q
21321	  }
21322	  s/.*/./; q'`
21323      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21324      # echo "creating $dirpart/$file"
21325      echo '# dummy' > "$dirpart/$file"
21326    done
21327  done
21328}
21329 ;;
21330    "libtool":C)
21331
21332    # See if we are running on zsh, and set the options which allow our
21333    # commands through without removal of \ escapes.
21334    if test -n "${ZSH_VERSION+set}" ; then
21335      setopt NO_GLOB_SUBST
21336    fi
21337
21338    cfgfile="${ofile}T"
21339    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21340    $RM "$cfgfile"
21341
21342    cat <<_LT_EOF >> "$cfgfile"
21343#! $SHELL
21344
21345# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21346# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21347# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21348# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21349#
21350#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21351#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21352#                 Foundation, Inc.
21353#   Written by Gordon Matzigkeit, 1996
21354#
21355#   This file is part of GNU Libtool.
21356#
21357# GNU Libtool is free software; you can redistribute it and/or
21358# modify it under the terms of the GNU General Public License as
21359# published by the Free Software Foundation; either version 2 of
21360# the License, or (at your option) any later version.
21361#
21362# As a special exception to the GNU General Public License,
21363# if you distribute this file as part of a program or library that
21364# is built using GNU Libtool, you may include this file under the
21365# same distribution terms that you use for the rest of that program.
21366#
21367# GNU Libtool is distributed in the hope that it will be useful,
21368# but WITHOUT ANY WARRANTY; without even the implied warranty of
21369# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21370# GNU General Public License for more details.
21371#
21372# You should have received a copy of the GNU General Public License
21373# along with GNU Libtool; see the file COPYING.  If not, a copy
21374# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21375# obtained by writing to the Free Software Foundation, Inc.,
21376# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21377
21378
21379# The names of the tagged configurations supported by this script.
21380available_tags=""
21381
21382# ### BEGIN LIBTOOL CONFIG
21383
21384# Which release of libtool.m4 was used?
21385macro_version=$macro_version
21386macro_revision=$macro_revision
21387
21388# Whether or not to build shared libraries.
21389build_libtool_libs=$enable_shared
21390
21391# Whether or not to build static libraries.
21392build_old_libs=$enable_static
21393
21394# What type of objects to build.
21395pic_mode=$pic_mode
21396
21397# Whether or not to optimize for fast installation.
21398fast_install=$enable_fast_install
21399
21400# Shell to use when invoking shell scripts.
21401SHELL=$lt_SHELL
21402
21403# An echo program that protects backslashes.
21404ECHO=$lt_ECHO
21405
21406# The PATH separator for the build system.
21407PATH_SEPARATOR=$lt_PATH_SEPARATOR
21408
21409# The host system.
21410host_alias=$host_alias
21411host=$host
21412host_os=$host_os
21413
21414# The build system.
21415build_alias=$build_alias
21416build=$build
21417build_os=$build_os
21418
21419# A sed program that does not truncate output.
21420SED=$lt_SED
21421
21422# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21423Xsed="\$SED -e 1s/^X//"
21424
21425# A grep program that handles long lines.
21426GREP=$lt_GREP
21427
21428# An ERE matcher.
21429EGREP=$lt_EGREP
21430
21431# A literal string matcher.
21432FGREP=$lt_FGREP
21433
21434# A BSD- or MS-compatible name lister.
21435NM=$lt_NM
21436
21437# Whether we need soft or hard links.
21438LN_S=$lt_LN_S
21439
21440# What is the maximum length of a command?
21441max_cmd_len=$max_cmd_len
21442
21443# Object file suffix (normally "o").
21444objext=$ac_objext
21445
21446# Executable file suffix (normally "").
21447exeext=$exeext
21448
21449# whether the shell understands "unset".
21450lt_unset=$lt_unset
21451
21452# turn spaces into newlines.
21453SP2NL=$lt_lt_SP2NL
21454
21455# turn newlines into spaces.
21456NL2SP=$lt_lt_NL2SP
21457
21458# convert \$build file names to \$host format.
21459to_host_file_cmd=$lt_cv_to_host_file_cmd
21460
21461# convert \$build files to toolchain format.
21462to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21463
21464# An object symbol dumper.
21465OBJDUMP=$lt_OBJDUMP
21466
21467# Method to check whether dependent libraries are shared objects.
21468deplibs_check_method=$lt_deplibs_check_method
21469
21470# Command to use when deplibs_check_method = "file_magic".
21471file_magic_cmd=$lt_file_magic_cmd
21472
21473# How to find potential files when deplibs_check_method = "file_magic".
21474file_magic_glob=$lt_file_magic_glob
21475
21476# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21477want_nocaseglob=$lt_want_nocaseglob
21478
21479# DLL creation program.
21480DLLTOOL=$lt_DLLTOOL
21481
21482# Command to associate shared and link libraries.
21483sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21484
21485# The archiver.
21486AR=$lt_AR
21487
21488# Flags to create an archive.
21489AR_FLAGS=$lt_AR_FLAGS
21490
21491# How to feed a file listing to the archiver.
21492archiver_list_spec=$lt_archiver_list_spec
21493
21494# A symbol stripping program.
21495STRIP=$lt_STRIP
21496
21497# Commands used to install an old-style archive.
21498RANLIB=$lt_RANLIB
21499old_postinstall_cmds=$lt_old_postinstall_cmds
21500old_postuninstall_cmds=$lt_old_postuninstall_cmds
21501
21502# Whether to use a lock for old archive extraction.
21503lock_old_archive_extraction=$lock_old_archive_extraction
21504
21505# A C compiler.
21506LTCC=$lt_CC
21507
21508# LTCC compiler flags.
21509LTCFLAGS=$lt_CFLAGS
21510
21511# Take the output of nm and produce a listing of raw symbols and C names.
21512global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21513
21514# Transform the output of nm in a proper C declaration.
21515global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21516
21517# Transform the output of nm in a C name address pair.
21518global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21519
21520# Transform the output of nm in a C name address pair when lib prefix is needed.
21521global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21522
21523# Specify filename containing input files for \$NM.
21524nm_file_list_spec=$lt_nm_file_list_spec
21525
21526# The root where to search for dependent libraries,and in which our libraries should be installed.
21527lt_sysroot=$lt_sysroot
21528
21529# The name of the directory that contains temporary libtool files.
21530objdir=$objdir
21531
21532# Used to examine libraries when file_magic_cmd begins with "file".
21533MAGIC_CMD=$MAGIC_CMD
21534
21535# Must we lock files when doing compilation?
21536need_locks=$lt_need_locks
21537
21538# Manifest tool.
21539MANIFEST_TOOL=$lt_MANIFEST_TOOL
21540
21541# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21542DSYMUTIL=$lt_DSYMUTIL
21543
21544# Tool to change global to local symbols on Mac OS X.
21545NMEDIT=$lt_NMEDIT
21546
21547# Tool to manipulate fat objects and archives on Mac OS X.
21548LIPO=$lt_LIPO
21549
21550# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21551OTOOL=$lt_OTOOL
21552
21553# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21554OTOOL64=$lt_OTOOL64
21555
21556# Old archive suffix (normally "a").
21557libext=$libext
21558
21559# Shared library suffix (normally ".so").
21560shrext_cmds=$lt_shrext_cmds
21561
21562# The commands to extract the exported symbol list from a shared archive.
21563extract_expsyms_cmds=$lt_extract_expsyms_cmds
21564
21565# Variables whose values should be saved in libtool wrapper scripts and
21566# restored at link time.
21567variables_saved_for_relink=$lt_variables_saved_for_relink
21568
21569# Do we need the "lib" prefix for modules?
21570need_lib_prefix=$need_lib_prefix
21571
21572# Do we need a version for libraries?
21573need_version=$need_version
21574
21575# Library versioning type.
21576version_type=$version_type
21577
21578# Shared library runtime path variable.
21579runpath_var=$runpath_var
21580
21581# Shared library path variable.
21582shlibpath_var=$shlibpath_var
21583
21584# Is shlibpath searched before the hard-coded library search path?
21585shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21586
21587# Format of library name prefix.
21588libname_spec=$lt_libname_spec
21589
21590# List of archive names.  First name is the real one, the rest are links.
21591# The last name is the one that the linker finds with -lNAME
21592library_names_spec=$lt_library_names_spec
21593
21594# The coded name of the library, if different from the real name.
21595soname_spec=$lt_soname_spec
21596
21597# Permission mode override for installation of shared libraries.
21598install_override_mode=$lt_install_override_mode
21599
21600# Command to use after installation of a shared archive.
21601postinstall_cmds=$lt_postinstall_cmds
21602
21603# Command to use after uninstallation of a shared archive.
21604postuninstall_cmds=$lt_postuninstall_cmds
21605
21606# Commands used to finish a libtool library installation in a directory.
21607finish_cmds=$lt_finish_cmds
21608
21609# As "finish_cmds", except a single script fragment to be evaled but
21610# not shown.
21611finish_eval=$lt_finish_eval
21612
21613# Whether we should hardcode library paths into libraries.
21614hardcode_into_libs=$hardcode_into_libs
21615
21616# Compile-time system search path for libraries.
21617sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21618
21619# Run-time system search path for libraries.
21620sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21621
21622# Whether dlopen is supported.
21623dlopen_support=$enable_dlopen
21624
21625# Whether dlopen of programs is supported.
21626dlopen_self=$enable_dlopen_self
21627
21628# Whether dlopen of statically linked programs is supported.
21629dlopen_self_static=$enable_dlopen_self_static
21630
21631# Commands to strip libraries.
21632old_striplib=$lt_old_striplib
21633striplib=$lt_striplib
21634
21635
21636# The linker used to build libraries.
21637LD=$lt_LD
21638
21639# How to create reloadable object files.
21640reload_flag=$lt_reload_flag
21641reload_cmds=$lt_reload_cmds
21642
21643# Commands used to build an old-style archive.
21644old_archive_cmds=$lt_old_archive_cmds
21645
21646# A language specific compiler.
21647CC=$lt_compiler
21648
21649# Is the compiler the GNU compiler?
21650with_gcc=$GCC
21651
21652# Compiler flag to turn off builtin functions.
21653no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21654
21655# Additional compiler flags for building library objects.
21656pic_flag=$lt_lt_prog_compiler_pic
21657
21658# How to pass a linker flag through the compiler.
21659wl=$lt_lt_prog_compiler_wl
21660
21661# Compiler flag to prevent dynamic linking.
21662link_static_flag=$lt_lt_prog_compiler_static
21663
21664# Does compiler simultaneously support -c and -o options?
21665compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21666
21667# Whether or not to add -lc for building shared libraries.
21668build_libtool_need_lc=$archive_cmds_need_lc
21669
21670# Whether or not to disallow shared libs when runtime libs are static.
21671allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21672
21673# Compiler flag to allow reflexive dlopens.
21674export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21675
21676# Compiler flag to generate shared objects directly from archives.
21677whole_archive_flag_spec=$lt_whole_archive_flag_spec
21678
21679# Whether the compiler copes with passing no objects directly.
21680compiler_needs_object=$lt_compiler_needs_object
21681
21682# Create an old-style archive from a shared archive.
21683old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21684
21685# Create a temporary old-style archive to link instead of a shared archive.
21686old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21687
21688# Commands used to build a shared archive.
21689archive_cmds=$lt_archive_cmds
21690archive_expsym_cmds=$lt_archive_expsym_cmds
21691
21692# Commands used to build a loadable module if different from building
21693# a shared archive.
21694module_cmds=$lt_module_cmds
21695module_expsym_cmds=$lt_module_expsym_cmds
21696
21697# Whether we are building with GNU ld or not.
21698with_gnu_ld=$lt_with_gnu_ld
21699
21700# Flag that allows shared libraries with undefined symbols to be built.
21701allow_undefined_flag=$lt_allow_undefined_flag
21702
21703# Flag that enforces no undefined symbols.
21704no_undefined_flag=$lt_no_undefined_flag
21705
21706# Flag to hardcode \$libdir into a binary during linking.
21707# This must work even if \$libdir does not exist
21708hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21709
21710# Whether we need a single "-rpath" flag with a separated argument.
21711hardcode_libdir_separator=$lt_hardcode_libdir_separator
21712
21713# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21714# DIR into the resulting binary.
21715hardcode_direct=$hardcode_direct
21716
21717# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21718# DIR into the resulting binary and the resulting library dependency is
21719# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21720# library is relocated.
21721hardcode_direct_absolute=$hardcode_direct_absolute
21722
21723# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21724# into the resulting binary.
21725hardcode_minus_L=$hardcode_minus_L
21726
21727# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21728# into the resulting binary.
21729hardcode_shlibpath_var=$hardcode_shlibpath_var
21730
21731# Set to "yes" if building a shared library automatically hardcodes DIR
21732# into the library and all subsequent libraries and executables linked
21733# against it.
21734hardcode_automatic=$hardcode_automatic
21735
21736# Set to yes if linker adds runtime paths of dependent libraries
21737# to runtime path list.
21738inherit_rpath=$inherit_rpath
21739
21740# Whether libtool must link a program against all its dependency libraries.
21741link_all_deplibs=$link_all_deplibs
21742
21743# Set to "yes" if exported symbols are required.
21744always_export_symbols=$always_export_symbols
21745
21746# The commands to list exported symbols.
21747export_symbols_cmds=$lt_export_symbols_cmds
21748
21749# Symbols that should not be listed in the preloaded symbols.
21750exclude_expsyms=$lt_exclude_expsyms
21751
21752# Symbols that must always be exported.
21753include_expsyms=$lt_include_expsyms
21754
21755# Commands necessary for linking programs (against libraries) with templates.
21756prelink_cmds=$lt_prelink_cmds
21757
21758# Commands necessary for finishing linking programs.
21759postlink_cmds=$lt_postlink_cmds
21760
21761# Specify filename containing input files.
21762file_list_spec=$lt_file_list_spec
21763
21764# How to hardcode a shared library path into an executable.
21765hardcode_action=$hardcode_action
21766
21767# ### END LIBTOOL CONFIG
21768
21769_LT_EOF
21770
21771  case $host_os in
21772  aix3*)
21773    cat <<\_LT_EOF >> "$cfgfile"
21774# AIX sometimes has problems with the GCC collect2 program.  For some
21775# reason, if we set the COLLECT_NAMES environment variable, the problems
21776# vanish in a puff of smoke.
21777if test "X${COLLECT_NAMES+set}" != Xset; then
21778  COLLECT_NAMES=
21779  export COLLECT_NAMES
21780fi
21781_LT_EOF
21782    ;;
21783  esac
21784
21785
21786ltmain="$ac_aux_dir/ltmain.sh"
21787
21788
21789  # We use sed instead of cat because bash on DJGPP gets confused if
21790  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21791  # text mode, it properly converts lines to CR/LF.  This bash problem
21792  # is reportedly fixed, but why not run on old versions too?
21793  sed '$q' "$ltmain" >> "$cfgfile" \
21794     || (rm -f "$cfgfile"; exit 1)
21795
21796  if test x"$xsi_shell" = xyes; then
21797  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21798func_dirname ()\
21799{\
21800\    case ${1} in\
21801\      */*) func_dirname_result="${1%/*}${2}" ;;\
21802\      *  ) func_dirname_result="${3}" ;;\
21803\    esac\
21804} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21805  && mv -f "$cfgfile.tmp" "$cfgfile" \
21806    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21807test 0 -eq $? || _lt_function_replace_fail=:
21808
21809
21810  sed -e '/^func_basename ()$/,/^} # func_basename /c\
21811func_basename ()\
21812{\
21813\    func_basename_result="${1##*/}"\
21814} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21815  && mv -f "$cfgfile.tmp" "$cfgfile" \
21816    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21817test 0 -eq $? || _lt_function_replace_fail=:
21818
21819
21820  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21821func_dirname_and_basename ()\
21822{\
21823\    case ${1} in\
21824\      */*) func_dirname_result="${1%/*}${2}" ;;\
21825\      *  ) func_dirname_result="${3}" ;;\
21826\    esac\
21827\    func_basename_result="${1##*/}"\
21828} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21829  && mv -f "$cfgfile.tmp" "$cfgfile" \
21830    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21831test 0 -eq $? || _lt_function_replace_fail=:
21832
21833
21834  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21835func_stripname ()\
21836{\
21837\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21838\    # positional parameters, so assign one to ordinary parameter first.\
21839\    func_stripname_result=${3}\
21840\    func_stripname_result=${func_stripname_result#"${1}"}\
21841\    func_stripname_result=${func_stripname_result%"${2}"}\
21842} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21843  && mv -f "$cfgfile.tmp" "$cfgfile" \
21844    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21845test 0 -eq $? || _lt_function_replace_fail=:
21846
21847
21848  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21849func_split_long_opt ()\
21850{\
21851\    func_split_long_opt_name=${1%%=*}\
21852\    func_split_long_opt_arg=${1#*=}\
21853} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21854  && mv -f "$cfgfile.tmp" "$cfgfile" \
21855    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21856test 0 -eq $? || _lt_function_replace_fail=:
21857
21858
21859  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21860func_split_short_opt ()\
21861{\
21862\    func_split_short_opt_arg=${1#??}\
21863\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21864} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21865  && mv -f "$cfgfile.tmp" "$cfgfile" \
21866    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21867test 0 -eq $? || _lt_function_replace_fail=:
21868
21869
21870  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21871func_lo2o ()\
21872{\
21873\    case ${1} in\
21874\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21875\      *)    func_lo2o_result=${1} ;;\
21876\    esac\
21877} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21878  && mv -f "$cfgfile.tmp" "$cfgfile" \
21879    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21880test 0 -eq $? || _lt_function_replace_fail=:
21881
21882
21883  sed -e '/^func_xform ()$/,/^} # func_xform /c\
21884func_xform ()\
21885{\
21886    func_xform_result=${1%.*}.lo\
21887} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21888  && mv -f "$cfgfile.tmp" "$cfgfile" \
21889    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21890test 0 -eq $? || _lt_function_replace_fail=:
21891
21892
21893  sed -e '/^func_arith ()$/,/^} # func_arith /c\
21894func_arith ()\
21895{\
21896    func_arith_result=$(( $* ))\
21897} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21898  && mv -f "$cfgfile.tmp" "$cfgfile" \
21899    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21900test 0 -eq $? || _lt_function_replace_fail=:
21901
21902
21903  sed -e '/^func_len ()$/,/^} # func_len /c\
21904func_len ()\
21905{\
21906    func_len_result=${#1}\
21907} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21908  && mv -f "$cfgfile.tmp" "$cfgfile" \
21909    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21910test 0 -eq $? || _lt_function_replace_fail=:
21911
21912fi
21913
21914if test x"$lt_shell_append" = xyes; then
21915  sed -e '/^func_append ()$/,/^} # func_append /c\
21916func_append ()\
21917{\
21918    eval "${1}+=\\${2}"\
21919} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21920  && mv -f "$cfgfile.tmp" "$cfgfile" \
21921    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21922test 0 -eq $? || _lt_function_replace_fail=:
21923
21924
21925  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21926func_append_quoted ()\
21927{\
21928\    func_quote_for_eval "${2}"\
21929\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21930} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21931  && mv -f "$cfgfile.tmp" "$cfgfile" \
21932    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21933test 0 -eq $? || _lt_function_replace_fail=:
21934
21935
21936  # Save a `func_append' function call where possible by direct use of '+='
21937  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21938    && mv -f "$cfgfile.tmp" "$cfgfile" \
21939      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21940  test 0 -eq $? || _lt_function_replace_fail=:
21941else
21942  # Save a `func_append' function call even when '+=' is not available
21943  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21944    && mv -f "$cfgfile.tmp" "$cfgfile" \
21945      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21946  test 0 -eq $? || _lt_function_replace_fail=:
21947fi
21948
21949if test x"$_lt_function_replace_fail" = x":"; then
21950  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21951$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21952fi
21953
21954
21955   mv -f "$cfgfile" "$ofile" ||
21956    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21957  chmod +x "$ofile"
21958
21959 ;;
21960
21961  esac
21962done # for ac_tag
21963
21964
21965as_fn_exit 0
21966_ACEOF
21967ac_clean_files=$ac_clean_files_save
21968
21969test $ac_write_fail = 0 ||
21970  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21971
21972
21973# configure is writing to config.log, and then calls config.status.
21974# config.status does its own redirection, appending to config.log.
21975# Unfortunately, on DOS this fails, as config.log is still kept open
21976# by configure, so config.status won't be able to write to it; its
21977# output is simply discarded.  So we exec the FD to /dev/null,
21978# effectively closing config.log, so it can be properly (re)opened and
21979# appended to by config.status.  When coming back to configure, we
21980# need to make the FD available again.
21981if test "$no_create" != yes; then
21982  ac_cs_success=:
21983  ac_config_status_args=
21984  test "$silent" = yes &&
21985    ac_config_status_args="$ac_config_status_args --quiet"
21986  exec 5>/dev/null
21987  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21988  exec 5>>config.log
21989  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21990  # would make configure fail if this is the last instruction.
21991  $ac_cs_success || as_fn_exit 1
21992fi
21993if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21994  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21995$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21996fi
21997
21998