configure revision 3233502e
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libX11 1.6.6.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://gitlab.freedesktop.org/xorg/lib/libx11/issues
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570as_awk_strverscmp='
571  # Use only awk features that work with 7th edition Unix awk (1978).
572  # My, what an old awk you have, Mr. Solaris!
573  END {
574    while (length(v1) && length(v2)) {
575      # Set d1 to be the next thing to compare from v1, and likewise for d2.
576      # Normally this is a single character, but if v1 and v2 contain digits,
577      # compare them as integers and fractions as strverscmp does.
578      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579	# Split v1 and v2 into their leading digit string components d1 and d2,
580	# and advance v1 and v2 past the leading digit strings.
581	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585	if (d1 ~ /^0/) {
586	  if (d2 ~ /^0/) {
587	    # Compare two fractions.
588	    while (d1 ~ /^0/ && d2 ~ /^0/) {
589	      d1 = substr(d1, 2); len1--
590	      d2 = substr(d2, 2); len2--
591	    }
592	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593	      # The two components differ in length, and the common prefix
594	      # contains only leading zeros.  Consider the longer to be less.
595	      d1 = -len1
596	      d2 = -len2
597	    } else {
598	      # Otherwise, compare as strings.
599	      d1 = "x" d1
600	      d2 = "x" d2
601	    }
602	  } else {
603	    # A fraction is less than an integer.
604	    exit 1
605	  }
606	} else {
607	  if (d2 ~ /^0/) {
608	    # An integer is greater than a fraction.
609	    exit 2
610	  } else {
611	    # Compare two integers.
612	    d1 += 0
613	    d2 += 0
614	  }
615	}
616      } else {
617	# The normal case, without worrying about digits.
618	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620      }
621      if (d1 < d2) exit 1
622      if (d1 > d2) exit 2
623    }
624    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625    # which mishandles some comparisons of empty strings to integers.
626    if (length(v2)) exit 1
627    if (length(v1)) exit 2
628  }
629'
630
631test -n "$DJDIR" || exec 7<&0 </dev/null
632exec 6>&1
633
634# Name of the host.
635# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636# so uname gets run too.
637ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639#
640# Initializations.
641#
642ac_default_prefix=/usr/local
643ac_clean_files=
644ac_config_libobj_dir=.
645LIBOBJS=
646cross_compiling=no
647subdirs=
648MFLAGS=
649MAKEFLAGS=
650
651# Identity of this package.
652PACKAGE_NAME='libX11'
653PACKAGE_TARNAME='libX11'
654PACKAGE_VERSION='1.6.6'
655PACKAGE_STRING='libX11 1.6.6'
656PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libx11/issues'
657PACKAGE_URL=''
658
659ac_unique_file="Makefile.am"
660# Factoring default headers for most tests.
661ac_includes_default="\
662#include <stdio.h>
663#ifdef HAVE_SYS_TYPES_H
664# include <sys/types.h>
665#endif
666#ifdef HAVE_SYS_STAT_H
667# include <sys/stat.h>
668#endif
669#ifdef STDC_HEADERS
670# include <stdlib.h>
671# include <stddef.h>
672#else
673# ifdef HAVE_STDLIB_H
674#  include <stdlib.h>
675# endif
676#endif
677#ifdef HAVE_STRING_H
678# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679#  include <memory.h>
680# endif
681# include <string.h>
682#endif
683#ifdef HAVE_STRINGS_H
684# include <strings.h>
685#endif
686#ifdef HAVE_INTTYPES_H
687# include <inttypes.h>
688#endif
689#ifdef HAVE_STDINT_H
690# include <stdint.h>
691#endif
692#ifdef HAVE_UNISTD_H
693# include <unistd.h>
694#endif"
695
696ac_header_list=
697ac_subst_vars='am__EXEEXT_FALSE
698am__EXEEXT_TRUE
699LTLIBOBJS
700LIBOBJS
701XTMALLOC_ZERO_CFLAGS
702XMALLOC_ZERO_CFLAGS
703MALLOC_ZERO_CFLAGS
704XERRORDB
705XKEYSYMDB
706locales
707X11_LOCALEDIR
708XLOCALEDIR
709X11_LOCALELIBDIR
710XLOCALELIBDIR
711X11_LOCALEDATADIR
712XLOCALEDATADIR
713X11_LIBS
714X11_CFLAGS
715X11_LIBDIR
716X11_DATADIR
717MAKE_LINT_LIB_FALSE
718MAKE_LINT_LIB_TRUE
719LINTLIB
720LINT_FALSE
721LINT_TRUE
722LINT_FLAGS
723LINT
724XKBPROTO_REQUIRES
725XKB_FALSE
726XKB_TRUE
727BIGFONT_LIBS
728BIGFONT_CFLAGS
729XLOCALE_FALSE
730XLOCALE_TRUE
731XCMS_FALSE
732XCMS_TRUE
733KEYSYMDEFS
734XTHREAD_CFLAGS
735XTHREADLIB
736THRSTUBS_FALSE
737THRSTUBS_TRUE
738LAUNCHD
739OS2_FALSE
740OS2_TRUE
741WCHAR32
742XLIB_LOADABLE_I18N_FALSE
743XLIB_LOADABLE_I18N_TRUE
744I18N_MODULE_LIBS
745X11_EXTRA_DEPS
746LDFLAGS_FOR_BUILD
747CFLAGS_FOR_BUILD
748CPPFLAGS_FOR_BUILD
749CC_FOR_BUILD
750HAVE_PERL_FALSE
751HAVE_PERL_TRUE
752PERL
753TRADITIONALCPPFLAGS
754RAWCPPFLAGS
755RAWCPP
756HAVE_STYLESHEETS_FALSE
757HAVE_STYLESHEETS_TRUE
758XSL_STYLESHEET
759STYLESHEET_SRCDIR
760XORG_SGML_PATH
761HAVE_XSLTPROC_FALSE
762HAVE_XSLTPROC_TRUE
763XSLTPROC
764HAVE_FOP_FALSE
765HAVE_FOP_TRUE
766FOP
767HAVE_XMLTO_FALSE
768HAVE_XMLTO_TRUE
769HAVE_XMLTO_TEXT_FALSE
770HAVE_XMLTO_TEXT_TRUE
771XMLTO
772ENABLE_SPECS_FALSE
773ENABLE_SPECS_TRUE
774MAN_SUBSTS
775XORG_MAN_PAGE
776ADMIN_MAN_DIR
777DRIVER_MAN_DIR
778MISC_MAN_DIR
779FILE_MAN_DIR
780LIB_MAN_DIR
781APP_MAN_DIR
782ADMIN_MAN_SUFFIX
783DRIVER_MAN_SUFFIX
784MISC_MAN_SUFFIX
785FILE_MAN_SUFFIX
786LIB_MAN_SUFFIX
787APP_MAN_SUFFIX
788INSTALL_CMD
789PKG_CONFIG_LIBDIR
790PKG_CONFIG_PATH
791PKG_CONFIG
792CHANGELOG_CMD
793STRICT_CFLAGS
794CWARNFLAGS
795BASE_CFLAGS
796LT_SYS_LIBRARY_PATH
797OTOOL64
798OTOOL
799LIPO
800NMEDIT
801DSYMUTIL
802MANIFEST_TOOL
803RANLIB
804ac_ct_AR
805AR
806DLLTOOL
807OBJDUMP
808LN_S
809NM
810ac_ct_DUMPBIN
811DUMPBIN
812LD
813FGREP
814SED
815LIBTOOL
816AM_BACKSLASH
817AM_DEFAULT_VERBOSITY
818AM_DEFAULT_V
819AM_V
820am__fastdepCC_FALSE
821am__fastdepCC_TRUE
822CCDEPMODE
823am__nodep
824AMDEPBACKSLASH
825AMDEP_FALSE
826AMDEP_TRUE
827am__quote
828am__include
829DEPDIR
830am__untar
831am__tar
832AMTAR
833am__leading_dot
834SET_MAKE
835AWK
836mkdir_p
837MKDIR_P
838INSTALL_STRIP_PROGRAM
839STRIP
840install_sh
841MAKEINFO
842AUTOHEADER
843AUTOMAKE
844AUTOCONF
845ACLOCAL
846VERSION
847PACKAGE
848CYGPATH_W
849am__isrc
850INSTALL_DATA
851INSTALL_SCRIPT
852INSTALL_PROGRAM
853EGREP
854GREP
855CPP
856OBJEXT
857EXEEXT
858ac_ct_CC
859CPPFLAGS
860LDFLAGS
861CFLAGS
862CC
863host_os
864host_vendor
865host_cpu
866host
867build_os
868build_vendor
869build_cpu
870build
871target_alias
872host_alias
873build_alias
874LIBS
875ECHO_T
876ECHO_N
877ECHO_C
878DEFS
879mandir
880localedir
881libdir
882psdir
883pdfdir
884dvidir
885htmldir
886infodir
887docdir
888oldincludedir
889includedir
890runstatedir
891localstatedir
892sharedstatedir
893sysconfdir
894datadir
895datarootdir
896libexecdir
897sbindir
898bindir
899program_transform_name
900prefix
901exec_prefix
902PACKAGE_URL
903PACKAGE_BUGREPORT
904PACKAGE_STRING
905PACKAGE_VERSION
906PACKAGE_TARNAME
907PACKAGE_NAME
908PATH_SEPARATOR
909SHELL'
910ac_subst_files=''
911ac_user_opts='
912enable_option_checking
913enable_dependency_tracking
914enable_silent_rules
915enable_shared
916enable_static
917with_pic
918enable_fast_install
919with_aix_soname
920with_gnu_ld
921with_sysroot
922enable_libtool_lock
923enable_selective_werror
924enable_strict_compilation
925enable_specs
926with_xmlto
927with_fop
928with_xsltproc
929with_perl
930enable_unix_transport
931enable_tcp_transport
932enable_ipv6
933enable_local_transport
934enable_loadable_i18n
935enable_loadable_xcursor
936with_launchd
937enable_xthreads
938with_keysymdefdir
939enable_xcms
940enable_xlocale
941enable_xlocaledir
942enable_xf86bigfont
943enable_xkb
944enable_composecache
945with_lint
946enable_lint_library
947with_locale_lib_dir
948enable_malloc0returnsnull
949'
950      ac_precious_vars='build_alias
951host_alias
952target_alias
953CC
954CFLAGS
955LDFLAGS
956LIBS
957CPPFLAGS
958CPP
959LT_SYS_LIBRARY_PATH
960PKG_CONFIG
961PKG_CONFIG_PATH
962PKG_CONFIG_LIBDIR
963XMLTO
964FOP
965XSLTPROC
966PERL
967BIGFONT_CFLAGS
968BIGFONT_LIBS
969LINT
970LINT_FLAGS
971X11_CFLAGS
972X11_LIBS'
973
974
975# Initialize some variables set by options.
976ac_init_help=
977ac_init_version=false
978ac_unrecognized_opts=
979ac_unrecognized_sep=
980# The variables have the same names as the options, with
981# dashes changed to underlines.
982cache_file=/dev/null
983exec_prefix=NONE
984no_create=
985no_recursion=
986prefix=NONE
987program_prefix=NONE
988program_suffix=NONE
989program_transform_name=s,x,x,
990silent=
991site=
992srcdir=
993verbose=
994x_includes=NONE
995x_libraries=NONE
996
997# Installation directory options.
998# These are left unexpanded so users can "make install exec_prefix=/foo"
999# and all the variables that are supposed to be based on exec_prefix
1000# by default will actually change.
1001# Use braces instead of parens because sh, perl, etc. also accept them.
1002# (The list follows the same order as the GNU Coding Standards.)
1003bindir='${exec_prefix}/bin'
1004sbindir='${exec_prefix}/sbin'
1005libexecdir='${exec_prefix}/libexec'
1006datarootdir='${prefix}/share'
1007datadir='${datarootdir}'
1008sysconfdir='${prefix}/etc'
1009sharedstatedir='${prefix}/com'
1010localstatedir='${prefix}/var'
1011runstatedir='${localstatedir}/run'
1012includedir='${prefix}/include'
1013oldincludedir='/usr/include'
1014docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1015infodir='${datarootdir}/info'
1016htmldir='${docdir}'
1017dvidir='${docdir}'
1018pdfdir='${docdir}'
1019psdir='${docdir}'
1020libdir='${exec_prefix}/lib'
1021localedir='${datarootdir}/locale'
1022mandir='${datarootdir}/man'
1023
1024ac_prev=
1025ac_dashdash=
1026for ac_option
1027do
1028  # If the previous option needs an argument, assign it.
1029  if test -n "$ac_prev"; then
1030    eval $ac_prev=\$ac_option
1031    ac_prev=
1032    continue
1033  fi
1034
1035  case $ac_option in
1036  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1037  *=)   ac_optarg= ;;
1038  *)    ac_optarg=yes ;;
1039  esac
1040
1041  # Accept the important Cygnus configure options, so we can diagnose typos.
1042
1043  case $ac_dashdash$ac_option in
1044  --)
1045    ac_dashdash=yes ;;
1046
1047  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1048    ac_prev=bindir ;;
1049  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050    bindir=$ac_optarg ;;
1051
1052  -build | --build | --buil | --bui | --bu)
1053    ac_prev=build_alias ;;
1054  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055    build_alias=$ac_optarg ;;
1056
1057  -cache-file | --cache-file | --cache-fil | --cache-fi \
1058  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059    ac_prev=cache_file ;;
1060  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062    cache_file=$ac_optarg ;;
1063
1064  --config-cache | -C)
1065    cache_file=config.cache ;;
1066
1067  -datadir | --datadir | --datadi | --datad)
1068    ac_prev=datadir ;;
1069  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070    datadir=$ac_optarg ;;
1071
1072  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073  | --dataroo | --dataro | --datar)
1074    ac_prev=datarootdir ;;
1075  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077    datarootdir=$ac_optarg ;;
1078
1079  -disable-* | --disable-*)
1080    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081    # Reject names that are not valid shell variable names.
1082    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083      as_fn_error $? "invalid feature name: $ac_useropt"
1084    ac_useropt_orig=$ac_useropt
1085    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086    case $ac_user_opts in
1087      *"
1088"enable_$ac_useropt"
1089"*) ;;
1090      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1091	 ac_unrecognized_sep=', ';;
1092    esac
1093    eval enable_$ac_useropt=no ;;
1094
1095  -docdir | --docdir | --docdi | --doc | --do)
1096    ac_prev=docdir ;;
1097  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1098    docdir=$ac_optarg ;;
1099
1100  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1101    ac_prev=dvidir ;;
1102  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1103    dvidir=$ac_optarg ;;
1104
1105  -enable-* | --enable-*)
1106    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1107    # Reject names that are not valid shell variable names.
1108    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109      as_fn_error $? "invalid feature name: $ac_useropt"
1110    ac_useropt_orig=$ac_useropt
1111    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112    case $ac_user_opts in
1113      *"
1114"enable_$ac_useropt"
1115"*) ;;
1116      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1117	 ac_unrecognized_sep=', ';;
1118    esac
1119    eval enable_$ac_useropt=\$ac_optarg ;;
1120
1121  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1122  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1123  | --exec | --exe | --ex)
1124    ac_prev=exec_prefix ;;
1125  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1126  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1127  | --exec=* | --exe=* | --ex=*)
1128    exec_prefix=$ac_optarg ;;
1129
1130  -gas | --gas | --ga | --g)
1131    # Obsolete; use --with-gas.
1132    with_gas=yes ;;
1133
1134  -help | --help | --hel | --he | -h)
1135    ac_init_help=long ;;
1136  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1137    ac_init_help=recursive ;;
1138  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1139    ac_init_help=short ;;
1140
1141  -host | --host | --hos | --ho)
1142    ac_prev=host_alias ;;
1143  -host=* | --host=* | --hos=* | --ho=*)
1144    host_alias=$ac_optarg ;;
1145
1146  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1147    ac_prev=htmldir ;;
1148  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1149  | --ht=*)
1150    htmldir=$ac_optarg ;;
1151
1152  -includedir | --includedir | --includedi | --included | --include \
1153  | --includ | --inclu | --incl | --inc)
1154    ac_prev=includedir ;;
1155  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1156  | --includ=* | --inclu=* | --incl=* | --inc=*)
1157    includedir=$ac_optarg ;;
1158
1159  -infodir | --infodir | --infodi | --infod | --info | --inf)
1160    ac_prev=infodir ;;
1161  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1162    infodir=$ac_optarg ;;
1163
1164  -libdir | --libdir | --libdi | --libd)
1165    ac_prev=libdir ;;
1166  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1167    libdir=$ac_optarg ;;
1168
1169  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1170  | --libexe | --libex | --libe)
1171    ac_prev=libexecdir ;;
1172  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1173  | --libexe=* | --libex=* | --libe=*)
1174    libexecdir=$ac_optarg ;;
1175
1176  -localedir | --localedir | --localedi | --localed | --locale)
1177    ac_prev=localedir ;;
1178  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1179    localedir=$ac_optarg ;;
1180
1181  -localstatedir | --localstatedir | --localstatedi | --localstated \
1182  | --localstate | --localstat | --localsta | --localst | --locals)
1183    ac_prev=localstatedir ;;
1184  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1185  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1186    localstatedir=$ac_optarg ;;
1187
1188  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1189    ac_prev=mandir ;;
1190  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1191    mandir=$ac_optarg ;;
1192
1193  -nfp | --nfp | --nf)
1194    # Obsolete; use --without-fp.
1195    with_fp=no ;;
1196
1197  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1198  | --no-cr | --no-c | -n)
1199    no_create=yes ;;
1200
1201  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1202  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1203    no_recursion=yes ;;
1204
1205  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1206  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1207  | --oldin | --oldi | --old | --ol | --o)
1208    ac_prev=oldincludedir ;;
1209  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1210  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1211  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1212    oldincludedir=$ac_optarg ;;
1213
1214  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1215    ac_prev=prefix ;;
1216  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1217    prefix=$ac_optarg ;;
1218
1219  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1220  | --program-pre | --program-pr | --program-p)
1221    ac_prev=program_prefix ;;
1222  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1223  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1224    program_prefix=$ac_optarg ;;
1225
1226  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1227  | --program-suf | --program-su | --program-s)
1228    ac_prev=program_suffix ;;
1229  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1230  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1231    program_suffix=$ac_optarg ;;
1232
1233  -program-transform-name | --program-transform-name \
1234  | --program-transform-nam | --program-transform-na \
1235  | --program-transform-n | --program-transform- \
1236  | --program-transform | --program-transfor \
1237  | --program-transfo | --program-transf \
1238  | --program-trans | --program-tran \
1239  | --progr-tra | --program-tr | --program-t)
1240    ac_prev=program_transform_name ;;
1241  -program-transform-name=* | --program-transform-name=* \
1242  | --program-transform-nam=* | --program-transform-na=* \
1243  | --program-transform-n=* | --program-transform-=* \
1244  | --program-transform=* | --program-transfor=* \
1245  | --program-transfo=* | --program-transf=* \
1246  | --program-trans=* | --program-tran=* \
1247  | --progr-tra=* | --program-tr=* | --program-t=*)
1248    program_transform_name=$ac_optarg ;;
1249
1250  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1251    ac_prev=pdfdir ;;
1252  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1253    pdfdir=$ac_optarg ;;
1254
1255  -psdir | --psdir | --psdi | --psd | --ps)
1256    ac_prev=psdir ;;
1257  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1258    psdir=$ac_optarg ;;
1259
1260  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261  | -silent | --silent | --silen | --sile | --sil)
1262    silent=yes ;;
1263
1264  -runstatedir | --runstatedir | --runstatedi | --runstated \
1265  | --runstate | --runstat | --runsta | --runst | --runs \
1266  | --run | --ru | --r)
1267    ac_prev=runstatedir ;;
1268  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1269  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1270  | --run=* | --ru=* | --r=*)
1271    runstatedir=$ac_optarg ;;
1272
1273  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1274    ac_prev=sbindir ;;
1275  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1276  | --sbi=* | --sb=*)
1277    sbindir=$ac_optarg ;;
1278
1279  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1280  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1281  | --sharedst | --shareds | --shared | --share | --shar \
1282  | --sha | --sh)
1283    ac_prev=sharedstatedir ;;
1284  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1285  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1286  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1287  | --sha=* | --sh=*)
1288    sharedstatedir=$ac_optarg ;;
1289
1290  -site | --site | --sit)
1291    ac_prev=site ;;
1292  -site=* | --site=* | --sit=*)
1293    site=$ac_optarg ;;
1294
1295  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1296    ac_prev=srcdir ;;
1297  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1298    srcdir=$ac_optarg ;;
1299
1300  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1301  | --syscon | --sysco | --sysc | --sys | --sy)
1302    ac_prev=sysconfdir ;;
1303  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1304  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1305    sysconfdir=$ac_optarg ;;
1306
1307  -target | --target | --targe | --targ | --tar | --ta | --t)
1308    ac_prev=target_alias ;;
1309  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1310    target_alias=$ac_optarg ;;
1311
1312  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1313    verbose=yes ;;
1314
1315  -version | --version | --versio | --versi | --vers | -V)
1316    ac_init_version=: ;;
1317
1318  -with-* | --with-*)
1319    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1320    # Reject names that are not valid shell variable names.
1321    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1322      as_fn_error $? "invalid package name: $ac_useropt"
1323    ac_useropt_orig=$ac_useropt
1324    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1325    case $ac_user_opts in
1326      *"
1327"with_$ac_useropt"
1328"*) ;;
1329      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1330	 ac_unrecognized_sep=', ';;
1331    esac
1332    eval with_$ac_useropt=\$ac_optarg ;;
1333
1334  -without-* | --without-*)
1335    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1336    # Reject names that are not valid shell variable names.
1337    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1338      as_fn_error $? "invalid package name: $ac_useropt"
1339    ac_useropt_orig=$ac_useropt
1340    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341    case $ac_user_opts in
1342      *"
1343"with_$ac_useropt"
1344"*) ;;
1345      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1346	 ac_unrecognized_sep=', ';;
1347    esac
1348    eval with_$ac_useropt=no ;;
1349
1350  --x)
1351    # Obsolete; use --with-x.
1352    with_x=yes ;;
1353
1354  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1355  | --x-incl | --x-inc | --x-in | --x-i)
1356    ac_prev=x_includes ;;
1357  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1358  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1359    x_includes=$ac_optarg ;;
1360
1361  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1362  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1363    ac_prev=x_libraries ;;
1364  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1365  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1366    x_libraries=$ac_optarg ;;
1367
1368  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1369Try \`$0 --help' for more information"
1370    ;;
1371
1372  *=*)
1373    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1374    # Reject names that are not valid shell variable names.
1375    case $ac_envvar in #(
1376      '' | [0-9]* | *[!_$as_cr_alnum]* )
1377      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1378    esac
1379    eval $ac_envvar=\$ac_optarg
1380    export $ac_envvar ;;
1381
1382  *)
1383    # FIXME: should be removed in autoconf 3.0.
1384    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1385    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1386      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1387    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1388    ;;
1389
1390  esac
1391done
1392
1393if test -n "$ac_prev"; then
1394  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1395  as_fn_error $? "missing argument to $ac_option"
1396fi
1397
1398if test -n "$ac_unrecognized_opts"; then
1399  case $enable_option_checking in
1400    no) ;;
1401    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1402    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1403  esac
1404fi
1405
1406# Check all directory arguments for consistency.
1407for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1408		datadir sysconfdir sharedstatedir localstatedir includedir \
1409		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1410		libdir localedir mandir runstatedir
1411do
1412  eval ac_val=\$$ac_var
1413  # Remove trailing slashes.
1414  case $ac_val in
1415    */ )
1416      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1417      eval $ac_var=\$ac_val;;
1418  esac
1419  # Be sure to have absolute directory names.
1420  case $ac_val in
1421    [\\/$]* | ?:[\\/]* )  continue;;
1422    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1423  esac
1424  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1425done
1426
1427# There might be people who depend on the old broken behavior: `$host'
1428# used to hold the argument of --host etc.
1429# FIXME: To remove some day.
1430build=$build_alias
1431host=$host_alias
1432target=$target_alias
1433
1434# FIXME: To remove some day.
1435if test "x$host_alias" != x; then
1436  if test "x$build_alias" = x; then
1437    cross_compiling=maybe
1438  elif test "x$build_alias" != "x$host_alias"; then
1439    cross_compiling=yes
1440  fi
1441fi
1442
1443ac_tool_prefix=
1444test -n "$host_alias" && ac_tool_prefix=$host_alias-
1445
1446test "$silent" = yes && exec 6>/dev/null
1447
1448
1449ac_pwd=`pwd` && test -n "$ac_pwd" &&
1450ac_ls_di=`ls -di .` &&
1451ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1452  as_fn_error $? "working directory cannot be determined"
1453test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1454  as_fn_error $? "pwd does not report name of working directory"
1455
1456
1457# Find the source files, if location was not specified.
1458if test -z "$srcdir"; then
1459  ac_srcdir_defaulted=yes
1460  # Try the directory containing this script, then the parent directory.
1461  ac_confdir=`$as_dirname -- "$as_myself" ||
1462$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1463	 X"$as_myself" : 'X\(//\)[^/]' \| \
1464	 X"$as_myself" : 'X\(//\)$' \| \
1465	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1466$as_echo X"$as_myself" |
1467    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1468	    s//\1/
1469	    q
1470	  }
1471	  /^X\(\/\/\)[^/].*/{
1472	    s//\1/
1473	    q
1474	  }
1475	  /^X\(\/\/\)$/{
1476	    s//\1/
1477	    q
1478	  }
1479	  /^X\(\/\).*/{
1480	    s//\1/
1481	    q
1482	  }
1483	  s/.*/./; q'`
1484  srcdir=$ac_confdir
1485  if test ! -r "$srcdir/$ac_unique_file"; then
1486    srcdir=..
1487  fi
1488else
1489  ac_srcdir_defaulted=no
1490fi
1491if test ! -r "$srcdir/$ac_unique_file"; then
1492  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1493  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1494fi
1495ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1496ac_abs_confdir=`(
1497	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1498	pwd)`
1499# When building in place, set srcdir=.
1500if test "$ac_abs_confdir" = "$ac_pwd"; then
1501  srcdir=.
1502fi
1503# Remove unnecessary trailing slashes from srcdir.
1504# Double slashes in file names in object file debugging info
1505# mess up M-x gdb in Emacs.
1506case $srcdir in
1507*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1508esac
1509for ac_var in $ac_precious_vars; do
1510  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1511  eval ac_env_${ac_var}_value=\$${ac_var}
1512  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1513  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1514done
1515
1516#
1517# Report the --help message.
1518#
1519if test "$ac_init_help" = "long"; then
1520  # Omit some internal or obsolete options to make the list less imposing.
1521  # This message is too long to be a string in the A/UX 3.1 sh.
1522  cat <<_ACEOF
1523\`configure' configures libX11 1.6.6 to adapt to many kinds of systems.
1524
1525Usage: $0 [OPTION]... [VAR=VALUE]...
1526
1527To assign environment variables (e.g., CC, CFLAGS...), specify them as
1528VAR=VALUE.  See below for descriptions of some of the useful variables.
1529
1530Defaults for the options are specified in brackets.
1531
1532Configuration:
1533  -h, --help              display this help and exit
1534      --help=short        display options specific to this package
1535      --help=recursive    display the short help of all the included packages
1536  -V, --version           display version information and exit
1537  -q, --quiet, --silent   do not print \`checking ...' messages
1538      --cache-file=FILE   cache test results in FILE [disabled]
1539  -C, --config-cache      alias for \`--cache-file=config.cache'
1540  -n, --no-create         do not create output files
1541      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1542
1543Installation directories:
1544  --prefix=PREFIX         install architecture-independent files in PREFIX
1545                          [$ac_default_prefix]
1546  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1547                          [PREFIX]
1548
1549By default, \`make install' will install all the files in
1550\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1551an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1552for instance \`--prefix=\$HOME'.
1553
1554For better control, use the options below.
1555
1556Fine tuning of the installation directories:
1557  --bindir=DIR            user executables [EPREFIX/bin]
1558  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1559  --libexecdir=DIR        program executables [EPREFIX/libexec]
1560  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1561  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1562  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1563  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1564  --libdir=DIR            object code libraries [EPREFIX/lib]
1565  --includedir=DIR        C header files [PREFIX/include]
1566  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1567  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1568  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1569  --infodir=DIR           info documentation [DATAROOTDIR/info]
1570  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1571  --mandir=DIR            man documentation [DATAROOTDIR/man]
1572  --docdir=DIR            documentation root [DATAROOTDIR/doc/libX11]
1573  --htmldir=DIR           html documentation [DOCDIR]
1574  --dvidir=DIR            dvi documentation [DOCDIR]
1575  --pdfdir=DIR            pdf documentation [DOCDIR]
1576  --psdir=DIR             ps documentation [DOCDIR]
1577_ACEOF
1578
1579  cat <<\_ACEOF
1580
1581Program names:
1582  --program-prefix=PREFIX            prepend PREFIX to installed program names
1583  --program-suffix=SUFFIX            append SUFFIX to installed program names
1584  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1585
1586System types:
1587  --build=BUILD     configure for building on BUILD [guessed]
1588  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1589_ACEOF
1590fi
1591
1592if test -n "$ac_init_help"; then
1593  case $ac_init_help in
1594     short | recursive ) echo "Configuration of libX11 1.6.6:";;
1595   esac
1596  cat <<\_ACEOF
1597
1598Optional Features:
1599  --disable-option-checking  ignore unrecognized --enable/--with options
1600  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1601  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1602  --enable-dependency-tracking
1603                          do not reject slow dependency extractors
1604  --disable-dependency-tracking
1605                          speeds up one-time build
1606  --enable-silent-rules   less verbose build output (undo: "make V=1")
1607  --disable-silent-rules  verbose build output (undo: "make V=0")
1608  --enable-shared[=PKGS]  build shared libraries [default=yes]
1609  --enable-static[=PKGS]  build static libraries [default=yes]
1610  --enable-fast-install[=PKGS]
1611                          optimize for fast installation [default=yes]
1612  --disable-libtool-lock  avoid locking (might break parallel builds)
1613  --disable-selective-werror
1614                          Turn off selective compiler errors. (default:
1615                          enabled)
1616  --enable-strict-compilation
1617                          Enable all warnings from compiler and make them
1618                          errors (default: disabled)
1619  --enable-specs          Enable building the specs (default: yes)
1620  --enable-unix-transport Enable UNIX domain socket transport
1621  --enable-tcp-transport  Enable TCP socket transport
1622  --enable-ipv6           Enable IPv6 support
1623  --enable-local-transport
1624                          Enable os-specific local transport
1625  --enable-loadable-i18n  Controls loadable i18n module support
1626  --disable-loadable-xcursor
1627                          Controls loadable xcursor library support
1628  --disable-xthreads      Disable Xlib support for Multithreading
1629  --disable-xcms          Disable Xlib support for CMS *EXPERIMENTAL*
1630  --disable-xlocale       Disable Xlib locale implementation *EXPERIMENTAL*
1631  --enable-xlocaledir     Enable XLOCALEDIR environment variable support
1632  --disable-xf86bigfont   Disable XF86BigFont extension support
1633  --disable-xkb           Disable XKB support *EXPERIMENTAL*
1634  --disable-composecache  Disable compose table cache support
1635  --enable-lint-library   Create lint library (default: disabled)
1636  --enable-malloc0returnsnull
1637                          malloc(0) returns NULL (default: auto)
1638
1639Optional Packages:
1640  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1641  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1642  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1643                          both]
1644  --with-aix-soname=aix|svr4|both
1645                          shared library versioning (aka "SONAME") variant to
1646                          provide on AIX, [default=aix].
1647  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1648  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1649                          compiler's sysroot if not specified).
1650  --with-xmlto            Use xmlto to regenerate documentation (default:
1651                          auto)
1652  --with-fop              Use fop to regenerate documentation (default: no)
1653  --with-xsltproc         Use xsltproc for the transformation of XML documents
1654                          (default: auto)
1655  --with-perl             Use perl for extracting information from files
1656                          (default: auto)
1657  --with-launchd          Build with support for Apple's launchd (default:
1658                          auto)
1659  --with-keysymdefdir=DIR The location of keysymdef.h (defaults to xproto
1660                          include dir)
1661  --with-lint             Use a lint-style source code checker (default:
1662                          disabled)
1663  --with-locale-lib-dir=DIR
1664                          Directory where locale libraries files are installed
1665                          (default: $libdir/X11/locale)
1666
1667Some influential environment variables:
1668  CC          C compiler command
1669  CFLAGS      C compiler flags
1670  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1671              nonstandard directory <lib dir>
1672  LIBS        libraries to pass to the linker, e.g. -l<library>
1673  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1674              you have headers in a nonstandard directory <include dir>
1675  CPP         C preprocessor
1676  LT_SYS_LIBRARY_PATH
1677              User-defined run-time library search path.
1678  PKG_CONFIG  path to pkg-config utility
1679  PKG_CONFIG_PATH
1680              directories to add to pkg-config's search path
1681  PKG_CONFIG_LIBDIR
1682              path overriding pkg-config's built-in search path
1683  XMLTO       Path to xmlto command
1684  FOP         Path to fop command
1685  XSLTPROC    Path to xsltproc command
1686  PERL        Path to perl command
1687  BIGFONT_CFLAGS
1688              C compiler flags for BIGFONT, overriding pkg-config
1689  BIGFONT_LIBS
1690              linker flags for BIGFONT, overriding pkg-config
1691  LINT        Path to a lint-style command
1692  LINT_FLAGS  Flags for the lint-style command
1693  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1694  X11_LIBS    linker flags for X11, overriding pkg-config
1695
1696Use these variables to override the choices made by `configure' or to help
1697it to find libraries and programs with nonstandard names/locations.
1698
1699Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>.
1700_ACEOF
1701ac_status=$?
1702fi
1703
1704if test "$ac_init_help" = "recursive"; then
1705  # If there are subdirs, report their specific --help.
1706  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1707    test -d "$ac_dir" ||
1708      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1709      continue
1710    ac_builddir=.
1711
1712case "$ac_dir" in
1713.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1714*)
1715  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1716  # A ".." for each directory in $ac_dir_suffix.
1717  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1718  case $ac_top_builddir_sub in
1719  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1720  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1721  esac ;;
1722esac
1723ac_abs_top_builddir=$ac_pwd
1724ac_abs_builddir=$ac_pwd$ac_dir_suffix
1725# for backward compatibility:
1726ac_top_builddir=$ac_top_build_prefix
1727
1728case $srcdir in
1729  .)  # We are building in place.
1730    ac_srcdir=.
1731    ac_top_srcdir=$ac_top_builddir_sub
1732    ac_abs_top_srcdir=$ac_pwd ;;
1733  [\\/]* | ?:[\\/]* )  # Absolute name.
1734    ac_srcdir=$srcdir$ac_dir_suffix;
1735    ac_top_srcdir=$srcdir
1736    ac_abs_top_srcdir=$srcdir ;;
1737  *) # Relative name.
1738    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1739    ac_top_srcdir=$ac_top_build_prefix$srcdir
1740    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1741esac
1742ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1743
1744    cd "$ac_dir" || { ac_status=$?; continue; }
1745    # Check for guested configure.
1746    if test -f "$ac_srcdir/configure.gnu"; then
1747      echo &&
1748      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1749    elif test -f "$ac_srcdir/configure"; then
1750      echo &&
1751      $SHELL "$ac_srcdir/configure" --help=recursive
1752    else
1753      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1754    fi || ac_status=$?
1755    cd "$ac_pwd" || { ac_status=$?; break; }
1756  done
1757fi
1758
1759test -n "$ac_init_help" && exit $ac_status
1760if $ac_init_version; then
1761  cat <<\_ACEOF
1762libX11 configure 1.6.6
1763generated by GNU Autoconf 2.69
1764
1765Copyright (C) 2012 Free Software Foundation, Inc.
1766This configure script is free software; the Free Software Foundation
1767gives unlimited permission to copy, distribute and modify it.
1768_ACEOF
1769  exit
1770fi
1771
1772## ------------------------ ##
1773## Autoconf initialization. ##
1774## ------------------------ ##
1775
1776# ac_fn_c_try_compile LINENO
1777# --------------------------
1778# Try to compile conftest.$ac_ext, and return whether this succeeded.
1779ac_fn_c_try_compile ()
1780{
1781  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782  rm -f conftest.$ac_objext
1783  if { { ac_try="$ac_compile"
1784case "(($ac_try" in
1785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786  *) ac_try_echo=$ac_try;;
1787esac
1788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789$as_echo "$ac_try_echo"; } >&5
1790  (eval "$ac_compile") 2>conftest.err
1791  ac_status=$?
1792  if test -s conftest.err; then
1793    grep -v '^ *+' conftest.err >conftest.er1
1794    cat conftest.er1 >&5
1795    mv -f conftest.er1 conftest.err
1796  fi
1797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798  test $ac_status = 0; } && {
1799	 test -z "$ac_c_werror_flag" ||
1800	 test ! -s conftest.err
1801       } && test -s conftest.$ac_objext; then :
1802  ac_retval=0
1803else
1804  $as_echo "$as_me: failed program was:" >&5
1805sed 's/^/| /' conftest.$ac_ext >&5
1806
1807	ac_retval=1
1808fi
1809  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810  as_fn_set_status $ac_retval
1811
1812} # ac_fn_c_try_compile
1813
1814# ac_fn_c_try_cpp LINENO
1815# ----------------------
1816# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1817ac_fn_c_try_cpp ()
1818{
1819  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820  if { { ac_try="$ac_cpp conftest.$ac_ext"
1821case "(($ac_try" in
1822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823  *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1828  ac_status=$?
1829  if test -s conftest.err; then
1830    grep -v '^ *+' conftest.err >conftest.er1
1831    cat conftest.er1 >&5
1832    mv -f conftest.er1 conftest.err
1833  fi
1834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835  test $ac_status = 0; } > conftest.i && {
1836	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1837	 test ! -s conftest.err
1838       }; then :
1839  ac_retval=0
1840else
1841  $as_echo "$as_me: failed program was:" >&5
1842sed 's/^/| /' conftest.$ac_ext >&5
1843
1844    ac_retval=1
1845fi
1846  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847  as_fn_set_status $ac_retval
1848
1849} # ac_fn_c_try_cpp
1850
1851# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1852# -------------------------------------------------------
1853# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1854# the include files in INCLUDES and setting the cache variable VAR
1855# accordingly.
1856ac_fn_c_check_header_mongrel ()
1857{
1858  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859  if eval \${$3+:} false; then :
1860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
1862if eval \${$3+:} false; then :
1863  $as_echo_n "(cached) " >&6
1864fi
1865eval ac_res=\$$3
1866	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867$as_echo "$ac_res" >&6; }
1868else
1869  # Is the header compilable?
1870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1871$as_echo_n "checking $2 usability... " >&6; }
1872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h.  */
1874$4
1875#include <$2>
1876_ACEOF
1877if ac_fn_c_try_compile "$LINENO"; then :
1878  ac_header_compiler=yes
1879else
1880  ac_header_compiler=no
1881fi
1882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1884$as_echo "$ac_header_compiler" >&6; }
1885
1886# Is the header present?
1887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1888$as_echo_n "checking $2 presence... " >&6; }
1889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890/* end confdefs.h.  */
1891#include <$2>
1892_ACEOF
1893if ac_fn_c_try_cpp "$LINENO"; then :
1894  ac_header_preproc=yes
1895else
1896  ac_header_preproc=no
1897fi
1898rm -f conftest.err conftest.i conftest.$ac_ext
1899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1900$as_echo "$ac_header_preproc" >&6; }
1901
1902# So?  What about this header?
1903case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1904  yes:no: )
1905    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1906$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1907    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1908$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1909    ;;
1910  no:yes:* )
1911    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1912$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1913    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1914$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1915    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1916$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1917    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1918$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1919    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1920$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1921( $as_echo "## -------------------------------------------------------------------- ##
1922## Report this to https://gitlab.freedesktop.org/xorg/lib/libx11/issues ##
1923## -------------------------------------------------------------------- ##"
1924     ) | sed "s/^/$as_me: WARNING:     /" >&2
1925    ;;
1926esac
1927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928$as_echo_n "checking for $2... " >&6; }
1929if eval \${$3+:} false; then :
1930  $as_echo_n "(cached) " >&6
1931else
1932  eval "$3=\$ac_header_compiler"
1933fi
1934eval ac_res=\$$3
1935	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936$as_echo "$ac_res" >&6; }
1937fi
1938  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940} # ac_fn_c_check_header_mongrel
1941
1942# ac_fn_c_try_run LINENO
1943# ----------------------
1944# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1945# that executables *can* be run.
1946ac_fn_c_try_run ()
1947{
1948  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949  if { { ac_try="$ac_link"
1950case "(($ac_try" in
1951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952  *) ac_try_echo=$ac_try;;
1953esac
1954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955$as_echo "$ac_try_echo"; } >&5
1956  (eval "$ac_link") 2>&5
1957  ac_status=$?
1958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1960  { { case "(($ac_try" in
1961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962  *) ac_try_echo=$ac_try;;
1963esac
1964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965$as_echo "$ac_try_echo"; } >&5
1966  (eval "$ac_try") 2>&5
1967  ac_status=$?
1968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969  test $ac_status = 0; }; }; then :
1970  ac_retval=0
1971else
1972  $as_echo "$as_me: program exited with status $ac_status" >&5
1973       $as_echo "$as_me: failed program was:" >&5
1974sed 's/^/| /' conftest.$ac_ext >&5
1975
1976       ac_retval=$ac_status
1977fi
1978  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980  as_fn_set_status $ac_retval
1981
1982} # ac_fn_c_try_run
1983
1984# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1985# -------------------------------------------------------
1986# Tests whether HEADER exists and can be compiled using the include files in
1987# INCLUDES, setting the cache variable VAR accordingly.
1988ac_fn_c_check_header_compile ()
1989{
1990  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992$as_echo_n "checking for $2... " >&6; }
1993if eval \${$3+:} false; then :
1994  $as_echo_n "(cached) " >&6
1995else
1996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997/* end confdefs.h.  */
1998$4
1999#include <$2>
2000_ACEOF
2001if ac_fn_c_try_compile "$LINENO"; then :
2002  eval "$3=yes"
2003else
2004  eval "$3=no"
2005fi
2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007fi
2008eval ac_res=\$$3
2009	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010$as_echo "$ac_res" >&6; }
2011  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012
2013} # ac_fn_c_check_header_compile
2014
2015# ac_fn_c_try_link LINENO
2016# -----------------------
2017# Try to link conftest.$ac_ext, and return whether this succeeded.
2018ac_fn_c_try_link ()
2019{
2020  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021  rm -f conftest.$ac_objext conftest$ac_exeext
2022  if { { ac_try="$ac_link"
2023case "(($ac_try" in
2024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025  *) ac_try_echo=$ac_try;;
2026esac
2027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028$as_echo "$ac_try_echo"; } >&5
2029  (eval "$ac_link") 2>conftest.err
2030  ac_status=$?
2031  if test -s conftest.err; then
2032    grep -v '^ *+' conftest.err >conftest.er1
2033    cat conftest.er1 >&5
2034    mv -f conftest.er1 conftest.err
2035  fi
2036  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037  test $ac_status = 0; } && {
2038	 test -z "$ac_c_werror_flag" ||
2039	 test ! -s conftest.err
2040       } && test -s conftest$ac_exeext && {
2041	 test "$cross_compiling" = yes ||
2042	 test -x conftest$ac_exeext
2043       }; then :
2044  ac_retval=0
2045else
2046  $as_echo "$as_me: failed program was:" >&5
2047sed 's/^/| /' conftest.$ac_ext >&5
2048
2049	ac_retval=1
2050fi
2051  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2052  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2053  # interfere with the next link command; also delete a directory that is
2054  # left behind by Apple's compiler.  We do this before executing the actions.
2055  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2056  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057  as_fn_set_status $ac_retval
2058
2059} # ac_fn_c_try_link
2060
2061# ac_fn_c_check_func LINENO FUNC VAR
2062# ----------------------------------
2063# Tests whether FUNC exists, setting the cache variable VAR accordingly
2064ac_fn_c_check_func ()
2065{
2066  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068$as_echo_n "checking for $2... " >&6; }
2069if eval \${$3+:} false; then :
2070  $as_echo_n "(cached) " >&6
2071else
2072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073/* end confdefs.h.  */
2074/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2075   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2076#define $2 innocuous_$2
2077
2078/* System header to define __stub macros and hopefully few prototypes,
2079    which can conflict with char $2 (); below.
2080    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2081    <limits.h> exists even on freestanding compilers.  */
2082
2083#ifdef __STDC__
2084# include <limits.h>
2085#else
2086# include <assert.h>
2087#endif
2088
2089#undef $2
2090
2091/* Override any GCC internal prototype to avoid an error.
2092   Use char because int might match the return type of a GCC
2093   builtin and then its argument prototype would still apply.  */
2094#ifdef __cplusplus
2095extern "C"
2096#endif
2097char $2 ();
2098/* The GNU C library defines this for functions which it implements
2099    to always fail with ENOSYS.  Some functions are actually named
2100    something starting with __ and the normal name is an alias.  */
2101#if defined __stub_$2 || defined __stub___$2
2102choke me
2103#endif
2104
2105int
2106main ()
2107{
2108return $2 ();
2109  ;
2110  return 0;
2111}
2112_ACEOF
2113if ac_fn_c_try_link "$LINENO"; then :
2114  eval "$3=yes"
2115else
2116  eval "$3=no"
2117fi
2118rm -f core conftest.err conftest.$ac_objext \
2119    conftest$ac_exeext conftest.$ac_ext
2120fi
2121eval ac_res=\$$3
2122	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123$as_echo "$ac_res" >&6; }
2124  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125
2126} # ac_fn_c_check_func
2127
2128# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2129# ---------------------------------------------
2130# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2131# accordingly.
2132ac_fn_c_check_decl ()
2133{
2134  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135  as_decl_name=`echo $2|sed 's/ *(.*//'`
2136  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2138$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2139if eval \${$3+:} false; then :
2140  $as_echo_n "(cached) " >&6
2141else
2142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143/* end confdefs.h.  */
2144$4
2145int
2146main ()
2147{
2148#ifndef $as_decl_name
2149#ifdef __cplusplus
2150  (void) $as_decl_use;
2151#else
2152  (void) $as_decl_name;
2153#endif
2154#endif
2155
2156  ;
2157  return 0;
2158}
2159_ACEOF
2160if ac_fn_c_try_compile "$LINENO"; then :
2161  eval "$3=yes"
2162else
2163  eval "$3=no"
2164fi
2165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166fi
2167eval ac_res=\$$3
2168	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169$as_echo "$ac_res" >&6; }
2170  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171
2172} # ac_fn_c_check_decl
2173
2174# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2175# ----------------------------------------------------
2176# Tries to find if the field MEMBER exists in type AGGR, after including
2177# INCLUDES, setting cache variable VAR accordingly.
2178ac_fn_c_check_member ()
2179{
2180  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2182$as_echo_n "checking for $2.$3... " >&6; }
2183if eval \${$4+:} false; then :
2184  $as_echo_n "(cached) " >&6
2185else
2186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187/* end confdefs.h.  */
2188$5
2189int
2190main ()
2191{
2192static $2 ac_aggr;
2193if (ac_aggr.$3)
2194return 0;
2195  ;
2196  return 0;
2197}
2198_ACEOF
2199if ac_fn_c_try_compile "$LINENO"; then :
2200  eval "$4=yes"
2201else
2202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203/* end confdefs.h.  */
2204$5
2205int
2206main ()
2207{
2208static $2 ac_aggr;
2209if (sizeof ac_aggr.$3)
2210return 0;
2211  ;
2212  return 0;
2213}
2214_ACEOF
2215if ac_fn_c_try_compile "$LINENO"; then :
2216  eval "$4=yes"
2217else
2218  eval "$4=no"
2219fi
2220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221fi
2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223fi
2224eval ac_res=\$$4
2225	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226$as_echo "$ac_res" >&6; }
2227  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228
2229} # ac_fn_c_check_member
2230
2231# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2232# -------------------------------------------
2233# Tests whether TYPE exists after having included INCLUDES, setting cache
2234# variable VAR accordingly.
2235ac_fn_c_check_type ()
2236{
2237  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2239$as_echo_n "checking for $2... " >&6; }
2240if eval \${$3+:} false; then :
2241  $as_echo_n "(cached) " >&6
2242else
2243  eval "$3=no"
2244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245/* end confdefs.h.  */
2246$4
2247int
2248main ()
2249{
2250if (sizeof ($2))
2251	 return 0;
2252  ;
2253  return 0;
2254}
2255_ACEOF
2256if ac_fn_c_try_compile "$LINENO"; then :
2257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258/* end confdefs.h.  */
2259$4
2260int
2261main ()
2262{
2263if (sizeof (($2)))
2264	    return 0;
2265  ;
2266  return 0;
2267}
2268_ACEOF
2269if ac_fn_c_try_compile "$LINENO"; then :
2270
2271else
2272  eval "$3=yes"
2273fi
2274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275fi
2276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277fi
2278eval ac_res=\$$3
2279	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2280$as_echo "$ac_res" >&6; }
2281  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2282
2283} # ac_fn_c_check_type
2284cat >config.log <<_ACEOF
2285This file contains any messages produced by compilers while
2286running configure, to aid debugging if configure makes a mistake.
2287
2288It was created by libX11 $as_me 1.6.6, which was
2289generated by GNU Autoconf 2.69.  Invocation command line was
2290
2291  $ $0 $@
2292
2293_ACEOF
2294exec 5>>config.log
2295{
2296cat <<_ASUNAME
2297## --------- ##
2298## Platform. ##
2299## --------- ##
2300
2301hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2302uname -m = `(uname -m) 2>/dev/null || echo unknown`
2303uname -r = `(uname -r) 2>/dev/null || echo unknown`
2304uname -s = `(uname -s) 2>/dev/null || echo unknown`
2305uname -v = `(uname -v) 2>/dev/null || echo unknown`
2306
2307/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2308/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2309
2310/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2311/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2312/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2313/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2314/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2315/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2316/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2317
2318_ASUNAME
2319
2320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321for as_dir in $PATH
2322do
2323  IFS=$as_save_IFS
2324  test -z "$as_dir" && as_dir=.
2325    $as_echo "PATH: $as_dir"
2326  done
2327IFS=$as_save_IFS
2328
2329} >&5
2330
2331cat >&5 <<_ACEOF
2332
2333
2334## ----------- ##
2335## Core tests. ##
2336## ----------- ##
2337
2338_ACEOF
2339
2340
2341# Keep a trace of the command line.
2342# Strip out --no-create and --no-recursion so they do not pile up.
2343# Strip out --silent because we don't want to record it for future runs.
2344# Also quote any args containing shell meta-characters.
2345# Make two passes to allow for proper duplicate-argument suppression.
2346ac_configure_args=
2347ac_configure_args0=
2348ac_configure_args1=
2349ac_must_keep_next=false
2350for ac_pass in 1 2
2351do
2352  for ac_arg
2353  do
2354    case $ac_arg in
2355    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2356    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2357    | -silent | --silent | --silen | --sile | --sil)
2358      continue ;;
2359    *\'*)
2360      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2361    esac
2362    case $ac_pass in
2363    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2364    2)
2365      as_fn_append ac_configure_args1 " '$ac_arg'"
2366      if test $ac_must_keep_next = true; then
2367	ac_must_keep_next=false # Got value, back to normal.
2368      else
2369	case $ac_arg in
2370	  *=* | --config-cache | -C | -disable-* | --disable-* \
2371	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2372	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2373	  | -with-* | --with-* | -without-* | --without-* | --x)
2374	    case "$ac_configure_args0 " in
2375	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2376	    esac
2377	    ;;
2378	  -* ) ac_must_keep_next=true ;;
2379	esac
2380      fi
2381      as_fn_append ac_configure_args " '$ac_arg'"
2382      ;;
2383    esac
2384  done
2385done
2386{ ac_configure_args0=; unset ac_configure_args0;}
2387{ ac_configure_args1=; unset ac_configure_args1;}
2388
2389# When interrupted or exit'd, cleanup temporary files, and complete
2390# config.log.  We remove comments because anyway the quotes in there
2391# would cause problems or look ugly.
2392# WARNING: Use '\'' to represent an apostrophe within the trap.
2393# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2394trap 'exit_status=$?
2395  # Save into config.log some information that might help in debugging.
2396  {
2397    echo
2398
2399    $as_echo "## ---------------- ##
2400## Cache variables. ##
2401## ---------------- ##"
2402    echo
2403    # The following way of writing the cache mishandles newlines in values,
2404(
2405  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2406    eval ac_val=\$$ac_var
2407    case $ac_val in #(
2408    *${as_nl}*)
2409      case $ac_var in #(
2410      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2411$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2412      esac
2413      case $ac_var in #(
2414      _ | IFS | as_nl) ;; #(
2415      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2416      *) { eval $ac_var=; unset $ac_var;} ;;
2417      esac ;;
2418    esac
2419  done
2420  (set) 2>&1 |
2421    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2422    *${as_nl}ac_space=\ *)
2423      sed -n \
2424	"s/'\''/'\''\\\\'\'''\''/g;
2425	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2426      ;; #(
2427    *)
2428      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2429      ;;
2430    esac |
2431    sort
2432)
2433    echo
2434
2435    $as_echo "## ----------------- ##
2436## Output variables. ##
2437## ----------------- ##"
2438    echo
2439    for ac_var in $ac_subst_vars
2440    do
2441      eval ac_val=\$$ac_var
2442      case $ac_val in
2443      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2444      esac
2445      $as_echo "$ac_var='\''$ac_val'\''"
2446    done | sort
2447    echo
2448
2449    if test -n "$ac_subst_files"; then
2450      $as_echo "## ------------------- ##
2451## File substitutions. ##
2452## ------------------- ##"
2453      echo
2454      for ac_var in $ac_subst_files
2455      do
2456	eval ac_val=\$$ac_var
2457	case $ac_val in
2458	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2459	esac
2460	$as_echo "$ac_var='\''$ac_val'\''"
2461      done | sort
2462      echo
2463    fi
2464
2465    if test -s confdefs.h; then
2466      $as_echo "## ----------- ##
2467## confdefs.h. ##
2468## ----------- ##"
2469      echo
2470      cat confdefs.h
2471      echo
2472    fi
2473    test "$ac_signal" != 0 &&
2474      $as_echo "$as_me: caught signal $ac_signal"
2475    $as_echo "$as_me: exit $exit_status"
2476  } >&5
2477  rm -f core *.core core.conftest.* &&
2478    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2479    exit $exit_status
2480' 0
2481for ac_signal in 1 2 13 15; do
2482  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2483done
2484ac_signal=0
2485
2486# confdefs.h avoids OS command line length limits that DEFS can exceed.
2487rm -f -r conftest* confdefs.h
2488
2489$as_echo "/* confdefs.h */" > confdefs.h
2490
2491# Predefined preprocessor variables.
2492
2493cat >>confdefs.h <<_ACEOF
2494#define PACKAGE_NAME "$PACKAGE_NAME"
2495_ACEOF
2496
2497cat >>confdefs.h <<_ACEOF
2498#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2499_ACEOF
2500
2501cat >>confdefs.h <<_ACEOF
2502#define PACKAGE_VERSION "$PACKAGE_VERSION"
2503_ACEOF
2504
2505cat >>confdefs.h <<_ACEOF
2506#define PACKAGE_STRING "$PACKAGE_STRING"
2507_ACEOF
2508
2509cat >>confdefs.h <<_ACEOF
2510#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2511_ACEOF
2512
2513cat >>confdefs.h <<_ACEOF
2514#define PACKAGE_URL "$PACKAGE_URL"
2515_ACEOF
2516
2517
2518# Let the site file select an alternate cache file if it wants to.
2519# Prefer an explicitly selected file to automatically selected ones.
2520ac_site_file1=NONE
2521ac_site_file2=NONE
2522if test -n "$CONFIG_SITE"; then
2523  # We do not want a PATH search for config.site.
2524  case $CONFIG_SITE in #((
2525    -*)  ac_site_file1=./$CONFIG_SITE;;
2526    */*) ac_site_file1=$CONFIG_SITE;;
2527    *)   ac_site_file1=./$CONFIG_SITE;;
2528  esac
2529elif test "x$prefix" != xNONE; then
2530  ac_site_file1=$prefix/share/config.site
2531  ac_site_file2=$prefix/etc/config.site
2532else
2533  ac_site_file1=$ac_default_prefix/share/config.site
2534  ac_site_file2=$ac_default_prefix/etc/config.site
2535fi
2536for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2537do
2538  test "x$ac_site_file" = xNONE && continue
2539  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2540    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2541$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2542    sed 's/^/| /' "$ac_site_file" >&5
2543    . "$ac_site_file" \
2544      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2546as_fn_error $? "failed to load site script $ac_site_file
2547See \`config.log' for more details" "$LINENO" 5; }
2548  fi
2549done
2550
2551if test -r "$cache_file"; then
2552  # Some versions of bash will fail to source /dev/null (special files
2553  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2554  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2555    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2556$as_echo "$as_me: loading cache $cache_file" >&6;}
2557    case $cache_file in
2558      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2559      *)                      . "./$cache_file";;
2560    esac
2561  fi
2562else
2563  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2564$as_echo "$as_me: creating cache $cache_file" >&6;}
2565  >$cache_file
2566fi
2567
2568as_fn_append ac_header_list " stdlib.h"
2569as_fn_append ac_header_list " unistd.h"
2570as_fn_append ac_header_list " sys/param.h"
2571# Check that the precious variables saved in the cache have kept the same
2572# value.
2573ac_cache_corrupted=false
2574for ac_var in $ac_precious_vars; do
2575  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2576  eval ac_new_set=\$ac_env_${ac_var}_set
2577  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2578  eval ac_new_val=\$ac_env_${ac_var}_value
2579  case $ac_old_set,$ac_new_set in
2580    set,)
2581      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2582$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2583      ac_cache_corrupted=: ;;
2584    ,set)
2585      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2586$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2587      ac_cache_corrupted=: ;;
2588    ,);;
2589    *)
2590      if test "x$ac_old_val" != "x$ac_new_val"; then
2591	# differences in whitespace do not lead to failure.
2592	ac_old_val_w=`echo x $ac_old_val`
2593	ac_new_val_w=`echo x $ac_new_val`
2594	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2595	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2596$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2597	  ac_cache_corrupted=:
2598	else
2599	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2600$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2601	  eval $ac_var=\$ac_old_val
2602	fi
2603	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2604$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2605	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2606$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2607      fi;;
2608  esac
2609  # Pass precious variables to config.status.
2610  if test "$ac_new_set" = set; then
2611    case $ac_new_val in
2612    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2613    *) ac_arg=$ac_var=$ac_new_val ;;
2614    esac
2615    case " $ac_configure_args " in
2616      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2617      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2618    esac
2619  fi
2620done
2621if $ac_cache_corrupted; then
2622  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2624  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2625$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2626  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2627fi
2628## -------------------- ##
2629## Main body of script. ##
2630## -------------------- ##
2631
2632ac_ext=c
2633ac_cpp='$CPP $CPPFLAGS'
2634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637
2638
2639
2640ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h"
2641
2642
2643ac_aux_dir=
2644for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2645  if test -f "$ac_dir/install-sh"; then
2646    ac_aux_dir=$ac_dir
2647    ac_install_sh="$ac_aux_dir/install-sh -c"
2648    break
2649  elif test -f "$ac_dir/install.sh"; then
2650    ac_aux_dir=$ac_dir
2651    ac_install_sh="$ac_aux_dir/install.sh -c"
2652    break
2653  elif test -f "$ac_dir/shtool"; then
2654    ac_aux_dir=$ac_dir
2655    ac_install_sh="$ac_aux_dir/shtool install -c"
2656    break
2657  fi
2658done
2659if test -z "$ac_aux_dir"; then
2660  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2661fi
2662
2663# These three variables are undocumented and unsupported,
2664# and are intended to be withdrawn in a future Autoconf release.
2665# They can cause serious problems if a builder's source tree is in a directory
2666# whose full name contains unusual characters.
2667ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2668ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2669ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2670
2671
2672# Make sure we can run config.sub.
2673$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2674  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2675
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2677$as_echo_n "checking build system type... " >&6; }
2678if ${ac_cv_build+:} false; then :
2679  $as_echo_n "(cached) " >&6
2680else
2681  ac_build_alias=$build_alias
2682test "x$ac_build_alias" = x &&
2683  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2684test "x$ac_build_alias" = x &&
2685  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2686ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2687  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2688
2689fi
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2691$as_echo "$ac_cv_build" >&6; }
2692case $ac_cv_build in
2693*-*-*) ;;
2694*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2695esac
2696build=$ac_cv_build
2697ac_save_IFS=$IFS; IFS='-'
2698set x $ac_cv_build
2699shift
2700build_cpu=$1
2701build_vendor=$2
2702shift; shift
2703# Remember, the first character of IFS is used to create $*,
2704# except with old shells:
2705build_os=$*
2706IFS=$ac_save_IFS
2707case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2708
2709
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2711$as_echo_n "checking host system type... " >&6; }
2712if ${ac_cv_host+:} false; then :
2713  $as_echo_n "(cached) " >&6
2714else
2715  if test "x$host_alias" = x; then
2716  ac_cv_host=$ac_cv_build
2717else
2718  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2719    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2720fi
2721
2722fi
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2724$as_echo "$ac_cv_host" >&6; }
2725case $ac_cv_host in
2726*-*-*) ;;
2727*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2728esac
2729host=$ac_cv_host
2730ac_save_IFS=$IFS; IFS='-'
2731set x $ac_cv_host
2732shift
2733host_cpu=$1
2734host_vendor=$2
2735shift; shift
2736# Remember, the first character of IFS is used to create $*,
2737# except with old shells:
2738host_os=$*
2739IFS=$ac_save_IFS
2740case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2741
2742
2743# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2744# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2745# to avoid autoconf errors.
2746# Expand $ac_aux_dir to an absolute path.
2747am_aux_dir=`cd "$ac_aux_dir" && pwd`
2748
2749ac_ext=c
2750ac_cpp='$CPP $CPPFLAGS'
2751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754if test -n "$ac_tool_prefix"; then
2755  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2756set dummy ${ac_tool_prefix}gcc; ac_word=$2
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758$as_echo_n "checking for $ac_word... " >&6; }
2759if ${ac_cv_prog_CC+:} false; then :
2760  $as_echo_n "(cached) " >&6
2761else
2762  if test -n "$CC"; then
2763  ac_cv_prog_CC="$CC" # Let the user override the test.
2764else
2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766for as_dir in $PATH
2767do
2768  IFS=$as_save_IFS
2769  test -z "$as_dir" && as_dir=.
2770    for ac_exec_ext in '' $ac_executable_extensions; do
2771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774    break 2
2775  fi
2776done
2777  done
2778IFS=$as_save_IFS
2779
2780fi
2781fi
2782CC=$ac_cv_prog_CC
2783if test -n "$CC"; then
2784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2785$as_echo "$CC" >&6; }
2786else
2787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788$as_echo "no" >&6; }
2789fi
2790
2791
2792fi
2793if test -z "$ac_cv_prog_CC"; then
2794  ac_ct_CC=$CC
2795  # Extract the first word of "gcc", so it can be a program name with args.
2796set dummy gcc; ac_word=$2
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798$as_echo_n "checking for $ac_word... " >&6; }
2799if ${ac_cv_prog_ac_ct_CC+:} false; then :
2800  $as_echo_n "(cached) " >&6
2801else
2802  if test -n "$ac_ct_CC"; then
2803  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2804else
2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808  IFS=$as_save_IFS
2809  test -z "$as_dir" && as_dir=.
2810    for ac_exec_ext in '' $ac_executable_extensions; do
2811  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812    ac_cv_prog_ac_ct_CC="gcc"
2813    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814    break 2
2815  fi
2816done
2817  done
2818IFS=$as_save_IFS
2819
2820fi
2821fi
2822ac_ct_CC=$ac_cv_prog_ac_ct_CC
2823if test -n "$ac_ct_CC"; then
2824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2825$as_echo "$ac_ct_CC" >&6; }
2826else
2827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828$as_echo "no" >&6; }
2829fi
2830
2831  if test "x$ac_ct_CC" = x; then
2832    CC=""
2833  else
2834    case $cross_compiling:$ac_tool_warned in
2835yes:)
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2838ac_tool_warned=yes ;;
2839esac
2840    CC=$ac_ct_CC
2841  fi
2842else
2843  CC="$ac_cv_prog_CC"
2844fi
2845
2846if test -z "$CC"; then
2847          if test -n "$ac_tool_prefix"; then
2848    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2849set dummy ${ac_tool_prefix}cc; ac_word=$2
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851$as_echo_n "checking for $ac_word... " >&6; }
2852if ${ac_cv_prog_CC+:} false; then :
2853  $as_echo_n "(cached) " >&6
2854else
2855  if test -n "$CC"; then
2856  ac_cv_prog_CC="$CC" # Let the user override the test.
2857else
2858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859for as_dir in $PATH
2860do
2861  IFS=$as_save_IFS
2862  test -z "$as_dir" && as_dir=.
2863    for ac_exec_ext in '' $ac_executable_extensions; do
2864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865    ac_cv_prog_CC="${ac_tool_prefix}cc"
2866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867    break 2
2868  fi
2869done
2870  done
2871IFS=$as_save_IFS
2872
2873fi
2874fi
2875CC=$ac_cv_prog_CC
2876if test -n "$CC"; then
2877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2878$as_echo "$CC" >&6; }
2879else
2880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881$as_echo "no" >&6; }
2882fi
2883
2884
2885  fi
2886fi
2887if test -z "$CC"; then
2888  # Extract the first word of "cc", so it can be a program name with args.
2889set dummy cc; ac_word=$2
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891$as_echo_n "checking for $ac_word... " >&6; }
2892if ${ac_cv_prog_CC+:} false; then :
2893  $as_echo_n "(cached) " >&6
2894else
2895  if test -n "$CC"; then
2896  ac_cv_prog_CC="$CC" # Let the user override the test.
2897else
2898  ac_prog_rejected=no
2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900for as_dir in $PATH
2901do
2902  IFS=$as_save_IFS
2903  test -z "$as_dir" && as_dir=.
2904    for ac_exec_ext in '' $ac_executable_extensions; do
2905  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2907       ac_prog_rejected=yes
2908       continue
2909     fi
2910    ac_cv_prog_CC="cc"
2911    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912    break 2
2913  fi
2914done
2915  done
2916IFS=$as_save_IFS
2917
2918if test $ac_prog_rejected = yes; then
2919  # We found a bogon in the path, so make sure we never use it.
2920  set dummy $ac_cv_prog_CC
2921  shift
2922  if test $# != 0; then
2923    # We chose a different compiler from the bogus one.
2924    # However, it has the same basename, so the bogon will be chosen
2925    # first if we set CC to just the basename; use the full file name.
2926    shift
2927    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2928  fi
2929fi
2930fi
2931fi
2932CC=$ac_cv_prog_CC
2933if test -n "$CC"; then
2934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2935$as_echo "$CC" >&6; }
2936else
2937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938$as_echo "no" >&6; }
2939fi
2940
2941
2942fi
2943if test -z "$CC"; then
2944  if test -n "$ac_tool_prefix"; then
2945  for ac_prog in cl.exe
2946  do
2947    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2948set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950$as_echo_n "checking for $ac_word... " >&6; }
2951if ${ac_cv_prog_CC+:} false; then :
2952  $as_echo_n "(cached) " >&6
2953else
2954  if test -n "$CC"; then
2955  ac_cv_prog_CC="$CC" # Let the user override the test.
2956else
2957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958for as_dir in $PATH
2959do
2960  IFS=$as_save_IFS
2961  test -z "$as_dir" && as_dir=.
2962    for ac_exec_ext in '' $ac_executable_extensions; do
2963  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966    break 2
2967  fi
2968done
2969  done
2970IFS=$as_save_IFS
2971
2972fi
2973fi
2974CC=$ac_cv_prog_CC
2975if test -n "$CC"; then
2976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2977$as_echo "$CC" >&6; }
2978else
2979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980$as_echo "no" >&6; }
2981fi
2982
2983
2984    test -n "$CC" && break
2985  done
2986fi
2987if test -z "$CC"; then
2988  ac_ct_CC=$CC
2989  for ac_prog in cl.exe
2990do
2991  # Extract the first word of "$ac_prog", so it can be a program name with args.
2992set dummy $ac_prog; ac_word=$2
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994$as_echo_n "checking for $ac_word... " >&6; }
2995if ${ac_cv_prog_ac_ct_CC+:} false; then :
2996  $as_echo_n "(cached) " >&6
2997else
2998  if test -n "$ac_ct_CC"; then
2999  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3000else
3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH
3003do
3004  IFS=$as_save_IFS
3005  test -z "$as_dir" && as_dir=.
3006    for ac_exec_ext in '' $ac_executable_extensions; do
3007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008    ac_cv_prog_ac_ct_CC="$ac_prog"
3009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010    break 2
3011  fi
3012done
3013  done
3014IFS=$as_save_IFS
3015
3016fi
3017fi
3018ac_ct_CC=$ac_cv_prog_ac_ct_CC
3019if test -n "$ac_ct_CC"; then
3020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3021$as_echo "$ac_ct_CC" >&6; }
3022else
3023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024$as_echo "no" >&6; }
3025fi
3026
3027
3028  test -n "$ac_ct_CC" && break
3029done
3030
3031  if test "x$ac_ct_CC" = x; then
3032    CC=""
3033  else
3034    case $cross_compiling:$ac_tool_warned in
3035yes:)
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038ac_tool_warned=yes ;;
3039esac
3040    CC=$ac_ct_CC
3041  fi
3042fi
3043
3044fi
3045
3046
3047test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3049as_fn_error $? "no acceptable C compiler found in \$PATH
3050See \`config.log' for more details" "$LINENO" 5; }
3051
3052# Provide some information about the compiler.
3053$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3054set X $ac_compile
3055ac_compiler=$2
3056for ac_option in --version -v -V -qversion; do
3057  { { ac_try="$ac_compiler $ac_option >&5"
3058case "(($ac_try" in
3059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060  *) ac_try_echo=$ac_try;;
3061esac
3062eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3063$as_echo "$ac_try_echo"; } >&5
3064  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3065  ac_status=$?
3066  if test -s conftest.err; then
3067    sed '10a\
3068... rest of stderr output deleted ...
3069         10q' conftest.err >conftest.er1
3070    cat conftest.er1 >&5
3071  fi
3072  rm -f conftest.er1 conftest.err
3073  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3074  test $ac_status = 0; }
3075done
3076
3077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078/* end confdefs.h.  */
3079
3080int
3081main ()
3082{
3083
3084  ;
3085  return 0;
3086}
3087_ACEOF
3088ac_clean_files_save=$ac_clean_files
3089ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3090# Try to create an executable without -o first, disregard a.out.
3091# It will help us diagnose broken compilers, and finding out an intuition
3092# of exeext.
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3094$as_echo_n "checking whether the C compiler works... " >&6; }
3095ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3096
3097# The possible output files:
3098ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3099
3100ac_rmfiles=
3101for ac_file in $ac_files
3102do
3103  case $ac_file in
3104    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3105    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3106  esac
3107done
3108rm -f $ac_rmfiles
3109
3110if { { ac_try="$ac_link_default"
3111case "(($ac_try" in
3112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113  *) ac_try_echo=$ac_try;;
3114esac
3115eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116$as_echo "$ac_try_echo"; } >&5
3117  (eval "$ac_link_default") 2>&5
3118  ac_status=$?
3119  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120  test $ac_status = 0; }; then :
3121  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3122# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3123# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3124# so that the user can short-circuit this test for compilers unknown to
3125# Autoconf.
3126for ac_file in $ac_files ''
3127do
3128  test -f "$ac_file" || continue
3129  case $ac_file in
3130    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3131	;;
3132    [ab].out )
3133	# We found the default executable, but exeext='' is most
3134	# certainly right.
3135	break;;
3136    *.* )
3137	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3138	then :; else
3139	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3140	fi
3141	# We set ac_cv_exeext here because the later test for it is not
3142	# safe: cross compilers may not add the suffix if given an `-o'
3143	# argument, so we may need to know it at that point already.
3144	# Even if this section looks crufty: it has the advantage of
3145	# actually working.
3146	break;;
3147    * )
3148	break;;
3149  esac
3150done
3151test "$ac_cv_exeext" = no && ac_cv_exeext=
3152
3153else
3154  ac_file=''
3155fi
3156if test -z "$ac_file"; then :
3157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158$as_echo "no" >&6; }
3159$as_echo "$as_me: failed program was:" >&5
3160sed 's/^/| /' conftest.$ac_ext >&5
3161
3162{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3164as_fn_error 77 "C compiler cannot create executables
3165See \`config.log' for more details" "$LINENO" 5; }
3166else
3167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3168$as_echo "yes" >&6; }
3169fi
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3171$as_echo_n "checking for C compiler default output file name... " >&6; }
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3173$as_echo "$ac_file" >&6; }
3174ac_exeext=$ac_cv_exeext
3175
3176rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3177ac_clean_files=$ac_clean_files_save
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3179$as_echo_n "checking for suffix of executables... " >&6; }
3180if { { ac_try="$ac_link"
3181case "(($ac_try" in
3182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183  *) ac_try_echo=$ac_try;;
3184esac
3185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3186$as_echo "$ac_try_echo"; } >&5
3187  (eval "$ac_link") 2>&5
3188  ac_status=$?
3189  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3190  test $ac_status = 0; }; then :
3191  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3192# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3193# work properly (i.e., refer to `conftest.exe'), while it won't with
3194# `rm'.
3195for ac_file in conftest.exe conftest conftest.*; do
3196  test -f "$ac_file" || continue
3197  case $ac_file in
3198    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3199    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3200	  break;;
3201    * ) break;;
3202  esac
3203done
3204else
3205  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3207as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3208See \`config.log' for more details" "$LINENO" 5; }
3209fi
3210rm -f conftest conftest$ac_cv_exeext
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3212$as_echo "$ac_cv_exeext" >&6; }
3213
3214rm -f conftest.$ac_ext
3215EXEEXT=$ac_cv_exeext
3216ac_exeext=$EXEEXT
3217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218/* end confdefs.h.  */
3219#include <stdio.h>
3220int
3221main ()
3222{
3223FILE *f = fopen ("conftest.out", "w");
3224 return ferror (f) || fclose (f) != 0;
3225
3226  ;
3227  return 0;
3228}
3229_ACEOF
3230ac_clean_files="$ac_clean_files conftest.out"
3231# Check that the compiler produces executables we can run.  If not, either
3232# the compiler is broken, or we cross compile.
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3234$as_echo_n "checking whether we are cross compiling... " >&6; }
3235if test "$cross_compiling" != yes; then
3236  { { ac_try="$ac_link"
3237case "(($ac_try" in
3238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239  *) ac_try_echo=$ac_try;;
3240esac
3241eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242$as_echo "$ac_try_echo"; } >&5
3243  (eval "$ac_link") 2>&5
3244  ac_status=$?
3245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246  test $ac_status = 0; }
3247  if { ac_try='./conftest$ac_cv_exeext'
3248  { { case "(($ac_try" in
3249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250  *) ac_try_echo=$ac_try;;
3251esac
3252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253$as_echo "$ac_try_echo"; } >&5
3254  (eval "$ac_try") 2>&5
3255  ac_status=$?
3256  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257  test $ac_status = 0; }; }; then
3258    cross_compiling=no
3259  else
3260    if test "$cross_compiling" = maybe; then
3261	cross_compiling=yes
3262    else
3263	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265as_fn_error $? "cannot run C compiled programs.
3266If you meant to cross compile, use \`--host'.
3267See \`config.log' for more details" "$LINENO" 5; }
3268    fi
3269  fi
3270fi
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3272$as_echo "$cross_compiling" >&6; }
3273
3274rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3275ac_clean_files=$ac_clean_files_save
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3277$as_echo_n "checking for suffix of object files... " >&6; }
3278if ${ac_cv_objext+:} false; then :
3279  $as_echo_n "(cached) " >&6
3280else
3281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282/* end confdefs.h.  */
3283
3284int
3285main ()
3286{
3287
3288  ;
3289  return 0;
3290}
3291_ACEOF
3292rm -f conftest.o conftest.obj
3293if { { ac_try="$ac_compile"
3294case "(($ac_try" in
3295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296  *) ac_try_echo=$ac_try;;
3297esac
3298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3299$as_echo "$ac_try_echo"; } >&5
3300  (eval "$ac_compile") 2>&5
3301  ac_status=$?
3302  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303  test $ac_status = 0; }; then :
3304  for ac_file in conftest.o conftest.obj conftest.*; do
3305  test -f "$ac_file" || continue;
3306  case $ac_file in
3307    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3308    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3309       break;;
3310  esac
3311done
3312else
3313  $as_echo "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
3316{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318as_fn_error $? "cannot compute suffix of object files: cannot compile
3319See \`config.log' for more details" "$LINENO" 5; }
3320fi
3321rm -f conftest.$ac_cv_objext conftest.$ac_ext
3322fi
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3324$as_echo "$ac_cv_objext" >&6; }
3325OBJEXT=$ac_cv_objext
3326ac_objext=$OBJEXT
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3328$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3329if ${ac_cv_c_compiler_gnu+:} false; then :
3330  $as_echo_n "(cached) " >&6
3331else
3332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333/* end confdefs.h.  */
3334
3335int
3336main ()
3337{
3338#ifndef __GNUC__
3339       choke me
3340#endif
3341
3342  ;
3343  return 0;
3344}
3345_ACEOF
3346if ac_fn_c_try_compile "$LINENO"; then :
3347  ac_compiler_gnu=yes
3348else
3349  ac_compiler_gnu=no
3350fi
3351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352ac_cv_c_compiler_gnu=$ac_compiler_gnu
3353
3354fi
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3356$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3357if test $ac_compiler_gnu = yes; then
3358  GCC=yes
3359else
3360  GCC=
3361fi
3362ac_test_CFLAGS=${CFLAGS+set}
3363ac_save_CFLAGS=$CFLAGS
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3365$as_echo_n "checking whether $CC accepts -g... " >&6; }
3366if ${ac_cv_prog_cc_g+:} false; then :
3367  $as_echo_n "(cached) " >&6
3368else
3369  ac_save_c_werror_flag=$ac_c_werror_flag
3370   ac_c_werror_flag=yes
3371   ac_cv_prog_cc_g=no
3372   CFLAGS="-g"
3373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374/* end confdefs.h.  */
3375
3376int
3377main ()
3378{
3379
3380  ;
3381  return 0;
3382}
3383_ACEOF
3384if ac_fn_c_try_compile "$LINENO"; then :
3385  ac_cv_prog_cc_g=yes
3386else
3387  CFLAGS=""
3388      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389/* end confdefs.h.  */
3390
3391int
3392main ()
3393{
3394
3395  ;
3396  return 0;
3397}
3398_ACEOF
3399if ac_fn_c_try_compile "$LINENO"; then :
3400
3401else
3402  ac_c_werror_flag=$ac_save_c_werror_flag
3403	 CFLAGS="-g"
3404	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405/* end confdefs.h.  */
3406
3407int
3408main ()
3409{
3410
3411  ;
3412  return 0;
3413}
3414_ACEOF
3415if ac_fn_c_try_compile "$LINENO"; then :
3416  ac_cv_prog_cc_g=yes
3417fi
3418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3419fi
3420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3421fi
3422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423   ac_c_werror_flag=$ac_save_c_werror_flag
3424fi
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3426$as_echo "$ac_cv_prog_cc_g" >&6; }
3427if test "$ac_test_CFLAGS" = set; then
3428  CFLAGS=$ac_save_CFLAGS
3429elif test $ac_cv_prog_cc_g = yes; then
3430  if test "$GCC" = yes; then
3431    CFLAGS="-g -O2"
3432  else
3433    CFLAGS="-g"
3434  fi
3435else
3436  if test "$GCC" = yes; then
3437    CFLAGS="-O2"
3438  else
3439    CFLAGS=
3440  fi
3441fi
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3443$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3444if ${ac_cv_prog_cc_c89+:} false; then :
3445  $as_echo_n "(cached) " >&6
3446else
3447  ac_cv_prog_cc_c89=no
3448ac_save_CC=$CC
3449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450/* end confdefs.h.  */
3451#include <stdarg.h>
3452#include <stdio.h>
3453struct stat;
3454/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3455struct buf { int x; };
3456FILE * (*rcsopen) (struct buf *, struct stat *, int);
3457static char *e (p, i)
3458     char **p;
3459     int i;
3460{
3461  return p[i];
3462}
3463static char *f (char * (*g) (char **, int), char **p, ...)
3464{
3465  char *s;
3466  va_list v;
3467  va_start (v,p);
3468  s = g (p, va_arg (v,int));
3469  va_end (v);
3470  return s;
3471}
3472
3473/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3474   function prototypes and stuff, but not '\xHH' hex character constants.
3475   These don't provoke an error unfortunately, instead are silently treated
3476   as 'x'.  The following induces an error, until -std is added to get
3477   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3478   array size at least.  It's necessary to write '\x00'==0 to get something
3479   that's true only with -std.  */
3480int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3481
3482/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3483   inside strings and character constants.  */
3484#define FOO(x) 'x'
3485int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3486
3487int test (int i, double x);
3488struct s1 {int (*f) (int a);};
3489struct s2 {int (*f) (double a);};
3490int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3491int argc;
3492char **argv;
3493int
3494main ()
3495{
3496return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3497  ;
3498  return 0;
3499}
3500_ACEOF
3501for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3502	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3503do
3504  CC="$ac_save_CC $ac_arg"
3505  if ac_fn_c_try_compile "$LINENO"; then :
3506  ac_cv_prog_cc_c89=$ac_arg
3507fi
3508rm -f core conftest.err conftest.$ac_objext
3509  test "x$ac_cv_prog_cc_c89" != "xno" && break
3510done
3511rm -f conftest.$ac_ext
3512CC=$ac_save_CC
3513
3514fi
3515# AC_CACHE_VAL
3516case "x$ac_cv_prog_cc_c89" in
3517  x)
3518    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3519$as_echo "none needed" >&6; } ;;
3520  xno)
3521    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3522$as_echo "unsupported" >&6; } ;;
3523  *)
3524    CC="$CC $ac_cv_prog_cc_c89"
3525    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3526$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3527esac
3528if test "x$ac_cv_prog_cc_c89" != xno; then :
3529
3530fi
3531
3532ac_ext=c
3533ac_cpp='$CPP $CPPFLAGS'
3534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537
3538ac_ext=c
3539ac_cpp='$CPP $CPPFLAGS'
3540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3542ac_compiler_gnu=$ac_cv_c_compiler_gnu
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3544$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3545if ${am_cv_prog_cc_c_o+:} false; then :
3546  $as_echo_n "(cached) " >&6
3547else
3548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549/* end confdefs.h.  */
3550
3551int
3552main ()
3553{
3554
3555  ;
3556  return 0;
3557}
3558_ACEOF
3559  # Make sure it works both with $CC and with simple cc.
3560  # Following AC_PROG_CC_C_O, we do the test twice because some
3561  # compilers refuse to overwrite an existing .o file with -o,
3562  # though they will create one.
3563  am_cv_prog_cc_c_o=yes
3564  for am_i in 1 2; do
3565    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3566   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3567   ac_status=$?
3568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569   (exit $ac_status); } \
3570         && test -f conftest2.$ac_objext; then
3571      : OK
3572    else
3573      am_cv_prog_cc_c_o=no
3574      break
3575    fi
3576  done
3577  rm -f core conftest*
3578  unset am_i
3579fi
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3581$as_echo "$am_cv_prog_cc_c_o" >&6; }
3582if test "$am_cv_prog_cc_c_o" != yes; then
3583   # Losing compiler, so override with the script.
3584   # FIXME: It is wrong to rewrite CC.
3585   # But if we don't then we get into trouble of one sort or another.
3586   # A longer-term fix would be to have automake use am__CC in this case,
3587   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3588   CC="$am_aux_dir/compile $CC"
3589fi
3590ac_ext=c
3591ac_cpp='$CPP $CPPFLAGS'
3592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3594ac_compiler_gnu=$ac_cv_c_compiler_gnu
3595
3596
3597
3598ac_ext=c
3599ac_cpp='$CPP $CPPFLAGS'
3600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602ac_compiler_gnu=$ac_cv_c_compiler_gnu
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3604$as_echo_n "checking how to run the C preprocessor... " >&6; }
3605# On Suns, sometimes $CPP names a directory.
3606if test -n "$CPP" && test -d "$CPP"; then
3607  CPP=
3608fi
3609if test -z "$CPP"; then
3610  if ${ac_cv_prog_CPP+:} false; then :
3611  $as_echo_n "(cached) " >&6
3612else
3613      # Double quotes because CPP needs to be expanded
3614    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3615    do
3616      ac_preproc_ok=false
3617for ac_c_preproc_warn_flag in '' yes
3618do
3619  # Use a header file that comes with gcc, so configuring glibc
3620  # with a fresh cross-compiler works.
3621  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3622  # <limits.h> exists even on freestanding compilers.
3623  # On the NeXT, cc -E runs the code through the compiler's parser,
3624  # not just through cpp. "Syntax error" is here to catch this case.
3625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626/* end confdefs.h.  */
3627#ifdef __STDC__
3628# include <limits.h>
3629#else
3630# include <assert.h>
3631#endif
3632		     Syntax error
3633_ACEOF
3634if ac_fn_c_try_cpp "$LINENO"; then :
3635
3636else
3637  # Broken: fails on valid input.
3638continue
3639fi
3640rm -f conftest.err conftest.i conftest.$ac_ext
3641
3642  # OK, works on sane cases.  Now check whether nonexistent headers
3643  # can be detected and how.
3644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645/* end confdefs.h.  */
3646#include <ac_nonexistent.h>
3647_ACEOF
3648if ac_fn_c_try_cpp "$LINENO"; then :
3649  # Broken: success on invalid input.
3650continue
3651else
3652  # Passes both tests.
3653ac_preproc_ok=:
3654break
3655fi
3656rm -f conftest.err conftest.i conftest.$ac_ext
3657
3658done
3659# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3660rm -f conftest.i conftest.err conftest.$ac_ext
3661if $ac_preproc_ok; then :
3662  break
3663fi
3664
3665    done
3666    ac_cv_prog_CPP=$CPP
3667
3668fi
3669  CPP=$ac_cv_prog_CPP
3670else
3671  ac_cv_prog_CPP=$CPP
3672fi
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3674$as_echo "$CPP" >&6; }
3675ac_preproc_ok=false
3676for ac_c_preproc_warn_flag in '' yes
3677do
3678  # Use a header file that comes with gcc, so configuring glibc
3679  # with a fresh cross-compiler works.
3680  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3681  # <limits.h> exists even on freestanding compilers.
3682  # On the NeXT, cc -E runs the code through the compiler's parser,
3683  # not just through cpp. "Syntax error" is here to catch this case.
3684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685/* end confdefs.h.  */
3686#ifdef __STDC__
3687# include <limits.h>
3688#else
3689# include <assert.h>
3690#endif
3691		     Syntax error
3692_ACEOF
3693if ac_fn_c_try_cpp "$LINENO"; then :
3694
3695else
3696  # Broken: fails on valid input.
3697continue
3698fi
3699rm -f conftest.err conftest.i conftest.$ac_ext
3700
3701  # OK, works on sane cases.  Now check whether nonexistent headers
3702  # can be detected and how.
3703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704/* end confdefs.h.  */
3705#include <ac_nonexistent.h>
3706_ACEOF
3707if ac_fn_c_try_cpp "$LINENO"; then :
3708  # Broken: success on invalid input.
3709continue
3710else
3711  # Passes both tests.
3712ac_preproc_ok=:
3713break
3714fi
3715rm -f conftest.err conftest.i conftest.$ac_ext
3716
3717done
3718# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3719rm -f conftest.i conftest.err conftest.$ac_ext
3720if $ac_preproc_ok; then :
3721
3722else
3723  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3726See \`config.log' for more details" "$LINENO" 5; }
3727fi
3728
3729ac_ext=c
3730ac_cpp='$CPP $CPPFLAGS'
3731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734
3735
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3737$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3738if ${ac_cv_path_GREP+:} false; then :
3739  $as_echo_n "(cached) " >&6
3740else
3741  if test -z "$GREP"; then
3742  ac_path_GREP_found=false
3743  # Loop through the user's path and test for each of PROGNAME-LIST
3744  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3746do
3747  IFS=$as_save_IFS
3748  test -z "$as_dir" && as_dir=.
3749    for ac_prog in grep ggrep; do
3750    for ac_exec_ext in '' $ac_executable_extensions; do
3751      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3752      as_fn_executable_p "$ac_path_GREP" || continue
3753# Check for GNU ac_path_GREP and select it if it is found.
3754  # Check for GNU $ac_path_GREP
3755case `"$ac_path_GREP" --version 2>&1` in
3756*GNU*)
3757  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3758*)
3759  ac_count=0
3760  $as_echo_n 0123456789 >"conftest.in"
3761  while :
3762  do
3763    cat "conftest.in" "conftest.in" >"conftest.tmp"
3764    mv "conftest.tmp" "conftest.in"
3765    cp "conftest.in" "conftest.nl"
3766    $as_echo 'GREP' >> "conftest.nl"
3767    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3768    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3769    as_fn_arith $ac_count + 1 && ac_count=$as_val
3770    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3771      # Best one so far, save it but keep looking for a better one
3772      ac_cv_path_GREP="$ac_path_GREP"
3773      ac_path_GREP_max=$ac_count
3774    fi
3775    # 10*(2^10) chars as input seems more than enough
3776    test $ac_count -gt 10 && break
3777  done
3778  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3779esac
3780
3781      $ac_path_GREP_found && break 3
3782    done
3783  done
3784  done
3785IFS=$as_save_IFS
3786  if test -z "$ac_cv_path_GREP"; then
3787    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3788  fi
3789else
3790  ac_cv_path_GREP=$GREP
3791fi
3792
3793fi
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3795$as_echo "$ac_cv_path_GREP" >&6; }
3796 GREP="$ac_cv_path_GREP"
3797
3798
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3800$as_echo_n "checking for egrep... " >&6; }
3801if ${ac_cv_path_EGREP+:} false; then :
3802  $as_echo_n "(cached) " >&6
3803else
3804  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3805   then ac_cv_path_EGREP="$GREP -E"
3806   else
3807     if test -z "$EGREP"; then
3808  ac_path_EGREP_found=false
3809  # Loop through the user's path and test for each of PROGNAME-LIST
3810  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3812do
3813  IFS=$as_save_IFS
3814  test -z "$as_dir" && as_dir=.
3815    for ac_prog in egrep; do
3816    for ac_exec_ext in '' $ac_executable_extensions; do
3817      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3818      as_fn_executable_p "$ac_path_EGREP" || continue
3819# Check for GNU ac_path_EGREP and select it if it is found.
3820  # Check for GNU $ac_path_EGREP
3821case `"$ac_path_EGREP" --version 2>&1` in
3822*GNU*)
3823  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3824*)
3825  ac_count=0
3826  $as_echo_n 0123456789 >"conftest.in"
3827  while :
3828  do
3829    cat "conftest.in" "conftest.in" >"conftest.tmp"
3830    mv "conftest.tmp" "conftest.in"
3831    cp "conftest.in" "conftest.nl"
3832    $as_echo 'EGREP' >> "conftest.nl"
3833    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3834    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3835    as_fn_arith $ac_count + 1 && ac_count=$as_val
3836    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3837      # Best one so far, save it but keep looking for a better one
3838      ac_cv_path_EGREP="$ac_path_EGREP"
3839      ac_path_EGREP_max=$ac_count
3840    fi
3841    # 10*(2^10) chars as input seems more than enough
3842    test $ac_count -gt 10 && break
3843  done
3844  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3845esac
3846
3847      $ac_path_EGREP_found && break 3
3848    done
3849  done
3850  done
3851IFS=$as_save_IFS
3852  if test -z "$ac_cv_path_EGREP"; then
3853    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3854  fi
3855else
3856  ac_cv_path_EGREP=$EGREP
3857fi
3858
3859   fi
3860fi
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3862$as_echo "$ac_cv_path_EGREP" >&6; }
3863 EGREP="$ac_cv_path_EGREP"
3864
3865
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3867$as_echo_n "checking for ANSI C header files... " >&6; }
3868if ${ac_cv_header_stdc+:} false; then :
3869  $as_echo_n "(cached) " >&6
3870else
3871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872/* end confdefs.h.  */
3873#include <stdlib.h>
3874#include <stdarg.h>
3875#include <string.h>
3876#include <float.h>
3877
3878int
3879main ()
3880{
3881
3882  ;
3883  return 0;
3884}
3885_ACEOF
3886if ac_fn_c_try_compile "$LINENO"; then :
3887  ac_cv_header_stdc=yes
3888else
3889  ac_cv_header_stdc=no
3890fi
3891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892
3893if test $ac_cv_header_stdc = yes; then
3894  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896/* end confdefs.h.  */
3897#include <string.h>
3898
3899_ACEOF
3900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3901  $EGREP "memchr" >/dev/null 2>&1; then :
3902
3903else
3904  ac_cv_header_stdc=no
3905fi
3906rm -f conftest*
3907
3908fi
3909
3910if test $ac_cv_header_stdc = yes; then
3911  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913/* end confdefs.h.  */
3914#include <stdlib.h>
3915
3916_ACEOF
3917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3918  $EGREP "free" >/dev/null 2>&1; then :
3919
3920else
3921  ac_cv_header_stdc=no
3922fi
3923rm -f conftest*
3924
3925fi
3926
3927if test $ac_cv_header_stdc = yes; then
3928  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3929  if test "$cross_compiling" = yes; then :
3930  :
3931else
3932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933/* end confdefs.h.  */
3934#include <ctype.h>
3935#include <stdlib.h>
3936#if ((' ' & 0x0FF) == 0x020)
3937# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3938# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3939#else
3940# define ISLOWER(c) \
3941		   (('a' <= (c) && (c) <= 'i') \
3942		     || ('j' <= (c) && (c) <= 'r') \
3943		     || ('s' <= (c) && (c) <= 'z'))
3944# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3945#endif
3946
3947#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3948int
3949main ()
3950{
3951  int i;
3952  for (i = 0; i < 256; i++)
3953    if (XOR (islower (i), ISLOWER (i))
3954	|| toupper (i) != TOUPPER (i))
3955      return 2;
3956  return 0;
3957}
3958_ACEOF
3959if ac_fn_c_try_run "$LINENO"; then :
3960
3961else
3962  ac_cv_header_stdc=no
3963fi
3964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3965  conftest.$ac_objext conftest.beam conftest.$ac_ext
3966fi
3967
3968fi
3969fi
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3971$as_echo "$ac_cv_header_stdc" >&6; }
3972if test $ac_cv_header_stdc = yes; then
3973
3974$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3975
3976fi
3977
3978# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3979for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3980		  inttypes.h stdint.h unistd.h
3981do :
3982  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3983ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3984"
3985if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3986  cat >>confdefs.h <<_ACEOF
3987#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3988_ACEOF
3989
3990fi
3991
3992done
3993
3994
3995
3996  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3997if test "x$ac_cv_header_minix_config_h" = xyes; then :
3998  MINIX=yes
3999else
4000  MINIX=
4001fi
4002
4003
4004  if test "$MINIX" = yes; then
4005
4006$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4007
4008
4009$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4010
4011
4012$as_echo "#define _MINIX 1" >>confdefs.h
4013
4014  fi
4015
4016
4017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4018$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4019if ${ac_cv_safe_to_define___extensions__+:} false; then :
4020  $as_echo_n "(cached) " >&6
4021else
4022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023/* end confdefs.h.  */
4024
4025#         define __EXTENSIONS__ 1
4026          $ac_includes_default
4027int
4028main ()
4029{
4030
4031  ;
4032  return 0;
4033}
4034_ACEOF
4035if ac_fn_c_try_compile "$LINENO"; then :
4036  ac_cv_safe_to_define___extensions__=yes
4037else
4038  ac_cv_safe_to_define___extensions__=no
4039fi
4040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041fi
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4043$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4044  test $ac_cv_safe_to_define___extensions__ = yes &&
4045    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4046
4047  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4048
4049  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4050
4051  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4052
4053  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4054
4055
4056
4057# Initialize Automake
4058am__api_version='1.15'
4059
4060# Find a good install program.  We prefer a C program (faster),
4061# so one script is as good as another.  But avoid the broken or
4062# incompatible versions:
4063# SysV /etc/install, /usr/sbin/install
4064# SunOS /usr/etc/install
4065# IRIX /sbin/install
4066# AIX /bin/install
4067# AmigaOS /C/install, which installs bootblocks on floppy discs
4068# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4069# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4070# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4071# OS/2's system install, which has a completely different semantic
4072# ./install, which can be erroneously created by make from ./install.sh.
4073# Reject install programs that cannot install multiple files.
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4075$as_echo_n "checking for a BSD-compatible install... " >&6; }
4076if test -z "$INSTALL"; then
4077if ${ac_cv_path_install+:} false; then :
4078  $as_echo_n "(cached) " >&6
4079else
4080  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081for as_dir in $PATH
4082do
4083  IFS=$as_save_IFS
4084  test -z "$as_dir" && as_dir=.
4085    # Account for people who put trailing slashes in PATH elements.
4086case $as_dir/ in #((
4087  ./ | .// | /[cC]/* | \
4088  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4089  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4090  /usr/ucb/* ) ;;
4091  *)
4092    # OSF1 and SCO ODT 3.0 have their own names for install.
4093    # Don't use installbsd from OSF since it installs stuff as root
4094    # by default.
4095    for ac_prog in ginstall scoinst install; do
4096      for ac_exec_ext in '' $ac_executable_extensions; do
4097	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4098	  if test $ac_prog = install &&
4099	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4100	    # AIX install.  It has an incompatible calling convention.
4101	    :
4102	  elif test $ac_prog = install &&
4103	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4104	    # program-specific install script used by HP pwplus--don't use.
4105	    :
4106	  else
4107	    rm -rf conftest.one conftest.two conftest.dir
4108	    echo one > conftest.one
4109	    echo two > conftest.two
4110	    mkdir conftest.dir
4111	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4112	      test -s conftest.one && test -s conftest.two &&
4113	      test -s conftest.dir/conftest.one &&
4114	      test -s conftest.dir/conftest.two
4115	    then
4116	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4117	      break 3
4118	    fi
4119	  fi
4120	fi
4121      done
4122    done
4123    ;;
4124esac
4125
4126  done
4127IFS=$as_save_IFS
4128
4129rm -rf conftest.one conftest.two conftest.dir
4130
4131fi
4132  if test "${ac_cv_path_install+set}" = set; then
4133    INSTALL=$ac_cv_path_install
4134  else
4135    # As a last resort, use the slow shell script.  Don't cache a
4136    # value for INSTALL within a source directory, because that will
4137    # break other packages using the cache if that directory is
4138    # removed, or if the value is a relative name.
4139    INSTALL=$ac_install_sh
4140  fi
4141fi
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4143$as_echo "$INSTALL" >&6; }
4144
4145# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4146# It thinks the first close brace ends the variable substitution.
4147test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4148
4149test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4150
4151test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4152
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4154$as_echo_n "checking whether build environment is sane... " >&6; }
4155# Reject unsafe characters in $srcdir or the absolute working directory
4156# name.  Accept space and tab only in the latter.
4157am_lf='
4158'
4159case `pwd` in
4160  *[\\\"\#\$\&\'\`$am_lf]*)
4161    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4162esac
4163case $srcdir in
4164  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4165    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4166esac
4167
4168# Do 'set' in a subshell so we don't clobber the current shell's
4169# arguments.  Must try -L first in case configure is actually a
4170# symlink; some systems play weird games with the mod time of symlinks
4171# (eg FreeBSD returns the mod time of the symlink's containing
4172# directory).
4173if (
4174   am_has_slept=no
4175   for am_try in 1 2; do
4176     echo "timestamp, slept: $am_has_slept" > conftest.file
4177     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4178     if test "$*" = "X"; then
4179	# -L didn't work.
4180	set X `ls -t "$srcdir/configure" conftest.file`
4181     fi
4182     if test "$*" != "X $srcdir/configure conftest.file" \
4183	&& test "$*" != "X conftest.file $srcdir/configure"; then
4184
4185	# If neither matched, then we have a broken ls.  This can happen
4186	# if, for instance, CONFIG_SHELL is bash and it inherits a
4187	# broken ls alias from the environment.  This has actually
4188	# happened.  Such a system could not be considered "sane".
4189	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4190  alias in your environment" "$LINENO" 5
4191     fi
4192     if test "$2" = conftest.file || test $am_try -eq 2; then
4193       break
4194     fi
4195     # Just in case.
4196     sleep 1
4197     am_has_slept=yes
4198   done
4199   test "$2" = conftest.file
4200   )
4201then
4202   # Ok.
4203   :
4204else
4205   as_fn_error $? "newly created file is older than distributed files!
4206Check your system clock" "$LINENO" 5
4207fi
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4209$as_echo "yes" >&6; }
4210# If we didn't sleep, we still need to ensure time stamps of config.status and
4211# generated files are strictly newer.
4212am_sleep_pid=
4213if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4214  ( sleep 1 ) &
4215  am_sleep_pid=$!
4216fi
4217
4218rm -f conftest.file
4219
4220test "$program_prefix" != NONE &&
4221  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4222# Use a double $ so make ignores it.
4223test "$program_suffix" != NONE &&
4224  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4225# Double any \ or $.
4226# By default was `s,x,x', remove it if useless.
4227ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4228program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4229
4230if test x"${MISSING+set}" != xset; then
4231  case $am_aux_dir in
4232  *\ * | *\	*)
4233    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4234  *)
4235    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4236  esac
4237fi
4238# Use eval to expand $SHELL
4239if eval "$MISSING --is-lightweight"; then
4240  am_missing_run="$MISSING "
4241else
4242  am_missing_run=
4243  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4244$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4245fi
4246
4247if test x"${install_sh+set}" != xset; then
4248  case $am_aux_dir in
4249  *\ * | *\	*)
4250    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4251  *)
4252    install_sh="\${SHELL} $am_aux_dir/install-sh"
4253  esac
4254fi
4255
4256# Installed binaries are usually stripped using 'strip' when the user
4257# run "make install-strip".  However 'strip' might not be the right
4258# tool to use in cross-compilation environments, therefore Automake
4259# will honor the 'STRIP' environment variable to overrule this program.
4260if test "$cross_compiling" != no; then
4261  if test -n "$ac_tool_prefix"; then
4262  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4263set dummy ${ac_tool_prefix}strip; ac_word=$2
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265$as_echo_n "checking for $ac_word... " >&6; }
4266if ${ac_cv_prog_STRIP+:} false; then :
4267  $as_echo_n "(cached) " >&6
4268else
4269  if test -n "$STRIP"; then
4270  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4271else
4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275  IFS=$as_save_IFS
4276  test -z "$as_dir" && as_dir=.
4277    for ac_exec_ext in '' $ac_executable_extensions; do
4278  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281    break 2
4282  fi
4283done
4284  done
4285IFS=$as_save_IFS
4286
4287fi
4288fi
4289STRIP=$ac_cv_prog_STRIP
4290if test -n "$STRIP"; then
4291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4292$as_echo "$STRIP" >&6; }
4293else
4294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295$as_echo "no" >&6; }
4296fi
4297
4298
4299fi
4300if test -z "$ac_cv_prog_STRIP"; then
4301  ac_ct_STRIP=$STRIP
4302  # Extract the first word of "strip", so it can be a program name with args.
4303set dummy strip; ac_word=$2
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305$as_echo_n "checking for $ac_word... " >&6; }
4306if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4307  $as_echo_n "(cached) " >&6
4308else
4309  if test -n "$ac_ct_STRIP"; then
4310  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4311else
4312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313for as_dir in $PATH
4314do
4315  IFS=$as_save_IFS
4316  test -z "$as_dir" && as_dir=.
4317    for ac_exec_ext in '' $ac_executable_extensions; do
4318  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4319    ac_cv_prog_ac_ct_STRIP="strip"
4320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321    break 2
4322  fi
4323done
4324  done
4325IFS=$as_save_IFS
4326
4327fi
4328fi
4329ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4330if test -n "$ac_ct_STRIP"; then
4331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4332$as_echo "$ac_ct_STRIP" >&6; }
4333else
4334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335$as_echo "no" >&6; }
4336fi
4337
4338  if test "x$ac_ct_STRIP" = x; then
4339    STRIP=":"
4340  else
4341    case $cross_compiling:$ac_tool_warned in
4342yes:)
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4345ac_tool_warned=yes ;;
4346esac
4347    STRIP=$ac_ct_STRIP
4348  fi
4349else
4350  STRIP="$ac_cv_prog_STRIP"
4351fi
4352
4353fi
4354INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4355
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4357$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4358if test -z "$MKDIR_P"; then
4359  if ${ac_cv_path_mkdir+:} false; then :
4360  $as_echo_n "(cached) " >&6
4361else
4362  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4364do
4365  IFS=$as_save_IFS
4366  test -z "$as_dir" && as_dir=.
4367    for ac_prog in mkdir gmkdir; do
4368	 for ac_exec_ext in '' $ac_executable_extensions; do
4369	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4370	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4371	     'mkdir (GNU coreutils) '* | \
4372	     'mkdir (coreutils) '* | \
4373	     'mkdir (fileutils) '4.1*)
4374	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4375	       break 3;;
4376	   esac
4377	 done
4378       done
4379  done
4380IFS=$as_save_IFS
4381
4382fi
4383
4384  test -d ./--version && rmdir ./--version
4385  if test "${ac_cv_path_mkdir+set}" = set; then
4386    MKDIR_P="$ac_cv_path_mkdir -p"
4387  else
4388    # As a last resort, use the slow shell script.  Don't cache a
4389    # value for MKDIR_P within a source directory, because that will
4390    # break other packages using the cache if that directory is
4391    # removed, or if the value is a relative name.
4392    MKDIR_P="$ac_install_sh -d"
4393  fi
4394fi
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4396$as_echo "$MKDIR_P" >&6; }
4397
4398for ac_prog in gawk mawk nawk awk
4399do
4400  # Extract the first word of "$ac_prog", so it can be a program name with args.
4401set dummy $ac_prog; ac_word=$2
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403$as_echo_n "checking for $ac_word... " >&6; }
4404if ${ac_cv_prog_AWK+:} false; then :
4405  $as_echo_n "(cached) " >&6
4406else
4407  if test -n "$AWK"; then
4408  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4409else
4410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411for as_dir in $PATH
4412do
4413  IFS=$as_save_IFS
4414  test -z "$as_dir" && as_dir=.
4415    for ac_exec_ext in '' $ac_executable_extensions; do
4416  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4417    ac_cv_prog_AWK="$ac_prog"
4418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4419    break 2
4420  fi
4421done
4422  done
4423IFS=$as_save_IFS
4424
4425fi
4426fi
4427AWK=$ac_cv_prog_AWK
4428if test -n "$AWK"; then
4429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4430$as_echo "$AWK" >&6; }
4431else
4432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433$as_echo "no" >&6; }
4434fi
4435
4436
4437  test -n "$AWK" && break
4438done
4439
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4441$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4442set x ${MAKE-make}
4443ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4444if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4445  $as_echo_n "(cached) " >&6
4446else
4447  cat >conftest.make <<\_ACEOF
4448SHELL = /bin/sh
4449all:
4450	@echo '@@@%%%=$(MAKE)=@@@%%%'
4451_ACEOF
4452# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4453case `${MAKE-make} -f conftest.make 2>/dev/null` in
4454  *@@@%%%=?*=@@@%%%*)
4455    eval ac_cv_prog_make_${ac_make}_set=yes;;
4456  *)
4457    eval ac_cv_prog_make_${ac_make}_set=no;;
4458esac
4459rm -f conftest.make
4460fi
4461if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4463$as_echo "yes" >&6; }
4464  SET_MAKE=
4465else
4466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467$as_echo "no" >&6; }
4468  SET_MAKE="MAKE=${MAKE-make}"
4469fi
4470
4471rm -rf .tst 2>/dev/null
4472mkdir .tst 2>/dev/null
4473if test -d .tst; then
4474  am__leading_dot=.
4475else
4476  am__leading_dot=_
4477fi
4478rmdir .tst 2>/dev/null
4479
4480DEPDIR="${am__leading_dot}deps"
4481
4482ac_config_commands="$ac_config_commands depfiles"
4483
4484
4485am_make=${MAKE-make}
4486cat > confinc << 'END'
4487am__doit:
4488	@echo this is the am__doit target
4489.PHONY: am__doit
4490END
4491# If we don't find an include directive, just comment out the code.
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4493$as_echo_n "checking for style of include used by $am_make... " >&6; }
4494am__include="#"
4495am__quote=
4496_am_result=none
4497# First try GNU make style include.
4498echo "include confinc" > confmf
4499# Ignore all kinds of additional output from 'make'.
4500case `$am_make -s -f confmf 2> /dev/null` in #(
4501*the\ am__doit\ target*)
4502  am__include=include
4503  am__quote=
4504  _am_result=GNU
4505  ;;
4506esac
4507# Now try BSD make style include.
4508if test "$am__include" = "#"; then
4509   echo '.include "confinc"' > confmf
4510   case `$am_make -s -f confmf 2> /dev/null` in #(
4511   *the\ am__doit\ target*)
4512     am__include=.include
4513     am__quote="\""
4514     _am_result=BSD
4515     ;;
4516   esac
4517fi
4518
4519
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4521$as_echo "$_am_result" >&6; }
4522rm -f confinc confmf
4523
4524# Check whether --enable-dependency-tracking was given.
4525if test "${enable_dependency_tracking+set}" = set; then :
4526  enableval=$enable_dependency_tracking;
4527fi
4528
4529if test "x$enable_dependency_tracking" != xno; then
4530  am_depcomp="$ac_aux_dir/depcomp"
4531  AMDEPBACKSLASH='\'
4532  am__nodep='_no'
4533fi
4534 if test "x$enable_dependency_tracking" != xno; then
4535  AMDEP_TRUE=
4536  AMDEP_FALSE='#'
4537else
4538  AMDEP_TRUE='#'
4539  AMDEP_FALSE=
4540fi
4541
4542
4543# Check whether --enable-silent-rules was given.
4544if test "${enable_silent_rules+set}" = set; then :
4545  enableval=$enable_silent_rules;
4546fi
4547
4548case $enable_silent_rules in # (((
4549  yes) AM_DEFAULT_VERBOSITY=0;;
4550   no) AM_DEFAULT_VERBOSITY=1;;
4551    *) AM_DEFAULT_VERBOSITY=1;;
4552esac
4553am_make=${MAKE-make}
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4555$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4556if ${am_cv_make_support_nested_variables+:} false; then :
4557  $as_echo_n "(cached) " >&6
4558else
4559  if $as_echo 'TRUE=$(BAR$(V))
4560BAR0=false
4561BAR1=true
4562V=1
4563am__doit:
4564	@$(TRUE)
4565.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4566  am_cv_make_support_nested_variables=yes
4567else
4568  am_cv_make_support_nested_variables=no
4569fi
4570fi
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4572$as_echo "$am_cv_make_support_nested_variables" >&6; }
4573if test $am_cv_make_support_nested_variables = yes; then
4574    AM_V='$(V)'
4575  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4576else
4577  AM_V=$AM_DEFAULT_VERBOSITY
4578  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4579fi
4580AM_BACKSLASH='\'
4581
4582if test "`cd $srcdir && pwd`" != "`pwd`"; then
4583  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4584  # is not polluted with repeated "-I."
4585  am__isrc=' -I$(srcdir)'
4586  # test to see if srcdir already configured
4587  if test -f $srcdir/config.status; then
4588    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4589  fi
4590fi
4591
4592# test whether we have cygpath
4593if test -z "$CYGPATH_W"; then
4594  if (cygpath --version) >/dev/null 2>/dev/null; then
4595    CYGPATH_W='cygpath -w'
4596  else
4597    CYGPATH_W=echo
4598  fi
4599fi
4600
4601
4602# Define the identity of the package.
4603 PACKAGE='libX11'
4604 VERSION='1.6.6'
4605
4606
4607cat >>confdefs.h <<_ACEOF
4608#define PACKAGE "$PACKAGE"
4609_ACEOF
4610
4611
4612cat >>confdefs.h <<_ACEOF
4613#define VERSION "$VERSION"
4614_ACEOF
4615
4616# Some tools Automake needs.
4617
4618ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4619
4620
4621AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4622
4623
4624AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4625
4626
4627AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4628
4629
4630MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4631
4632# For better backward compatibility.  To be removed once Automake 1.9.x
4633# dies out for good.  For more background, see:
4634# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4635# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4636mkdir_p='$(MKDIR_P)'
4637
4638# We need awk for the "check" target (and possibly the TAP driver).  The
4639# system "awk" is bad on some platforms.
4640# Always define AMTAR for backward compatibility.  Yes, it's still used
4641# in the wild :-(  We should find a proper way to deprecate it ...
4642AMTAR='$${TAR-tar}'
4643
4644
4645# We'll loop over all known methods to create a tar archive until one works.
4646_am_tools='gnutar  pax cpio none'
4647
4648am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4649
4650
4651
4652
4653
4654depcc="$CC"   am_compiler_list=
4655
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4657$as_echo_n "checking dependency style of $depcc... " >&6; }
4658if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4659  $as_echo_n "(cached) " >&6
4660else
4661  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4662  # We make a subdir and do the tests there.  Otherwise we can end up
4663  # making bogus files that we don't know about and never remove.  For
4664  # instance it was reported that on HP-UX the gcc test will end up
4665  # making a dummy file named 'D' -- because '-MD' means "put the output
4666  # in D".
4667  rm -rf conftest.dir
4668  mkdir conftest.dir
4669  # Copy depcomp to subdir because otherwise we won't find it if we're
4670  # using a relative directory.
4671  cp "$am_depcomp" conftest.dir
4672  cd conftest.dir
4673  # We will build objects and dependencies in a subdirectory because
4674  # it helps to detect inapplicable dependency modes.  For instance
4675  # both Tru64's cc and ICC support -MD to output dependencies as a
4676  # side effect of compilation, but ICC will put the dependencies in
4677  # the current directory while Tru64 will put them in the object
4678  # directory.
4679  mkdir sub
4680
4681  am_cv_CC_dependencies_compiler_type=none
4682  if test "$am_compiler_list" = ""; then
4683     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4684  fi
4685  am__universal=false
4686  case " $depcc " in #(
4687     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4688     esac
4689
4690  for depmode in $am_compiler_list; do
4691    # Setup a source with many dependencies, because some compilers
4692    # like to wrap large dependency lists on column 80 (with \), and
4693    # we should not choose a depcomp mode which is confused by this.
4694    #
4695    # We need to recreate these files for each test, as the compiler may
4696    # overwrite some of them when testing with obscure command lines.
4697    # This happens at least with the AIX C compiler.
4698    : > sub/conftest.c
4699    for i in 1 2 3 4 5 6; do
4700      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4701      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4702      # Solaris 10 /bin/sh.
4703      echo '/* dummy */' > sub/conftst$i.h
4704    done
4705    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4706
4707    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4708    # mode.  It turns out that the SunPro C++ compiler does not properly
4709    # handle '-M -o', and we need to detect this.  Also, some Intel
4710    # versions had trouble with output in subdirs.
4711    am__obj=sub/conftest.${OBJEXT-o}
4712    am__minus_obj="-o $am__obj"
4713    case $depmode in
4714    gcc)
4715      # This depmode causes a compiler race in universal mode.
4716      test "$am__universal" = false || continue
4717      ;;
4718    nosideeffect)
4719      # After this tag, mechanisms are not by side-effect, so they'll
4720      # only be used when explicitly requested.
4721      if test "x$enable_dependency_tracking" = xyes; then
4722	continue
4723      else
4724	break
4725      fi
4726      ;;
4727    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4728      # This compiler won't grok '-c -o', but also, the minuso test has
4729      # not run yet.  These depmodes are late enough in the game, and
4730      # so weak that their functioning should not be impacted.
4731      am__obj=conftest.${OBJEXT-o}
4732      am__minus_obj=
4733      ;;
4734    none) break ;;
4735    esac
4736    if depmode=$depmode \
4737       source=sub/conftest.c object=$am__obj \
4738       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4739       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4740         >/dev/null 2>conftest.err &&
4741       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4742       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4743       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4744       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4745      # icc doesn't choke on unknown options, it will just issue warnings
4746      # or remarks (even with -Werror).  So we grep stderr for any message
4747      # that says an option was ignored or not supported.
4748      # When given -MP, icc 7.0 and 7.1 complain thusly:
4749      #   icc: Command line warning: ignoring option '-M'; no argument required
4750      # The diagnosis changed in icc 8.0:
4751      #   icc: Command line remark: option '-MP' not supported
4752      if (grep 'ignoring option' conftest.err ||
4753          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4754        am_cv_CC_dependencies_compiler_type=$depmode
4755        break
4756      fi
4757    fi
4758  done
4759
4760  cd ..
4761  rm -rf conftest.dir
4762else
4763  am_cv_CC_dependencies_compiler_type=none
4764fi
4765
4766fi
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4768$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4769CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4770
4771 if
4772  test "x$enable_dependency_tracking" != xno \
4773  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4774  am__fastdepCC_TRUE=
4775  am__fastdepCC_FALSE='#'
4776else
4777  am__fastdepCC_TRUE='#'
4778  am__fastdepCC_FALSE=
4779fi
4780
4781
4782
4783# POSIX will say in a future version that running "rm -f" with no argument
4784# is OK; and we want to be able to make that assumption in our Makefile
4785# recipes.  So use an aggressive probe to check that the usage we want is
4786# actually supported "in the wild" to an acceptable degree.
4787# See automake bug#10828.
4788# To make any issue more visible, cause the running configure to be aborted
4789# by default if the 'rm' program in use doesn't match our expectations; the
4790# user can still override this though.
4791if rm -f && rm -fr && rm -rf; then : OK; else
4792  cat >&2 <<'END'
4793Oops!
4794
4795Your 'rm' program seems unable to run without file operands specified
4796on the command line, even when the '-f' option is present.  This is contrary
4797to the behaviour of most rm programs out there, and not conforming with
4798the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4799
4800Please tell bug-automake@gnu.org about your system, including the value
4801of your $PATH and any error possibly output before this message.  This
4802can help us improve future automake versions.
4803
4804END
4805  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4806    echo 'Configuration will proceed anyway, since you have set the' >&2
4807    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4808    echo >&2
4809  else
4810    cat >&2 <<'END'
4811Aborting the configuration process, to ensure you take notice of the issue.
4812
4813You can download and install GNU coreutils to get an 'rm' implementation
4814that behaves properly: <http://www.gnu.org/software/coreutils/>.
4815
4816If you want to complete the configuration process using your problematic
4817'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4818to "yes", and re-run configure.
4819
4820END
4821    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4822  fi
4823fi
4824
4825
4826# Initialize libtool
4827case `pwd` in
4828  *\ * | *\	*)
4829    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4830$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4831esac
4832
4833
4834
4835macro_version='2.4.6'
4836macro_revision='2.4.6'
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850ltmain=$ac_aux_dir/ltmain.sh
4851
4852# Backslashify metacharacters that are still active within
4853# double-quoted strings.
4854sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4855
4856# Same as above, but do not quote variable references.
4857double_quote_subst='s/\(["`\\]\)/\\\1/g'
4858
4859# Sed substitution to delay expansion of an escaped shell variable in a
4860# double_quote_subst'ed string.
4861delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4862
4863# Sed substitution to delay expansion of an escaped single quote.
4864delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4865
4866# Sed substitution to avoid accidental globbing in evaled expressions
4867no_glob_subst='s/\*/\\\*/g'
4868
4869ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4870ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4871ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4872
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4874$as_echo_n "checking how to print strings... " >&6; }
4875# Test print first, because it will be a builtin if present.
4876if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4877   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4878  ECHO='print -r --'
4879elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4880  ECHO='printf %s\n'
4881else
4882  # Use this function as a fallback that always works.
4883  func_fallback_echo ()
4884  {
4885    eval 'cat <<_LTECHO_EOF
4886$1
4887_LTECHO_EOF'
4888  }
4889  ECHO='func_fallback_echo'
4890fi
4891
4892# func_echo_all arg...
4893# Invoke $ECHO with all args, space-separated.
4894func_echo_all ()
4895{
4896    $ECHO ""
4897}
4898
4899case $ECHO in
4900  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4901$as_echo "printf" >&6; } ;;
4902  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4903$as_echo "print -r" >&6; } ;;
4904  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4905$as_echo "cat" >&6; } ;;
4906esac
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4922$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4923if ${ac_cv_path_SED+:} false; then :
4924  $as_echo_n "(cached) " >&6
4925else
4926            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4927     for ac_i in 1 2 3 4 5 6 7; do
4928       ac_script="$ac_script$as_nl$ac_script"
4929     done
4930     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4931     { ac_script=; unset ac_script;}
4932     if test -z "$SED"; then
4933  ac_path_SED_found=false
4934  # Loop through the user's path and test for each of PROGNAME-LIST
4935  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936for as_dir in $PATH
4937do
4938  IFS=$as_save_IFS
4939  test -z "$as_dir" && as_dir=.
4940    for ac_prog in sed gsed; do
4941    for ac_exec_ext in '' $ac_executable_extensions; do
4942      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4943      as_fn_executable_p "$ac_path_SED" || continue
4944# Check for GNU ac_path_SED and select it if it is found.
4945  # Check for GNU $ac_path_SED
4946case `"$ac_path_SED" --version 2>&1` in
4947*GNU*)
4948  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4949*)
4950  ac_count=0
4951  $as_echo_n 0123456789 >"conftest.in"
4952  while :
4953  do
4954    cat "conftest.in" "conftest.in" >"conftest.tmp"
4955    mv "conftest.tmp" "conftest.in"
4956    cp "conftest.in" "conftest.nl"
4957    $as_echo '' >> "conftest.nl"
4958    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4959    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4960    as_fn_arith $ac_count + 1 && ac_count=$as_val
4961    if test $ac_count -gt ${ac_path_SED_max-0}; then
4962      # Best one so far, save it but keep looking for a better one
4963      ac_cv_path_SED="$ac_path_SED"
4964      ac_path_SED_max=$ac_count
4965    fi
4966    # 10*(2^10) chars as input seems more than enough
4967    test $ac_count -gt 10 && break
4968  done
4969  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4970esac
4971
4972      $ac_path_SED_found && break 3
4973    done
4974  done
4975  done
4976IFS=$as_save_IFS
4977  if test -z "$ac_cv_path_SED"; then
4978    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4979  fi
4980else
4981  ac_cv_path_SED=$SED
4982fi
4983
4984fi
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4986$as_echo "$ac_cv_path_SED" >&6; }
4987 SED="$ac_cv_path_SED"
4988  rm -f conftest.sed
4989
4990test -z "$SED" && SED=sed
4991Xsed="$SED -e 1s/^X//"
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5004$as_echo_n "checking for fgrep... " >&6; }
5005if ${ac_cv_path_FGREP+:} false; then :
5006  $as_echo_n "(cached) " >&6
5007else
5008  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5009   then ac_cv_path_FGREP="$GREP -F"
5010   else
5011     if test -z "$FGREP"; then
5012  ac_path_FGREP_found=false
5013  # Loop through the user's path and test for each of PROGNAME-LIST
5014  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5016do
5017  IFS=$as_save_IFS
5018  test -z "$as_dir" && as_dir=.
5019    for ac_prog in fgrep; do
5020    for ac_exec_ext in '' $ac_executable_extensions; do
5021      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5022      as_fn_executable_p "$ac_path_FGREP" || continue
5023# Check for GNU ac_path_FGREP and select it if it is found.
5024  # Check for GNU $ac_path_FGREP
5025case `"$ac_path_FGREP" --version 2>&1` in
5026*GNU*)
5027  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5028*)
5029  ac_count=0
5030  $as_echo_n 0123456789 >"conftest.in"
5031  while :
5032  do
5033    cat "conftest.in" "conftest.in" >"conftest.tmp"
5034    mv "conftest.tmp" "conftest.in"
5035    cp "conftest.in" "conftest.nl"
5036    $as_echo 'FGREP' >> "conftest.nl"
5037    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5038    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5039    as_fn_arith $ac_count + 1 && ac_count=$as_val
5040    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5041      # Best one so far, save it but keep looking for a better one
5042      ac_cv_path_FGREP="$ac_path_FGREP"
5043      ac_path_FGREP_max=$ac_count
5044    fi
5045    # 10*(2^10) chars as input seems more than enough
5046    test $ac_count -gt 10 && break
5047  done
5048  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5049esac
5050
5051      $ac_path_FGREP_found && break 3
5052    done
5053  done
5054  done
5055IFS=$as_save_IFS
5056  if test -z "$ac_cv_path_FGREP"; then
5057    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5058  fi
5059else
5060  ac_cv_path_FGREP=$FGREP
5061fi
5062
5063   fi
5064fi
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5066$as_echo "$ac_cv_path_FGREP" >&6; }
5067 FGREP="$ac_cv_path_FGREP"
5068
5069
5070test -z "$GREP" && GREP=grep
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090# Check whether --with-gnu-ld was given.
5091if test "${with_gnu_ld+set}" = set; then :
5092  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5093else
5094  with_gnu_ld=no
5095fi
5096
5097ac_prog=ld
5098if test yes = "$GCC"; then
5099  # Check if gcc -print-prog-name=ld gives a path.
5100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5101$as_echo_n "checking for ld used by $CC... " >&6; }
5102  case $host in
5103  *-*-mingw*)
5104    # gcc leaves a trailing carriage return, which upsets mingw
5105    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5106  *)
5107    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5108  esac
5109  case $ac_prog in
5110    # Accept absolute paths.
5111    [\\/]* | ?:[\\/]*)
5112      re_direlt='/[^/][^/]*/\.\./'
5113      # Canonicalize the pathname of ld
5114      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5115      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5116	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5117      done
5118      test -z "$LD" && LD=$ac_prog
5119      ;;
5120  "")
5121    # If it fails, then pretend we aren't using GCC.
5122    ac_prog=ld
5123    ;;
5124  *)
5125    # If it is relative, then search for the first ld in PATH.
5126    with_gnu_ld=unknown
5127    ;;
5128  esac
5129elif test yes = "$with_gnu_ld"; then
5130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5131$as_echo_n "checking for GNU ld... " >&6; }
5132else
5133  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5134$as_echo_n "checking for non-GNU ld... " >&6; }
5135fi
5136if ${lt_cv_path_LD+:} false; then :
5137  $as_echo_n "(cached) " >&6
5138else
5139  if test -z "$LD"; then
5140  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5141  for ac_dir in $PATH; do
5142    IFS=$lt_save_ifs
5143    test -z "$ac_dir" && ac_dir=.
5144    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5145      lt_cv_path_LD=$ac_dir/$ac_prog
5146      # Check to see if the program is GNU ld.  I'd rather use --version,
5147      # but apparently some variants of GNU ld only accept -v.
5148      # Break only if it was the GNU/non-GNU ld that we prefer.
5149      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5150      *GNU* | *'with BFD'*)
5151	test no != "$with_gnu_ld" && break
5152	;;
5153      *)
5154	test yes != "$with_gnu_ld" && break
5155	;;
5156      esac
5157    fi
5158  done
5159  IFS=$lt_save_ifs
5160else
5161  lt_cv_path_LD=$LD # Let the user override the test with a path.
5162fi
5163fi
5164
5165LD=$lt_cv_path_LD
5166if test -n "$LD"; then
5167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5168$as_echo "$LD" >&6; }
5169else
5170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171$as_echo "no" >&6; }
5172fi
5173test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5175$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5176if ${lt_cv_prog_gnu_ld+:} false; then :
5177  $as_echo_n "(cached) " >&6
5178else
5179  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5180case `$LD -v 2>&1 </dev/null` in
5181*GNU* | *'with BFD'*)
5182  lt_cv_prog_gnu_ld=yes
5183  ;;
5184*)
5185  lt_cv_prog_gnu_ld=no
5186  ;;
5187esac
5188fi
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5190$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5191with_gnu_ld=$lt_cv_prog_gnu_ld
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5202$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5203if ${lt_cv_path_NM+:} false; then :
5204  $as_echo_n "(cached) " >&6
5205else
5206  if test -n "$NM"; then
5207  # Let the user override the test.
5208  lt_cv_path_NM=$NM
5209else
5210  lt_nm_to_check=${ac_tool_prefix}nm
5211  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5212    lt_nm_to_check="$lt_nm_to_check nm"
5213  fi
5214  for lt_tmp_nm in $lt_nm_to_check; do
5215    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5216    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5217      IFS=$lt_save_ifs
5218      test -z "$ac_dir" && ac_dir=.
5219      tmp_nm=$ac_dir/$lt_tmp_nm
5220      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5221	# Check to see if the nm accepts a BSD-compat flag.
5222	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5223	#   nm: unknown option "B" ignored
5224	# Tru64's nm complains that /dev/null is an invalid object file
5225	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5226	case $build_os in
5227	mingw*) lt_bad_file=conftest.nm/nofile ;;
5228	*) lt_bad_file=/dev/null ;;
5229	esac
5230	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5231	*$lt_bad_file* | *'Invalid file or object type'*)
5232	  lt_cv_path_NM="$tmp_nm -B"
5233	  break 2
5234	  ;;
5235	*)
5236	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5237	  */dev/null*)
5238	    lt_cv_path_NM="$tmp_nm -p"
5239	    break 2
5240	    ;;
5241	  *)
5242	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5243	    continue # so that we can try to find one that supports BSD flags
5244	    ;;
5245	  esac
5246	  ;;
5247	esac
5248      fi
5249    done
5250    IFS=$lt_save_ifs
5251  done
5252  : ${lt_cv_path_NM=no}
5253fi
5254fi
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5256$as_echo "$lt_cv_path_NM" >&6; }
5257if test no != "$lt_cv_path_NM"; then
5258  NM=$lt_cv_path_NM
5259else
5260  # Didn't find any BSD compatible name lister, look for dumpbin.
5261  if test -n "$DUMPBIN"; then :
5262    # Let the user override the test.
5263  else
5264    if test -n "$ac_tool_prefix"; then
5265  for ac_prog in dumpbin "link -dump"
5266  do
5267    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5268set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270$as_echo_n "checking for $ac_word... " >&6; }
5271if ${ac_cv_prog_DUMPBIN+:} false; then :
5272  $as_echo_n "(cached) " >&6
5273else
5274  if test -n "$DUMPBIN"; then
5275  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5276else
5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278for as_dir in $PATH
5279do
5280  IFS=$as_save_IFS
5281  test -z "$as_dir" && as_dir=.
5282    for ac_exec_ext in '' $ac_executable_extensions; do
5283  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286    break 2
5287  fi
5288done
5289  done
5290IFS=$as_save_IFS
5291
5292fi
5293fi
5294DUMPBIN=$ac_cv_prog_DUMPBIN
5295if test -n "$DUMPBIN"; then
5296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5297$as_echo "$DUMPBIN" >&6; }
5298else
5299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300$as_echo "no" >&6; }
5301fi
5302
5303
5304    test -n "$DUMPBIN" && break
5305  done
5306fi
5307if test -z "$DUMPBIN"; then
5308  ac_ct_DUMPBIN=$DUMPBIN
5309  for ac_prog in dumpbin "link -dump"
5310do
5311  # Extract the first word of "$ac_prog", so it can be a program name with args.
5312set dummy $ac_prog; ac_word=$2
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314$as_echo_n "checking for $ac_word... " >&6; }
5315if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5316  $as_echo_n "(cached) " >&6
5317else
5318  if test -n "$ac_ct_DUMPBIN"; then
5319  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5320else
5321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322for as_dir in $PATH
5323do
5324  IFS=$as_save_IFS
5325  test -z "$as_dir" && as_dir=.
5326    for ac_exec_ext in '' $ac_executable_extensions; do
5327  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5328    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330    break 2
5331  fi
5332done
5333  done
5334IFS=$as_save_IFS
5335
5336fi
5337fi
5338ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5339if test -n "$ac_ct_DUMPBIN"; then
5340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5341$as_echo "$ac_ct_DUMPBIN" >&6; }
5342else
5343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344$as_echo "no" >&6; }
5345fi
5346
5347
5348  test -n "$ac_ct_DUMPBIN" && break
5349done
5350
5351  if test "x$ac_ct_DUMPBIN" = x; then
5352    DUMPBIN=":"
5353  else
5354    case $cross_compiling:$ac_tool_warned in
5355yes:)
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5358ac_tool_warned=yes ;;
5359esac
5360    DUMPBIN=$ac_ct_DUMPBIN
5361  fi
5362fi
5363
5364    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5365    *COFF*)
5366      DUMPBIN="$DUMPBIN -symbols -headers"
5367      ;;
5368    *)
5369      DUMPBIN=:
5370      ;;
5371    esac
5372  fi
5373
5374  if test : != "$DUMPBIN"; then
5375    NM=$DUMPBIN
5376  fi
5377fi
5378test -z "$NM" && NM=nm
5379
5380
5381
5382
5383
5384
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5386$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5387if ${lt_cv_nm_interface+:} false; then :
5388  $as_echo_n "(cached) " >&6
5389else
5390  lt_cv_nm_interface="BSD nm"
5391  echo "int some_variable = 0;" > conftest.$ac_ext
5392  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5393  (eval "$ac_compile" 2>conftest.err)
5394  cat conftest.err >&5
5395  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5396  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5397  cat conftest.err >&5
5398  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5399  cat conftest.out >&5
5400  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5401    lt_cv_nm_interface="MS dumpbin"
5402  fi
5403  rm -f conftest*
5404fi
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5406$as_echo "$lt_cv_nm_interface" >&6; }
5407
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5409$as_echo_n "checking whether ln -s works... " >&6; }
5410LN_S=$as_ln_s
5411if test "$LN_S" = "ln -s"; then
5412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5413$as_echo "yes" >&6; }
5414else
5415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5416$as_echo "no, using $LN_S" >&6; }
5417fi
5418
5419# find the maximum length of command line arguments
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5421$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5422if ${lt_cv_sys_max_cmd_len+:} false; then :
5423  $as_echo_n "(cached) " >&6
5424else
5425    i=0
5426  teststring=ABCD
5427
5428  case $build_os in
5429  msdosdjgpp*)
5430    # On DJGPP, this test can blow up pretty badly due to problems in libc
5431    # (any single argument exceeding 2000 bytes causes a buffer overrun
5432    # during glob expansion).  Even if it were fixed, the result of this
5433    # check would be larger than it should be.
5434    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5435    ;;
5436
5437  gnu*)
5438    # Under GNU Hurd, this test is not required because there is
5439    # no limit to the length of command line arguments.
5440    # Libtool will interpret -1 as no limit whatsoever
5441    lt_cv_sys_max_cmd_len=-1;
5442    ;;
5443
5444  cygwin* | mingw* | cegcc*)
5445    # On Win9x/ME, this test blows up -- it succeeds, but takes
5446    # about 5 minutes as the teststring grows exponentially.
5447    # Worse, since 9x/ME are not pre-emptively multitasking,
5448    # you end up with a "frozen" computer, even though with patience
5449    # the test eventually succeeds (with a max line length of 256k).
5450    # Instead, let's just punt: use the minimum linelength reported by
5451    # all of the supported platforms: 8192 (on NT/2K/XP).
5452    lt_cv_sys_max_cmd_len=8192;
5453    ;;
5454
5455  mint*)
5456    # On MiNT this can take a long time and run out of memory.
5457    lt_cv_sys_max_cmd_len=8192;
5458    ;;
5459
5460  amigaos*)
5461    # On AmigaOS with pdksh, this test takes hours, literally.
5462    # So we just punt and use a minimum line length of 8192.
5463    lt_cv_sys_max_cmd_len=8192;
5464    ;;
5465
5466  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5467    # This has been around since 386BSD, at least.  Likely further.
5468    if test -x /sbin/sysctl; then
5469      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5470    elif test -x /usr/sbin/sysctl; then
5471      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5472    else
5473      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5474    fi
5475    # And add a safety zone
5476    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5477    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5478    ;;
5479
5480  interix*)
5481    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5482    lt_cv_sys_max_cmd_len=196608
5483    ;;
5484
5485  os2*)
5486    # The test takes a long time on OS/2.
5487    lt_cv_sys_max_cmd_len=8192
5488    ;;
5489
5490  osf*)
5491    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5492    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5493    # nice to cause kernel panics so lets avoid the loop below.
5494    # First set a reasonable default.
5495    lt_cv_sys_max_cmd_len=16384
5496    #
5497    if test -x /sbin/sysconfig; then
5498      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5499        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5500      esac
5501    fi
5502    ;;
5503  sco3.2v5*)
5504    lt_cv_sys_max_cmd_len=102400
5505    ;;
5506  sysv5* | sco5v6* | sysv4.2uw2*)
5507    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5508    if test -n "$kargmax"; then
5509      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5510    else
5511      lt_cv_sys_max_cmd_len=32768
5512    fi
5513    ;;
5514  *)
5515    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5516    if test -n "$lt_cv_sys_max_cmd_len" && \
5517       test undefined != "$lt_cv_sys_max_cmd_len"; then
5518      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5519      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5520    else
5521      # Make teststring a little bigger before we do anything with it.
5522      # a 1K string should be a reasonable start.
5523      for i in 1 2 3 4 5 6 7 8; do
5524        teststring=$teststring$teststring
5525      done
5526      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5527      # If test is not a shell built-in, we'll probably end up computing a
5528      # maximum length that is only half of the actual maximum length, but
5529      # we can't tell.
5530      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5531	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5532	      test 17 != "$i" # 1/2 MB should be enough
5533      do
5534        i=`expr $i + 1`
5535        teststring=$teststring$teststring
5536      done
5537      # Only check the string length outside the loop.
5538      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5539      teststring=
5540      # Add a significant safety factor because C++ compilers can tack on
5541      # massive amounts of additional arguments before passing them to the
5542      # linker.  It appears as though 1/2 is a usable value.
5543      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5544    fi
5545    ;;
5546  esac
5547
5548fi
5549
5550if test -n "$lt_cv_sys_max_cmd_len"; then
5551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5552$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5553else
5554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5555$as_echo "none" >&6; }
5556fi
5557max_cmd_len=$lt_cv_sys_max_cmd_len
5558
5559
5560
5561
5562
5563
5564: ${CP="cp -f"}
5565: ${MV="mv -f"}
5566: ${RM="rm -f"}
5567
5568if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5569  lt_unset=unset
5570else
5571  lt_unset=false
5572fi
5573
5574
5575
5576
5577
5578# test EBCDIC or ASCII
5579case `echo X|tr X '\101'` in
5580 A) # ASCII based system
5581    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5582  lt_SP2NL='tr \040 \012'
5583  lt_NL2SP='tr \015\012 \040\040'
5584  ;;
5585 *) # EBCDIC based system
5586  lt_SP2NL='tr \100 \n'
5587  lt_NL2SP='tr \r\n \100\100'
5588  ;;
5589esac
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5600$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5601if ${lt_cv_to_host_file_cmd+:} false; then :
5602  $as_echo_n "(cached) " >&6
5603else
5604  case $host in
5605  *-*-mingw* )
5606    case $build in
5607      *-*-mingw* ) # actually msys
5608        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5609        ;;
5610      *-*-cygwin* )
5611        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5612        ;;
5613      * ) # otherwise, assume *nix
5614        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5615        ;;
5616    esac
5617    ;;
5618  *-*-cygwin* )
5619    case $build in
5620      *-*-mingw* ) # actually msys
5621        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5622        ;;
5623      *-*-cygwin* )
5624        lt_cv_to_host_file_cmd=func_convert_file_noop
5625        ;;
5626      * ) # otherwise, assume *nix
5627        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5628        ;;
5629    esac
5630    ;;
5631  * ) # unhandled hosts (and "normal" native builds)
5632    lt_cv_to_host_file_cmd=func_convert_file_noop
5633    ;;
5634esac
5635
5636fi
5637
5638to_host_file_cmd=$lt_cv_to_host_file_cmd
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5640$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5641
5642
5643
5644
5645
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5647$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5648if ${lt_cv_to_tool_file_cmd+:} false; then :
5649  $as_echo_n "(cached) " >&6
5650else
5651  #assume ordinary cross tools, or native build.
5652lt_cv_to_tool_file_cmd=func_convert_file_noop
5653case $host in
5654  *-*-mingw* )
5655    case $build in
5656      *-*-mingw* ) # actually msys
5657        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5658        ;;
5659    esac
5660    ;;
5661esac
5662
5663fi
5664
5665to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5667$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5668
5669
5670
5671
5672
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5674$as_echo_n "checking for $LD option to reload object files... " >&6; }
5675if ${lt_cv_ld_reload_flag+:} false; then :
5676  $as_echo_n "(cached) " >&6
5677else
5678  lt_cv_ld_reload_flag='-r'
5679fi
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5681$as_echo "$lt_cv_ld_reload_flag" >&6; }
5682reload_flag=$lt_cv_ld_reload_flag
5683case $reload_flag in
5684"" | " "*) ;;
5685*) reload_flag=" $reload_flag" ;;
5686esac
5687reload_cmds='$LD$reload_flag -o $output$reload_objs'
5688case $host_os in
5689  cygwin* | mingw* | pw32* | cegcc*)
5690    if test yes != "$GCC"; then
5691      reload_cmds=false
5692    fi
5693    ;;
5694  darwin*)
5695    if test yes = "$GCC"; then
5696      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5697    else
5698      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5699    fi
5700    ;;
5701esac
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711if test -n "$ac_tool_prefix"; then
5712  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5713set dummy ${ac_tool_prefix}objdump; ac_word=$2
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715$as_echo_n "checking for $ac_word... " >&6; }
5716if ${ac_cv_prog_OBJDUMP+:} false; then :
5717  $as_echo_n "(cached) " >&6
5718else
5719  if test -n "$OBJDUMP"; then
5720  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5721else
5722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723for as_dir in $PATH
5724do
5725  IFS=$as_save_IFS
5726  test -z "$as_dir" && as_dir=.
5727    for ac_exec_ext in '' $ac_executable_extensions; do
5728  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731    break 2
5732  fi
5733done
5734  done
5735IFS=$as_save_IFS
5736
5737fi
5738fi
5739OBJDUMP=$ac_cv_prog_OBJDUMP
5740if test -n "$OBJDUMP"; then
5741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5742$as_echo "$OBJDUMP" >&6; }
5743else
5744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745$as_echo "no" >&6; }
5746fi
5747
5748
5749fi
5750if test -z "$ac_cv_prog_OBJDUMP"; then
5751  ac_ct_OBJDUMP=$OBJDUMP
5752  # Extract the first word of "objdump", so it can be a program name with args.
5753set dummy objdump; ac_word=$2
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755$as_echo_n "checking for $ac_word... " >&6; }
5756if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5757  $as_echo_n "(cached) " >&6
5758else
5759  if test -n "$ac_ct_OBJDUMP"; then
5760  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5761else
5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765  IFS=$as_save_IFS
5766  test -z "$as_dir" && as_dir=.
5767    for ac_exec_ext in '' $ac_executable_extensions; do
5768  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771    break 2
5772  fi
5773done
5774  done
5775IFS=$as_save_IFS
5776
5777fi
5778fi
5779ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5780if test -n "$ac_ct_OBJDUMP"; then
5781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5782$as_echo "$ac_ct_OBJDUMP" >&6; }
5783else
5784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785$as_echo "no" >&6; }
5786fi
5787
5788  if test "x$ac_ct_OBJDUMP" = x; then
5789    OBJDUMP="false"
5790  else
5791    case $cross_compiling:$ac_tool_warned in
5792yes:)
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5795ac_tool_warned=yes ;;
5796esac
5797    OBJDUMP=$ac_ct_OBJDUMP
5798  fi
5799else
5800  OBJDUMP="$ac_cv_prog_OBJDUMP"
5801fi
5802
5803test -z "$OBJDUMP" && OBJDUMP=objdump
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5814$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5815if ${lt_cv_deplibs_check_method+:} false; then :
5816  $as_echo_n "(cached) " >&6
5817else
5818  lt_cv_file_magic_cmd='$MAGIC_CMD'
5819lt_cv_file_magic_test_file=
5820lt_cv_deplibs_check_method='unknown'
5821# Need to set the preceding variable on all platforms that support
5822# interlibrary dependencies.
5823# 'none' -- dependencies not supported.
5824# 'unknown' -- same as none, but documents that we really don't know.
5825# 'pass_all' -- all dependencies passed with no checks.
5826# 'test_compile' -- check by making test program.
5827# 'file_magic [[regex]]' -- check by looking for files in library path
5828# that responds to the $file_magic_cmd with a given extended regex.
5829# If you have 'file' or equivalent on your system and you're not sure
5830# whether 'pass_all' will *always* work, you probably want this one.
5831
5832case $host_os in
5833aix[4-9]*)
5834  lt_cv_deplibs_check_method=pass_all
5835  ;;
5836
5837beos*)
5838  lt_cv_deplibs_check_method=pass_all
5839  ;;
5840
5841bsdi[45]*)
5842  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5843  lt_cv_file_magic_cmd='/usr/bin/file -L'
5844  lt_cv_file_magic_test_file=/shlib/libc.so
5845  ;;
5846
5847cygwin*)
5848  # func_win32_libid is a shell function defined in ltmain.sh
5849  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5850  lt_cv_file_magic_cmd='func_win32_libid'
5851  ;;
5852
5853mingw* | pw32*)
5854  # Base MSYS/MinGW do not provide the 'file' command needed by
5855  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5856  # unless we find 'file', for example because we are cross-compiling.
5857  if ( file / ) >/dev/null 2>&1; then
5858    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5859    lt_cv_file_magic_cmd='func_win32_libid'
5860  else
5861    # Keep this pattern in sync with the one in func_win32_libid.
5862    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5863    lt_cv_file_magic_cmd='$OBJDUMP -f'
5864  fi
5865  ;;
5866
5867cegcc*)
5868  # use the weaker test based on 'objdump'. See mingw*.
5869  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5870  lt_cv_file_magic_cmd='$OBJDUMP -f'
5871  ;;
5872
5873darwin* | rhapsody*)
5874  lt_cv_deplibs_check_method=pass_all
5875  ;;
5876
5877freebsd* | dragonfly*)
5878  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5879    case $host_cpu in
5880    i*86 )
5881      # Not sure whether the presence of OpenBSD here was a mistake.
5882      # Let's accept both of them until this is cleared up.
5883      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5884      lt_cv_file_magic_cmd=/usr/bin/file
5885      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5886      ;;
5887    esac
5888  else
5889    lt_cv_deplibs_check_method=pass_all
5890  fi
5891  ;;
5892
5893haiku*)
5894  lt_cv_deplibs_check_method=pass_all
5895  ;;
5896
5897hpux10.20* | hpux11*)
5898  lt_cv_file_magic_cmd=/usr/bin/file
5899  case $host_cpu in
5900  ia64*)
5901    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5902    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5903    ;;
5904  hppa*64*)
5905    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]'
5906    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5907    ;;
5908  *)
5909    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5910    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5911    ;;
5912  esac
5913  ;;
5914
5915interix[3-9]*)
5916  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5917  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5918  ;;
5919
5920irix5* | irix6* | nonstopux*)
5921  case $LD in
5922  *-32|*"-32 ") libmagic=32-bit;;
5923  *-n32|*"-n32 ") libmagic=N32;;
5924  *-64|*"-64 ") libmagic=64-bit;;
5925  *) libmagic=never-match;;
5926  esac
5927  lt_cv_deplibs_check_method=pass_all
5928  ;;
5929
5930# This must be glibc/ELF.
5931linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5932  lt_cv_deplibs_check_method=pass_all
5933  ;;
5934
5935netbsd* | netbsdelf*-gnu)
5936  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5937    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5938  else
5939    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5940  fi
5941  ;;
5942
5943newos6*)
5944  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5945  lt_cv_file_magic_cmd=/usr/bin/file
5946  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5947  ;;
5948
5949*nto* | *qnx*)
5950  lt_cv_deplibs_check_method=pass_all
5951  ;;
5952
5953openbsd* | bitrig*)
5954  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5955    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5956  else
5957    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5958  fi
5959  ;;
5960
5961osf3* | osf4* | osf5*)
5962  lt_cv_deplibs_check_method=pass_all
5963  ;;
5964
5965rdos*)
5966  lt_cv_deplibs_check_method=pass_all
5967  ;;
5968
5969solaris*)
5970  lt_cv_deplibs_check_method=pass_all
5971  ;;
5972
5973sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5974  lt_cv_deplibs_check_method=pass_all
5975  ;;
5976
5977sysv4 | sysv4.3*)
5978  case $host_vendor in
5979  motorola)
5980    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]'
5981    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5982    ;;
5983  ncr)
5984    lt_cv_deplibs_check_method=pass_all
5985    ;;
5986  sequent)
5987    lt_cv_file_magic_cmd='/bin/file'
5988    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5989    ;;
5990  sni)
5991    lt_cv_file_magic_cmd='/bin/file'
5992    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5993    lt_cv_file_magic_test_file=/lib/libc.so
5994    ;;
5995  siemens)
5996    lt_cv_deplibs_check_method=pass_all
5997    ;;
5998  pc)
5999    lt_cv_deplibs_check_method=pass_all
6000    ;;
6001  esac
6002  ;;
6003
6004tpf*)
6005  lt_cv_deplibs_check_method=pass_all
6006  ;;
6007os2*)
6008  lt_cv_deplibs_check_method=pass_all
6009  ;;
6010esac
6011
6012fi
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6014$as_echo "$lt_cv_deplibs_check_method" >&6; }
6015
6016file_magic_glob=
6017want_nocaseglob=no
6018if test "$build" = "$host"; then
6019  case $host_os in
6020  mingw* | pw32*)
6021    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6022      want_nocaseglob=yes
6023    else
6024      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6025    fi
6026    ;;
6027  esac
6028fi
6029
6030file_magic_cmd=$lt_cv_file_magic_cmd
6031deplibs_check_method=$lt_cv_deplibs_check_method
6032test -z "$deplibs_check_method" && deplibs_check_method=unknown
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055if test -n "$ac_tool_prefix"; then
6056  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6057set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059$as_echo_n "checking for $ac_word... " >&6; }
6060if ${ac_cv_prog_DLLTOOL+:} false; then :
6061  $as_echo_n "(cached) " >&6
6062else
6063  if test -n "$DLLTOOL"; then
6064  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6065else
6066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067for as_dir in $PATH
6068do
6069  IFS=$as_save_IFS
6070  test -z "$as_dir" && as_dir=.
6071    for ac_exec_ext in '' $ac_executable_extensions; do
6072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6073    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075    break 2
6076  fi
6077done
6078  done
6079IFS=$as_save_IFS
6080
6081fi
6082fi
6083DLLTOOL=$ac_cv_prog_DLLTOOL
6084if test -n "$DLLTOOL"; then
6085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6086$as_echo "$DLLTOOL" >&6; }
6087else
6088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089$as_echo "no" >&6; }
6090fi
6091
6092
6093fi
6094if test -z "$ac_cv_prog_DLLTOOL"; then
6095  ac_ct_DLLTOOL=$DLLTOOL
6096  # Extract the first word of "dlltool", so it can be a program name with args.
6097set dummy dlltool; ac_word=$2
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6099$as_echo_n "checking for $ac_word... " >&6; }
6100if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6101  $as_echo_n "(cached) " >&6
6102else
6103  if test -n "$ac_ct_DLLTOOL"; then
6104  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6105else
6106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107for as_dir in $PATH
6108do
6109  IFS=$as_save_IFS
6110  test -z "$as_dir" && as_dir=.
6111    for ac_exec_ext in '' $ac_executable_extensions; do
6112  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6113    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6115    break 2
6116  fi
6117done
6118  done
6119IFS=$as_save_IFS
6120
6121fi
6122fi
6123ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6124if test -n "$ac_ct_DLLTOOL"; then
6125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6126$as_echo "$ac_ct_DLLTOOL" >&6; }
6127else
6128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129$as_echo "no" >&6; }
6130fi
6131
6132  if test "x$ac_ct_DLLTOOL" = x; then
6133    DLLTOOL="false"
6134  else
6135    case $cross_compiling:$ac_tool_warned in
6136yes:)
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6139ac_tool_warned=yes ;;
6140esac
6141    DLLTOOL=$ac_ct_DLLTOOL
6142  fi
6143else
6144  DLLTOOL="$ac_cv_prog_DLLTOOL"
6145fi
6146
6147test -z "$DLLTOOL" && DLLTOOL=dlltool
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6159$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6160if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6161  $as_echo_n "(cached) " >&6
6162else
6163  lt_cv_sharedlib_from_linklib_cmd='unknown'
6164
6165case $host_os in
6166cygwin* | mingw* | pw32* | cegcc*)
6167  # two different shell functions defined in ltmain.sh;
6168  # decide which one to use based on capabilities of $DLLTOOL
6169  case `$DLLTOOL --help 2>&1` in
6170  *--identify-strict*)
6171    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6172    ;;
6173  *)
6174    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6175    ;;
6176  esac
6177  ;;
6178*)
6179  # fallback: assume linklib IS sharedlib
6180  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6181  ;;
6182esac
6183
6184fi
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6186$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6187sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6188test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6189
6190
6191
6192
6193
6194
6195
6196if test -n "$ac_tool_prefix"; then
6197  for ac_prog in ar
6198  do
6199    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6200set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202$as_echo_n "checking for $ac_word... " >&6; }
6203if ${ac_cv_prog_AR+:} false; then :
6204  $as_echo_n "(cached) " >&6
6205else
6206  if test -n "$AR"; then
6207  ac_cv_prog_AR="$AR" # Let the user override the test.
6208else
6209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210for as_dir in $PATH
6211do
6212  IFS=$as_save_IFS
6213  test -z "$as_dir" && as_dir=.
6214    for ac_exec_ext in '' $ac_executable_extensions; do
6215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218    break 2
6219  fi
6220done
6221  done
6222IFS=$as_save_IFS
6223
6224fi
6225fi
6226AR=$ac_cv_prog_AR
6227if test -n "$AR"; then
6228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6229$as_echo "$AR" >&6; }
6230else
6231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232$as_echo "no" >&6; }
6233fi
6234
6235
6236    test -n "$AR" && break
6237  done
6238fi
6239if test -z "$AR"; then
6240  ac_ct_AR=$AR
6241  for ac_prog in ar
6242do
6243  # Extract the first word of "$ac_prog", so it can be a program name with args.
6244set dummy $ac_prog; ac_word=$2
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246$as_echo_n "checking for $ac_word... " >&6; }
6247if ${ac_cv_prog_ac_ct_AR+:} false; then :
6248  $as_echo_n "(cached) " >&6
6249else
6250  if test -n "$ac_ct_AR"; then
6251  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6252else
6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254for as_dir in $PATH
6255do
6256  IFS=$as_save_IFS
6257  test -z "$as_dir" && as_dir=.
6258    for ac_exec_ext in '' $ac_executable_extensions; do
6259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260    ac_cv_prog_ac_ct_AR="$ac_prog"
6261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262    break 2
6263  fi
6264done
6265  done
6266IFS=$as_save_IFS
6267
6268fi
6269fi
6270ac_ct_AR=$ac_cv_prog_ac_ct_AR
6271if test -n "$ac_ct_AR"; then
6272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6273$as_echo "$ac_ct_AR" >&6; }
6274else
6275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276$as_echo "no" >&6; }
6277fi
6278
6279
6280  test -n "$ac_ct_AR" && break
6281done
6282
6283  if test "x$ac_ct_AR" = x; then
6284    AR="false"
6285  else
6286    case $cross_compiling:$ac_tool_warned in
6287yes:)
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6290ac_tool_warned=yes ;;
6291esac
6292    AR=$ac_ct_AR
6293  fi
6294fi
6295
6296: ${AR=ar}
6297: ${AR_FLAGS=cru}
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6310$as_echo_n "checking for archiver @FILE support... " >&6; }
6311if ${lt_cv_ar_at_file+:} false; then :
6312  $as_echo_n "(cached) " >&6
6313else
6314  lt_cv_ar_at_file=no
6315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316/* end confdefs.h.  */
6317
6318int
6319main ()
6320{
6321
6322  ;
6323  return 0;
6324}
6325_ACEOF
6326if ac_fn_c_try_compile "$LINENO"; then :
6327  echo conftest.$ac_objext > conftest.lst
6328      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6329      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6330  (eval $lt_ar_try) 2>&5
6331  ac_status=$?
6332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6333  test $ac_status = 0; }
6334      if test 0 -eq "$ac_status"; then
6335	# Ensure the archiver fails upon bogus file names.
6336	rm -f conftest.$ac_objext libconftest.a
6337	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6338  (eval $lt_ar_try) 2>&5
6339  ac_status=$?
6340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6341  test $ac_status = 0; }
6342	if test 0 -ne "$ac_status"; then
6343          lt_cv_ar_at_file=@
6344        fi
6345      fi
6346      rm -f conftest.* libconftest.a
6347
6348fi
6349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350
6351fi
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6353$as_echo "$lt_cv_ar_at_file" >&6; }
6354
6355if test no = "$lt_cv_ar_at_file"; then
6356  archiver_list_spec=
6357else
6358  archiver_list_spec=$lt_cv_ar_at_file
6359fi
6360
6361
6362
6363
6364
6365
6366
6367if test -n "$ac_tool_prefix"; then
6368  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6369set dummy ${ac_tool_prefix}strip; ac_word=$2
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371$as_echo_n "checking for $ac_word... " >&6; }
6372if ${ac_cv_prog_STRIP+:} false; then :
6373  $as_echo_n "(cached) " >&6
6374else
6375  if test -n "$STRIP"; then
6376  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6377else
6378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379for as_dir in $PATH
6380do
6381  IFS=$as_save_IFS
6382  test -z "$as_dir" && as_dir=.
6383    for ac_exec_ext in '' $ac_executable_extensions; do
6384  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6385    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387    break 2
6388  fi
6389done
6390  done
6391IFS=$as_save_IFS
6392
6393fi
6394fi
6395STRIP=$ac_cv_prog_STRIP
6396if test -n "$STRIP"; then
6397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6398$as_echo "$STRIP" >&6; }
6399else
6400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401$as_echo "no" >&6; }
6402fi
6403
6404
6405fi
6406if test -z "$ac_cv_prog_STRIP"; then
6407  ac_ct_STRIP=$STRIP
6408  # Extract the first word of "strip", so it can be a program name with args.
6409set dummy strip; ac_word=$2
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411$as_echo_n "checking for $ac_word... " >&6; }
6412if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6413  $as_echo_n "(cached) " >&6
6414else
6415  if test -n "$ac_ct_STRIP"; then
6416  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6417else
6418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419for as_dir in $PATH
6420do
6421  IFS=$as_save_IFS
6422  test -z "$as_dir" && as_dir=.
6423    for ac_exec_ext in '' $ac_executable_extensions; do
6424  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425    ac_cv_prog_ac_ct_STRIP="strip"
6426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427    break 2
6428  fi
6429done
6430  done
6431IFS=$as_save_IFS
6432
6433fi
6434fi
6435ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6436if test -n "$ac_ct_STRIP"; then
6437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6438$as_echo "$ac_ct_STRIP" >&6; }
6439else
6440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441$as_echo "no" >&6; }
6442fi
6443
6444  if test "x$ac_ct_STRIP" = x; then
6445    STRIP=":"
6446  else
6447    case $cross_compiling:$ac_tool_warned in
6448yes:)
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6451ac_tool_warned=yes ;;
6452esac
6453    STRIP=$ac_ct_STRIP
6454  fi
6455else
6456  STRIP="$ac_cv_prog_STRIP"
6457fi
6458
6459test -z "$STRIP" && STRIP=:
6460
6461
6462
6463
6464
6465
6466if test -n "$ac_tool_prefix"; then
6467  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6468set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470$as_echo_n "checking for $ac_word... " >&6; }
6471if ${ac_cv_prog_RANLIB+:} false; then :
6472  $as_echo_n "(cached) " >&6
6473else
6474  if test -n "$RANLIB"; then
6475  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6476else
6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478for as_dir in $PATH
6479do
6480  IFS=$as_save_IFS
6481  test -z "$as_dir" && as_dir=.
6482    for ac_exec_ext in '' $ac_executable_extensions; do
6483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486    break 2
6487  fi
6488done
6489  done
6490IFS=$as_save_IFS
6491
6492fi
6493fi
6494RANLIB=$ac_cv_prog_RANLIB
6495if test -n "$RANLIB"; then
6496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6497$as_echo "$RANLIB" >&6; }
6498else
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500$as_echo "no" >&6; }
6501fi
6502
6503
6504fi
6505if test -z "$ac_cv_prog_RANLIB"; then
6506  ac_ct_RANLIB=$RANLIB
6507  # Extract the first word of "ranlib", so it can be a program name with args.
6508set dummy ranlib; ac_word=$2
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510$as_echo_n "checking for $ac_word... " >&6; }
6511if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6512  $as_echo_n "(cached) " >&6
6513else
6514  if test -n "$ac_ct_RANLIB"; then
6515  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6516else
6517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518for as_dir in $PATH
6519do
6520  IFS=$as_save_IFS
6521  test -z "$as_dir" && as_dir=.
6522    for ac_exec_ext in '' $ac_executable_extensions; do
6523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524    ac_cv_prog_ac_ct_RANLIB="ranlib"
6525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526    break 2
6527  fi
6528done
6529  done
6530IFS=$as_save_IFS
6531
6532fi
6533fi
6534ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6535if test -n "$ac_ct_RANLIB"; then
6536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6537$as_echo "$ac_ct_RANLIB" >&6; }
6538else
6539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540$as_echo "no" >&6; }
6541fi
6542
6543  if test "x$ac_ct_RANLIB" = x; then
6544    RANLIB=":"
6545  else
6546    case $cross_compiling:$ac_tool_warned in
6547yes:)
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550ac_tool_warned=yes ;;
6551esac
6552    RANLIB=$ac_ct_RANLIB
6553  fi
6554else
6555  RANLIB="$ac_cv_prog_RANLIB"
6556fi
6557
6558test -z "$RANLIB" && RANLIB=:
6559
6560
6561
6562
6563
6564
6565# Determine commands to create old-style static archives.
6566old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6567old_postinstall_cmds='chmod 644 $oldlib'
6568old_postuninstall_cmds=
6569
6570if test -n "$RANLIB"; then
6571  case $host_os in
6572  bitrig* | openbsd*)
6573    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6574    ;;
6575  *)
6576    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6577    ;;
6578  esac
6579  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6580fi
6581
6582case $host_os in
6583  darwin*)
6584    lock_old_archive_extraction=yes ;;
6585  *)
6586    lock_old_archive_extraction=no ;;
6587esac
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627# If no C compiler was specified, use CC.
6628LTCC=${LTCC-"$CC"}
6629
6630# If no C compiler flags were specified, use CFLAGS.
6631LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6632
6633# Allow CC to be a program name with arguments.
6634compiler=$CC
6635
6636
6637# Check for command to grab the raw symbol name followed by C symbol from nm.
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6639$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6640if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6641  $as_echo_n "(cached) " >&6
6642else
6643
6644# These are sane defaults that work on at least a few old systems.
6645# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6646
6647# Character class describing NM global symbol codes.
6648symcode='[BCDEGRST]'
6649
6650# Regexp to match symbols that can be accessed directly from C.
6651sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6652
6653# Define system-specific variables.
6654case $host_os in
6655aix*)
6656  symcode='[BCDT]'
6657  ;;
6658cygwin* | mingw* | pw32* | cegcc*)
6659  symcode='[ABCDGISTW]'
6660  ;;
6661hpux*)
6662  if test ia64 = "$host_cpu"; then
6663    symcode='[ABCDEGRST]'
6664  fi
6665  ;;
6666irix* | nonstopux*)
6667  symcode='[BCDEGRST]'
6668  ;;
6669osf*)
6670  symcode='[BCDEGQRST]'
6671  ;;
6672solaris*)
6673  symcode='[BDRT]'
6674  ;;
6675sco3.2v5*)
6676  symcode='[DT]'
6677  ;;
6678sysv4.2uw2*)
6679  symcode='[DT]'
6680  ;;
6681sysv5* | sco5v6* | unixware* | OpenUNIX*)
6682  symcode='[ABDT]'
6683  ;;
6684sysv4)
6685  symcode='[DFNSTU]'
6686  ;;
6687esac
6688
6689# If we're using GNU nm, then use its standard symbol codes.
6690case `$NM -V 2>&1` in
6691*GNU* | *'with BFD'*)
6692  symcode='[ABCDGIRSTW]' ;;
6693esac
6694
6695if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6696  # Gets list of data symbols to import.
6697  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6698  # Adjust the below global symbol transforms to fixup imported variables.
6699  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6700  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6701  lt_c_name_lib_hook="\
6702  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6703  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6704else
6705  # Disable hooks by default.
6706  lt_cv_sys_global_symbol_to_import=
6707  lt_cdecl_hook=
6708  lt_c_name_hook=
6709  lt_c_name_lib_hook=
6710fi
6711
6712# Transform an extracted symbol line into a proper C declaration.
6713# Some systems (esp. on ia64) link data and code symbols differently,
6714# so use this general approach.
6715lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6716$lt_cdecl_hook\
6717" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6718" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6719
6720# Transform an extracted symbol line into symbol name and symbol address
6721lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6722$lt_c_name_hook\
6723" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6724" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6725
6726# Transform an extracted symbol line into symbol name with lib prefix and
6727# symbol address.
6728lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6729$lt_c_name_lib_hook\
6730" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6731" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6732" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6733
6734# Handle CRLF in mingw tool chain
6735opt_cr=
6736case $build_os in
6737mingw*)
6738  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6739  ;;
6740esac
6741
6742# Try without a prefix underscore, then with it.
6743for ac_symprfx in "" "_"; do
6744
6745  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6746  symxfrm="\\1 $ac_symprfx\\2 \\2"
6747
6748  # Write the raw and C identifiers.
6749  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6750    # Fake it for dumpbin and say T for any non-static function,
6751    # D for any global variable and I for any imported variable.
6752    # Also find C++ and __fastcall symbols from MSVC++,
6753    # which start with @ or ?.
6754    lt_cv_sys_global_symbol_pipe="$AWK '"\
6755"     {last_section=section; section=\$ 3};"\
6756"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6757"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6758"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6759"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6760"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6761"     \$ 0!~/External *\|/{next};"\
6762"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6763"     {if(hide[section]) next};"\
6764"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6765"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6766"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6767"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6768"     ' prfx=^$ac_symprfx"
6769  else
6770    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6771  fi
6772  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6773
6774  # Check to see that the pipe works correctly.
6775  pipe_works=no
6776
6777  rm -f conftest*
6778  cat > conftest.$ac_ext <<_LT_EOF
6779#ifdef __cplusplus
6780extern "C" {
6781#endif
6782char nm_test_var;
6783void nm_test_func(void);
6784void nm_test_func(void){}
6785#ifdef __cplusplus
6786}
6787#endif
6788int main(){nm_test_var='a';nm_test_func();return(0);}
6789_LT_EOF
6790
6791  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6792  (eval $ac_compile) 2>&5
6793  ac_status=$?
6794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6795  test $ac_status = 0; }; then
6796    # Now try to grab the symbols.
6797    nlist=conftest.nm
6798    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6799  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6800  ac_status=$?
6801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6802  test $ac_status = 0; } && test -s "$nlist"; then
6803      # Try sorting and uniquifying the output.
6804      if sort "$nlist" | uniq > "$nlist"T; then
6805	mv -f "$nlist"T "$nlist"
6806      else
6807	rm -f "$nlist"T
6808      fi
6809
6810      # Make sure that we snagged all the symbols we need.
6811      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6812	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6813	  cat <<_LT_EOF > conftest.$ac_ext
6814/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6815#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6816/* DATA imports from DLLs on WIN32 can't be const, because runtime
6817   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6818# define LT_DLSYM_CONST
6819#elif defined __osf__
6820/* This system does not cope well with relocations in const data.  */
6821# define LT_DLSYM_CONST
6822#else
6823# define LT_DLSYM_CONST const
6824#endif
6825
6826#ifdef __cplusplus
6827extern "C" {
6828#endif
6829
6830_LT_EOF
6831	  # Now generate the symbol file.
6832	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6833
6834	  cat <<_LT_EOF >> conftest.$ac_ext
6835
6836/* The mapping between symbol names and symbols.  */
6837LT_DLSYM_CONST struct {
6838  const char *name;
6839  void       *address;
6840}
6841lt__PROGRAM__LTX_preloaded_symbols[] =
6842{
6843  { "@PROGRAM@", (void *) 0 },
6844_LT_EOF
6845	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6846	  cat <<\_LT_EOF >> conftest.$ac_ext
6847  {0, (void *) 0}
6848};
6849
6850/* This works around a problem in FreeBSD linker */
6851#ifdef FREEBSD_WORKAROUND
6852static const void *lt_preloaded_setup() {
6853  return lt__PROGRAM__LTX_preloaded_symbols;
6854}
6855#endif
6856
6857#ifdef __cplusplus
6858}
6859#endif
6860_LT_EOF
6861	  # Now try linking the two files.
6862	  mv conftest.$ac_objext conftstm.$ac_objext
6863	  lt_globsym_save_LIBS=$LIBS
6864	  lt_globsym_save_CFLAGS=$CFLAGS
6865	  LIBS=conftstm.$ac_objext
6866	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6867	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6868  (eval $ac_link) 2>&5
6869  ac_status=$?
6870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6871  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6872	    pipe_works=yes
6873	  fi
6874	  LIBS=$lt_globsym_save_LIBS
6875	  CFLAGS=$lt_globsym_save_CFLAGS
6876	else
6877	  echo "cannot find nm_test_func in $nlist" >&5
6878	fi
6879      else
6880	echo "cannot find nm_test_var in $nlist" >&5
6881      fi
6882    else
6883      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6884    fi
6885  else
6886    echo "$progname: failed program was:" >&5
6887    cat conftest.$ac_ext >&5
6888  fi
6889  rm -rf conftest* conftst*
6890
6891  # Do not use the global_symbol_pipe unless it works.
6892  if test yes = "$pipe_works"; then
6893    break
6894  else
6895    lt_cv_sys_global_symbol_pipe=
6896  fi
6897done
6898
6899fi
6900
6901if test -z "$lt_cv_sys_global_symbol_pipe"; then
6902  lt_cv_sys_global_symbol_to_cdecl=
6903fi
6904if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6906$as_echo "failed" >&6; }
6907else
6908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6909$as_echo "ok" >&6; }
6910fi
6911
6912# Response file support.
6913if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6914  nm_file_list_spec='@'
6915elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6916  nm_file_list_spec='@'
6917fi
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6956$as_echo_n "checking for sysroot... " >&6; }
6957
6958# Check whether --with-sysroot was given.
6959if test "${with_sysroot+set}" = set; then :
6960  withval=$with_sysroot;
6961else
6962  with_sysroot=no
6963fi
6964
6965
6966lt_sysroot=
6967case $with_sysroot in #(
6968 yes)
6969   if test yes = "$GCC"; then
6970     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6971   fi
6972   ;; #(
6973 /*)
6974   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6975   ;; #(
6976 no|'')
6977   ;; #(
6978 *)
6979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6980$as_echo "$with_sysroot" >&6; }
6981   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6982   ;;
6983esac
6984
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6986$as_echo "${lt_sysroot:-no}" >&6; }
6987
6988
6989
6990
6991
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6993$as_echo_n "checking for a working dd... " >&6; }
6994if ${ac_cv_path_lt_DD+:} false; then :
6995  $as_echo_n "(cached) " >&6
6996else
6997  printf 0123456789abcdef0123456789abcdef >conftest.i
6998cat conftest.i conftest.i >conftest2.i
6999: ${lt_DD:=$DD}
7000if test -z "$lt_DD"; then
7001  ac_path_lt_DD_found=false
7002  # Loop through the user's path and test for each of PROGNAME-LIST
7003  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004for as_dir in $PATH
7005do
7006  IFS=$as_save_IFS
7007  test -z "$as_dir" && as_dir=.
7008    for ac_prog in dd; do
7009    for ac_exec_ext in '' $ac_executable_extensions; do
7010      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7011      as_fn_executable_p "$ac_path_lt_DD" || continue
7012if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7013  cmp -s conftest.i conftest.out \
7014  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7015fi
7016      $ac_path_lt_DD_found && break 3
7017    done
7018  done
7019  done
7020IFS=$as_save_IFS
7021  if test -z "$ac_cv_path_lt_DD"; then
7022    :
7023  fi
7024else
7025  ac_cv_path_lt_DD=$lt_DD
7026fi
7027
7028rm -f conftest.i conftest2.i conftest.out
7029fi
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7031$as_echo "$ac_cv_path_lt_DD" >&6; }
7032
7033
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7035$as_echo_n "checking how to truncate binary pipes... " >&6; }
7036if ${lt_cv_truncate_bin+:} false; then :
7037  $as_echo_n "(cached) " >&6
7038else
7039  printf 0123456789abcdef0123456789abcdef >conftest.i
7040cat conftest.i conftest.i >conftest2.i
7041lt_cv_truncate_bin=
7042if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7043  cmp -s conftest.i conftest.out \
7044  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7045fi
7046rm -f conftest.i conftest2.i conftest.out
7047test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7048fi
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7050$as_echo "$lt_cv_truncate_bin" >&6; }
7051
7052
7053
7054
7055
7056
7057
7058# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7059func_cc_basename ()
7060{
7061    for cc_temp in $*""; do
7062      case $cc_temp in
7063        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7064        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7065        \-*) ;;
7066        *) break;;
7067      esac
7068    done
7069    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7070}
7071
7072# Check whether --enable-libtool-lock was given.
7073if test "${enable_libtool_lock+set}" = set; then :
7074  enableval=$enable_libtool_lock;
7075fi
7076
7077test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7078
7079# Some flags need to be propagated to the compiler or linker for good
7080# libtool support.
7081case $host in
7082ia64-*-hpux*)
7083  # Find out what ABI is being produced by ac_compile, and set mode
7084  # options accordingly.
7085  echo 'int i;' > conftest.$ac_ext
7086  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7087  (eval $ac_compile) 2>&5
7088  ac_status=$?
7089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7090  test $ac_status = 0; }; then
7091    case `/usr/bin/file conftest.$ac_objext` in
7092      *ELF-32*)
7093	HPUX_IA64_MODE=32
7094	;;
7095      *ELF-64*)
7096	HPUX_IA64_MODE=64
7097	;;
7098    esac
7099  fi
7100  rm -rf conftest*
7101  ;;
7102*-*-irix6*)
7103  # Find out what ABI is being produced by ac_compile, and set linker
7104  # options accordingly.
7105  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7106  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7107  (eval $ac_compile) 2>&5
7108  ac_status=$?
7109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7110  test $ac_status = 0; }; then
7111    if test yes = "$lt_cv_prog_gnu_ld"; then
7112      case `/usr/bin/file conftest.$ac_objext` in
7113	*32-bit*)
7114	  LD="${LD-ld} -melf32bsmip"
7115	  ;;
7116	*N32*)
7117	  LD="${LD-ld} -melf32bmipn32"
7118	  ;;
7119	*64-bit*)
7120	  LD="${LD-ld} -melf64bmip"
7121	;;
7122      esac
7123    else
7124      case `/usr/bin/file conftest.$ac_objext` in
7125	*32-bit*)
7126	  LD="${LD-ld} -32"
7127	  ;;
7128	*N32*)
7129	  LD="${LD-ld} -n32"
7130	  ;;
7131	*64-bit*)
7132	  LD="${LD-ld} -64"
7133	  ;;
7134      esac
7135    fi
7136  fi
7137  rm -rf conftest*
7138  ;;
7139
7140mips64*-*linux*)
7141  # Find out what ABI is being produced by ac_compile, and set linker
7142  # options accordingly.
7143  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7144  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7145  (eval $ac_compile) 2>&5
7146  ac_status=$?
7147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7148  test $ac_status = 0; }; then
7149    emul=elf
7150    case `/usr/bin/file conftest.$ac_objext` in
7151      *32-bit*)
7152	emul="${emul}32"
7153	;;
7154      *64-bit*)
7155	emul="${emul}64"
7156	;;
7157    esac
7158    case `/usr/bin/file conftest.$ac_objext` in
7159      *MSB*)
7160	emul="${emul}btsmip"
7161	;;
7162      *LSB*)
7163	emul="${emul}ltsmip"
7164	;;
7165    esac
7166    case `/usr/bin/file conftest.$ac_objext` in
7167      *N32*)
7168	emul="${emul}n32"
7169	;;
7170    esac
7171    LD="${LD-ld} -m $emul"
7172  fi
7173  rm -rf conftest*
7174  ;;
7175
7176x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7177s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7178  # Find out what ABI is being produced by ac_compile, and set linker
7179  # options accordingly.  Note that the listed cases only cover the
7180  # situations where additional linker options are needed (such as when
7181  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7182  # vice versa); the common cases where no linker options are needed do
7183  # not appear in the list.
7184  echo 'int i;' > conftest.$ac_ext
7185  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7186  (eval $ac_compile) 2>&5
7187  ac_status=$?
7188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7189  test $ac_status = 0; }; then
7190    case `/usr/bin/file conftest.o` in
7191      *32-bit*)
7192	case $host in
7193	  x86_64-*kfreebsd*-gnu)
7194	    LD="${LD-ld} -m elf_i386_fbsd"
7195	    ;;
7196	  x86_64-*linux*)
7197	    case `/usr/bin/file conftest.o` in
7198	      *x86-64*)
7199		LD="${LD-ld} -m elf32_x86_64"
7200		;;
7201	      *)
7202		LD="${LD-ld} -m elf_i386"
7203		;;
7204	    esac
7205	    ;;
7206	  powerpc64le-*linux*)
7207	    LD="${LD-ld} -m elf32lppclinux"
7208	    ;;
7209	  powerpc64-*linux*)
7210	    LD="${LD-ld} -m elf32ppclinux"
7211	    ;;
7212	  s390x-*linux*)
7213	    LD="${LD-ld} -m elf_s390"
7214	    ;;
7215	  sparc64-*linux*)
7216	    LD="${LD-ld} -m elf32_sparc"
7217	    ;;
7218	esac
7219	;;
7220      *64-bit*)
7221	case $host in
7222	  x86_64-*kfreebsd*-gnu)
7223	    LD="${LD-ld} -m elf_x86_64_fbsd"
7224	    ;;
7225	  x86_64-*linux*)
7226	    LD="${LD-ld} -m elf_x86_64"
7227	    ;;
7228	  powerpcle-*linux*)
7229	    LD="${LD-ld} -m elf64lppc"
7230	    ;;
7231	  powerpc-*linux*)
7232	    LD="${LD-ld} -m elf64ppc"
7233	    ;;
7234	  s390*-*linux*|s390*-*tpf*)
7235	    LD="${LD-ld} -m elf64_s390"
7236	    ;;
7237	  sparc*-*linux*)
7238	    LD="${LD-ld} -m elf64_sparc"
7239	    ;;
7240	esac
7241	;;
7242    esac
7243  fi
7244  rm -rf conftest*
7245  ;;
7246
7247*-*-sco3.2v5*)
7248  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7249  SAVE_CFLAGS=$CFLAGS
7250  CFLAGS="$CFLAGS -belf"
7251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7252$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7253if ${lt_cv_cc_needs_belf+:} false; then :
7254  $as_echo_n "(cached) " >&6
7255else
7256  ac_ext=c
7257ac_cpp='$CPP $CPPFLAGS'
7258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7260ac_compiler_gnu=$ac_cv_c_compiler_gnu
7261
7262     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263/* end confdefs.h.  */
7264
7265int
7266main ()
7267{
7268
7269  ;
7270  return 0;
7271}
7272_ACEOF
7273if ac_fn_c_try_link "$LINENO"; then :
7274  lt_cv_cc_needs_belf=yes
7275else
7276  lt_cv_cc_needs_belf=no
7277fi
7278rm -f core conftest.err conftest.$ac_objext \
7279    conftest$ac_exeext conftest.$ac_ext
7280     ac_ext=c
7281ac_cpp='$CPP $CPPFLAGS'
7282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7284ac_compiler_gnu=$ac_cv_c_compiler_gnu
7285
7286fi
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7288$as_echo "$lt_cv_cc_needs_belf" >&6; }
7289  if test yes != "$lt_cv_cc_needs_belf"; then
7290    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7291    CFLAGS=$SAVE_CFLAGS
7292  fi
7293  ;;
7294*-*solaris*)
7295  # Find out what ABI is being produced by ac_compile, and set linker
7296  # options accordingly.
7297  echo 'int i;' > conftest.$ac_ext
7298  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7299  (eval $ac_compile) 2>&5
7300  ac_status=$?
7301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7302  test $ac_status = 0; }; then
7303    case `/usr/bin/file conftest.o` in
7304    *64-bit*)
7305      case $lt_cv_prog_gnu_ld in
7306      yes*)
7307        case $host in
7308        i?86-*-solaris*|x86_64-*-solaris*)
7309          LD="${LD-ld} -m elf_x86_64"
7310          ;;
7311        sparc*-*-solaris*)
7312          LD="${LD-ld} -m elf64_sparc"
7313          ;;
7314        esac
7315        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7316        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7317          LD=${LD-ld}_sol2
7318        fi
7319        ;;
7320      *)
7321	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7322	  LD="${LD-ld} -64"
7323	fi
7324	;;
7325      esac
7326      ;;
7327    esac
7328  fi
7329  rm -rf conftest*
7330  ;;
7331esac
7332
7333need_locks=$enable_libtool_lock
7334
7335if test -n "$ac_tool_prefix"; then
7336  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7337set dummy ${ac_tool_prefix}mt; ac_word=$2
7338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339$as_echo_n "checking for $ac_word... " >&6; }
7340if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7341  $as_echo_n "(cached) " >&6
7342else
7343  if test -n "$MANIFEST_TOOL"; then
7344  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7345else
7346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347for as_dir in $PATH
7348do
7349  IFS=$as_save_IFS
7350  test -z "$as_dir" && as_dir=.
7351    for ac_exec_ext in '' $ac_executable_extensions; do
7352  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7353    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355    break 2
7356  fi
7357done
7358  done
7359IFS=$as_save_IFS
7360
7361fi
7362fi
7363MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7364if test -n "$MANIFEST_TOOL"; then
7365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7366$as_echo "$MANIFEST_TOOL" >&6; }
7367else
7368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369$as_echo "no" >&6; }
7370fi
7371
7372
7373fi
7374if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7375  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7376  # Extract the first word of "mt", so it can be a program name with args.
7377set dummy mt; ac_word=$2
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379$as_echo_n "checking for $ac_word... " >&6; }
7380if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7381  $as_echo_n "(cached) " >&6
7382else
7383  if test -n "$ac_ct_MANIFEST_TOOL"; then
7384  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7385else
7386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387for as_dir in $PATH
7388do
7389  IFS=$as_save_IFS
7390  test -z "$as_dir" && as_dir=.
7391    for ac_exec_ext in '' $ac_executable_extensions; do
7392  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7393    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7394    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395    break 2
7396  fi
7397done
7398  done
7399IFS=$as_save_IFS
7400
7401fi
7402fi
7403ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7404if test -n "$ac_ct_MANIFEST_TOOL"; then
7405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7406$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7407else
7408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409$as_echo "no" >&6; }
7410fi
7411
7412  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7413    MANIFEST_TOOL=":"
7414  else
7415    case $cross_compiling:$ac_tool_warned in
7416yes:)
7417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7419ac_tool_warned=yes ;;
7420esac
7421    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7422  fi
7423else
7424  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7425fi
7426
7427test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7429$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7430if ${lt_cv_path_mainfest_tool+:} false; then :
7431  $as_echo_n "(cached) " >&6
7432else
7433  lt_cv_path_mainfest_tool=no
7434  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7435  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7436  cat conftest.err >&5
7437  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7438    lt_cv_path_mainfest_tool=yes
7439  fi
7440  rm -f conftest*
7441fi
7442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7443$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7444if test yes != "$lt_cv_path_mainfest_tool"; then
7445  MANIFEST_TOOL=:
7446fi
7447
7448
7449
7450
7451
7452
7453  case $host_os in
7454    rhapsody* | darwin*)
7455    if test -n "$ac_tool_prefix"; then
7456  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7457set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459$as_echo_n "checking for $ac_word... " >&6; }
7460if ${ac_cv_prog_DSYMUTIL+:} false; then :
7461  $as_echo_n "(cached) " >&6
7462else
7463  if test -n "$DSYMUTIL"; then
7464  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7465else
7466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469  IFS=$as_save_IFS
7470  test -z "$as_dir" && as_dir=.
7471    for ac_exec_ext in '' $ac_executable_extensions; do
7472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475    break 2
7476  fi
7477done
7478  done
7479IFS=$as_save_IFS
7480
7481fi
7482fi
7483DSYMUTIL=$ac_cv_prog_DSYMUTIL
7484if test -n "$DSYMUTIL"; then
7485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7486$as_echo "$DSYMUTIL" >&6; }
7487else
7488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489$as_echo "no" >&6; }
7490fi
7491
7492
7493fi
7494if test -z "$ac_cv_prog_DSYMUTIL"; then
7495  ac_ct_DSYMUTIL=$DSYMUTIL
7496  # Extract the first word of "dsymutil", so it can be a program name with args.
7497set dummy dsymutil; ac_word=$2
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499$as_echo_n "checking for $ac_word... " >&6; }
7500if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7501  $as_echo_n "(cached) " >&6
7502else
7503  if test -n "$ac_ct_DSYMUTIL"; then
7504  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7505else
7506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509  IFS=$as_save_IFS
7510  test -z "$as_dir" && as_dir=.
7511    for ac_exec_ext in '' $ac_executable_extensions; do
7512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7513    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515    break 2
7516  fi
7517done
7518  done
7519IFS=$as_save_IFS
7520
7521fi
7522fi
7523ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7524if test -n "$ac_ct_DSYMUTIL"; then
7525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7526$as_echo "$ac_ct_DSYMUTIL" >&6; }
7527else
7528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529$as_echo "no" >&6; }
7530fi
7531
7532  if test "x$ac_ct_DSYMUTIL" = x; then
7533    DSYMUTIL=":"
7534  else
7535    case $cross_compiling:$ac_tool_warned in
7536yes:)
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7539ac_tool_warned=yes ;;
7540esac
7541    DSYMUTIL=$ac_ct_DSYMUTIL
7542  fi
7543else
7544  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7545fi
7546
7547    if test -n "$ac_tool_prefix"; then
7548  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7549set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551$as_echo_n "checking for $ac_word... " >&6; }
7552if ${ac_cv_prog_NMEDIT+:} false; then :
7553  $as_echo_n "(cached) " >&6
7554else
7555  if test -n "$NMEDIT"; then
7556  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7557else
7558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559for as_dir in $PATH
7560do
7561  IFS=$as_save_IFS
7562  test -z "$as_dir" && as_dir=.
7563    for ac_exec_ext in '' $ac_executable_extensions; do
7564  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567    break 2
7568  fi
7569done
7570  done
7571IFS=$as_save_IFS
7572
7573fi
7574fi
7575NMEDIT=$ac_cv_prog_NMEDIT
7576if test -n "$NMEDIT"; then
7577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7578$as_echo "$NMEDIT" >&6; }
7579else
7580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581$as_echo "no" >&6; }
7582fi
7583
7584
7585fi
7586if test -z "$ac_cv_prog_NMEDIT"; then
7587  ac_ct_NMEDIT=$NMEDIT
7588  # Extract the first word of "nmedit", so it can be a program name with args.
7589set dummy nmedit; ac_word=$2
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591$as_echo_n "checking for $ac_word... " >&6; }
7592if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7593  $as_echo_n "(cached) " >&6
7594else
7595  if test -n "$ac_ct_NMEDIT"; then
7596  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7597else
7598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601  IFS=$as_save_IFS
7602  test -z "$as_dir" && as_dir=.
7603    for ac_exec_ext in '' $ac_executable_extensions; do
7604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7605    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607    break 2
7608  fi
7609done
7610  done
7611IFS=$as_save_IFS
7612
7613fi
7614fi
7615ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7616if test -n "$ac_ct_NMEDIT"; then
7617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7618$as_echo "$ac_ct_NMEDIT" >&6; }
7619else
7620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621$as_echo "no" >&6; }
7622fi
7623
7624  if test "x$ac_ct_NMEDIT" = x; then
7625    NMEDIT=":"
7626  else
7627    case $cross_compiling:$ac_tool_warned in
7628yes:)
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7631ac_tool_warned=yes ;;
7632esac
7633    NMEDIT=$ac_ct_NMEDIT
7634  fi
7635else
7636  NMEDIT="$ac_cv_prog_NMEDIT"
7637fi
7638
7639    if test -n "$ac_tool_prefix"; then
7640  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7641set dummy ${ac_tool_prefix}lipo; ac_word=$2
7642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643$as_echo_n "checking for $ac_word... " >&6; }
7644if ${ac_cv_prog_LIPO+:} false; then :
7645  $as_echo_n "(cached) " >&6
7646else
7647  if test -n "$LIPO"; then
7648  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7649else
7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653  IFS=$as_save_IFS
7654  test -z "$as_dir" && as_dir=.
7655    for ac_exec_ext in '' $ac_executable_extensions; do
7656  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7659    break 2
7660  fi
7661done
7662  done
7663IFS=$as_save_IFS
7664
7665fi
7666fi
7667LIPO=$ac_cv_prog_LIPO
7668if test -n "$LIPO"; then
7669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7670$as_echo "$LIPO" >&6; }
7671else
7672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673$as_echo "no" >&6; }
7674fi
7675
7676
7677fi
7678if test -z "$ac_cv_prog_LIPO"; then
7679  ac_ct_LIPO=$LIPO
7680  # Extract the first word of "lipo", so it can be a program name with args.
7681set dummy lipo; ac_word=$2
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683$as_echo_n "checking for $ac_word... " >&6; }
7684if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7685  $as_echo_n "(cached) " >&6
7686else
7687  if test -n "$ac_ct_LIPO"; then
7688  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7689else
7690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691for as_dir in $PATH
7692do
7693  IFS=$as_save_IFS
7694  test -z "$as_dir" && as_dir=.
7695    for ac_exec_ext in '' $ac_executable_extensions; do
7696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697    ac_cv_prog_ac_ct_LIPO="lipo"
7698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699    break 2
7700  fi
7701done
7702  done
7703IFS=$as_save_IFS
7704
7705fi
7706fi
7707ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7708if test -n "$ac_ct_LIPO"; then
7709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7710$as_echo "$ac_ct_LIPO" >&6; }
7711else
7712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713$as_echo "no" >&6; }
7714fi
7715
7716  if test "x$ac_ct_LIPO" = x; then
7717    LIPO=":"
7718  else
7719    case $cross_compiling:$ac_tool_warned in
7720yes:)
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7723ac_tool_warned=yes ;;
7724esac
7725    LIPO=$ac_ct_LIPO
7726  fi
7727else
7728  LIPO="$ac_cv_prog_LIPO"
7729fi
7730
7731    if test -n "$ac_tool_prefix"; then
7732  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7733set dummy ${ac_tool_prefix}otool; ac_word=$2
7734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735$as_echo_n "checking for $ac_word... " >&6; }
7736if ${ac_cv_prog_OTOOL+:} false; then :
7737  $as_echo_n "(cached) " >&6
7738else
7739  if test -n "$OTOOL"; then
7740  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7741else
7742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743for as_dir in $PATH
7744do
7745  IFS=$as_save_IFS
7746  test -z "$as_dir" && as_dir=.
7747    for ac_exec_ext in '' $ac_executable_extensions; do
7748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751    break 2
7752  fi
7753done
7754  done
7755IFS=$as_save_IFS
7756
7757fi
7758fi
7759OTOOL=$ac_cv_prog_OTOOL
7760if test -n "$OTOOL"; then
7761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7762$as_echo "$OTOOL" >&6; }
7763else
7764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765$as_echo "no" >&6; }
7766fi
7767
7768
7769fi
7770if test -z "$ac_cv_prog_OTOOL"; then
7771  ac_ct_OTOOL=$OTOOL
7772  # Extract the first word of "otool", so it can be a program name with args.
7773set dummy otool; ac_word=$2
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775$as_echo_n "checking for $ac_word... " >&6; }
7776if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7777  $as_echo_n "(cached) " >&6
7778else
7779  if test -n "$ac_ct_OTOOL"; then
7780  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7781else
7782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH
7784do
7785  IFS=$as_save_IFS
7786  test -z "$as_dir" && as_dir=.
7787    for ac_exec_ext in '' $ac_executable_extensions; do
7788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7789    ac_cv_prog_ac_ct_OTOOL="otool"
7790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791    break 2
7792  fi
7793done
7794  done
7795IFS=$as_save_IFS
7796
7797fi
7798fi
7799ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7800if test -n "$ac_ct_OTOOL"; then
7801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7802$as_echo "$ac_ct_OTOOL" >&6; }
7803else
7804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805$as_echo "no" >&6; }
7806fi
7807
7808  if test "x$ac_ct_OTOOL" = x; then
7809    OTOOL=":"
7810  else
7811    case $cross_compiling:$ac_tool_warned in
7812yes:)
7813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7815ac_tool_warned=yes ;;
7816esac
7817    OTOOL=$ac_ct_OTOOL
7818  fi
7819else
7820  OTOOL="$ac_cv_prog_OTOOL"
7821fi
7822
7823    if test -n "$ac_tool_prefix"; then
7824  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7825set dummy ${ac_tool_prefix}otool64; ac_word=$2
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827$as_echo_n "checking for $ac_word... " >&6; }
7828if ${ac_cv_prog_OTOOL64+:} false; then :
7829  $as_echo_n "(cached) " >&6
7830else
7831  if test -n "$OTOOL64"; then
7832  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7833else
7834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835for as_dir in $PATH
7836do
7837  IFS=$as_save_IFS
7838  test -z "$as_dir" && as_dir=.
7839    for ac_exec_ext in '' $ac_executable_extensions; do
7840  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7841    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843    break 2
7844  fi
7845done
7846  done
7847IFS=$as_save_IFS
7848
7849fi
7850fi
7851OTOOL64=$ac_cv_prog_OTOOL64
7852if test -n "$OTOOL64"; then
7853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7854$as_echo "$OTOOL64" >&6; }
7855else
7856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857$as_echo "no" >&6; }
7858fi
7859
7860
7861fi
7862if test -z "$ac_cv_prog_OTOOL64"; then
7863  ac_ct_OTOOL64=$OTOOL64
7864  # Extract the first word of "otool64", so it can be a program name with args.
7865set dummy otool64; ac_word=$2
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867$as_echo_n "checking for $ac_word... " >&6; }
7868if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7869  $as_echo_n "(cached) " >&6
7870else
7871  if test -n "$ac_ct_OTOOL64"; then
7872  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7873else
7874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875for as_dir in $PATH
7876do
7877  IFS=$as_save_IFS
7878  test -z "$as_dir" && as_dir=.
7879    for ac_exec_ext in '' $ac_executable_extensions; do
7880  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7881    ac_cv_prog_ac_ct_OTOOL64="otool64"
7882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7883    break 2
7884  fi
7885done
7886  done
7887IFS=$as_save_IFS
7888
7889fi
7890fi
7891ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7892if test -n "$ac_ct_OTOOL64"; then
7893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7894$as_echo "$ac_ct_OTOOL64" >&6; }
7895else
7896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897$as_echo "no" >&6; }
7898fi
7899
7900  if test "x$ac_ct_OTOOL64" = x; then
7901    OTOOL64=":"
7902  else
7903    case $cross_compiling:$ac_tool_warned in
7904yes:)
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7907ac_tool_warned=yes ;;
7908esac
7909    OTOOL64=$ac_ct_OTOOL64
7910  fi
7911else
7912  OTOOL64="$ac_cv_prog_OTOOL64"
7913fi
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7942$as_echo_n "checking for -single_module linker flag... " >&6; }
7943if ${lt_cv_apple_cc_single_mod+:} false; then :
7944  $as_echo_n "(cached) " >&6
7945else
7946  lt_cv_apple_cc_single_mod=no
7947      if test -z "$LT_MULTI_MODULE"; then
7948	# By default we will add the -single_module flag. You can override
7949	# by either setting the environment variable LT_MULTI_MODULE
7950	# non-empty at configure time, or by adding -multi_module to the
7951	# link flags.
7952	rm -rf libconftest.dylib*
7953	echo "int foo(void){return 1;}" > conftest.c
7954	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7955-dynamiclib -Wl,-single_module conftest.c" >&5
7956	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7957	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7958        _lt_result=$?
7959	# If there is a non-empty error log, and "single_module"
7960	# appears in it, assume the flag caused a linker warning
7961        if test -s conftest.err && $GREP single_module conftest.err; then
7962	  cat conftest.err >&5
7963	# Otherwise, if the output was created with a 0 exit code from
7964	# the compiler, it worked.
7965	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7966	  lt_cv_apple_cc_single_mod=yes
7967	else
7968	  cat conftest.err >&5
7969	fi
7970	rm -rf libconftest.dylib*
7971	rm -f conftest.*
7972      fi
7973fi
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7975$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7976
7977    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7978$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7979if ${lt_cv_ld_exported_symbols_list+:} false; then :
7980  $as_echo_n "(cached) " >&6
7981else
7982  lt_cv_ld_exported_symbols_list=no
7983      save_LDFLAGS=$LDFLAGS
7984      echo "_main" > conftest.sym
7985      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7986      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987/* end confdefs.h.  */
7988
7989int
7990main ()
7991{
7992
7993  ;
7994  return 0;
7995}
7996_ACEOF
7997if ac_fn_c_try_link "$LINENO"; then :
7998  lt_cv_ld_exported_symbols_list=yes
7999else
8000  lt_cv_ld_exported_symbols_list=no
8001fi
8002rm -f core conftest.err conftest.$ac_objext \
8003    conftest$ac_exeext conftest.$ac_ext
8004	LDFLAGS=$save_LDFLAGS
8005
8006fi
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8008$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8009
8010    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8011$as_echo_n "checking for -force_load linker flag... " >&6; }
8012if ${lt_cv_ld_force_load+:} false; then :
8013  $as_echo_n "(cached) " >&6
8014else
8015  lt_cv_ld_force_load=no
8016      cat > conftest.c << _LT_EOF
8017int forced_loaded() { return 2;}
8018_LT_EOF
8019      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8020      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8021      echo "$AR cru libconftest.a conftest.o" >&5
8022      $AR cru libconftest.a conftest.o 2>&5
8023      echo "$RANLIB libconftest.a" >&5
8024      $RANLIB libconftest.a 2>&5
8025      cat > conftest.c << _LT_EOF
8026int main() { return 0;}
8027_LT_EOF
8028      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8029      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8030      _lt_result=$?
8031      if test -s conftest.err && $GREP force_load conftest.err; then
8032	cat conftest.err >&5
8033      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8034	lt_cv_ld_force_load=yes
8035      else
8036	cat conftest.err >&5
8037      fi
8038        rm -f conftest.err libconftest.a conftest conftest.c
8039        rm -rf conftest.dSYM
8040
8041fi
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8043$as_echo "$lt_cv_ld_force_load" >&6; }
8044    case $host_os in
8045    rhapsody* | darwin1.[012])
8046      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8047    darwin1.*)
8048      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8049    darwin*) # darwin 5.x on
8050      # if running on 10.5 or later, the deployment target defaults
8051      # to the OS version, if on x86, and 10.4, the deployment
8052      # target defaults to 10.4. Don't you love it?
8053      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8054	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8055	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8056	10.[012][,.]*)
8057	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8058	10.*)
8059	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8060      esac
8061    ;;
8062  esac
8063    if test yes = "$lt_cv_apple_cc_single_mod"; then
8064      _lt_dar_single_mod='$single_module'
8065    fi
8066    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8067      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8068    else
8069      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8070    fi
8071    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8072      _lt_dsymutil='~$DSYMUTIL $lib || :'
8073    else
8074      _lt_dsymutil=
8075    fi
8076    ;;
8077  esac
8078
8079# func_munge_path_list VARIABLE PATH
8080# -----------------------------------
8081# VARIABLE is name of variable containing _space_ separated list of
8082# directories to be munged by the contents of PATH, which is string
8083# having a format:
8084# "DIR[:DIR]:"
8085#       string "DIR[ DIR]" will be prepended to VARIABLE
8086# ":DIR[:DIR]"
8087#       string "DIR[ DIR]" will be appended to VARIABLE
8088# "DIRP[:DIRP]::[DIRA:]DIRA"
8089#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8090#       "DIRA[ DIRA]" will be appended to VARIABLE
8091# "DIR[:DIR]"
8092#       VARIABLE will be replaced by "DIR[ DIR]"
8093func_munge_path_list ()
8094{
8095    case x$2 in
8096    x)
8097        ;;
8098    *:)
8099        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8100        ;;
8101    x:*)
8102        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8103        ;;
8104    *::*)
8105        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8106        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8107        ;;
8108    *)
8109        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8110        ;;
8111    esac
8112}
8113
8114for ac_header in dlfcn.h
8115do :
8116  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8117"
8118if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8119  cat >>confdefs.h <<_ACEOF
8120#define HAVE_DLFCN_H 1
8121_ACEOF
8122
8123fi
8124
8125done
8126
8127
8128
8129
8130
8131# Set options
8132
8133
8134
8135        enable_dlopen=no
8136
8137
8138  enable_win32_dll=no
8139
8140
8141            # Check whether --enable-shared was given.
8142if test "${enable_shared+set}" = set; then :
8143  enableval=$enable_shared; p=${PACKAGE-default}
8144    case $enableval in
8145    yes) enable_shared=yes ;;
8146    no) enable_shared=no ;;
8147    *)
8148      enable_shared=no
8149      # Look at the argument we got.  We use all the common list separators.
8150      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8151      for pkg in $enableval; do
8152	IFS=$lt_save_ifs
8153	if test "X$pkg" = "X$p"; then
8154	  enable_shared=yes
8155	fi
8156      done
8157      IFS=$lt_save_ifs
8158      ;;
8159    esac
8160else
8161  enable_shared=yes
8162fi
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172  # Check whether --enable-static was given.
8173if test "${enable_static+set}" = set; then :
8174  enableval=$enable_static; p=${PACKAGE-default}
8175    case $enableval in
8176    yes) enable_static=yes ;;
8177    no) enable_static=no ;;
8178    *)
8179     enable_static=no
8180      # Look at the argument we got.  We use all the common list separators.
8181      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8182      for pkg in $enableval; do
8183	IFS=$lt_save_ifs
8184	if test "X$pkg" = "X$p"; then
8185	  enable_static=yes
8186	fi
8187      done
8188      IFS=$lt_save_ifs
8189      ;;
8190    esac
8191else
8192  enable_static=yes
8193fi
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204# Check whether --with-pic was given.
8205if test "${with_pic+set}" = set; then :
8206  withval=$with_pic; lt_p=${PACKAGE-default}
8207    case $withval in
8208    yes|no) pic_mode=$withval ;;
8209    *)
8210      pic_mode=default
8211      # Look at the argument we got.  We use all the common list separators.
8212      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8213      for lt_pkg in $withval; do
8214	IFS=$lt_save_ifs
8215	if test "X$lt_pkg" = "X$lt_p"; then
8216	  pic_mode=yes
8217	fi
8218      done
8219      IFS=$lt_save_ifs
8220      ;;
8221    esac
8222else
8223  pic_mode=default
8224fi
8225
8226
8227
8228
8229
8230
8231
8232
8233  # Check whether --enable-fast-install was given.
8234if test "${enable_fast_install+set}" = set; then :
8235  enableval=$enable_fast_install; p=${PACKAGE-default}
8236    case $enableval in
8237    yes) enable_fast_install=yes ;;
8238    no) enable_fast_install=no ;;
8239    *)
8240      enable_fast_install=no
8241      # Look at the argument we got.  We use all the common list separators.
8242      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8243      for pkg in $enableval; do
8244	IFS=$lt_save_ifs
8245	if test "X$pkg" = "X$p"; then
8246	  enable_fast_install=yes
8247	fi
8248      done
8249      IFS=$lt_save_ifs
8250      ;;
8251    esac
8252else
8253  enable_fast_install=yes
8254fi
8255
8256
8257
8258
8259
8260
8261
8262
8263  shared_archive_member_spec=
8264case $host,$enable_shared in
8265power*-*-aix[5-9]*,yes)
8266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8267$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8268
8269# Check whether --with-aix-soname was given.
8270if test "${with_aix_soname+set}" = set; then :
8271  withval=$with_aix_soname; case $withval in
8272    aix|svr4|both)
8273      ;;
8274    *)
8275      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8276      ;;
8277    esac
8278    lt_cv_with_aix_soname=$with_aix_soname
8279else
8280  if ${lt_cv_with_aix_soname+:} false; then :
8281  $as_echo_n "(cached) " >&6
8282else
8283  lt_cv_with_aix_soname=aix
8284fi
8285
8286    with_aix_soname=$lt_cv_with_aix_soname
8287fi
8288
8289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8290$as_echo "$with_aix_soname" >&6; }
8291  if test aix != "$with_aix_soname"; then
8292    # For the AIX way of multilib, we name the shared archive member
8293    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8294    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8295    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8296    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8297    if test 64 = "${OBJECT_MODE-32}"; then
8298      shared_archive_member_spec=shr_64
8299    else
8300      shared_archive_member_spec=shr
8301    fi
8302  fi
8303  ;;
8304*)
8305  with_aix_soname=aix
8306  ;;
8307esac
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318# This can be used to rebuild libtool when needed
8319LIBTOOL_DEPS=$ltmain
8320
8321# Always use our own libtool.
8322LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353test -z "$LN_S" && LN_S="ln -s"
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368if test -n "${ZSH_VERSION+set}"; then
8369   setopt NO_GLOB_SUBST
8370fi
8371
8372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8373$as_echo_n "checking for objdir... " >&6; }
8374if ${lt_cv_objdir+:} false; then :
8375  $as_echo_n "(cached) " >&6
8376else
8377  rm -f .libs 2>/dev/null
8378mkdir .libs 2>/dev/null
8379if test -d .libs; then
8380  lt_cv_objdir=.libs
8381else
8382  # MS-DOS does not allow filenames that begin with a dot.
8383  lt_cv_objdir=_libs
8384fi
8385rmdir .libs 2>/dev/null
8386fi
8387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8388$as_echo "$lt_cv_objdir" >&6; }
8389objdir=$lt_cv_objdir
8390
8391
8392
8393
8394
8395cat >>confdefs.h <<_ACEOF
8396#define LT_OBJDIR "$lt_cv_objdir/"
8397_ACEOF
8398
8399
8400
8401
8402case $host_os in
8403aix3*)
8404  # AIX sometimes has problems with the GCC collect2 program.  For some
8405  # reason, if we set the COLLECT_NAMES environment variable, the problems
8406  # vanish in a puff of smoke.
8407  if test set != "${COLLECT_NAMES+set}"; then
8408    COLLECT_NAMES=
8409    export COLLECT_NAMES
8410  fi
8411  ;;
8412esac
8413
8414# Global variables:
8415ofile=libtool
8416can_build_shared=yes
8417
8418# All known linkers require a '.a' archive for static linking (except MSVC,
8419# which needs '.lib').
8420libext=a
8421
8422with_gnu_ld=$lt_cv_prog_gnu_ld
8423
8424old_CC=$CC
8425old_CFLAGS=$CFLAGS
8426
8427# Set sane defaults for various variables
8428test -z "$CC" && CC=cc
8429test -z "$LTCC" && LTCC=$CC
8430test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8431test -z "$LD" && LD=ld
8432test -z "$ac_objext" && ac_objext=o
8433
8434func_cc_basename $compiler
8435cc_basename=$func_cc_basename_result
8436
8437
8438# Only perform the check for file, if the check method requires it
8439test -z "$MAGIC_CMD" && MAGIC_CMD=file
8440case $deplibs_check_method in
8441file_magic*)
8442  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8443    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8444$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8445if ${lt_cv_path_MAGIC_CMD+:} false; then :
8446  $as_echo_n "(cached) " >&6
8447else
8448  case $MAGIC_CMD in
8449[\\/*] |  ?:[\\/]*)
8450  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8451  ;;
8452*)
8453  lt_save_MAGIC_CMD=$MAGIC_CMD
8454  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8455  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8456  for ac_dir in $ac_dummy; do
8457    IFS=$lt_save_ifs
8458    test -z "$ac_dir" && ac_dir=.
8459    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8460      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8461      if test -n "$file_magic_test_file"; then
8462	case $deplibs_check_method in
8463	"file_magic "*)
8464	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8465	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8466	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8467	    $EGREP "$file_magic_regex" > /dev/null; then
8468	    :
8469	  else
8470	    cat <<_LT_EOF 1>&2
8471
8472*** Warning: the command libtool uses to detect shared libraries,
8473*** $file_magic_cmd, produces output that libtool cannot recognize.
8474*** The result is that libtool may fail to recognize shared libraries
8475*** as such.  This will affect the creation of libtool libraries that
8476*** depend on shared libraries, but programs linked with such libtool
8477*** libraries will work regardless of this problem.  Nevertheless, you
8478*** may want to report the problem to your system manager and/or to
8479*** bug-libtool@gnu.org
8480
8481_LT_EOF
8482	  fi ;;
8483	esac
8484      fi
8485      break
8486    fi
8487  done
8488  IFS=$lt_save_ifs
8489  MAGIC_CMD=$lt_save_MAGIC_CMD
8490  ;;
8491esac
8492fi
8493
8494MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8495if test -n "$MAGIC_CMD"; then
8496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8497$as_echo "$MAGIC_CMD" >&6; }
8498else
8499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500$as_echo "no" >&6; }
8501fi
8502
8503
8504
8505
8506
8507if test -z "$lt_cv_path_MAGIC_CMD"; then
8508  if test -n "$ac_tool_prefix"; then
8509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8510$as_echo_n "checking for file... " >&6; }
8511if ${lt_cv_path_MAGIC_CMD+:} false; then :
8512  $as_echo_n "(cached) " >&6
8513else
8514  case $MAGIC_CMD in
8515[\\/*] |  ?:[\\/]*)
8516  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8517  ;;
8518*)
8519  lt_save_MAGIC_CMD=$MAGIC_CMD
8520  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8521  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8522  for ac_dir in $ac_dummy; do
8523    IFS=$lt_save_ifs
8524    test -z "$ac_dir" && ac_dir=.
8525    if test -f "$ac_dir/file"; then
8526      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8527      if test -n "$file_magic_test_file"; then
8528	case $deplibs_check_method in
8529	"file_magic "*)
8530	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8531	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8532	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8533	    $EGREP "$file_magic_regex" > /dev/null; then
8534	    :
8535	  else
8536	    cat <<_LT_EOF 1>&2
8537
8538*** Warning: the command libtool uses to detect shared libraries,
8539*** $file_magic_cmd, produces output that libtool cannot recognize.
8540*** The result is that libtool may fail to recognize shared libraries
8541*** as such.  This will affect the creation of libtool libraries that
8542*** depend on shared libraries, but programs linked with such libtool
8543*** libraries will work regardless of this problem.  Nevertheless, you
8544*** may want to report the problem to your system manager and/or to
8545*** bug-libtool@gnu.org
8546
8547_LT_EOF
8548	  fi ;;
8549	esac
8550      fi
8551      break
8552    fi
8553  done
8554  IFS=$lt_save_ifs
8555  MAGIC_CMD=$lt_save_MAGIC_CMD
8556  ;;
8557esac
8558fi
8559
8560MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8561if test -n "$MAGIC_CMD"; then
8562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8563$as_echo "$MAGIC_CMD" >&6; }
8564else
8565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566$as_echo "no" >&6; }
8567fi
8568
8569
8570  else
8571    MAGIC_CMD=:
8572  fi
8573fi
8574
8575  fi
8576  ;;
8577esac
8578
8579# Use C for the default configuration in the libtool script
8580
8581lt_save_CC=$CC
8582ac_ext=c
8583ac_cpp='$CPP $CPPFLAGS'
8584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8586ac_compiler_gnu=$ac_cv_c_compiler_gnu
8587
8588
8589# Source file extension for C test sources.
8590ac_ext=c
8591
8592# Object file extension for compiled C test sources.
8593objext=o
8594objext=$objext
8595
8596# Code to be used in simple compile tests
8597lt_simple_compile_test_code="int some_variable = 0;"
8598
8599# Code to be used in simple link tests
8600lt_simple_link_test_code='int main(){return(0);}'
8601
8602
8603
8604
8605
8606
8607
8608# If no C compiler was specified, use CC.
8609LTCC=${LTCC-"$CC"}
8610
8611# If no C compiler flags were specified, use CFLAGS.
8612LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8613
8614# Allow CC to be a program name with arguments.
8615compiler=$CC
8616
8617# Save the default compiler, since it gets overwritten when the other
8618# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8619compiler_DEFAULT=$CC
8620
8621# save warnings/boilerplate of simple test code
8622ac_outfile=conftest.$ac_objext
8623echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8624eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8625_lt_compiler_boilerplate=`cat conftest.err`
8626$RM conftest*
8627
8628ac_outfile=conftest.$ac_objext
8629echo "$lt_simple_link_test_code" >conftest.$ac_ext
8630eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8631_lt_linker_boilerplate=`cat conftest.err`
8632$RM -r conftest*
8633
8634
8635## CAVEAT EMPTOR:
8636## There is no encapsulation within the following macros, do not change
8637## the running order or otherwise move them around unless you know exactly
8638## what you are doing...
8639if test -n "$compiler"; then
8640
8641lt_prog_compiler_no_builtin_flag=
8642
8643if test yes = "$GCC"; then
8644  case $cc_basename in
8645  nvcc*)
8646    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8647  *)
8648    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8649  esac
8650
8651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8652$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8653if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8654  $as_echo_n "(cached) " >&6
8655else
8656  lt_cv_prog_compiler_rtti_exceptions=no
8657   ac_outfile=conftest.$ac_objext
8658   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8659   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8660   # Insert the option either (1) after the last *FLAGS variable, or
8661   # (2) before a word containing "conftest.", or (3) at the end.
8662   # Note that $ac_compile itself does not contain backslashes and begins
8663   # with a dollar sign (not a hyphen), so the echo should work correctly.
8664   # The option is referenced via a variable to avoid confusing sed.
8665   lt_compile=`echo "$ac_compile" | $SED \
8666   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8667   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8668   -e 's:$: $lt_compiler_flag:'`
8669   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8670   (eval "$lt_compile" 2>conftest.err)
8671   ac_status=$?
8672   cat conftest.err >&5
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   if (exit $ac_status) && test -s "$ac_outfile"; then
8675     # The compiler can only warn and ignore the option if not recognized
8676     # So say no if there are warnings other than the usual output.
8677     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8678     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8679     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8680       lt_cv_prog_compiler_rtti_exceptions=yes
8681     fi
8682   fi
8683   $RM conftest*
8684
8685fi
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8687$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8688
8689if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8690    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8691else
8692    :
8693fi
8694
8695fi
8696
8697
8698
8699
8700
8701
8702  lt_prog_compiler_wl=
8703lt_prog_compiler_pic=
8704lt_prog_compiler_static=
8705
8706
8707  if test yes = "$GCC"; then
8708    lt_prog_compiler_wl='-Wl,'
8709    lt_prog_compiler_static='-static'
8710
8711    case $host_os in
8712      aix*)
8713      # All AIX code is PIC.
8714      if test ia64 = "$host_cpu"; then
8715	# AIX 5 now supports IA64 processor
8716	lt_prog_compiler_static='-Bstatic'
8717      fi
8718      lt_prog_compiler_pic='-fPIC'
8719      ;;
8720
8721    amigaos*)
8722      case $host_cpu in
8723      powerpc)
8724            # see comment about AmigaOS4 .so support
8725            lt_prog_compiler_pic='-fPIC'
8726        ;;
8727      m68k)
8728            # FIXME: we need at least 68020 code to build shared libraries, but
8729            # adding the '-m68020' flag to GCC prevents building anything better,
8730            # like '-m68040'.
8731            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8732        ;;
8733      esac
8734      ;;
8735
8736    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8737      # PIC is the default for these OSes.
8738      ;;
8739
8740    mingw* | cygwin* | pw32* | os2* | cegcc*)
8741      # This hack is so that the source file can tell whether it is being
8742      # built for inclusion in a dll (and should export symbols for example).
8743      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8744      # (--disable-auto-import) libraries
8745      lt_prog_compiler_pic='-DDLL_EXPORT'
8746      case $host_os in
8747      os2*)
8748	lt_prog_compiler_static='$wl-static'
8749	;;
8750      esac
8751      ;;
8752
8753    darwin* | rhapsody*)
8754      # PIC is the default on this platform
8755      # Common symbols not allowed in MH_DYLIB files
8756      lt_prog_compiler_pic='-fno-common'
8757      ;;
8758
8759    haiku*)
8760      # PIC is the default for Haiku.
8761      # The "-static" flag exists, but is broken.
8762      lt_prog_compiler_static=
8763      ;;
8764
8765    hpux*)
8766      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8767      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8768      # sets the default TLS model and affects inlining.
8769      case $host_cpu in
8770      hppa*64*)
8771	# +Z the default
8772	;;
8773      *)
8774	lt_prog_compiler_pic='-fPIC'
8775	;;
8776      esac
8777      ;;
8778
8779    interix[3-9]*)
8780      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8781      # Instead, we relocate shared libraries at runtime.
8782      ;;
8783
8784    msdosdjgpp*)
8785      # Just because we use GCC doesn't mean we suddenly get shared libraries
8786      # on systems that don't support them.
8787      lt_prog_compiler_can_build_shared=no
8788      enable_shared=no
8789      ;;
8790
8791    *nto* | *qnx*)
8792      # QNX uses GNU C++, but need to define -shared option too, otherwise
8793      # it will coredump.
8794      lt_prog_compiler_pic='-fPIC -shared'
8795      ;;
8796
8797    sysv4*MP*)
8798      if test -d /usr/nec; then
8799	lt_prog_compiler_pic=-Kconform_pic
8800      fi
8801      ;;
8802
8803    *)
8804      lt_prog_compiler_pic='-fPIC'
8805      ;;
8806    esac
8807
8808    case $cc_basename in
8809    nvcc*) # Cuda Compiler Driver 2.2
8810      lt_prog_compiler_wl='-Xlinker '
8811      if test -n "$lt_prog_compiler_pic"; then
8812        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8813      fi
8814      ;;
8815    esac
8816  else
8817    # PORTME Check for flag to pass linker flags through the system compiler.
8818    case $host_os in
8819    aix*)
8820      lt_prog_compiler_wl='-Wl,'
8821      if test ia64 = "$host_cpu"; then
8822	# AIX 5 now supports IA64 processor
8823	lt_prog_compiler_static='-Bstatic'
8824      else
8825	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8826      fi
8827      ;;
8828
8829    darwin* | rhapsody*)
8830      # PIC is the default on this platform
8831      # Common symbols not allowed in MH_DYLIB files
8832      lt_prog_compiler_pic='-fno-common'
8833      case $cc_basename in
8834      nagfor*)
8835        # NAG Fortran compiler
8836        lt_prog_compiler_wl='-Wl,-Wl,,'
8837        lt_prog_compiler_pic='-PIC'
8838        lt_prog_compiler_static='-Bstatic'
8839        ;;
8840      esac
8841      ;;
8842
8843    mingw* | cygwin* | pw32* | os2* | cegcc*)
8844      # This hack is so that the source file can tell whether it is being
8845      # built for inclusion in a dll (and should export symbols for example).
8846      lt_prog_compiler_pic='-DDLL_EXPORT'
8847      case $host_os in
8848      os2*)
8849	lt_prog_compiler_static='$wl-static'
8850	;;
8851      esac
8852      ;;
8853
8854    hpux9* | hpux10* | hpux11*)
8855      lt_prog_compiler_wl='-Wl,'
8856      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8857      # not for PA HP-UX.
8858      case $host_cpu in
8859      hppa*64*|ia64*)
8860	# +Z the default
8861	;;
8862      *)
8863	lt_prog_compiler_pic='+Z'
8864	;;
8865      esac
8866      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8867      lt_prog_compiler_static='$wl-a ${wl}archive'
8868      ;;
8869
8870    irix5* | irix6* | nonstopux*)
8871      lt_prog_compiler_wl='-Wl,'
8872      # PIC (with -KPIC) is the default.
8873      lt_prog_compiler_static='-non_shared'
8874      ;;
8875
8876    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8877      case $cc_basename in
8878      # old Intel for x86_64, which still supported -KPIC.
8879      ecc*)
8880	lt_prog_compiler_wl='-Wl,'
8881	lt_prog_compiler_pic='-KPIC'
8882	lt_prog_compiler_static='-static'
8883        ;;
8884      # icc used to be incompatible with GCC.
8885      # ICC 10 doesn't accept -KPIC any more.
8886      icc* | ifort*)
8887	lt_prog_compiler_wl='-Wl,'
8888	lt_prog_compiler_pic='-fPIC'
8889	lt_prog_compiler_static='-static'
8890        ;;
8891      # Lahey Fortran 8.1.
8892      lf95*)
8893	lt_prog_compiler_wl='-Wl,'
8894	lt_prog_compiler_pic='--shared'
8895	lt_prog_compiler_static='--static'
8896	;;
8897      nagfor*)
8898	# NAG Fortran compiler
8899	lt_prog_compiler_wl='-Wl,-Wl,,'
8900	lt_prog_compiler_pic='-PIC'
8901	lt_prog_compiler_static='-Bstatic'
8902	;;
8903      tcc*)
8904	# Fabrice Bellard et al's Tiny C Compiler
8905	lt_prog_compiler_wl='-Wl,'
8906	lt_prog_compiler_pic='-fPIC'
8907	lt_prog_compiler_static='-static'
8908	;;
8909      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8910        # Portland Group compilers (*not* the Pentium gcc compiler,
8911	# which looks to be a dead project)
8912	lt_prog_compiler_wl='-Wl,'
8913	lt_prog_compiler_pic='-fpic'
8914	lt_prog_compiler_static='-Bstatic'
8915        ;;
8916      ccc*)
8917        lt_prog_compiler_wl='-Wl,'
8918        # All Alpha code is PIC.
8919        lt_prog_compiler_static='-non_shared'
8920        ;;
8921      xl* | bgxl* | bgf* | mpixl*)
8922	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8923	lt_prog_compiler_wl='-Wl,'
8924	lt_prog_compiler_pic='-qpic'
8925	lt_prog_compiler_static='-qstaticlink'
8926	;;
8927      *)
8928	case `$CC -V 2>&1 | sed 5q` in
8929	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8930	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8931	  lt_prog_compiler_pic='-KPIC'
8932	  lt_prog_compiler_static='-Bstatic'
8933	  lt_prog_compiler_wl=''
8934	  ;;
8935	*Sun\ F* | *Sun*Fortran*)
8936	  lt_prog_compiler_pic='-KPIC'
8937	  lt_prog_compiler_static='-Bstatic'
8938	  lt_prog_compiler_wl='-Qoption ld '
8939	  ;;
8940	*Sun\ C*)
8941	  # Sun C 5.9
8942	  lt_prog_compiler_pic='-KPIC'
8943	  lt_prog_compiler_static='-Bstatic'
8944	  lt_prog_compiler_wl='-Wl,'
8945	  ;;
8946        *Intel*\ [CF]*Compiler*)
8947	  lt_prog_compiler_wl='-Wl,'
8948	  lt_prog_compiler_pic='-fPIC'
8949	  lt_prog_compiler_static='-static'
8950	  ;;
8951	*Portland\ Group*)
8952	  lt_prog_compiler_wl='-Wl,'
8953	  lt_prog_compiler_pic='-fpic'
8954	  lt_prog_compiler_static='-Bstatic'
8955	  ;;
8956	esac
8957	;;
8958      esac
8959      ;;
8960
8961    newsos6)
8962      lt_prog_compiler_pic='-KPIC'
8963      lt_prog_compiler_static='-Bstatic'
8964      ;;
8965
8966    *nto* | *qnx*)
8967      # QNX uses GNU C++, but need to define -shared option too, otherwise
8968      # it will coredump.
8969      lt_prog_compiler_pic='-fPIC -shared'
8970      ;;
8971
8972    osf3* | osf4* | osf5*)
8973      lt_prog_compiler_wl='-Wl,'
8974      # All OSF/1 code is PIC.
8975      lt_prog_compiler_static='-non_shared'
8976      ;;
8977
8978    rdos*)
8979      lt_prog_compiler_static='-non_shared'
8980      ;;
8981
8982    solaris*)
8983      lt_prog_compiler_pic='-KPIC'
8984      lt_prog_compiler_static='-Bstatic'
8985      case $cc_basename in
8986      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8987	lt_prog_compiler_wl='-Qoption ld ';;
8988      *)
8989	lt_prog_compiler_wl='-Wl,';;
8990      esac
8991      ;;
8992
8993    sunos4*)
8994      lt_prog_compiler_wl='-Qoption ld '
8995      lt_prog_compiler_pic='-PIC'
8996      lt_prog_compiler_static='-Bstatic'
8997      ;;
8998
8999    sysv4 | sysv4.2uw2* | sysv4.3*)
9000      lt_prog_compiler_wl='-Wl,'
9001      lt_prog_compiler_pic='-KPIC'
9002      lt_prog_compiler_static='-Bstatic'
9003      ;;
9004
9005    sysv4*MP*)
9006      if test -d /usr/nec; then
9007	lt_prog_compiler_pic='-Kconform_pic'
9008	lt_prog_compiler_static='-Bstatic'
9009      fi
9010      ;;
9011
9012    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9013      lt_prog_compiler_wl='-Wl,'
9014      lt_prog_compiler_pic='-KPIC'
9015      lt_prog_compiler_static='-Bstatic'
9016      ;;
9017
9018    unicos*)
9019      lt_prog_compiler_wl='-Wl,'
9020      lt_prog_compiler_can_build_shared=no
9021      ;;
9022
9023    uts4*)
9024      lt_prog_compiler_pic='-pic'
9025      lt_prog_compiler_static='-Bstatic'
9026      ;;
9027
9028    *)
9029      lt_prog_compiler_can_build_shared=no
9030      ;;
9031    esac
9032  fi
9033
9034case $host_os in
9035  # For platforms that do not support PIC, -DPIC is meaningless:
9036  *djgpp*)
9037    lt_prog_compiler_pic=
9038    ;;
9039  *)
9040    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9041    ;;
9042esac
9043
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9045$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9046if ${lt_cv_prog_compiler_pic+:} false; then :
9047  $as_echo_n "(cached) " >&6
9048else
9049  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9050fi
9051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9052$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9053lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9054
9055#
9056# Check to make sure the PIC flag actually works.
9057#
9058if test -n "$lt_prog_compiler_pic"; then
9059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9060$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9061if ${lt_cv_prog_compiler_pic_works+:} false; then :
9062  $as_echo_n "(cached) " >&6
9063else
9064  lt_cv_prog_compiler_pic_works=no
9065   ac_outfile=conftest.$ac_objext
9066   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9067   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9068   # Insert the option either (1) after the last *FLAGS variable, or
9069   # (2) before a word containing "conftest.", or (3) at the end.
9070   # Note that $ac_compile itself does not contain backslashes and begins
9071   # with a dollar sign (not a hyphen), so the echo should work correctly.
9072   # The option is referenced via a variable to avoid confusing sed.
9073   lt_compile=`echo "$ac_compile" | $SED \
9074   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9075   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9076   -e 's:$: $lt_compiler_flag:'`
9077   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9078   (eval "$lt_compile" 2>conftest.err)
9079   ac_status=$?
9080   cat conftest.err >&5
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   if (exit $ac_status) && test -s "$ac_outfile"; then
9083     # The compiler can only warn and ignore the option if not recognized
9084     # So say no if there are warnings other than the usual output.
9085     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9086     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9087     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9088       lt_cv_prog_compiler_pic_works=yes
9089     fi
9090   fi
9091   $RM conftest*
9092
9093fi
9094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9095$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9096
9097if test yes = "$lt_cv_prog_compiler_pic_works"; then
9098    case $lt_prog_compiler_pic in
9099     "" | " "*) ;;
9100     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9101     esac
9102else
9103    lt_prog_compiler_pic=
9104     lt_prog_compiler_can_build_shared=no
9105fi
9106
9107fi
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119#
9120# Check to make sure the static flag actually works.
9121#
9122wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9124$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9125if ${lt_cv_prog_compiler_static_works+:} false; then :
9126  $as_echo_n "(cached) " >&6
9127else
9128  lt_cv_prog_compiler_static_works=no
9129   save_LDFLAGS=$LDFLAGS
9130   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9131   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9132   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9133     # The linker can only warn and ignore the option if not recognized
9134     # So say no if there are warnings
9135     if test -s conftest.err; then
9136       # Append any errors to the config.log.
9137       cat conftest.err 1>&5
9138       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9139       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9140       if diff conftest.exp conftest.er2 >/dev/null; then
9141         lt_cv_prog_compiler_static_works=yes
9142       fi
9143     else
9144       lt_cv_prog_compiler_static_works=yes
9145     fi
9146   fi
9147   $RM -r conftest*
9148   LDFLAGS=$save_LDFLAGS
9149
9150fi
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9152$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9153
9154if test yes = "$lt_cv_prog_compiler_static_works"; then
9155    :
9156else
9157    lt_prog_compiler_static=
9158fi
9159
9160
9161
9162
9163
9164
9165
9166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9167$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9168if ${lt_cv_prog_compiler_c_o+:} false; then :
9169  $as_echo_n "(cached) " >&6
9170else
9171  lt_cv_prog_compiler_c_o=no
9172   $RM -r conftest 2>/dev/null
9173   mkdir conftest
9174   cd conftest
9175   mkdir out
9176   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9177
9178   lt_compiler_flag="-o out/conftest2.$ac_objext"
9179   # Insert the option either (1) after the last *FLAGS variable, or
9180   # (2) before a word containing "conftest.", or (3) at the end.
9181   # Note that $ac_compile itself does not contain backslashes and begins
9182   # with a dollar sign (not a hyphen), so the echo should work correctly.
9183   lt_compile=`echo "$ac_compile" | $SED \
9184   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9185   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9186   -e 's:$: $lt_compiler_flag:'`
9187   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9188   (eval "$lt_compile" 2>out/conftest.err)
9189   ac_status=$?
9190   cat out/conftest.err >&5
9191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9193   then
9194     # The compiler can only warn and ignore the option if not recognized
9195     # So say no if there are warnings
9196     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9197     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9198     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9199       lt_cv_prog_compiler_c_o=yes
9200     fi
9201   fi
9202   chmod u+w . 2>&5
9203   $RM conftest*
9204   # SGI C++ compiler will create directory out/ii_files/ for
9205   # template instantiation
9206   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9207   $RM out/* && rmdir out
9208   cd ..
9209   $RM -r conftest
9210   $RM conftest*
9211
9212fi
9213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9214$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9215
9216
9217
9218
9219
9220
9221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9222$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9223if ${lt_cv_prog_compiler_c_o+:} false; then :
9224  $as_echo_n "(cached) " >&6
9225else
9226  lt_cv_prog_compiler_c_o=no
9227   $RM -r conftest 2>/dev/null
9228   mkdir conftest
9229   cd conftest
9230   mkdir out
9231   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9232
9233   lt_compiler_flag="-o out/conftest2.$ac_objext"
9234   # Insert the option either (1) after the last *FLAGS variable, or
9235   # (2) before a word containing "conftest.", or (3) at the end.
9236   # Note that $ac_compile itself does not contain backslashes and begins
9237   # with a dollar sign (not a hyphen), so the echo should work correctly.
9238   lt_compile=`echo "$ac_compile" | $SED \
9239   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9240   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9241   -e 's:$: $lt_compiler_flag:'`
9242   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9243   (eval "$lt_compile" 2>out/conftest.err)
9244   ac_status=$?
9245   cat out/conftest.err >&5
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9248   then
9249     # The compiler can only warn and ignore the option if not recognized
9250     # So say no if there are warnings
9251     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9252     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9253     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9254       lt_cv_prog_compiler_c_o=yes
9255     fi
9256   fi
9257   chmod u+w . 2>&5
9258   $RM conftest*
9259   # SGI C++ compiler will create directory out/ii_files/ for
9260   # template instantiation
9261   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9262   $RM out/* && rmdir out
9263   cd ..
9264   $RM -r conftest
9265   $RM conftest*
9266
9267fi
9268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9269$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9270
9271
9272
9273
9274hard_links=nottested
9275if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9276  # do not overwrite the value of need_locks provided by the user
9277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9278$as_echo_n "checking if we can lock with hard links... " >&6; }
9279  hard_links=yes
9280  $RM conftest*
9281  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9282  touch conftest.a
9283  ln conftest.a conftest.b 2>&5 || hard_links=no
9284  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9286$as_echo "$hard_links" >&6; }
9287  if test no = "$hard_links"; then
9288    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9289$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9290    need_locks=warn
9291  fi
9292else
9293  need_locks=no
9294fi
9295
9296
9297
9298
9299
9300
9301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9302$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9303
9304  runpath_var=
9305  allow_undefined_flag=
9306  always_export_symbols=no
9307  archive_cmds=
9308  archive_expsym_cmds=
9309  compiler_needs_object=no
9310  enable_shared_with_static_runtimes=no
9311  export_dynamic_flag_spec=
9312  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9313  hardcode_automatic=no
9314  hardcode_direct=no
9315  hardcode_direct_absolute=no
9316  hardcode_libdir_flag_spec=
9317  hardcode_libdir_separator=
9318  hardcode_minus_L=no
9319  hardcode_shlibpath_var=unsupported
9320  inherit_rpath=no
9321  link_all_deplibs=unknown
9322  module_cmds=
9323  module_expsym_cmds=
9324  old_archive_from_new_cmds=
9325  old_archive_from_expsyms_cmds=
9326  thread_safe_flag_spec=
9327  whole_archive_flag_spec=
9328  # include_expsyms should be a list of space-separated symbols to be *always*
9329  # included in the symbol list
9330  include_expsyms=
9331  # exclude_expsyms can be an extended regexp of symbols to exclude
9332  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9333  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9334  # as well as any symbol that contains 'd'.
9335  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9336  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9337  # platforms (ab)use it in PIC code, but their linkers get confused if
9338  # the symbol is explicitly referenced.  Since portable code cannot
9339  # rely on this symbol name, it's probably fine to never include it in
9340  # preloaded symbol tables.
9341  # Exclude shared library initialization/finalization symbols.
9342  extract_expsyms_cmds=
9343
9344  case $host_os in
9345  cygwin* | mingw* | pw32* | cegcc*)
9346    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9347    # When not using gcc, we currently assume that we are using
9348    # Microsoft Visual C++.
9349    if test yes != "$GCC"; then
9350      with_gnu_ld=no
9351    fi
9352    ;;
9353  interix*)
9354    # we just hope/assume this is gcc and not c89 (= MSVC++)
9355    with_gnu_ld=yes
9356    ;;
9357  openbsd* | bitrig*)
9358    with_gnu_ld=no
9359    ;;
9360  linux* | k*bsd*-gnu | gnu*)
9361    link_all_deplibs=no
9362    ;;
9363  esac
9364
9365  ld_shlibs=yes
9366
9367  # On some targets, GNU ld is compatible enough with the native linker
9368  # that we're better off using the native interface for both.
9369  lt_use_gnu_ld_interface=no
9370  if test yes = "$with_gnu_ld"; then
9371    case $host_os in
9372      aix*)
9373	# The AIX port of GNU ld has always aspired to compatibility
9374	# with the native linker.  However, as the warning in the GNU ld
9375	# block says, versions before 2.19.5* couldn't really create working
9376	# shared libraries, regardless of the interface used.
9377	case `$LD -v 2>&1` in
9378	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9379	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9380	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9381	  *)
9382	    lt_use_gnu_ld_interface=yes
9383	    ;;
9384	esac
9385	;;
9386      *)
9387	lt_use_gnu_ld_interface=yes
9388	;;
9389    esac
9390  fi
9391
9392  if test yes = "$lt_use_gnu_ld_interface"; then
9393    # If archive_cmds runs LD, not CC, wlarc should be empty
9394    wlarc='$wl'
9395
9396    # Set some defaults for GNU ld with shared library support. These
9397    # are reset later if shared libraries are not supported. Putting them
9398    # here allows them to be overridden if necessary.
9399    runpath_var=LD_RUN_PATH
9400    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9401    export_dynamic_flag_spec='$wl--export-dynamic'
9402    # ancient GNU ld didn't support --whole-archive et. al.
9403    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9404      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9405    else
9406      whole_archive_flag_spec=
9407    fi
9408    supports_anon_versioning=no
9409    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9410      *GNU\ gold*) supports_anon_versioning=yes ;;
9411      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9412      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9413      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9414      *\ 2.11.*) ;; # other 2.11 versions
9415      *) supports_anon_versioning=yes ;;
9416    esac
9417
9418    # See if GNU ld supports shared libraries.
9419    case $host_os in
9420    aix[3-9]*)
9421      # On AIX/PPC, the GNU linker is very broken
9422      if test ia64 != "$host_cpu"; then
9423	ld_shlibs=no
9424	cat <<_LT_EOF 1>&2
9425
9426*** Warning: the GNU linker, at least up to release 2.19, is reported
9427*** to be unable to reliably create shared libraries on AIX.
9428*** Therefore, libtool is disabling shared libraries support.  If you
9429*** really care for shared libraries, you may want to install binutils
9430*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9431*** You will then need to restart the configuration process.
9432
9433_LT_EOF
9434      fi
9435      ;;
9436
9437    amigaos*)
9438      case $host_cpu in
9439      powerpc)
9440            # see comment about AmigaOS4 .so support
9441            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9442            archive_expsym_cmds=''
9443        ;;
9444      m68k)
9445            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)'
9446            hardcode_libdir_flag_spec='-L$libdir'
9447            hardcode_minus_L=yes
9448        ;;
9449      esac
9450      ;;
9451
9452    beos*)
9453      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9454	allow_undefined_flag=unsupported
9455	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9456	# support --undefined.  This deserves some investigation.  FIXME
9457	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9458      else
9459	ld_shlibs=no
9460      fi
9461      ;;
9462
9463    cygwin* | mingw* | pw32* | cegcc*)
9464      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9465      # as there is no search path for DLLs.
9466      hardcode_libdir_flag_spec='-L$libdir'
9467      export_dynamic_flag_spec='$wl--export-all-symbols'
9468      allow_undefined_flag=unsupported
9469      always_export_symbols=no
9470      enable_shared_with_static_runtimes=yes
9471      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'
9472      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9473
9474      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9475        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9476	# If the export-symbols file already is a .def file, use it as
9477	# is; otherwise, prepend EXPORTS...
9478	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9479          cp $export_symbols $output_objdir/$soname.def;
9480        else
9481          echo EXPORTS > $output_objdir/$soname.def;
9482          cat $export_symbols >> $output_objdir/$soname.def;
9483        fi~
9484        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9485      else
9486	ld_shlibs=no
9487      fi
9488      ;;
9489
9490    haiku*)
9491      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9492      link_all_deplibs=yes
9493      ;;
9494
9495    os2*)
9496      hardcode_libdir_flag_spec='-L$libdir'
9497      hardcode_minus_L=yes
9498      allow_undefined_flag=unsupported
9499      shrext_cmds=.dll
9500      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9501	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9502	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9503	$ECHO EXPORTS >> $output_objdir/$libname.def~
9504	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9505	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9506	emximp -o $lib $output_objdir/$libname.def'
9507      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9508	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9509	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9510	$ECHO EXPORTS >> $output_objdir/$libname.def~
9511	prefix_cmds="$SED"~
9512	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9513	  prefix_cmds="$prefix_cmds -e 1d";
9514	fi~
9515	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9516	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9517	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9518	emximp -o $lib $output_objdir/$libname.def'
9519      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9520      enable_shared_with_static_runtimes=yes
9521      ;;
9522
9523    interix[3-9]*)
9524      hardcode_direct=no
9525      hardcode_shlibpath_var=no
9526      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9527      export_dynamic_flag_spec='$wl-E'
9528      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9529      # Instead, shared libraries are loaded at an image base (0x10000000 by
9530      # default) and relocated if they conflict, which is a slow very memory
9531      # consuming and fragmenting process.  To avoid this, we pick a random,
9532      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9533      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9534      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9535      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'
9536      ;;
9537
9538    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9539      tmp_diet=no
9540      if test linux-dietlibc = "$host_os"; then
9541	case $cc_basename in
9542	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9543	esac
9544      fi
9545      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9546	 && test no = "$tmp_diet"
9547      then
9548	tmp_addflag=' $pic_flag'
9549	tmp_sharedflag='-shared'
9550	case $cc_basename,$host_cpu in
9551        pgcc*)				# Portland Group C compiler
9552	  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'
9553	  tmp_addflag=' $pic_flag'
9554	  ;;
9555	pgf77* | pgf90* | pgf95* | pgfortran*)
9556					# Portland Group f77 and f90 compilers
9557	  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'
9558	  tmp_addflag=' $pic_flag -Mnomain' ;;
9559	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9560	  tmp_addflag=' -i_dynamic' ;;
9561	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9562	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9563	ifc* | ifort*)			# Intel Fortran compiler
9564	  tmp_addflag=' -nofor_main' ;;
9565	lf95*)				# Lahey Fortran 8.1
9566	  whole_archive_flag_spec=
9567	  tmp_sharedflag='--shared' ;;
9568        nagfor*)                        # NAGFOR 5.3
9569          tmp_sharedflag='-Wl,-shared' ;;
9570	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9571	  tmp_sharedflag='-qmkshrobj'
9572	  tmp_addflag= ;;
9573	nvcc*)	# Cuda Compiler Driver 2.2
9574	  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'
9575	  compiler_needs_object=yes
9576	  ;;
9577	esac
9578	case `$CC -V 2>&1 | sed 5q` in
9579	*Sun\ C*)			# Sun C 5.9
9580	  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'
9581	  compiler_needs_object=yes
9582	  tmp_sharedflag='-G' ;;
9583	*Sun\ F*)			# Sun Fortran 8.3
9584	  tmp_sharedflag='-G' ;;
9585	esac
9586	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9587
9588        if test yes = "$supports_anon_versioning"; then
9589          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9590            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9591            echo "local: *; };" >> $output_objdir/$libname.ver~
9592            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9593        fi
9594
9595	case $cc_basename in
9596	tcc*)
9597	  export_dynamic_flag_spec='-rdynamic'
9598	  ;;
9599	xlf* | bgf* | bgxlf* | mpixlf*)
9600	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9601	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9602	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9603	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9604	  if test yes = "$supports_anon_versioning"; then
9605	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9606              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9607              echo "local: *; };" >> $output_objdir/$libname.ver~
9608              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9609	  fi
9610	  ;;
9611	esac
9612      else
9613        ld_shlibs=no
9614      fi
9615      ;;
9616
9617    netbsd* | netbsdelf*-gnu)
9618      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9619	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9620	wlarc=
9621      else
9622	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9623	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9624      fi
9625      ;;
9626
9627    solaris*)
9628      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9629	ld_shlibs=no
9630	cat <<_LT_EOF 1>&2
9631
9632*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9633*** create shared libraries on Solaris systems.  Therefore, libtool
9634*** is disabling shared libraries support.  We urge you to upgrade GNU
9635*** binutils to release 2.9.1 or newer.  Another option is to modify
9636*** your PATH or compiler configuration so that the native linker is
9637*** used, and then restart.
9638
9639_LT_EOF
9640      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9641	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9642	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9643      else
9644	ld_shlibs=no
9645      fi
9646      ;;
9647
9648    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9649      case `$LD -v 2>&1` in
9650        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9651	ld_shlibs=no
9652	cat <<_LT_EOF 1>&2
9653
9654*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9655*** reliably create shared libraries on SCO systems.  Therefore, libtool
9656*** is disabling shared libraries support.  We urge you to upgrade GNU
9657*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9658*** your PATH or compiler configuration so that the native linker is
9659*** used, and then restart.
9660
9661_LT_EOF
9662	;;
9663	*)
9664	  # For security reasons, it is highly recommended that you always
9665	  # use absolute paths for naming shared libraries, and exclude the
9666	  # DT_RUNPATH tag from executables and libraries.  But doing so
9667	  # requires that you compile everything twice, which is a pain.
9668	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9669	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9670	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9671	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9672	  else
9673	    ld_shlibs=no
9674	  fi
9675	;;
9676      esac
9677      ;;
9678
9679    sunos4*)
9680      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9681      wlarc=
9682      hardcode_direct=yes
9683      hardcode_shlibpath_var=no
9684      ;;
9685
9686    *)
9687      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9688	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9689	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9690      else
9691	ld_shlibs=no
9692      fi
9693      ;;
9694    esac
9695
9696    if test no = "$ld_shlibs"; then
9697      runpath_var=
9698      hardcode_libdir_flag_spec=
9699      export_dynamic_flag_spec=
9700      whole_archive_flag_spec=
9701    fi
9702  else
9703    # PORTME fill in a description of your system's linker (not GNU ld)
9704    case $host_os in
9705    aix3*)
9706      allow_undefined_flag=unsupported
9707      always_export_symbols=yes
9708      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'
9709      # Note: this linker hardcodes the directories in LIBPATH if there
9710      # are no directories specified by -L.
9711      hardcode_minus_L=yes
9712      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9713	# Neither direct hardcoding nor static linking is supported with a
9714	# broken collect2.
9715	hardcode_direct=unsupported
9716      fi
9717      ;;
9718
9719    aix[4-9]*)
9720      if test ia64 = "$host_cpu"; then
9721	# On IA64, the linker does run time linking by default, so we don't
9722	# have to do anything special.
9723	aix_use_runtimelinking=no
9724	exp_sym_flag='-Bexport'
9725	no_entry_flag=
9726      else
9727	# If we're using GNU nm, then we don't want the "-C" option.
9728	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9729	# Without the "-l" option, or with the "-B" option, AIX nm treats
9730	# weak defined symbols like other global defined symbols, whereas
9731	# GNU nm marks them as "W".
9732	# While the 'weak' keyword is ignored in the Export File, we need
9733	# it in the Import File for the 'aix-soname' feature, so we have
9734	# to replace the "-B" option with "-P" for AIX nm.
9735	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9736	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9737	else
9738	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9739	fi
9740	aix_use_runtimelinking=no
9741
9742	# Test if we are trying to use run time linking or normal
9743	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9744	# have runtime linking enabled, and use it for executables.
9745	# For shared libraries, we enable/disable runtime linking
9746	# depending on the kind of the shared library created -
9747	# when "with_aix_soname,aix_use_runtimelinking" is:
9748	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9749	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9750	#            lib.a           static archive
9751	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9752	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9753	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9754	#            lib.a(lib.so.V) shared, rtl:no
9755	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9756	#            lib.a           static archive
9757	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9758	  for ld_flag in $LDFLAGS; do
9759	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9760	    aix_use_runtimelinking=yes
9761	    break
9762	  fi
9763	  done
9764	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9765	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9766	    # so we don't have lib.a shared libs to link our executables.
9767	    # We have to force runtime linking in this case.
9768	    aix_use_runtimelinking=yes
9769	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9770	  fi
9771	  ;;
9772	esac
9773
9774	exp_sym_flag='-bexport'
9775	no_entry_flag='-bnoentry'
9776      fi
9777
9778      # When large executables or shared objects are built, AIX ld can
9779      # have problems creating the table of contents.  If linking a library
9780      # or program results in "error TOC overflow" add -mminimal-toc to
9781      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9782      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9783
9784      archive_cmds=''
9785      hardcode_direct=yes
9786      hardcode_direct_absolute=yes
9787      hardcode_libdir_separator=':'
9788      link_all_deplibs=yes
9789      file_list_spec='$wl-f,'
9790      case $with_aix_soname,$aix_use_runtimelinking in
9791      aix,*) ;; # traditional, no import file
9792      svr4,* | *,yes) # use import file
9793	# The Import File defines what to hardcode.
9794	hardcode_direct=no
9795	hardcode_direct_absolute=no
9796	;;
9797      esac
9798
9799      if test yes = "$GCC"; then
9800	case $host_os in aix4.[012]|aix4.[012].*)
9801	# We only want to do this on AIX 4.2 and lower, the check
9802	# below for broken collect2 doesn't work under 4.3+
9803	  collect2name=`$CC -print-prog-name=collect2`
9804	  if test -f "$collect2name" &&
9805	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9806	  then
9807	  # We have reworked collect2
9808	  :
9809	  else
9810	  # We have old collect2
9811	  hardcode_direct=unsupported
9812	  # It fails to find uninstalled libraries when the uninstalled
9813	  # path is not listed in the libpath.  Setting hardcode_minus_L
9814	  # to unsupported forces relinking
9815	  hardcode_minus_L=yes
9816	  hardcode_libdir_flag_spec='-L$libdir'
9817	  hardcode_libdir_separator=
9818	  fi
9819	  ;;
9820	esac
9821	shared_flag='-shared'
9822	if test yes = "$aix_use_runtimelinking"; then
9823	  shared_flag="$shared_flag "'$wl-G'
9824	fi
9825	# Need to ensure runtime linking is disabled for the traditional
9826	# shared library, or the linker may eventually find shared libraries
9827	# /with/ Import File - we do not want to mix them.
9828	shared_flag_aix='-shared'
9829	shared_flag_svr4='-shared $wl-G'
9830      else
9831	# not using gcc
9832	if test ia64 = "$host_cpu"; then
9833	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9834	# chokes on -Wl,-G. The following line is correct:
9835	  shared_flag='-G'
9836	else
9837	  if test yes = "$aix_use_runtimelinking"; then
9838	    shared_flag='$wl-G'
9839	  else
9840	    shared_flag='$wl-bM:SRE'
9841	  fi
9842	  shared_flag_aix='$wl-bM:SRE'
9843	  shared_flag_svr4='$wl-G'
9844	fi
9845      fi
9846
9847      export_dynamic_flag_spec='$wl-bexpall'
9848      # It seems that -bexpall does not export symbols beginning with
9849      # underscore (_), so it is better to generate a list of symbols to export.
9850      always_export_symbols=yes
9851      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9852	# Warning - without using the other runtime loading flags (-brtl),
9853	# -berok will link without error, but may produce a broken library.
9854	allow_undefined_flag='-berok'
9855        # Determine the default libpath from the value encoded in an
9856        # empty executable.
9857        if test set = "${lt_cv_aix_libpath+set}"; then
9858  aix_libpath=$lt_cv_aix_libpath
9859else
9860  if ${lt_cv_aix_libpath_+:} false; then :
9861  $as_echo_n "(cached) " >&6
9862else
9863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864/* end confdefs.h.  */
9865
9866int
9867main ()
9868{
9869
9870  ;
9871  return 0;
9872}
9873_ACEOF
9874if ac_fn_c_try_link "$LINENO"; then :
9875
9876  lt_aix_libpath_sed='
9877      /Import File Strings/,/^$/ {
9878	  /^0/ {
9879	      s/^0  *\([^ ]*\) *$/\1/
9880	      p
9881	  }
9882      }'
9883  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9884  # Check for a 64-bit object if we didn't find anything.
9885  if test -z "$lt_cv_aix_libpath_"; then
9886    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9887  fi
9888fi
9889rm -f core conftest.err conftest.$ac_objext \
9890    conftest$ac_exeext conftest.$ac_ext
9891  if test -z "$lt_cv_aix_libpath_"; then
9892    lt_cv_aix_libpath_=/usr/lib:/lib
9893  fi
9894
9895fi
9896
9897  aix_libpath=$lt_cv_aix_libpath_
9898fi
9899
9900        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9901        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9902      else
9903	if test ia64 = "$host_cpu"; then
9904	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9905	  allow_undefined_flag="-z nodefs"
9906	  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"
9907	else
9908	 # Determine the default libpath from the value encoded in an
9909	 # empty executable.
9910	 if test set = "${lt_cv_aix_libpath+set}"; then
9911  aix_libpath=$lt_cv_aix_libpath
9912else
9913  if ${lt_cv_aix_libpath_+:} false; then :
9914  $as_echo_n "(cached) " >&6
9915else
9916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917/* end confdefs.h.  */
9918
9919int
9920main ()
9921{
9922
9923  ;
9924  return 0;
9925}
9926_ACEOF
9927if ac_fn_c_try_link "$LINENO"; then :
9928
9929  lt_aix_libpath_sed='
9930      /Import File Strings/,/^$/ {
9931	  /^0/ {
9932	      s/^0  *\([^ ]*\) *$/\1/
9933	      p
9934	  }
9935      }'
9936  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9937  # Check for a 64-bit object if we didn't find anything.
9938  if test -z "$lt_cv_aix_libpath_"; then
9939    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9940  fi
9941fi
9942rm -f core conftest.err conftest.$ac_objext \
9943    conftest$ac_exeext conftest.$ac_ext
9944  if test -z "$lt_cv_aix_libpath_"; then
9945    lt_cv_aix_libpath_=/usr/lib:/lib
9946  fi
9947
9948fi
9949
9950  aix_libpath=$lt_cv_aix_libpath_
9951fi
9952
9953	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9954	  # Warning - without using the other run time loading flags,
9955	  # -berok will link without error, but may produce a broken library.
9956	  no_undefined_flag=' $wl-bernotok'
9957	  allow_undefined_flag=' $wl-berok'
9958	  if test yes = "$with_gnu_ld"; then
9959	    # We only use this code for GNU lds that support --whole-archive.
9960	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9961	  else
9962	    # Exported symbols can be pulled into shared objects from archives
9963	    whole_archive_flag_spec='$convenience'
9964	  fi
9965	  archive_cmds_need_lc=yes
9966	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9967	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9968	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9969	  if test svr4 != "$with_aix_soname"; then
9970	    # This is similar to how AIX traditionally builds its shared libraries.
9971	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9972	  fi
9973	  if test aix != "$with_aix_soname"; then
9974	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9975	  else
9976	    # used by -dlpreopen to get the symbols
9977	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9978	  fi
9979	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9980	fi
9981      fi
9982      ;;
9983
9984    amigaos*)
9985      case $host_cpu in
9986      powerpc)
9987            # see comment about AmigaOS4 .so support
9988            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9989            archive_expsym_cmds=''
9990        ;;
9991      m68k)
9992            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)'
9993            hardcode_libdir_flag_spec='-L$libdir'
9994            hardcode_minus_L=yes
9995        ;;
9996      esac
9997      ;;
9998
9999    bsdi[45]*)
10000      export_dynamic_flag_spec=-rdynamic
10001      ;;
10002
10003    cygwin* | mingw* | pw32* | cegcc*)
10004      # When not using gcc, we currently assume that we are using
10005      # Microsoft Visual C++.
10006      # hardcode_libdir_flag_spec is actually meaningless, as there is
10007      # no search path for DLLs.
10008      case $cc_basename in
10009      cl*)
10010	# Native MSVC
10011	hardcode_libdir_flag_spec=' '
10012	allow_undefined_flag=unsupported
10013	always_export_symbols=yes
10014	file_list_spec='@'
10015	# Tell ltmain to make .lib files, not .a files.
10016	libext=lib
10017	# Tell ltmain to make .dll files, not .so files.
10018	shrext_cmds=.dll
10019	# FIXME: Setting linknames here is a bad hack.
10020	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10021	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10022            cp "$export_symbols" "$output_objdir/$soname.def";
10023            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10024          else
10025            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10026          fi~
10027          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10028          linknames='
10029	# The linker will not automatically build a static lib if we build a DLL.
10030	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10031	enable_shared_with_static_runtimes=yes
10032	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10033	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10034	# Don't use ranlib
10035	old_postinstall_cmds='chmod 644 $oldlib'
10036	postlink_cmds='lt_outputfile="@OUTPUT@"~
10037          lt_tool_outputfile="@TOOL_OUTPUT@"~
10038          case $lt_outputfile in
10039            *.exe|*.EXE) ;;
10040            *)
10041              lt_outputfile=$lt_outputfile.exe
10042              lt_tool_outputfile=$lt_tool_outputfile.exe
10043              ;;
10044          esac~
10045          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10046            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10047            $RM "$lt_outputfile.manifest";
10048          fi'
10049	;;
10050      *)
10051	# Assume MSVC wrapper
10052	hardcode_libdir_flag_spec=' '
10053	allow_undefined_flag=unsupported
10054	# Tell ltmain to make .lib files, not .a files.
10055	libext=lib
10056	# Tell ltmain to make .dll files, not .so files.
10057	shrext_cmds=.dll
10058	# FIXME: Setting linknames here is a bad hack.
10059	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10060	# The linker will automatically build a .lib file if we build a DLL.
10061	old_archive_from_new_cmds='true'
10062	# FIXME: Should let the user specify the lib program.
10063	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10064	enable_shared_with_static_runtimes=yes
10065	;;
10066      esac
10067      ;;
10068
10069    darwin* | rhapsody*)
10070
10071
10072  archive_cmds_need_lc=no
10073  hardcode_direct=no
10074  hardcode_automatic=yes
10075  hardcode_shlibpath_var=unsupported
10076  if test yes = "$lt_cv_ld_force_load"; then
10077    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\"`'
10078
10079  else
10080    whole_archive_flag_spec=''
10081  fi
10082  link_all_deplibs=yes
10083  allow_undefined_flag=$_lt_dar_allow_undefined
10084  case $cc_basename in
10085     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10086     *) _lt_dar_can_shared=$GCC ;;
10087  esac
10088  if test yes = "$_lt_dar_can_shared"; then
10089    output_verbose_link_cmd=func_echo_all
10090    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10091    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10092    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"
10093    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"
10094
10095  else
10096  ld_shlibs=no
10097  fi
10098
10099      ;;
10100
10101    dgux*)
10102      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10103      hardcode_libdir_flag_spec='-L$libdir'
10104      hardcode_shlibpath_var=no
10105      ;;
10106
10107    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10108    # support.  Future versions do this automatically, but an explicit c++rt0.o
10109    # does not break anything, and helps significantly (at the cost of a little
10110    # extra space).
10111    freebsd2.2*)
10112      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10113      hardcode_libdir_flag_spec='-R$libdir'
10114      hardcode_direct=yes
10115      hardcode_shlibpath_var=no
10116      ;;
10117
10118    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10119    freebsd2.*)
10120      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10121      hardcode_direct=yes
10122      hardcode_minus_L=yes
10123      hardcode_shlibpath_var=no
10124      ;;
10125
10126    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10127    freebsd* | dragonfly*)
10128      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10129      hardcode_libdir_flag_spec='-R$libdir'
10130      hardcode_direct=yes
10131      hardcode_shlibpath_var=no
10132      ;;
10133
10134    hpux9*)
10135      if test yes = "$GCC"; then
10136	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10137      else
10138	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10139      fi
10140      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10141      hardcode_libdir_separator=:
10142      hardcode_direct=yes
10143
10144      # hardcode_minus_L: Not really in the search PATH,
10145      # but as the default location of the library.
10146      hardcode_minus_L=yes
10147      export_dynamic_flag_spec='$wl-E'
10148      ;;
10149
10150    hpux10*)
10151      if test yes,no = "$GCC,$with_gnu_ld"; then
10152	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10153      else
10154	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10155      fi
10156      if test no = "$with_gnu_ld"; then
10157	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10158	hardcode_libdir_separator=:
10159	hardcode_direct=yes
10160	hardcode_direct_absolute=yes
10161	export_dynamic_flag_spec='$wl-E'
10162	# hardcode_minus_L: Not really in the search PATH,
10163	# but as the default location of the library.
10164	hardcode_minus_L=yes
10165      fi
10166      ;;
10167
10168    hpux11*)
10169      if test yes,no = "$GCC,$with_gnu_ld"; then
10170	case $host_cpu in
10171	hppa*64*)
10172	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10173	  ;;
10174	ia64*)
10175	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10176	  ;;
10177	*)
10178	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10179	  ;;
10180	esac
10181      else
10182	case $host_cpu in
10183	hppa*64*)
10184	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10185	  ;;
10186	ia64*)
10187	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10188	  ;;
10189	*)
10190
10191	  # Older versions of the 11.00 compiler do not understand -b yet
10192	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10193	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10194$as_echo_n "checking if $CC understands -b... " >&6; }
10195if ${lt_cv_prog_compiler__b+:} false; then :
10196  $as_echo_n "(cached) " >&6
10197else
10198  lt_cv_prog_compiler__b=no
10199   save_LDFLAGS=$LDFLAGS
10200   LDFLAGS="$LDFLAGS -b"
10201   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10202   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10203     # The linker can only warn and ignore the option if not recognized
10204     # So say no if there are warnings
10205     if test -s conftest.err; then
10206       # Append any errors to the config.log.
10207       cat conftest.err 1>&5
10208       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10209       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10210       if diff conftest.exp conftest.er2 >/dev/null; then
10211         lt_cv_prog_compiler__b=yes
10212       fi
10213     else
10214       lt_cv_prog_compiler__b=yes
10215     fi
10216   fi
10217   $RM -r conftest*
10218   LDFLAGS=$save_LDFLAGS
10219
10220fi
10221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10222$as_echo "$lt_cv_prog_compiler__b" >&6; }
10223
10224if test yes = "$lt_cv_prog_compiler__b"; then
10225    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10226else
10227    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10228fi
10229
10230	  ;;
10231	esac
10232      fi
10233      if test no = "$with_gnu_ld"; then
10234	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10235	hardcode_libdir_separator=:
10236
10237	case $host_cpu in
10238	hppa*64*|ia64*)
10239	  hardcode_direct=no
10240	  hardcode_shlibpath_var=no
10241	  ;;
10242	*)
10243	  hardcode_direct=yes
10244	  hardcode_direct_absolute=yes
10245	  export_dynamic_flag_spec='$wl-E'
10246
10247	  # hardcode_minus_L: Not really in the search PATH,
10248	  # but as the default location of the library.
10249	  hardcode_minus_L=yes
10250	  ;;
10251	esac
10252      fi
10253      ;;
10254
10255    irix5* | irix6* | nonstopux*)
10256      if test yes = "$GCC"; then
10257	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'
10258	# Try to use the -exported_symbol ld option, if it does not
10259	# work, assume that -exports_file does not work either and
10260	# implicitly export all symbols.
10261	# This should be the same for all languages, so no per-tag cache variable.
10262	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10263$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10264if ${lt_cv_irix_exported_symbol+:} false; then :
10265  $as_echo_n "(cached) " >&6
10266else
10267  save_LDFLAGS=$LDFLAGS
10268	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10269	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270/* end confdefs.h.  */
10271int foo (void) { return 0; }
10272_ACEOF
10273if ac_fn_c_try_link "$LINENO"; then :
10274  lt_cv_irix_exported_symbol=yes
10275else
10276  lt_cv_irix_exported_symbol=no
10277fi
10278rm -f core conftest.err conftest.$ac_objext \
10279    conftest$ac_exeext conftest.$ac_ext
10280           LDFLAGS=$save_LDFLAGS
10281fi
10282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10283$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10284	if test yes = "$lt_cv_irix_exported_symbol"; then
10285          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'
10286	fi
10287	link_all_deplibs=no
10288      else
10289	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'
10290	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'
10291      fi
10292      archive_cmds_need_lc='no'
10293      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10294      hardcode_libdir_separator=:
10295      inherit_rpath=yes
10296      link_all_deplibs=yes
10297      ;;
10298
10299    linux*)
10300      case $cc_basename in
10301      tcc*)
10302	# Fabrice Bellard et al's Tiny C Compiler
10303	ld_shlibs=yes
10304	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10305	;;
10306      esac
10307      ;;
10308
10309    netbsd* | netbsdelf*-gnu)
10310      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10311	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10312      else
10313	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10314      fi
10315      hardcode_libdir_flag_spec='-R$libdir'
10316      hardcode_direct=yes
10317      hardcode_shlibpath_var=no
10318      ;;
10319
10320    newsos6)
10321      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10322      hardcode_direct=yes
10323      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10324      hardcode_libdir_separator=:
10325      hardcode_shlibpath_var=no
10326      ;;
10327
10328    *nto* | *qnx*)
10329      ;;
10330
10331    openbsd* | bitrig*)
10332      if test -f /usr/libexec/ld.so; then
10333	hardcode_direct=yes
10334	hardcode_shlibpath_var=no
10335	hardcode_direct_absolute=yes
10336	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10337	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10338	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10339	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10340	  export_dynamic_flag_spec='$wl-E'
10341	else
10342	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10343	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10344	fi
10345      else
10346	ld_shlibs=no
10347      fi
10348      ;;
10349
10350    os2*)
10351      hardcode_libdir_flag_spec='-L$libdir'
10352      hardcode_minus_L=yes
10353      allow_undefined_flag=unsupported
10354      shrext_cmds=.dll
10355      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10356	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10357	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10358	$ECHO EXPORTS >> $output_objdir/$libname.def~
10359	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10360	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10361	emximp -o $lib $output_objdir/$libname.def'
10362      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10363	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10364	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10365	$ECHO EXPORTS >> $output_objdir/$libname.def~
10366	prefix_cmds="$SED"~
10367	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10368	  prefix_cmds="$prefix_cmds -e 1d";
10369	fi~
10370	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10371	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10372	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10373	emximp -o $lib $output_objdir/$libname.def'
10374      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10375      enable_shared_with_static_runtimes=yes
10376      ;;
10377
10378    osf3*)
10379      if test yes = "$GCC"; then
10380	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10381	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'
10382      else
10383	allow_undefined_flag=' -expect_unresolved \*'
10384	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'
10385      fi
10386      archive_cmds_need_lc='no'
10387      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10388      hardcode_libdir_separator=:
10389      ;;
10390
10391    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10392      if test yes = "$GCC"; then
10393	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10394	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'
10395	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10396      else
10397	allow_undefined_flag=' -expect_unresolved \*'
10398	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'
10399	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~
10400          $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'
10401
10402	# Both c and cxx compiler support -rpath directly
10403	hardcode_libdir_flag_spec='-rpath $libdir'
10404      fi
10405      archive_cmds_need_lc='no'
10406      hardcode_libdir_separator=:
10407      ;;
10408
10409    solaris*)
10410      no_undefined_flag=' -z defs'
10411      if test yes = "$GCC"; then
10412	wlarc='$wl'
10413	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10414	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10415          $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'
10416      else
10417	case `$CC -V 2>&1` in
10418	*"Compilers 5.0"*)
10419	  wlarc=''
10420	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10421	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10422            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10423	  ;;
10424	*)
10425	  wlarc='$wl'
10426	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10427	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10428            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10429	  ;;
10430	esac
10431      fi
10432      hardcode_libdir_flag_spec='-R$libdir'
10433      hardcode_shlibpath_var=no
10434      case $host_os in
10435      solaris2.[0-5] | solaris2.[0-5].*) ;;
10436      *)
10437	# The compiler driver will combine and reorder linker options,
10438	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10439	# but is careful enough not to reorder.
10440	# Supported since Solaris 2.6 (maybe 2.5.1?)
10441	if test yes = "$GCC"; then
10442	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10443	else
10444	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10445	fi
10446	;;
10447      esac
10448      link_all_deplibs=yes
10449      ;;
10450
10451    sunos4*)
10452      if test sequent = "$host_vendor"; then
10453	# Use $CC to link under sequent, because it throws in some extra .o
10454	# files that make .init and .fini sections work.
10455	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10456      else
10457	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10458      fi
10459      hardcode_libdir_flag_spec='-L$libdir'
10460      hardcode_direct=yes
10461      hardcode_minus_L=yes
10462      hardcode_shlibpath_var=no
10463      ;;
10464
10465    sysv4)
10466      case $host_vendor in
10467	sni)
10468	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10469	  hardcode_direct=yes # is this really true???
10470	;;
10471	siemens)
10472	  ## LD is ld it makes a PLAMLIB
10473	  ## CC just makes a GrossModule.
10474	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10475	  reload_cmds='$CC -r -o $output$reload_objs'
10476	  hardcode_direct=no
10477        ;;
10478	motorola)
10479	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10480	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10481	;;
10482      esac
10483      runpath_var='LD_RUN_PATH'
10484      hardcode_shlibpath_var=no
10485      ;;
10486
10487    sysv4.3*)
10488      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10489      hardcode_shlibpath_var=no
10490      export_dynamic_flag_spec='-Bexport'
10491      ;;
10492
10493    sysv4*MP*)
10494      if test -d /usr/nec; then
10495	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10496	hardcode_shlibpath_var=no
10497	runpath_var=LD_RUN_PATH
10498	hardcode_runpath_var=yes
10499	ld_shlibs=yes
10500      fi
10501      ;;
10502
10503    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10504      no_undefined_flag='$wl-z,text'
10505      archive_cmds_need_lc=no
10506      hardcode_shlibpath_var=no
10507      runpath_var='LD_RUN_PATH'
10508
10509      if test yes = "$GCC"; then
10510	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10511	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10512      else
10513	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10514	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10515      fi
10516      ;;
10517
10518    sysv5* | sco3.2v5* | sco5v6*)
10519      # Note: We CANNOT use -z defs as we might desire, because we do not
10520      # link with -lc, and that would cause any symbols used from libc to
10521      # always be unresolved, which means just about no library would
10522      # ever link correctly.  If we're not using GNU ld we use -z text
10523      # though, which does catch some bad symbols but isn't as heavy-handed
10524      # as -z defs.
10525      no_undefined_flag='$wl-z,text'
10526      allow_undefined_flag='$wl-z,nodefs'
10527      archive_cmds_need_lc=no
10528      hardcode_shlibpath_var=no
10529      hardcode_libdir_flag_spec='$wl-R,$libdir'
10530      hardcode_libdir_separator=':'
10531      link_all_deplibs=yes
10532      export_dynamic_flag_spec='$wl-Bexport'
10533      runpath_var='LD_RUN_PATH'
10534
10535      if test yes = "$GCC"; then
10536	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10537	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10538      else
10539	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10540	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10541      fi
10542      ;;
10543
10544    uts4*)
10545      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10546      hardcode_libdir_flag_spec='-L$libdir'
10547      hardcode_shlibpath_var=no
10548      ;;
10549
10550    *)
10551      ld_shlibs=no
10552      ;;
10553    esac
10554
10555    if test sni = "$host_vendor"; then
10556      case $host in
10557      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10558	export_dynamic_flag_spec='$wl-Blargedynsym'
10559	;;
10560      esac
10561    fi
10562  fi
10563
10564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10565$as_echo "$ld_shlibs" >&6; }
10566test no = "$ld_shlibs" && can_build_shared=no
10567
10568with_gnu_ld=$with_gnu_ld
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584#
10585# Do we need to explicitly link libc?
10586#
10587case "x$archive_cmds_need_lc" in
10588x|xyes)
10589  # Assume -lc should be added
10590  archive_cmds_need_lc=yes
10591
10592  if test yes,yes = "$GCC,$enable_shared"; then
10593    case $archive_cmds in
10594    *'~'*)
10595      # FIXME: we may have to deal with multi-command sequences.
10596      ;;
10597    '$CC '*)
10598      # Test whether the compiler implicitly links with -lc since on some
10599      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10600      # to ld, don't add -lc before -lgcc.
10601      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10602$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10603if ${lt_cv_archive_cmds_need_lc+:} false; then :
10604  $as_echo_n "(cached) " >&6
10605else
10606  $RM conftest*
10607	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10608
10609	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10610  (eval $ac_compile) 2>&5
10611  ac_status=$?
10612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10613  test $ac_status = 0; } 2>conftest.err; then
10614	  soname=conftest
10615	  lib=conftest
10616	  libobjs=conftest.$ac_objext
10617	  deplibs=
10618	  wl=$lt_prog_compiler_wl
10619	  pic_flag=$lt_prog_compiler_pic
10620	  compiler_flags=-v
10621	  linker_flags=-v
10622	  verstring=
10623	  output_objdir=.
10624	  libname=conftest
10625	  lt_save_allow_undefined_flag=$allow_undefined_flag
10626	  allow_undefined_flag=
10627	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10628  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10629  ac_status=$?
10630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10631  test $ac_status = 0; }
10632	  then
10633	    lt_cv_archive_cmds_need_lc=no
10634	  else
10635	    lt_cv_archive_cmds_need_lc=yes
10636	  fi
10637	  allow_undefined_flag=$lt_save_allow_undefined_flag
10638	else
10639	  cat conftest.err 1>&5
10640	fi
10641	$RM conftest*
10642
10643fi
10644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10645$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10646      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10647      ;;
10648    esac
10649  fi
10650  ;;
10651esac
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10805$as_echo_n "checking dynamic linker characteristics... " >&6; }
10806
10807if test yes = "$GCC"; then
10808  case $host_os in
10809    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10810    *) lt_awk_arg='/^libraries:/' ;;
10811  esac
10812  case $host_os in
10813    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10814    *) lt_sed_strip_eq='s|=/|/|g' ;;
10815  esac
10816  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10817  case $lt_search_path_spec in
10818  *\;*)
10819    # if the path contains ";" then we assume it to be the separator
10820    # otherwise default to the standard path separator (i.e. ":") - it is
10821    # assumed that no part of a normal pathname contains ";" but that should
10822    # okay in the real world where ";" in dirpaths is itself problematic.
10823    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10824    ;;
10825  *)
10826    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10827    ;;
10828  esac
10829  # Ok, now we have the path, separated by spaces, we can step through it
10830  # and add multilib dir if necessary...
10831  lt_tmp_lt_search_path_spec=
10832  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10833  # ...but if some path component already ends with the multilib dir we assume
10834  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10835  case "$lt_multi_os_dir; $lt_search_path_spec " in
10836  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10837    lt_multi_os_dir=
10838    ;;
10839  esac
10840  for lt_sys_path in $lt_search_path_spec; do
10841    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10842      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10843    elif test -n "$lt_multi_os_dir"; then
10844      test -d "$lt_sys_path" && \
10845	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10846    fi
10847  done
10848  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10849BEGIN {RS = " "; FS = "/|\n";} {
10850  lt_foo = "";
10851  lt_count = 0;
10852  for (lt_i = NF; lt_i > 0; lt_i--) {
10853    if ($lt_i != "" && $lt_i != ".") {
10854      if ($lt_i == "..") {
10855        lt_count++;
10856      } else {
10857        if (lt_count == 0) {
10858          lt_foo = "/" $lt_i lt_foo;
10859        } else {
10860          lt_count--;
10861        }
10862      }
10863    }
10864  }
10865  if (lt_foo != "") { lt_freq[lt_foo]++; }
10866  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10867}'`
10868  # AWK program above erroneously prepends '/' to C:/dos/paths
10869  # for these hosts.
10870  case $host_os in
10871    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10872      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10873  esac
10874  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10875else
10876  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10877fi
10878library_names_spec=
10879libname_spec='lib$name'
10880soname_spec=
10881shrext_cmds=.so
10882postinstall_cmds=
10883postuninstall_cmds=
10884finish_cmds=
10885finish_eval=
10886shlibpath_var=
10887shlibpath_overrides_runpath=unknown
10888version_type=none
10889dynamic_linker="$host_os ld.so"
10890sys_lib_dlsearch_path_spec="/lib /usr/lib"
10891need_lib_prefix=unknown
10892hardcode_into_libs=no
10893
10894# when you set need_version to no, make sure it does not cause -set_version
10895# flags to be left without arguments
10896need_version=unknown
10897
10898
10899
10900case $host_os in
10901aix3*)
10902  version_type=linux # correct to gnu/linux during the next big refactor
10903  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10904  shlibpath_var=LIBPATH
10905
10906  # AIX 3 has no versioning support, so we append a major version to the name.
10907  soname_spec='$libname$release$shared_ext$major'
10908  ;;
10909
10910aix[4-9]*)
10911  version_type=linux # correct to gnu/linux during the next big refactor
10912  need_lib_prefix=no
10913  need_version=no
10914  hardcode_into_libs=yes
10915  if test ia64 = "$host_cpu"; then
10916    # AIX 5 supports IA64
10917    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10918    shlibpath_var=LD_LIBRARY_PATH
10919  else
10920    # With GCC up to 2.95.x, collect2 would create an import file
10921    # for dependence libraries.  The import file would start with
10922    # the line '#! .'.  This would cause the generated library to
10923    # depend on '.', always an invalid library.  This was fixed in
10924    # development snapshots of GCC prior to 3.0.
10925    case $host_os in
10926      aix4 | aix4.[01] | aix4.[01].*)
10927      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10928	   echo ' yes '
10929	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10930	:
10931      else
10932	can_build_shared=no
10933      fi
10934      ;;
10935    esac
10936    # Using Import Files as archive members, it is possible to support
10937    # filename-based versioning of shared library archives on AIX. While
10938    # this would work for both with and without runtime linking, it will
10939    # prevent static linking of such archives. So we do filename-based
10940    # shared library versioning with .so extension only, which is used
10941    # when both runtime linking and shared linking is enabled.
10942    # Unfortunately, runtime linking may impact performance, so we do
10943    # not want this to be the default eventually. Also, we use the
10944    # versioned .so libs for executables only if there is the -brtl
10945    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10946    # To allow for filename-based versioning support, we need to create
10947    # libNAME.so.V as an archive file, containing:
10948    # *) an Import File, referring to the versioned filename of the
10949    #    archive as well as the shared archive member, telling the
10950    #    bitwidth (32 or 64) of that shared object, and providing the
10951    #    list of exported symbols of that shared object, eventually
10952    #    decorated with the 'weak' keyword
10953    # *) the shared object with the F_LOADONLY flag set, to really avoid
10954    #    it being seen by the linker.
10955    # At run time we better use the real file rather than another symlink,
10956    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10957
10958    case $with_aix_soname,$aix_use_runtimelinking in
10959    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10960    # soname into executable. Probably we can add versioning support to
10961    # collect2, so additional links can be useful in future.
10962    aix,yes) # traditional libtool
10963      dynamic_linker='AIX unversionable lib.so'
10964      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10965      # instead of lib<name>.a to let people know that these are not
10966      # typical AIX shared libraries.
10967      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10968      ;;
10969    aix,no) # traditional AIX only
10970      dynamic_linker='AIX lib.a(lib.so.V)'
10971      # We preserve .a as extension for shared libraries through AIX4.2
10972      # and later when we are not doing run time linking.
10973      library_names_spec='$libname$release.a $libname.a'
10974      soname_spec='$libname$release$shared_ext$major'
10975      ;;
10976    svr4,*) # full svr4 only
10977      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10978      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10979      # We do not specify a path in Import Files, so LIBPATH fires.
10980      shlibpath_overrides_runpath=yes
10981      ;;
10982    *,yes) # both, prefer svr4
10983      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10984      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10985      # unpreferred sharedlib libNAME.a needs extra handling
10986      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10987      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10988      # We do not specify a path in Import Files, so LIBPATH fires.
10989      shlibpath_overrides_runpath=yes
10990      ;;
10991    *,no) # both, prefer aix
10992      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10993      library_names_spec='$libname$release.a $libname.a'
10994      soname_spec='$libname$release$shared_ext$major'
10995      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10996      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10997      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10998      ;;
10999    esac
11000    shlibpath_var=LIBPATH
11001  fi
11002  ;;
11003
11004amigaos*)
11005  case $host_cpu in
11006  powerpc)
11007    # Since July 2007 AmigaOS4 officially supports .so libraries.
11008    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11009    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11010    ;;
11011  m68k)
11012    library_names_spec='$libname.ixlibrary $libname.a'
11013    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11014    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11015    ;;
11016  esac
11017  ;;
11018
11019beos*)
11020  library_names_spec='$libname$shared_ext'
11021  dynamic_linker="$host_os ld.so"
11022  shlibpath_var=LIBRARY_PATH
11023  ;;
11024
11025bsdi[45]*)
11026  version_type=linux # correct to gnu/linux during the next big refactor
11027  need_version=no
11028  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11029  soname_spec='$libname$release$shared_ext$major'
11030  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11031  shlibpath_var=LD_LIBRARY_PATH
11032  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11033  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11034  # the default ld.so.conf also contains /usr/contrib/lib and
11035  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11036  # libtool to hard-code these into programs
11037  ;;
11038
11039cygwin* | mingw* | pw32* | cegcc*)
11040  version_type=windows
11041  shrext_cmds=.dll
11042  need_version=no
11043  need_lib_prefix=no
11044
11045  case $GCC,$cc_basename in
11046  yes,*)
11047    # gcc
11048    library_names_spec='$libname.dll.a'
11049    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11050    postinstall_cmds='base_file=`basename \$file`~
11051      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11052      dldir=$destdir/`dirname \$dlpath`~
11053      test -d \$dldir || mkdir -p \$dldir~
11054      $install_prog $dir/$dlname \$dldir/$dlname~
11055      chmod a+x \$dldir/$dlname~
11056      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11057        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11058      fi'
11059    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11060      dlpath=$dir/\$dldll~
11061       $RM \$dlpath'
11062    shlibpath_overrides_runpath=yes
11063
11064    case $host_os in
11065    cygwin*)
11066      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11067      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11068
11069      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11070      ;;
11071    mingw* | cegcc*)
11072      # MinGW DLLs use traditional 'lib' prefix
11073      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11074      ;;
11075    pw32*)
11076      # pw32 DLLs use 'pw' prefix rather than 'lib'
11077      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11078      ;;
11079    esac
11080    dynamic_linker='Win32 ld.exe'
11081    ;;
11082
11083  *,cl*)
11084    # Native MSVC
11085    libname_spec='$name'
11086    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11087    library_names_spec='$libname.dll.lib'
11088
11089    case $build_os in
11090    mingw*)
11091      sys_lib_search_path_spec=
11092      lt_save_ifs=$IFS
11093      IFS=';'
11094      for lt_path in $LIB
11095      do
11096        IFS=$lt_save_ifs
11097        # Let DOS variable expansion print the short 8.3 style file name.
11098        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11099        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11100      done
11101      IFS=$lt_save_ifs
11102      # Convert to MSYS style.
11103      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11104      ;;
11105    cygwin*)
11106      # Convert to unix form, then to dos form, then back to unix form
11107      # but this time dos style (no spaces!) so that the unix form looks
11108      # like /cygdrive/c/PROGRA~1:/cygdr...
11109      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11110      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11111      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11112      ;;
11113    *)
11114      sys_lib_search_path_spec=$LIB
11115      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11116        # It is most probably a Windows format PATH.
11117        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11118      else
11119        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11120      fi
11121      # FIXME: find the short name or the path components, as spaces are
11122      # common. (e.g. "Program Files" -> "PROGRA~1")
11123      ;;
11124    esac
11125
11126    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11127    postinstall_cmds='base_file=`basename \$file`~
11128      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11129      dldir=$destdir/`dirname \$dlpath`~
11130      test -d \$dldir || mkdir -p \$dldir~
11131      $install_prog $dir/$dlname \$dldir/$dlname'
11132    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11133      dlpath=$dir/\$dldll~
11134       $RM \$dlpath'
11135    shlibpath_overrides_runpath=yes
11136    dynamic_linker='Win32 link.exe'
11137    ;;
11138
11139  *)
11140    # Assume MSVC wrapper
11141    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11142    dynamic_linker='Win32 ld.exe'
11143    ;;
11144  esac
11145  # FIXME: first we should search . and the directory the executable is in
11146  shlibpath_var=PATH
11147  ;;
11148
11149darwin* | rhapsody*)
11150  dynamic_linker="$host_os dyld"
11151  version_type=darwin
11152  need_lib_prefix=no
11153  need_version=no
11154  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11155  soname_spec='$libname$release$major$shared_ext'
11156  shlibpath_overrides_runpath=yes
11157  shlibpath_var=DYLD_LIBRARY_PATH
11158  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11159
11160  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11161  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11162  ;;
11163
11164dgux*)
11165  version_type=linux # correct to gnu/linux during the next big refactor
11166  need_lib_prefix=no
11167  need_version=no
11168  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11169  soname_spec='$libname$release$shared_ext$major'
11170  shlibpath_var=LD_LIBRARY_PATH
11171  ;;
11172
11173freebsd* | dragonfly*)
11174  # DragonFly does not have aout.  When/if they implement a new
11175  # versioning mechanism, adjust this.
11176  if test -x /usr/bin/objformat; then
11177    objformat=`/usr/bin/objformat`
11178  else
11179    case $host_os in
11180    freebsd[23].*) objformat=aout ;;
11181    *) objformat=elf ;;
11182    esac
11183  fi
11184  version_type=freebsd-$objformat
11185  case $version_type in
11186    freebsd-elf*)
11187      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11188      soname_spec='$libname$release$shared_ext$major'
11189      need_version=no
11190      need_lib_prefix=no
11191      ;;
11192    freebsd-*)
11193      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11194      need_version=yes
11195      ;;
11196  esac
11197  shlibpath_var=LD_LIBRARY_PATH
11198  case $host_os in
11199  freebsd2.*)
11200    shlibpath_overrides_runpath=yes
11201    ;;
11202  freebsd3.[01]* | freebsdelf3.[01]*)
11203    shlibpath_overrides_runpath=yes
11204    hardcode_into_libs=yes
11205    ;;
11206  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11207  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11208    shlibpath_overrides_runpath=no
11209    hardcode_into_libs=yes
11210    ;;
11211  *) # from 4.6 on, and DragonFly
11212    shlibpath_overrides_runpath=yes
11213    hardcode_into_libs=yes
11214    ;;
11215  esac
11216  ;;
11217
11218haiku*)
11219  version_type=linux # correct to gnu/linux during the next big refactor
11220  need_lib_prefix=no
11221  need_version=no
11222  dynamic_linker="$host_os runtime_loader"
11223  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11224  soname_spec='$libname$release$shared_ext$major'
11225  shlibpath_var=LIBRARY_PATH
11226  shlibpath_overrides_runpath=no
11227  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11228  hardcode_into_libs=yes
11229  ;;
11230
11231hpux9* | hpux10* | hpux11*)
11232  # Give a soname corresponding to the major version so that dld.sl refuses to
11233  # link against other versions.
11234  version_type=sunos
11235  need_lib_prefix=no
11236  need_version=no
11237  case $host_cpu in
11238  ia64*)
11239    shrext_cmds='.so'
11240    hardcode_into_libs=yes
11241    dynamic_linker="$host_os dld.so"
11242    shlibpath_var=LD_LIBRARY_PATH
11243    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11244    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11245    soname_spec='$libname$release$shared_ext$major'
11246    if test 32 = "$HPUX_IA64_MODE"; then
11247      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11248      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11249    else
11250      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11251      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11252    fi
11253    ;;
11254  hppa*64*)
11255    shrext_cmds='.sl'
11256    hardcode_into_libs=yes
11257    dynamic_linker="$host_os dld.sl"
11258    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11259    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11260    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11261    soname_spec='$libname$release$shared_ext$major'
11262    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11263    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11264    ;;
11265  *)
11266    shrext_cmds='.sl'
11267    dynamic_linker="$host_os dld.sl"
11268    shlibpath_var=SHLIB_PATH
11269    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11270    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11271    soname_spec='$libname$release$shared_ext$major'
11272    ;;
11273  esac
11274  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11275  postinstall_cmds='chmod 555 $lib'
11276  # or fails outright, so override atomically:
11277  install_override_mode=555
11278  ;;
11279
11280interix[3-9]*)
11281  version_type=linux # correct to gnu/linux during the next big refactor
11282  need_lib_prefix=no
11283  need_version=no
11284  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11285  soname_spec='$libname$release$shared_ext$major'
11286  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11287  shlibpath_var=LD_LIBRARY_PATH
11288  shlibpath_overrides_runpath=no
11289  hardcode_into_libs=yes
11290  ;;
11291
11292irix5* | irix6* | nonstopux*)
11293  case $host_os in
11294    nonstopux*) version_type=nonstopux ;;
11295    *)
11296	if test yes = "$lt_cv_prog_gnu_ld"; then
11297		version_type=linux # correct to gnu/linux during the next big refactor
11298	else
11299		version_type=irix
11300	fi ;;
11301  esac
11302  need_lib_prefix=no
11303  need_version=no
11304  soname_spec='$libname$release$shared_ext$major'
11305  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11306  case $host_os in
11307  irix5* | nonstopux*)
11308    libsuff= shlibsuff=
11309    ;;
11310  *)
11311    case $LD in # libtool.m4 will add one of these switches to LD
11312    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11313      libsuff= shlibsuff= libmagic=32-bit;;
11314    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11315      libsuff=32 shlibsuff=N32 libmagic=N32;;
11316    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11317      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11318    *) libsuff= shlibsuff= libmagic=never-match;;
11319    esac
11320    ;;
11321  esac
11322  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11323  shlibpath_overrides_runpath=no
11324  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11325  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11326  hardcode_into_libs=yes
11327  ;;
11328
11329# No shared lib support for Linux oldld, aout, or coff.
11330linux*oldld* | linux*aout* | linux*coff*)
11331  dynamic_linker=no
11332  ;;
11333
11334linux*android*)
11335  version_type=none # Android doesn't support versioned libraries.
11336  need_lib_prefix=no
11337  need_version=no
11338  library_names_spec='$libname$release$shared_ext'
11339  soname_spec='$libname$release$shared_ext'
11340  finish_cmds=
11341  shlibpath_var=LD_LIBRARY_PATH
11342  shlibpath_overrides_runpath=yes
11343
11344  # This implies no fast_install, which is unacceptable.
11345  # Some rework will be needed to allow for fast_install
11346  # before this can be enabled.
11347  hardcode_into_libs=yes
11348
11349  dynamic_linker='Android linker'
11350  # Don't embed -rpath directories since the linker doesn't support them.
11351  hardcode_libdir_flag_spec='-L$libdir'
11352  ;;
11353
11354# This must be glibc/ELF.
11355linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11356  version_type=linux # correct to gnu/linux during the next big refactor
11357  need_lib_prefix=no
11358  need_version=no
11359  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11360  soname_spec='$libname$release$shared_ext$major'
11361  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11362  shlibpath_var=LD_LIBRARY_PATH
11363  shlibpath_overrides_runpath=no
11364
11365  # Some binutils ld are patched to set DT_RUNPATH
11366  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11367  $as_echo_n "(cached) " >&6
11368else
11369  lt_cv_shlibpath_overrides_runpath=no
11370    save_LDFLAGS=$LDFLAGS
11371    save_libdir=$libdir
11372    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11373	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11374    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375/* end confdefs.h.  */
11376
11377int
11378main ()
11379{
11380
11381  ;
11382  return 0;
11383}
11384_ACEOF
11385if ac_fn_c_try_link "$LINENO"; then :
11386  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11387  lt_cv_shlibpath_overrides_runpath=yes
11388fi
11389fi
11390rm -f core conftest.err conftest.$ac_objext \
11391    conftest$ac_exeext conftest.$ac_ext
11392    LDFLAGS=$save_LDFLAGS
11393    libdir=$save_libdir
11394
11395fi
11396
11397  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11398
11399  # This implies no fast_install, which is unacceptable.
11400  # Some rework will be needed to allow for fast_install
11401  # before this can be enabled.
11402  hardcode_into_libs=yes
11403
11404  # Ideally, we could use ldconfig to report *all* directores which are
11405  # searched for libraries, however this is still not possible.  Aside from not
11406  # being certain /sbin/ldconfig is available, command
11407  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11408  # even though it is searched at run-time.  Try to do the best guess by
11409  # appending ld.so.conf contents (and includes) to the search path.
11410  if test -f /etc/ld.so.conf; then
11411    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' ' '`
11412    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11413  fi
11414
11415  # We used to test for /lib/ld.so.1 and disable shared libraries on
11416  # powerpc, because MkLinux only supported shared libraries with the
11417  # GNU dynamic linker.  Since this was broken with cross compilers,
11418  # most powerpc-linux boxes support dynamic linking these days and
11419  # people can always --disable-shared, the test was removed, and we
11420  # assume the GNU/Linux dynamic linker is in use.
11421  dynamic_linker='GNU/Linux ld.so'
11422  ;;
11423
11424netbsdelf*-gnu)
11425  version_type=linux
11426  need_lib_prefix=no
11427  need_version=no
11428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11429  soname_spec='${libname}${release}${shared_ext}$major'
11430  shlibpath_var=LD_LIBRARY_PATH
11431  shlibpath_overrides_runpath=no
11432  hardcode_into_libs=yes
11433  dynamic_linker='NetBSD ld.elf_so'
11434  ;;
11435
11436netbsd*)
11437  version_type=sunos
11438  need_lib_prefix=no
11439  need_version=no
11440  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11441    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11442    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11443    dynamic_linker='NetBSD (a.out) ld.so'
11444  else
11445    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11446    soname_spec='$libname$release$shared_ext$major'
11447    dynamic_linker='NetBSD ld.elf_so'
11448  fi
11449  shlibpath_var=LD_LIBRARY_PATH
11450  shlibpath_overrides_runpath=yes
11451  hardcode_into_libs=yes
11452  ;;
11453
11454newsos6)
11455  version_type=linux # correct to gnu/linux during the next big refactor
11456  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11457  shlibpath_var=LD_LIBRARY_PATH
11458  shlibpath_overrides_runpath=yes
11459  ;;
11460
11461*nto* | *qnx*)
11462  version_type=qnx
11463  need_lib_prefix=no
11464  need_version=no
11465  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11466  soname_spec='$libname$release$shared_ext$major'
11467  shlibpath_var=LD_LIBRARY_PATH
11468  shlibpath_overrides_runpath=no
11469  hardcode_into_libs=yes
11470  dynamic_linker='ldqnx.so'
11471  ;;
11472
11473openbsd* | bitrig*)
11474  version_type=sunos
11475  sys_lib_dlsearch_path_spec=/usr/lib
11476  need_lib_prefix=no
11477  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11478    need_version=no
11479  else
11480    need_version=yes
11481  fi
11482  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11483  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11484  shlibpath_var=LD_LIBRARY_PATH
11485  shlibpath_overrides_runpath=yes
11486  ;;
11487
11488os2*)
11489  libname_spec='$name'
11490  version_type=windows
11491  shrext_cmds=.dll
11492  need_version=no
11493  need_lib_prefix=no
11494  # OS/2 can only load a DLL with a base name of 8 characters or less.
11495  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11496    v=$($ECHO $release$versuffix | tr -d .-);
11497    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11498    $ECHO $n$v`$shared_ext'
11499  library_names_spec='${libname}_dll.$libext'
11500  dynamic_linker='OS/2 ld.exe'
11501  shlibpath_var=BEGINLIBPATH
11502  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11503  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11504  postinstall_cmds='base_file=`basename \$file`~
11505    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11506    dldir=$destdir/`dirname \$dlpath`~
11507    test -d \$dldir || mkdir -p \$dldir~
11508    $install_prog $dir/$dlname \$dldir/$dlname~
11509    chmod a+x \$dldir/$dlname~
11510    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11511      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11512    fi'
11513  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11514    dlpath=$dir/\$dldll~
11515    $RM \$dlpath'
11516  ;;
11517
11518osf3* | osf4* | osf5*)
11519  version_type=osf
11520  need_lib_prefix=no
11521  need_version=no
11522  soname_spec='$libname$release$shared_ext$major'
11523  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11524  shlibpath_var=LD_LIBRARY_PATH
11525  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11526  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11527  ;;
11528
11529rdos*)
11530  dynamic_linker=no
11531  ;;
11532
11533solaris*)
11534  version_type=linux # correct to gnu/linux during the next big refactor
11535  need_lib_prefix=no
11536  need_version=no
11537  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11538  soname_spec='$libname$release$shared_ext$major'
11539  shlibpath_var=LD_LIBRARY_PATH
11540  shlibpath_overrides_runpath=yes
11541  hardcode_into_libs=yes
11542  # ldd complains unless libraries are executable
11543  postinstall_cmds='chmod +x $lib'
11544  ;;
11545
11546sunos4*)
11547  version_type=sunos
11548  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11549  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11550  shlibpath_var=LD_LIBRARY_PATH
11551  shlibpath_overrides_runpath=yes
11552  if test yes = "$with_gnu_ld"; then
11553    need_lib_prefix=no
11554  fi
11555  need_version=yes
11556  ;;
11557
11558sysv4 | sysv4.3*)
11559  version_type=linux # correct to gnu/linux during the next big refactor
11560  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11561  soname_spec='$libname$release$shared_ext$major'
11562  shlibpath_var=LD_LIBRARY_PATH
11563  case $host_vendor in
11564    sni)
11565      shlibpath_overrides_runpath=no
11566      need_lib_prefix=no
11567      runpath_var=LD_RUN_PATH
11568      ;;
11569    siemens)
11570      need_lib_prefix=no
11571      ;;
11572    motorola)
11573      need_lib_prefix=no
11574      need_version=no
11575      shlibpath_overrides_runpath=no
11576      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11577      ;;
11578  esac
11579  ;;
11580
11581sysv4*MP*)
11582  if test -d /usr/nec; then
11583    version_type=linux # correct to gnu/linux during the next big refactor
11584    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11585    soname_spec='$libname$shared_ext.$major'
11586    shlibpath_var=LD_LIBRARY_PATH
11587  fi
11588  ;;
11589
11590sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11591  version_type=sco
11592  need_lib_prefix=no
11593  need_version=no
11594  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11595  soname_spec='$libname$release$shared_ext$major'
11596  shlibpath_var=LD_LIBRARY_PATH
11597  shlibpath_overrides_runpath=yes
11598  hardcode_into_libs=yes
11599  if test yes = "$with_gnu_ld"; then
11600    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11601  else
11602    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11603    case $host_os in
11604      sco3.2v5*)
11605        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11606	;;
11607    esac
11608  fi
11609  sys_lib_dlsearch_path_spec='/usr/lib'
11610  ;;
11611
11612tpf*)
11613  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11614  version_type=linux # correct to gnu/linux during the next big refactor
11615  need_lib_prefix=no
11616  need_version=no
11617  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11618  shlibpath_var=LD_LIBRARY_PATH
11619  shlibpath_overrides_runpath=no
11620  hardcode_into_libs=yes
11621  ;;
11622
11623uts4*)
11624  version_type=linux # correct to gnu/linux during the next big refactor
11625  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11626  soname_spec='$libname$release$shared_ext$major'
11627  shlibpath_var=LD_LIBRARY_PATH
11628  ;;
11629
11630*)
11631  dynamic_linker=no
11632  ;;
11633esac
11634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11635$as_echo "$dynamic_linker" >&6; }
11636test no = "$dynamic_linker" && can_build_shared=no
11637
11638variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11639if test yes = "$GCC"; then
11640  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11641fi
11642
11643if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11644  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11645fi
11646
11647if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11648  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11649fi
11650
11651# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11652configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11653
11654# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11655func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11656
11657# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11658configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11757$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11758hardcode_action=
11759if test -n "$hardcode_libdir_flag_spec" ||
11760   test -n "$runpath_var" ||
11761   test yes = "$hardcode_automatic"; then
11762
11763  # We can hardcode non-existent directories.
11764  if test no != "$hardcode_direct" &&
11765     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11766     # have to relink, otherwise we might link with an installed library
11767     # when we should be linking with a yet-to-be-installed one
11768     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11769     test no != "$hardcode_minus_L"; then
11770    # Linking always hardcodes the temporary library directory.
11771    hardcode_action=relink
11772  else
11773    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11774    hardcode_action=immediate
11775  fi
11776else
11777  # We cannot hardcode anything, or else we can only hardcode existing
11778  # directories.
11779  hardcode_action=unsupported
11780fi
11781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11782$as_echo "$hardcode_action" >&6; }
11783
11784if test relink = "$hardcode_action" ||
11785   test yes = "$inherit_rpath"; then
11786  # Fast installation is not supported
11787  enable_fast_install=no
11788elif test yes = "$shlibpath_overrides_runpath" ||
11789     test no = "$enable_shared"; then
11790  # Fast installation is not necessary
11791  enable_fast_install=needless
11792fi
11793
11794
11795
11796
11797
11798
11799  if test yes != "$enable_dlopen"; then
11800  enable_dlopen=unknown
11801  enable_dlopen_self=unknown
11802  enable_dlopen_self_static=unknown
11803else
11804  lt_cv_dlopen=no
11805  lt_cv_dlopen_libs=
11806
11807  case $host_os in
11808  beos*)
11809    lt_cv_dlopen=load_add_on
11810    lt_cv_dlopen_libs=
11811    lt_cv_dlopen_self=yes
11812    ;;
11813
11814  mingw* | pw32* | cegcc*)
11815    lt_cv_dlopen=LoadLibrary
11816    lt_cv_dlopen_libs=
11817    ;;
11818
11819  cygwin*)
11820    lt_cv_dlopen=dlopen
11821    lt_cv_dlopen_libs=
11822    ;;
11823
11824  darwin*)
11825    # if libdl is installed we need to link against it
11826    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11827$as_echo_n "checking for dlopen in -ldl... " >&6; }
11828if ${ac_cv_lib_dl_dlopen+:} false; then :
11829  $as_echo_n "(cached) " >&6
11830else
11831  ac_check_lib_save_LIBS=$LIBS
11832LIBS="-ldl  $LIBS"
11833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834/* end confdefs.h.  */
11835
11836/* Override any GCC internal prototype to avoid an error.
11837   Use char because int might match the return type of a GCC
11838   builtin and then its argument prototype would still apply.  */
11839#ifdef __cplusplus
11840extern "C"
11841#endif
11842char dlopen ();
11843int
11844main ()
11845{
11846return dlopen ();
11847  ;
11848  return 0;
11849}
11850_ACEOF
11851if ac_fn_c_try_link "$LINENO"; then :
11852  ac_cv_lib_dl_dlopen=yes
11853else
11854  ac_cv_lib_dl_dlopen=no
11855fi
11856rm -f core conftest.err conftest.$ac_objext \
11857    conftest$ac_exeext conftest.$ac_ext
11858LIBS=$ac_check_lib_save_LIBS
11859fi
11860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11861$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11862if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11863  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11864else
11865
11866    lt_cv_dlopen=dyld
11867    lt_cv_dlopen_libs=
11868    lt_cv_dlopen_self=yes
11869
11870fi
11871
11872    ;;
11873
11874  tpf*)
11875    # Don't try to run any link tests for TPF.  We know it's impossible
11876    # because TPF is a cross-compiler, and we know how we open DSOs.
11877    lt_cv_dlopen=dlopen
11878    lt_cv_dlopen_libs=
11879    lt_cv_dlopen_self=no
11880    ;;
11881
11882  *)
11883    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11884if test "x$ac_cv_func_shl_load" = xyes; then :
11885  lt_cv_dlopen=shl_load
11886else
11887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11888$as_echo_n "checking for shl_load in -ldld... " >&6; }
11889if ${ac_cv_lib_dld_shl_load+:} false; then :
11890  $as_echo_n "(cached) " >&6
11891else
11892  ac_check_lib_save_LIBS=$LIBS
11893LIBS="-ldld  $LIBS"
11894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895/* end confdefs.h.  */
11896
11897/* Override any GCC internal prototype to avoid an error.
11898   Use char because int might match the return type of a GCC
11899   builtin and then its argument prototype would still apply.  */
11900#ifdef __cplusplus
11901extern "C"
11902#endif
11903char shl_load ();
11904int
11905main ()
11906{
11907return shl_load ();
11908  ;
11909  return 0;
11910}
11911_ACEOF
11912if ac_fn_c_try_link "$LINENO"; then :
11913  ac_cv_lib_dld_shl_load=yes
11914else
11915  ac_cv_lib_dld_shl_load=no
11916fi
11917rm -f core conftest.err conftest.$ac_objext \
11918    conftest$ac_exeext conftest.$ac_ext
11919LIBS=$ac_check_lib_save_LIBS
11920fi
11921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11922$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11923if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11924  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11925else
11926  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11927if test "x$ac_cv_func_dlopen" = xyes; then :
11928  lt_cv_dlopen=dlopen
11929else
11930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11931$as_echo_n "checking for dlopen in -ldl... " >&6; }
11932if ${ac_cv_lib_dl_dlopen+:} false; then :
11933  $as_echo_n "(cached) " >&6
11934else
11935  ac_check_lib_save_LIBS=$LIBS
11936LIBS="-ldl  $LIBS"
11937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938/* end confdefs.h.  */
11939
11940/* Override any GCC internal prototype to avoid an error.
11941   Use char because int might match the return type of a GCC
11942   builtin and then its argument prototype would still apply.  */
11943#ifdef __cplusplus
11944extern "C"
11945#endif
11946char dlopen ();
11947int
11948main ()
11949{
11950return dlopen ();
11951  ;
11952  return 0;
11953}
11954_ACEOF
11955if ac_fn_c_try_link "$LINENO"; then :
11956  ac_cv_lib_dl_dlopen=yes
11957else
11958  ac_cv_lib_dl_dlopen=no
11959fi
11960rm -f core conftest.err conftest.$ac_objext \
11961    conftest$ac_exeext conftest.$ac_ext
11962LIBS=$ac_check_lib_save_LIBS
11963fi
11964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11965$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11966if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11967  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11968else
11969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11970$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11971if ${ac_cv_lib_svld_dlopen+:} false; then :
11972  $as_echo_n "(cached) " >&6
11973else
11974  ac_check_lib_save_LIBS=$LIBS
11975LIBS="-lsvld  $LIBS"
11976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977/* end confdefs.h.  */
11978
11979/* Override any GCC internal prototype to avoid an error.
11980   Use char because int might match the return type of a GCC
11981   builtin and then its argument prototype would still apply.  */
11982#ifdef __cplusplus
11983extern "C"
11984#endif
11985char dlopen ();
11986int
11987main ()
11988{
11989return dlopen ();
11990  ;
11991  return 0;
11992}
11993_ACEOF
11994if ac_fn_c_try_link "$LINENO"; then :
11995  ac_cv_lib_svld_dlopen=yes
11996else
11997  ac_cv_lib_svld_dlopen=no
11998fi
11999rm -f core conftest.err conftest.$ac_objext \
12000    conftest$ac_exeext conftest.$ac_ext
12001LIBS=$ac_check_lib_save_LIBS
12002fi
12003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12004$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12005if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12006  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12007else
12008  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12009$as_echo_n "checking for dld_link in -ldld... " >&6; }
12010if ${ac_cv_lib_dld_dld_link+:} false; then :
12011  $as_echo_n "(cached) " >&6
12012else
12013  ac_check_lib_save_LIBS=$LIBS
12014LIBS="-ldld  $LIBS"
12015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016/* end confdefs.h.  */
12017
12018/* Override any GCC internal prototype to avoid an error.
12019   Use char because int might match the return type of a GCC
12020   builtin and then its argument prototype would still apply.  */
12021#ifdef __cplusplus
12022extern "C"
12023#endif
12024char dld_link ();
12025int
12026main ()
12027{
12028return dld_link ();
12029  ;
12030  return 0;
12031}
12032_ACEOF
12033if ac_fn_c_try_link "$LINENO"; then :
12034  ac_cv_lib_dld_dld_link=yes
12035else
12036  ac_cv_lib_dld_dld_link=no
12037fi
12038rm -f core conftest.err conftest.$ac_objext \
12039    conftest$ac_exeext conftest.$ac_ext
12040LIBS=$ac_check_lib_save_LIBS
12041fi
12042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12043$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12044if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12045  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12046fi
12047
12048
12049fi
12050
12051
12052fi
12053
12054
12055fi
12056
12057
12058fi
12059
12060
12061fi
12062
12063    ;;
12064  esac
12065
12066  if test no = "$lt_cv_dlopen"; then
12067    enable_dlopen=no
12068  else
12069    enable_dlopen=yes
12070  fi
12071
12072  case $lt_cv_dlopen in
12073  dlopen)
12074    save_CPPFLAGS=$CPPFLAGS
12075    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12076
12077    save_LDFLAGS=$LDFLAGS
12078    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12079
12080    save_LIBS=$LIBS
12081    LIBS="$lt_cv_dlopen_libs $LIBS"
12082
12083    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12084$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12085if ${lt_cv_dlopen_self+:} false; then :
12086  $as_echo_n "(cached) " >&6
12087else
12088  	  if test yes = "$cross_compiling"; then :
12089  lt_cv_dlopen_self=cross
12090else
12091  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12092  lt_status=$lt_dlunknown
12093  cat > conftest.$ac_ext <<_LT_EOF
12094#line $LINENO "configure"
12095#include "confdefs.h"
12096
12097#if HAVE_DLFCN_H
12098#include <dlfcn.h>
12099#endif
12100
12101#include <stdio.h>
12102
12103#ifdef RTLD_GLOBAL
12104#  define LT_DLGLOBAL		RTLD_GLOBAL
12105#else
12106#  ifdef DL_GLOBAL
12107#    define LT_DLGLOBAL		DL_GLOBAL
12108#  else
12109#    define LT_DLGLOBAL		0
12110#  endif
12111#endif
12112
12113/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12114   find out it does not work in some platform. */
12115#ifndef LT_DLLAZY_OR_NOW
12116#  ifdef RTLD_LAZY
12117#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12118#  else
12119#    ifdef DL_LAZY
12120#      define LT_DLLAZY_OR_NOW		DL_LAZY
12121#    else
12122#      ifdef RTLD_NOW
12123#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12124#      else
12125#        ifdef DL_NOW
12126#          define LT_DLLAZY_OR_NOW	DL_NOW
12127#        else
12128#          define LT_DLLAZY_OR_NOW	0
12129#        endif
12130#      endif
12131#    endif
12132#  endif
12133#endif
12134
12135/* When -fvisibility=hidden is used, assume the code has been annotated
12136   correspondingly for the symbols needed.  */
12137#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12138int fnord () __attribute__((visibility("default")));
12139#endif
12140
12141int fnord () { return 42; }
12142int main ()
12143{
12144  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12145  int status = $lt_dlunknown;
12146
12147  if (self)
12148    {
12149      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12150      else
12151        {
12152	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12153          else puts (dlerror ());
12154	}
12155      /* dlclose (self); */
12156    }
12157  else
12158    puts (dlerror ());
12159
12160  return status;
12161}
12162_LT_EOF
12163  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12164  (eval $ac_link) 2>&5
12165  ac_status=$?
12166  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12167  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12168    (./conftest; exit; ) >&5 2>/dev/null
12169    lt_status=$?
12170    case x$lt_status in
12171      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12172      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12173      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12174    esac
12175  else :
12176    # compilation failed
12177    lt_cv_dlopen_self=no
12178  fi
12179fi
12180rm -fr conftest*
12181
12182
12183fi
12184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12185$as_echo "$lt_cv_dlopen_self" >&6; }
12186
12187    if test yes = "$lt_cv_dlopen_self"; then
12188      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12189      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12190$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12191if ${lt_cv_dlopen_self_static+:} false; then :
12192  $as_echo_n "(cached) " >&6
12193else
12194  	  if test yes = "$cross_compiling"; then :
12195  lt_cv_dlopen_self_static=cross
12196else
12197  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12198  lt_status=$lt_dlunknown
12199  cat > conftest.$ac_ext <<_LT_EOF
12200#line $LINENO "configure"
12201#include "confdefs.h"
12202
12203#if HAVE_DLFCN_H
12204#include <dlfcn.h>
12205#endif
12206
12207#include <stdio.h>
12208
12209#ifdef RTLD_GLOBAL
12210#  define LT_DLGLOBAL		RTLD_GLOBAL
12211#else
12212#  ifdef DL_GLOBAL
12213#    define LT_DLGLOBAL		DL_GLOBAL
12214#  else
12215#    define LT_DLGLOBAL		0
12216#  endif
12217#endif
12218
12219/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12220   find out it does not work in some platform. */
12221#ifndef LT_DLLAZY_OR_NOW
12222#  ifdef RTLD_LAZY
12223#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12224#  else
12225#    ifdef DL_LAZY
12226#      define LT_DLLAZY_OR_NOW		DL_LAZY
12227#    else
12228#      ifdef RTLD_NOW
12229#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12230#      else
12231#        ifdef DL_NOW
12232#          define LT_DLLAZY_OR_NOW	DL_NOW
12233#        else
12234#          define LT_DLLAZY_OR_NOW	0
12235#        endif
12236#      endif
12237#    endif
12238#  endif
12239#endif
12240
12241/* When -fvisibility=hidden is used, assume the code has been annotated
12242   correspondingly for the symbols needed.  */
12243#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12244int fnord () __attribute__((visibility("default")));
12245#endif
12246
12247int fnord () { return 42; }
12248int main ()
12249{
12250  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12251  int status = $lt_dlunknown;
12252
12253  if (self)
12254    {
12255      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12256      else
12257        {
12258	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12259          else puts (dlerror ());
12260	}
12261      /* dlclose (self); */
12262    }
12263  else
12264    puts (dlerror ());
12265
12266  return status;
12267}
12268_LT_EOF
12269  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12270  (eval $ac_link) 2>&5
12271  ac_status=$?
12272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12273  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12274    (./conftest; exit; ) >&5 2>/dev/null
12275    lt_status=$?
12276    case x$lt_status in
12277      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12278      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12279      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12280    esac
12281  else :
12282    # compilation failed
12283    lt_cv_dlopen_self_static=no
12284  fi
12285fi
12286rm -fr conftest*
12287
12288
12289fi
12290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12291$as_echo "$lt_cv_dlopen_self_static" >&6; }
12292    fi
12293
12294    CPPFLAGS=$save_CPPFLAGS
12295    LDFLAGS=$save_LDFLAGS
12296    LIBS=$save_LIBS
12297    ;;
12298  esac
12299
12300  case $lt_cv_dlopen_self in
12301  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12302  *) enable_dlopen_self=unknown ;;
12303  esac
12304
12305  case $lt_cv_dlopen_self_static in
12306  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12307  *) enable_dlopen_self_static=unknown ;;
12308  esac
12309fi
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327striplib=
12328old_striplib=
12329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12330$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12331if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12332  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12333  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12335$as_echo "yes" >&6; }
12336else
12337# FIXME - insert some real tests, host_os isn't really good enough
12338  case $host_os in
12339  darwin*)
12340    if test -n "$STRIP"; then
12341      striplib="$STRIP -x"
12342      old_striplib="$STRIP -S"
12343      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12344$as_echo "yes" >&6; }
12345    else
12346      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347$as_echo "no" >&6; }
12348    fi
12349    ;;
12350  *)
12351    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352$as_echo "no" >&6; }
12353    ;;
12354  esac
12355fi
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368  # Report what library types will actually be built
12369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12370$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12372$as_echo "$can_build_shared" >&6; }
12373
12374  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12375$as_echo_n "checking whether to build shared libraries... " >&6; }
12376  test no = "$can_build_shared" && enable_shared=no
12377
12378  # On AIX, shared libraries and static libraries use the same namespace, and
12379  # are all built from PIC.
12380  case $host_os in
12381  aix3*)
12382    test yes = "$enable_shared" && enable_static=no
12383    if test -n "$RANLIB"; then
12384      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12385      postinstall_cmds='$RANLIB $lib'
12386    fi
12387    ;;
12388
12389  aix[4-9]*)
12390    if test ia64 != "$host_cpu"; then
12391      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12392      yes,aix,yes) ;;			# shared object as lib.so file only
12393      yes,svr4,*) ;;			# shared object as lib.so archive member only
12394      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12395      esac
12396    fi
12397    ;;
12398  esac
12399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12400$as_echo "$enable_shared" >&6; }
12401
12402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12403$as_echo_n "checking whether to build static libraries... " >&6; }
12404  # Make sure either enable_shared or enable_static is yes.
12405  test yes = "$enable_shared" || enable_static=yes
12406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12407$as_echo "$enable_static" >&6; }
12408
12409
12410
12411
12412fi
12413ac_ext=c
12414ac_cpp='$CPP $CPPFLAGS'
12415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12417ac_compiler_gnu=$ac_cv_c_compiler_gnu
12418
12419CC=$lt_save_CC
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435        ac_config_commands="$ac_config_commands libtool"
12436
12437
12438
12439
12440# Only expand once:
12441
12442
12443
12444# Require xorg-macros minimum of 1.15 for fop minimum version
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12457$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12458if ${ac_cv_prog_cc_c99+:} false; then :
12459  $as_echo_n "(cached) " >&6
12460else
12461  ac_cv_prog_cc_c99=no
12462ac_save_CC=$CC
12463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464/* end confdefs.h.  */
12465#include <stdarg.h>
12466#include <stdbool.h>
12467#include <stdlib.h>
12468#include <wchar.h>
12469#include <stdio.h>
12470
12471// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12472#define debug(...) fprintf (stderr, __VA_ARGS__)
12473#define showlist(...) puts (#__VA_ARGS__)
12474#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12475static void
12476test_varargs_macros (void)
12477{
12478  int x = 1234;
12479  int y = 5678;
12480  debug ("Flag");
12481  debug ("X = %d\n", x);
12482  showlist (The first, second, and third items.);
12483  report (x>y, "x is %d but y is %d", x, y);
12484}
12485
12486// Check long long types.
12487#define BIG64 18446744073709551615ull
12488#define BIG32 4294967295ul
12489#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12490#if !BIG_OK
12491  your preprocessor is broken;
12492#endif
12493#if BIG_OK
12494#else
12495  your preprocessor is broken;
12496#endif
12497static long long int bignum = -9223372036854775807LL;
12498static unsigned long long int ubignum = BIG64;
12499
12500struct incomplete_array
12501{
12502  int datasize;
12503  double data[];
12504};
12505
12506struct named_init {
12507  int number;
12508  const wchar_t *name;
12509  double average;
12510};
12511
12512typedef const char *ccp;
12513
12514static inline int
12515test_restrict (ccp restrict text)
12516{
12517  // See if C++-style comments work.
12518  // Iterate through items via the restricted pointer.
12519  // Also check for declarations in for loops.
12520  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12521    continue;
12522  return 0;
12523}
12524
12525// Check varargs and va_copy.
12526static void
12527test_varargs (const char *format, ...)
12528{
12529  va_list args;
12530  va_start (args, format);
12531  va_list args_copy;
12532  va_copy (args_copy, args);
12533
12534  const char *str;
12535  int number;
12536  float fnumber;
12537
12538  while (*format)
12539    {
12540      switch (*format++)
12541	{
12542	case 's': // string
12543	  str = va_arg (args_copy, const char *);
12544	  break;
12545	case 'd': // int
12546	  number = va_arg (args_copy, int);
12547	  break;
12548	case 'f': // float
12549	  fnumber = va_arg (args_copy, double);
12550	  break;
12551	default:
12552	  break;
12553	}
12554    }
12555  va_end (args_copy);
12556  va_end (args);
12557}
12558
12559int
12560main ()
12561{
12562
12563  // Check bool.
12564  _Bool success = false;
12565
12566  // Check restrict.
12567  if (test_restrict ("String literal") == 0)
12568    success = true;
12569  char *restrict newvar = "Another string";
12570
12571  // Check varargs.
12572  test_varargs ("s, d' f .", "string", 65, 34.234);
12573  test_varargs_macros ();
12574
12575  // Check flexible array members.
12576  struct incomplete_array *ia =
12577    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12578  ia->datasize = 10;
12579  for (int i = 0; i < ia->datasize; ++i)
12580    ia->data[i] = i * 1.234;
12581
12582  // Check named initializers.
12583  struct named_init ni = {
12584    .number = 34,
12585    .name = L"Test wide string",
12586    .average = 543.34343,
12587  };
12588
12589  ni.number = 58;
12590
12591  int dynamic_array[ni.number];
12592  dynamic_array[ni.number - 1] = 543;
12593
12594  // work around unused variable warnings
12595  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12596	  || dynamic_array[ni.number - 1] != 543);
12597
12598  ;
12599  return 0;
12600}
12601_ACEOF
12602for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12603do
12604  CC="$ac_save_CC $ac_arg"
12605  if ac_fn_c_try_compile "$LINENO"; then :
12606  ac_cv_prog_cc_c99=$ac_arg
12607fi
12608rm -f core conftest.err conftest.$ac_objext
12609  test "x$ac_cv_prog_cc_c99" != "xno" && break
12610done
12611rm -f conftest.$ac_ext
12612CC=$ac_save_CC
12613
12614fi
12615# AC_CACHE_VAL
12616case "x$ac_cv_prog_cc_c99" in
12617  x)
12618    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12619$as_echo "none needed" >&6; } ;;
12620  xno)
12621    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12622$as_echo "unsupported" >&6; } ;;
12623  *)
12624    CC="$CC $ac_cv_prog_cc_c99"
12625    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12626$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12627esac
12628if test "x$ac_cv_prog_cc_c99" != xno; then :
12629
12630fi
12631
12632
12633
12634
12635
12636
12637ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12638if test "x$ac_cv_have_decl___clang__" = xyes; then :
12639  CLANGCC="yes"
12640else
12641  CLANGCC="no"
12642fi
12643
12644ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12645if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12646  INTELCC="yes"
12647else
12648  INTELCC="no"
12649fi
12650
12651ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12652if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12653  SUNCC="yes"
12654else
12655  SUNCC="no"
12656fi
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12667	if test -n "$ac_tool_prefix"; then
12668  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12669set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12671$as_echo_n "checking for $ac_word... " >&6; }
12672if ${ac_cv_path_PKG_CONFIG+:} false; then :
12673  $as_echo_n "(cached) " >&6
12674else
12675  case $PKG_CONFIG in
12676  [\\/]* | ?:[\\/]*)
12677  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12678  ;;
12679  *)
12680  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12681for as_dir in $PATH
12682do
12683  IFS=$as_save_IFS
12684  test -z "$as_dir" && as_dir=.
12685    for ac_exec_ext in '' $ac_executable_extensions; do
12686  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12687    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12689    break 2
12690  fi
12691done
12692  done
12693IFS=$as_save_IFS
12694
12695  ;;
12696esac
12697fi
12698PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12699if test -n "$PKG_CONFIG"; then
12700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12701$as_echo "$PKG_CONFIG" >&6; }
12702else
12703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704$as_echo "no" >&6; }
12705fi
12706
12707
12708fi
12709if test -z "$ac_cv_path_PKG_CONFIG"; then
12710  ac_pt_PKG_CONFIG=$PKG_CONFIG
12711  # Extract the first word of "pkg-config", so it can be a program name with args.
12712set dummy pkg-config; ac_word=$2
12713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12714$as_echo_n "checking for $ac_word... " >&6; }
12715if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12716  $as_echo_n "(cached) " >&6
12717else
12718  case $ac_pt_PKG_CONFIG in
12719  [\\/]* | ?:[\\/]*)
12720  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12721  ;;
12722  *)
12723  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724for as_dir in $PATH
12725do
12726  IFS=$as_save_IFS
12727  test -z "$as_dir" && as_dir=.
12728    for ac_exec_ext in '' $ac_executable_extensions; do
12729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12730    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12732    break 2
12733  fi
12734done
12735  done
12736IFS=$as_save_IFS
12737
12738  ;;
12739esac
12740fi
12741ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12742if test -n "$ac_pt_PKG_CONFIG"; then
12743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12744$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12745else
12746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12747$as_echo "no" >&6; }
12748fi
12749
12750  if test "x$ac_pt_PKG_CONFIG" = x; then
12751    PKG_CONFIG=""
12752  else
12753    case $cross_compiling:$ac_tool_warned in
12754yes:)
12755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12757ac_tool_warned=yes ;;
12758esac
12759    PKG_CONFIG=$ac_pt_PKG_CONFIG
12760  fi
12761else
12762  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12763fi
12764
12765fi
12766if test -n "$PKG_CONFIG"; then
12767	_pkg_min_version=0.9.0
12768	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12769$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12770	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12771		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12772$as_echo "yes" >&6; }
12773	else
12774		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775$as_echo "no" >&6; }
12776		PKG_CONFIG=""
12777	fi
12778fi
12779
12780
12781
12782
12783
12784# Check whether --enable-selective-werror was given.
12785if test "${enable_selective_werror+set}" = set; then :
12786  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12787else
12788  SELECTIVE_WERROR=yes
12789fi
12790
12791
12792
12793
12794
12795# -v is too short to test reliably with XORG_TESTSET_CFLAG
12796if test "x$SUNCC" = "xyes"; then
12797    BASE_CFLAGS="-v"
12798else
12799    BASE_CFLAGS=""
12800fi
12801
12802# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816xorg_testset_save_CFLAGS="$CFLAGS"
12817
12818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12819	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12821$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12822if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12823  $as_echo_n "(cached) " >&6
12824else
12825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826/* end confdefs.h.  */
12827int i;
12828_ACEOF
12829if ac_fn_c_try_compile "$LINENO"; then :
12830  xorg_cv_cc_flag_unknown_warning_option=yes
12831else
12832  xorg_cv_cc_flag_unknown_warning_option=no
12833fi
12834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12835fi
12836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12837$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12838	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12839	CFLAGS="$xorg_testset_save_CFLAGS"
12840fi
12841
12842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12843	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12844		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12845	fi
12846	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12847	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12848$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12849if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12850  $as_echo_n "(cached) " >&6
12851else
12852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853/* end confdefs.h.  */
12854int i;
12855_ACEOF
12856if ac_fn_c_try_compile "$LINENO"; then :
12857  xorg_cv_cc_flag_unused_command_line_argument=yes
12858else
12859  xorg_cv_cc_flag_unused_command_line_argument=no
12860fi
12861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862fi
12863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12864$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12865	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12866	CFLAGS="$xorg_testset_save_CFLAGS"
12867fi
12868
12869found="no"
12870
12871	if test $found = "no" ; then
12872		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12873			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12874		fi
12875
12876		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12877			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12878		fi
12879
12880		CFLAGS="$CFLAGS -Wall"
12881
12882		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12883$as_echo_n "checking if $CC supports -Wall... " >&6; }
12884		cacheid=xorg_cv_cc_flag__Wall
12885		if eval \${$cacheid+:} false; then :
12886  $as_echo_n "(cached) " >&6
12887else
12888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889/* end confdefs.h.  */
12890int i;
12891int
12892main ()
12893{
12894
12895  ;
12896  return 0;
12897}
12898_ACEOF
12899if ac_fn_c_try_link "$LINENO"; then :
12900  eval $cacheid=yes
12901else
12902  eval $cacheid=no
12903fi
12904rm -f core conftest.err conftest.$ac_objext \
12905    conftest$ac_exeext conftest.$ac_ext
12906fi
12907
12908
12909		CFLAGS="$xorg_testset_save_CFLAGS"
12910
12911		eval supported=\$$cacheid
12912		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12913$as_echo "$supported" >&6; }
12914		if test "$supported" = "yes" ; then
12915			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12916			found="yes"
12917		fi
12918	fi
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934xorg_testset_save_CFLAGS="$CFLAGS"
12935
12936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12937	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12938	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12939$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12940if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12941  $as_echo_n "(cached) " >&6
12942else
12943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944/* end confdefs.h.  */
12945int i;
12946_ACEOF
12947if ac_fn_c_try_compile "$LINENO"; then :
12948  xorg_cv_cc_flag_unknown_warning_option=yes
12949else
12950  xorg_cv_cc_flag_unknown_warning_option=no
12951fi
12952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12953fi
12954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12955$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12956	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12957	CFLAGS="$xorg_testset_save_CFLAGS"
12958fi
12959
12960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12961	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12962		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12963	fi
12964	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12965	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12966$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12967if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12968  $as_echo_n "(cached) " >&6
12969else
12970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971/* end confdefs.h.  */
12972int i;
12973_ACEOF
12974if ac_fn_c_try_compile "$LINENO"; then :
12975  xorg_cv_cc_flag_unused_command_line_argument=yes
12976else
12977  xorg_cv_cc_flag_unused_command_line_argument=no
12978fi
12979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12980fi
12981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12982$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12983	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12984	CFLAGS="$xorg_testset_save_CFLAGS"
12985fi
12986
12987found="no"
12988
12989	if test $found = "no" ; then
12990		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12991			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12992		fi
12993
12994		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12995			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12996		fi
12997
12998		CFLAGS="$CFLAGS -Wpointer-arith"
12999
13000		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13001$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
13002		cacheid=xorg_cv_cc_flag__Wpointer_arith
13003		if eval \${$cacheid+:} false; then :
13004  $as_echo_n "(cached) " >&6
13005else
13006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007/* end confdefs.h.  */
13008int i;
13009int
13010main ()
13011{
13012
13013  ;
13014  return 0;
13015}
13016_ACEOF
13017if ac_fn_c_try_link "$LINENO"; then :
13018  eval $cacheid=yes
13019else
13020  eval $cacheid=no
13021fi
13022rm -f core conftest.err conftest.$ac_objext \
13023    conftest$ac_exeext conftest.$ac_ext
13024fi
13025
13026
13027		CFLAGS="$xorg_testset_save_CFLAGS"
13028
13029		eval supported=\$$cacheid
13030		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13031$as_echo "$supported" >&6; }
13032		if test "$supported" = "yes" ; then
13033			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13034			found="yes"
13035		fi
13036	fi
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052xorg_testset_save_CFLAGS="$CFLAGS"
13053
13054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13055	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13056	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13057$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13058if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13059  $as_echo_n "(cached) " >&6
13060else
13061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062/* end confdefs.h.  */
13063int i;
13064_ACEOF
13065if ac_fn_c_try_compile "$LINENO"; then :
13066  xorg_cv_cc_flag_unknown_warning_option=yes
13067else
13068  xorg_cv_cc_flag_unknown_warning_option=no
13069fi
13070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13071fi
13072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13073$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13074	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13075	CFLAGS="$xorg_testset_save_CFLAGS"
13076fi
13077
13078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13079	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13080		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13081	fi
13082	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13083	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13084$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13085if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13086  $as_echo_n "(cached) " >&6
13087else
13088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089/* end confdefs.h.  */
13090int i;
13091_ACEOF
13092if ac_fn_c_try_compile "$LINENO"; then :
13093  xorg_cv_cc_flag_unused_command_line_argument=yes
13094else
13095  xorg_cv_cc_flag_unused_command_line_argument=no
13096fi
13097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098fi
13099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13100$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13101	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13102	CFLAGS="$xorg_testset_save_CFLAGS"
13103fi
13104
13105found="no"
13106
13107	if test $found = "no" ; then
13108		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13109			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13110		fi
13111
13112		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13113			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13114		fi
13115
13116		CFLAGS="$CFLAGS -Wmissing-declarations"
13117
13118		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13119$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
13120		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13121		if eval \${$cacheid+:} false; then :
13122  $as_echo_n "(cached) " >&6
13123else
13124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13125/* end confdefs.h.  */
13126int i;
13127int
13128main ()
13129{
13130
13131  ;
13132  return 0;
13133}
13134_ACEOF
13135if ac_fn_c_try_link "$LINENO"; then :
13136  eval $cacheid=yes
13137else
13138  eval $cacheid=no
13139fi
13140rm -f core conftest.err conftest.$ac_objext \
13141    conftest$ac_exeext conftest.$ac_ext
13142fi
13143
13144
13145		CFLAGS="$xorg_testset_save_CFLAGS"
13146
13147		eval supported=\$$cacheid
13148		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13149$as_echo "$supported" >&6; }
13150		if test "$supported" = "yes" ; then
13151			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13152			found="yes"
13153		fi
13154	fi
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170xorg_testset_save_CFLAGS="$CFLAGS"
13171
13172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13173	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13174	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13175$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13176if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13177  $as_echo_n "(cached) " >&6
13178else
13179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13180/* end confdefs.h.  */
13181int i;
13182_ACEOF
13183if ac_fn_c_try_compile "$LINENO"; then :
13184  xorg_cv_cc_flag_unknown_warning_option=yes
13185else
13186  xorg_cv_cc_flag_unknown_warning_option=no
13187fi
13188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13189fi
13190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13191$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13192	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13193	CFLAGS="$xorg_testset_save_CFLAGS"
13194fi
13195
13196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13197	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13198		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13199	fi
13200	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13201	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13202$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13203if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13204  $as_echo_n "(cached) " >&6
13205else
13206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207/* end confdefs.h.  */
13208int i;
13209_ACEOF
13210if ac_fn_c_try_compile "$LINENO"; then :
13211  xorg_cv_cc_flag_unused_command_line_argument=yes
13212else
13213  xorg_cv_cc_flag_unused_command_line_argument=no
13214fi
13215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13216fi
13217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13218$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13219	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13220	CFLAGS="$xorg_testset_save_CFLAGS"
13221fi
13222
13223found="no"
13224
13225	if test $found = "no" ; then
13226		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13227			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13228		fi
13229
13230		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13231			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13232		fi
13233
13234		CFLAGS="$CFLAGS -Wformat=2"
13235
13236		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13237$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
13238		cacheid=xorg_cv_cc_flag__Wformat_2
13239		if eval \${$cacheid+:} false; then :
13240  $as_echo_n "(cached) " >&6
13241else
13242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243/* end confdefs.h.  */
13244int i;
13245int
13246main ()
13247{
13248
13249  ;
13250  return 0;
13251}
13252_ACEOF
13253if ac_fn_c_try_link "$LINENO"; then :
13254  eval $cacheid=yes
13255else
13256  eval $cacheid=no
13257fi
13258rm -f core conftest.err conftest.$ac_objext \
13259    conftest$ac_exeext conftest.$ac_ext
13260fi
13261
13262
13263		CFLAGS="$xorg_testset_save_CFLAGS"
13264
13265		eval supported=\$$cacheid
13266		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13267$as_echo "$supported" >&6; }
13268		if test "$supported" = "yes" ; then
13269			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13270			found="yes"
13271		fi
13272	fi
13273
13274	if test $found = "no" ; then
13275		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13276			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13277		fi
13278
13279		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13280			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13281		fi
13282
13283		CFLAGS="$CFLAGS -Wformat"
13284
13285		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13286$as_echo_n "checking if $CC supports -Wformat... " >&6; }
13287		cacheid=xorg_cv_cc_flag__Wformat
13288		if eval \${$cacheid+:} false; then :
13289  $as_echo_n "(cached) " >&6
13290else
13291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292/* end confdefs.h.  */
13293int i;
13294int
13295main ()
13296{
13297
13298  ;
13299  return 0;
13300}
13301_ACEOF
13302if ac_fn_c_try_link "$LINENO"; then :
13303  eval $cacheid=yes
13304else
13305  eval $cacheid=no
13306fi
13307rm -f core conftest.err conftest.$ac_objext \
13308    conftest$ac_exeext conftest.$ac_ext
13309fi
13310
13311
13312		CFLAGS="$xorg_testset_save_CFLAGS"
13313
13314		eval supported=\$$cacheid
13315		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13316$as_echo "$supported" >&6; }
13317		if test "$supported" = "yes" ; then
13318			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13319			found="yes"
13320		fi
13321	fi
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339xorg_testset_save_CFLAGS="$CFLAGS"
13340
13341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13342	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13344$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13345if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13346  $as_echo_n "(cached) " >&6
13347else
13348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349/* end confdefs.h.  */
13350int i;
13351_ACEOF
13352if ac_fn_c_try_compile "$LINENO"; then :
13353  xorg_cv_cc_flag_unknown_warning_option=yes
13354else
13355  xorg_cv_cc_flag_unknown_warning_option=no
13356fi
13357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13358fi
13359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13360$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13361	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13362	CFLAGS="$xorg_testset_save_CFLAGS"
13363fi
13364
13365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13366	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13367		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13368	fi
13369	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13370	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13371$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13372if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13373  $as_echo_n "(cached) " >&6
13374else
13375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13376/* end confdefs.h.  */
13377int i;
13378_ACEOF
13379if ac_fn_c_try_compile "$LINENO"; then :
13380  xorg_cv_cc_flag_unused_command_line_argument=yes
13381else
13382  xorg_cv_cc_flag_unused_command_line_argument=no
13383fi
13384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385fi
13386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13387$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13388	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13389	CFLAGS="$xorg_testset_save_CFLAGS"
13390fi
13391
13392found="no"
13393
13394	if test $found = "no" ; then
13395		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13397		fi
13398
13399		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13401		fi
13402
13403		CFLAGS="$CFLAGS -Wstrict-prototypes"
13404
13405		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13406$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13407		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13408		if eval \${$cacheid+:} false; then :
13409  $as_echo_n "(cached) " >&6
13410else
13411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412/* end confdefs.h.  */
13413int i;
13414int
13415main ()
13416{
13417
13418  ;
13419  return 0;
13420}
13421_ACEOF
13422if ac_fn_c_try_link "$LINENO"; then :
13423  eval $cacheid=yes
13424else
13425  eval $cacheid=no
13426fi
13427rm -f core conftest.err conftest.$ac_objext \
13428    conftest$ac_exeext conftest.$ac_ext
13429fi
13430
13431
13432		CFLAGS="$xorg_testset_save_CFLAGS"
13433
13434		eval supported=\$$cacheid
13435		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13436$as_echo "$supported" >&6; }
13437		if test "$supported" = "yes" ; then
13438			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13439			found="yes"
13440		fi
13441	fi
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457xorg_testset_save_CFLAGS="$CFLAGS"
13458
13459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13460	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13461	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13462$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13463if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13464  $as_echo_n "(cached) " >&6
13465else
13466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467/* end confdefs.h.  */
13468int i;
13469_ACEOF
13470if ac_fn_c_try_compile "$LINENO"; then :
13471  xorg_cv_cc_flag_unknown_warning_option=yes
13472else
13473  xorg_cv_cc_flag_unknown_warning_option=no
13474fi
13475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13476fi
13477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13478$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13479	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13480	CFLAGS="$xorg_testset_save_CFLAGS"
13481fi
13482
13483if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13484	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13485		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13486	fi
13487	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13488	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13489$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13490if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13491  $as_echo_n "(cached) " >&6
13492else
13493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494/* end confdefs.h.  */
13495int i;
13496_ACEOF
13497if ac_fn_c_try_compile "$LINENO"; then :
13498  xorg_cv_cc_flag_unused_command_line_argument=yes
13499else
13500  xorg_cv_cc_flag_unused_command_line_argument=no
13501fi
13502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13503fi
13504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13505$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13506	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13507	CFLAGS="$xorg_testset_save_CFLAGS"
13508fi
13509
13510found="no"
13511
13512	if test $found = "no" ; then
13513		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13514			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13515		fi
13516
13517		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13518			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13519		fi
13520
13521		CFLAGS="$CFLAGS -Wmissing-prototypes"
13522
13523		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13524$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13525		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13526		if eval \${$cacheid+:} false; then :
13527  $as_echo_n "(cached) " >&6
13528else
13529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530/* end confdefs.h.  */
13531int i;
13532int
13533main ()
13534{
13535
13536  ;
13537  return 0;
13538}
13539_ACEOF
13540if ac_fn_c_try_link "$LINENO"; then :
13541  eval $cacheid=yes
13542else
13543  eval $cacheid=no
13544fi
13545rm -f core conftest.err conftest.$ac_objext \
13546    conftest$ac_exeext conftest.$ac_ext
13547fi
13548
13549
13550		CFLAGS="$xorg_testset_save_CFLAGS"
13551
13552		eval supported=\$$cacheid
13553		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13554$as_echo "$supported" >&6; }
13555		if test "$supported" = "yes" ; then
13556			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13557			found="yes"
13558		fi
13559	fi
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575xorg_testset_save_CFLAGS="$CFLAGS"
13576
13577if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13578	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13579	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13580$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13581if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13582  $as_echo_n "(cached) " >&6
13583else
13584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585/* end confdefs.h.  */
13586int i;
13587_ACEOF
13588if ac_fn_c_try_compile "$LINENO"; then :
13589  xorg_cv_cc_flag_unknown_warning_option=yes
13590else
13591  xorg_cv_cc_flag_unknown_warning_option=no
13592fi
13593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13594fi
13595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13596$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13597	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13598	CFLAGS="$xorg_testset_save_CFLAGS"
13599fi
13600
13601if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13602	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13603		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13604	fi
13605	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13606	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13607$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13608if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13609  $as_echo_n "(cached) " >&6
13610else
13611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13612/* end confdefs.h.  */
13613int i;
13614_ACEOF
13615if ac_fn_c_try_compile "$LINENO"; then :
13616  xorg_cv_cc_flag_unused_command_line_argument=yes
13617else
13618  xorg_cv_cc_flag_unused_command_line_argument=no
13619fi
13620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13621fi
13622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13623$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13624	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13625	CFLAGS="$xorg_testset_save_CFLAGS"
13626fi
13627
13628found="no"
13629
13630	if test $found = "no" ; then
13631		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13632			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13633		fi
13634
13635		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13636			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13637		fi
13638
13639		CFLAGS="$CFLAGS -Wnested-externs"
13640
13641		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13642$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13643		cacheid=xorg_cv_cc_flag__Wnested_externs
13644		if eval \${$cacheid+:} false; then :
13645  $as_echo_n "(cached) " >&6
13646else
13647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648/* end confdefs.h.  */
13649int i;
13650int
13651main ()
13652{
13653
13654  ;
13655  return 0;
13656}
13657_ACEOF
13658if ac_fn_c_try_link "$LINENO"; then :
13659  eval $cacheid=yes
13660else
13661  eval $cacheid=no
13662fi
13663rm -f core conftest.err conftest.$ac_objext \
13664    conftest$ac_exeext conftest.$ac_ext
13665fi
13666
13667
13668		CFLAGS="$xorg_testset_save_CFLAGS"
13669
13670		eval supported=\$$cacheid
13671		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13672$as_echo "$supported" >&6; }
13673		if test "$supported" = "yes" ; then
13674			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13675			found="yes"
13676		fi
13677	fi
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693xorg_testset_save_CFLAGS="$CFLAGS"
13694
13695if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13696	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13697	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13698$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13699if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13700  $as_echo_n "(cached) " >&6
13701else
13702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703/* end confdefs.h.  */
13704int i;
13705_ACEOF
13706if ac_fn_c_try_compile "$LINENO"; then :
13707  xorg_cv_cc_flag_unknown_warning_option=yes
13708else
13709  xorg_cv_cc_flag_unknown_warning_option=no
13710fi
13711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13712fi
13713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13714$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13715	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13716	CFLAGS="$xorg_testset_save_CFLAGS"
13717fi
13718
13719if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13720	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13721		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13722	fi
13723	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13724	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13725$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13726if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13727  $as_echo_n "(cached) " >&6
13728else
13729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730/* end confdefs.h.  */
13731int i;
13732_ACEOF
13733if ac_fn_c_try_compile "$LINENO"; then :
13734  xorg_cv_cc_flag_unused_command_line_argument=yes
13735else
13736  xorg_cv_cc_flag_unused_command_line_argument=no
13737fi
13738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13739fi
13740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13741$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13742	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13743	CFLAGS="$xorg_testset_save_CFLAGS"
13744fi
13745
13746found="no"
13747
13748	if test $found = "no" ; then
13749		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13750			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13751		fi
13752
13753		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13754			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13755		fi
13756
13757		CFLAGS="$CFLAGS -Wbad-function-cast"
13758
13759		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13760$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13761		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13762		if eval \${$cacheid+:} false; then :
13763  $as_echo_n "(cached) " >&6
13764else
13765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766/* end confdefs.h.  */
13767int i;
13768int
13769main ()
13770{
13771
13772  ;
13773  return 0;
13774}
13775_ACEOF
13776if ac_fn_c_try_link "$LINENO"; then :
13777  eval $cacheid=yes
13778else
13779  eval $cacheid=no
13780fi
13781rm -f core conftest.err conftest.$ac_objext \
13782    conftest$ac_exeext conftest.$ac_ext
13783fi
13784
13785
13786		CFLAGS="$xorg_testset_save_CFLAGS"
13787
13788		eval supported=\$$cacheid
13789		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13790$as_echo "$supported" >&6; }
13791		if test "$supported" = "yes" ; then
13792			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13793			found="yes"
13794		fi
13795	fi
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811xorg_testset_save_CFLAGS="$CFLAGS"
13812
13813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13814	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13815	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13816$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13817if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13818  $as_echo_n "(cached) " >&6
13819else
13820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13821/* end confdefs.h.  */
13822int i;
13823_ACEOF
13824if ac_fn_c_try_compile "$LINENO"; then :
13825  xorg_cv_cc_flag_unknown_warning_option=yes
13826else
13827  xorg_cv_cc_flag_unknown_warning_option=no
13828fi
13829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13830fi
13831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13832$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13833	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13834	CFLAGS="$xorg_testset_save_CFLAGS"
13835fi
13836
13837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13838	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13839		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13840	fi
13841	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13843$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13844if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13845  $as_echo_n "(cached) " >&6
13846else
13847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13848/* end confdefs.h.  */
13849int i;
13850_ACEOF
13851if ac_fn_c_try_compile "$LINENO"; then :
13852  xorg_cv_cc_flag_unused_command_line_argument=yes
13853else
13854  xorg_cv_cc_flag_unused_command_line_argument=no
13855fi
13856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13857fi
13858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13859$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13860	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13861	CFLAGS="$xorg_testset_save_CFLAGS"
13862fi
13863
13864found="no"
13865
13866	if test $found = "no" ; then
13867		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13868			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13869		fi
13870
13871		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13872			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13873		fi
13874
13875		CFLAGS="$CFLAGS -Wold-style-definition"
13876
13877		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13878$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13879		cacheid=xorg_cv_cc_flag__Wold_style_definition
13880		if eval \${$cacheid+:} false; then :
13881  $as_echo_n "(cached) " >&6
13882else
13883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13884/* end confdefs.h.  */
13885int i;
13886int
13887main ()
13888{
13889
13890  ;
13891  return 0;
13892}
13893_ACEOF
13894if ac_fn_c_try_link "$LINENO"; then :
13895  eval $cacheid=yes
13896else
13897  eval $cacheid=no
13898fi
13899rm -f core conftest.err conftest.$ac_objext \
13900    conftest$ac_exeext conftest.$ac_ext
13901fi
13902
13903
13904		CFLAGS="$xorg_testset_save_CFLAGS"
13905
13906		eval supported=\$$cacheid
13907		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13908$as_echo "$supported" >&6; }
13909		if test "$supported" = "yes" ; then
13910			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13911			found="yes"
13912		fi
13913	fi
13914
13915	if test $found = "no" ; then
13916		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13917			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13918		fi
13919
13920		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13921			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13922		fi
13923
13924		CFLAGS="$CFLAGS -fd"
13925
13926		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13927$as_echo_n "checking if $CC supports -fd... " >&6; }
13928		cacheid=xorg_cv_cc_flag__fd
13929		if eval \${$cacheid+:} false; then :
13930  $as_echo_n "(cached) " >&6
13931else
13932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933/* end confdefs.h.  */
13934int i;
13935int
13936main ()
13937{
13938
13939  ;
13940  return 0;
13941}
13942_ACEOF
13943if ac_fn_c_try_link "$LINENO"; then :
13944  eval $cacheid=yes
13945else
13946  eval $cacheid=no
13947fi
13948rm -f core conftest.err conftest.$ac_objext \
13949    conftest$ac_exeext conftest.$ac_ext
13950fi
13951
13952
13953		CFLAGS="$xorg_testset_save_CFLAGS"
13954
13955		eval supported=\$$cacheid
13956		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13957$as_echo "$supported" >&6; }
13958		if test "$supported" = "yes" ; then
13959			BASE_CFLAGS="$BASE_CFLAGS -fd"
13960			found="yes"
13961		fi
13962	fi
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978xorg_testset_save_CFLAGS="$CFLAGS"
13979
13980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13981	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13982	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13983$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13984if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13985  $as_echo_n "(cached) " >&6
13986else
13987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988/* end confdefs.h.  */
13989int i;
13990_ACEOF
13991if ac_fn_c_try_compile "$LINENO"; then :
13992  xorg_cv_cc_flag_unknown_warning_option=yes
13993else
13994  xorg_cv_cc_flag_unknown_warning_option=no
13995fi
13996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997fi
13998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13999$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14000	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14001	CFLAGS="$xorg_testset_save_CFLAGS"
14002fi
14003
14004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14005	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14006		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14007	fi
14008	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14009	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14010$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14011if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14012  $as_echo_n "(cached) " >&6
14013else
14014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14015/* end confdefs.h.  */
14016int i;
14017_ACEOF
14018if ac_fn_c_try_compile "$LINENO"; then :
14019  xorg_cv_cc_flag_unused_command_line_argument=yes
14020else
14021  xorg_cv_cc_flag_unused_command_line_argument=no
14022fi
14023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14024fi
14025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14026$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14027	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14028	CFLAGS="$xorg_testset_save_CFLAGS"
14029fi
14030
14031found="no"
14032
14033	if test $found = "no" ; then
14034		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14035			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14036		fi
14037
14038		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14039			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14040		fi
14041
14042		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14043
14044		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14045$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14046		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14047		if eval \${$cacheid+:} false; then :
14048  $as_echo_n "(cached) " >&6
14049else
14050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14051/* end confdefs.h.  */
14052int i;
14053int
14054main ()
14055{
14056
14057  ;
14058  return 0;
14059}
14060_ACEOF
14061if ac_fn_c_try_link "$LINENO"; then :
14062  eval $cacheid=yes
14063else
14064  eval $cacheid=no
14065fi
14066rm -f core conftest.err conftest.$ac_objext \
14067    conftest$ac_exeext conftest.$ac_ext
14068fi
14069
14070
14071		CFLAGS="$xorg_testset_save_CFLAGS"
14072
14073		eval supported=\$$cacheid
14074		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14075$as_echo "$supported" >&6; }
14076		if test "$supported" = "yes" ; then
14077			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14078			found="yes"
14079		fi
14080	fi
14081
14082
14083
14084
14085
14086# This chunk adds additional warnings that could catch undesired effects.
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100xorg_testset_save_CFLAGS="$CFLAGS"
14101
14102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14103	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14104	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14105$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14106if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14107  $as_echo_n "(cached) " >&6
14108else
14109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14110/* end confdefs.h.  */
14111int i;
14112_ACEOF
14113if ac_fn_c_try_compile "$LINENO"; then :
14114  xorg_cv_cc_flag_unknown_warning_option=yes
14115else
14116  xorg_cv_cc_flag_unknown_warning_option=no
14117fi
14118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14119fi
14120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14121$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14122	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14123	CFLAGS="$xorg_testset_save_CFLAGS"
14124fi
14125
14126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14127	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14128		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14129	fi
14130	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14131	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14132$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14133if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14134  $as_echo_n "(cached) " >&6
14135else
14136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14137/* end confdefs.h.  */
14138int i;
14139_ACEOF
14140if ac_fn_c_try_compile "$LINENO"; then :
14141  xorg_cv_cc_flag_unused_command_line_argument=yes
14142else
14143  xorg_cv_cc_flag_unused_command_line_argument=no
14144fi
14145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14146fi
14147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14148$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14149	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14150	CFLAGS="$xorg_testset_save_CFLAGS"
14151fi
14152
14153found="no"
14154
14155	if test $found = "no" ; then
14156		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14157			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14158		fi
14159
14160		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14161			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14162		fi
14163
14164		CFLAGS="$CFLAGS -Wunused"
14165
14166		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14167$as_echo_n "checking if $CC supports -Wunused... " >&6; }
14168		cacheid=xorg_cv_cc_flag__Wunused
14169		if eval \${$cacheid+:} false; then :
14170  $as_echo_n "(cached) " >&6
14171else
14172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14173/* end confdefs.h.  */
14174int i;
14175int
14176main ()
14177{
14178
14179  ;
14180  return 0;
14181}
14182_ACEOF
14183if ac_fn_c_try_link "$LINENO"; then :
14184  eval $cacheid=yes
14185else
14186  eval $cacheid=no
14187fi
14188rm -f core conftest.err conftest.$ac_objext \
14189    conftest$ac_exeext conftest.$ac_ext
14190fi
14191
14192
14193		CFLAGS="$xorg_testset_save_CFLAGS"
14194
14195		eval supported=\$$cacheid
14196		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14197$as_echo "$supported" >&6; }
14198		if test "$supported" = "yes" ; then
14199			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14200			found="yes"
14201		fi
14202	fi
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218xorg_testset_save_CFLAGS="$CFLAGS"
14219
14220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14221	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14222	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14223$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14224if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14225  $as_echo_n "(cached) " >&6
14226else
14227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228/* end confdefs.h.  */
14229int i;
14230_ACEOF
14231if ac_fn_c_try_compile "$LINENO"; then :
14232  xorg_cv_cc_flag_unknown_warning_option=yes
14233else
14234  xorg_cv_cc_flag_unknown_warning_option=no
14235fi
14236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14237fi
14238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14239$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14240	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14241	CFLAGS="$xorg_testset_save_CFLAGS"
14242fi
14243
14244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14245	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14246		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14247	fi
14248	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14249	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14250$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14251if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14252  $as_echo_n "(cached) " >&6
14253else
14254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255/* end confdefs.h.  */
14256int i;
14257_ACEOF
14258if ac_fn_c_try_compile "$LINENO"; then :
14259  xorg_cv_cc_flag_unused_command_line_argument=yes
14260else
14261  xorg_cv_cc_flag_unused_command_line_argument=no
14262fi
14263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14264fi
14265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14266$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14267	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14268	CFLAGS="$xorg_testset_save_CFLAGS"
14269fi
14270
14271found="no"
14272
14273	if test $found = "no" ; then
14274		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14276		fi
14277
14278		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14280		fi
14281
14282		CFLAGS="$CFLAGS -Wuninitialized"
14283
14284		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14285$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14286		cacheid=xorg_cv_cc_flag__Wuninitialized
14287		if eval \${$cacheid+:} false; then :
14288  $as_echo_n "(cached) " >&6
14289else
14290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14291/* end confdefs.h.  */
14292int i;
14293int
14294main ()
14295{
14296
14297  ;
14298  return 0;
14299}
14300_ACEOF
14301if ac_fn_c_try_link "$LINENO"; then :
14302  eval $cacheid=yes
14303else
14304  eval $cacheid=no
14305fi
14306rm -f core conftest.err conftest.$ac_objext \
14307    conftest$ac_exeext conftest.$ac_ext
14308fi
14309
14310
14311		CFLAGS="$xorg_testset_save_CFLAGS"
14312
14313		eval supported=\$$cacheid
14314		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14315$as_echo "$supported" >&6; }
14316		if test "$supported" = "yes" ; then
14317			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14318			found="yes"
14319		fi
14320	fi
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336xorg_testset_save_CFLAGS="$CFLAGS"
14337
14338if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14339	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14340	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14341$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14342if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14343  $as_echo_n "(cached) " >&6
14344else
14345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346/* end confdefs.h.  */
14347int i;
14348_ACEOF
14349if ac_fn_c_try_compile "$LINENO"; then :
14350  xorg_cv_cc_flag_unknown_warning_option=yes
14351else
14352  xorg_cv_cc_flag_unknown_warning_option=no
14353fi
14354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14355fi
14356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14357$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14358	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14359	CFLAGS="$xorg_testset_save_CFLAGS"
14360fi
14361
14362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14363	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14364		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14365	fi
14366	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14367	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14368$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14369if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14370  $as_echo_n "(cached) " >&6
14371else
14372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14373/* end confdefs.h.  */
14374int i;
14375_ACEOF
14376if ac_fn_c_try_compile "$LINENO"; then :
14377  xorg_cv_cc_flag_unused_command_line_argument=yes
14378else
14379  xorg_cv_cc_flag_unused_command_line_argument=no
14380fi
14381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14382fi
14383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14384$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14385	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14386	CFLAGS="$xorg_testset_save_CFLAGS"
14387fi
14388
14389found="no"
14390
14391	if test $found = "no" ; then
14392		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14393			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14394		fi
14395
14396		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14397			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14398		fi
14399
14400		CFLAGS="$CFLAGS -Wshadow"
14401
14402		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14403$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14404		cacheid=xorg_cv_cc_flag__Wshadow
14405		if eval \${$cacheid+:} false; then :
14406  $as_echo_n "(cached) " >&6
14407else
14408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409/* end confdefs.h.  */
14410int i;
14411int
14412main ()
14413{
14414
14415  ;
14416  return 0;
14417}
14418_ACEOF
14419if ac_fn_c_try_link "$LINENO"; then :
14420  eval $cacheid=yes
14421else
14422  eval $cacheid=no
14423fi
14424rm -f core conftest.err conftest.$ac_objext \
14425    conftest$ac_exeext conftest.$ac_ext
14426fi
14427
14428
14429		CFLAGS="$xorg_testset_save_CFLAGS"
14430
14431		eval supported=\$$cacheid
14432		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14433$as_echo "$supported" >&6; }
14434		if test "$supported" = "yes" ; then
14435			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14436			found="yes"
14437		fi
14438	fi
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454xorg_testset_save_CFLAGS="$CFLAGS"
14455
14456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14457	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14458	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14459$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14460if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14461  $as_echo_n "(cached) " >&6
14462else
14463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14464/* end confdefs.h.  */
14465int i;
14466_ACEOF
14467if ac_fn_c_try_compile "$LINENO"; then :
14468  xorg_cv_cc_flag_unknown_warning_option=yes
14469else
14470  xorg_cv_cc_flag_unknown_warning_option=no
14471fi
14472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14473fi
14474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14475$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14476	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14477	CFLAGS="$xorg_testset_save_CFLAGS"
14478fi
14479
14480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14481	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14482		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14483	fi
14484	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14485	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14486$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14487if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
14496else
14497  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
14502$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14503	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14504	CFLAGS="$xorg_testset_save_CFLAGS"
14505fi
14506
14507found="no"
14508
14509	if test $found = "no" ; then
14510		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14511			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14512		fi
14513
14514		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14515			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14516		fi
14517
14518		CFLAGS="$CFLAGS -Wmissing-noreturn"
14519
14520		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14521$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14522		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14523		if eval \${$cacheid+:} false; then :
14524  $as_echo_n "(cached) " >&6
14525else
14526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527/* end confdefs.h.  */
14528int i;
14529int
14530main ()
14531{
14532
14533  ;
14534  return 0;
14535}
14536_ACEOF
14537if ac_fn_c_try_link "$LINENO"; then :
14538  eval $cacheid=yes
14539else
14540  eval $cacheid=no
14541fi
14542rm -f core conftest.err conftest.$ac_objext \
14543    conftest$ac_exeext conftest.$ac_ext
14544fi
14545
14546
14547		CFLAGS="$xorg_testset_save_CFLAGS"
14548
14549		eval supported=\$$cacheid
14550		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14551$as_echo "$supported" >&6; }
14552		if test "$supported" = "yes" ; then
14553			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14554			found="yes"
14555		fi
14556	fi
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572xorg_testset_save_CFLAGS="$CFLAGS"
14573
14574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14575	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14576	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14577$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14578if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14579  $as_echo_n "(cached) " >&6
14580else
14581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582/* end confdefs.h.  */
14583int i;
14584_ACEOF
14585if ac_fn_c_try_compile "$LINENO"; then :
14586  xorg_cv_cc_flag_unknown_warning_option=yes
14587else
14588  xorg_cv_cc_flag_unknown_warning_option=no
14589fi
14590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14591fi
14592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14593$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14594	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14595	CFLAGS="$xorg_testset_save_CFLAGS"
14596fi
14597
14598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14599	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14600		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14601	fi
14602	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14603	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14604$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14605if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
14614else
14615  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
14620$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14621	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14622	CFLAGS="$xorg_testset_save_CFLAGS"
14623fi
14624
14625found="no"
14626
14627	if test $found = "no" ; then
14628		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14629			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14630		fi
14631
14632		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14633			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14634		fi
14635
14636		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14637
14638		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14639$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14640		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14641		if eval \${$cacheid+:} false; then :
14642  $as_echo_n "(cached) " >&6
14643else
14644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645/* end confdefs.h.  */
14646int i;
14647int
14648main ()
14649{
14650
14651  ;
14652  return 0;
14653}
14654_ACEOF
14655if ac_fn_c_try_link "$LINENO"; then :
14656  eval $cacheid=yes
14657else
14658  eval $cacheid=no
14659fi
14660rm -f core conftest.err conftest.$ac_objext \
14661    conftest$ac_exeext conftest.$ac_ext
14662fi
14663
14664
14665		CFLAGS="$xorg_testset_save_CFLAGS"
14666
14667		eval supported=\$$cacheid
14668		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14669$as_echo "$supported" >&6; }
14670		if test "$supported" = "yes" ; then
14671			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14672			found="yes"
14673		fi
14674	fi
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690xorg_testset_save_CFLAGS="$CFLAGS"
14691
14692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14693	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14694	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14695$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14696if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14697  $as_echo_n "(cached) " >&6
14698else
14699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700/* end confdefs.h.  */
14701int i;
14702_ACEOF
14703if ac_fn_c_try_compile "$LINENO"; then :
14704  xorg_cv_cc_flag_unknown_warning_option=yes
14705else
14706  xorg_cv_cc_flag_unknown_warning_option=no
14707fi
14708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14709fi
14710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14711$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14712	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14713	CFLAGS="$xorg_testset_save_CFLAGS"
14714fi
14715
14716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14717	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14718		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14719	fi
14720	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14721	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14722$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14723if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
14732else
14733  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
14738$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14739	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14740	CFLAGS="$xorg_testset_save_CFLAGS"
14741fi
14742
14743found="no"
14744
14745	if test $found = "no" ; then
14746		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14747			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14748		fi
14749
14750		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14751			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14752		fi
14753
14754		CFLAGS="$CFLAGS -Wredundant-decls"
14755
14756		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14757$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14758		cacheid=xorg_cv_cc_flag__Wredundant_decls
14759		if eval \${$cacheid+:} false; then :
14760  $as_echo_n "(cached) " >&6
14761else
14762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14763/* end confdefs.h.  */
14764int i;
14765int
14766main ()
14767{
14768
14769  ;
14770  return 0;
14771}
14772_ACEOF
14773if ac_fn_c_try_link "$LINENO"; then :
14774  eval $cacheid=yes
14775else
14776  eval $cacheid=no
14777fi
14778rm -f core conftest.err conftest.$ac_objext \
14779    conftest$ac_exeext conftest.$ac_ext
14780fi
14781
14782
14783		CFLAGS="$xorg_testset_save_CFLAGS"
14784
14785		eval supported=\$$cacheid
14786		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14787$as_echo "$supported" >&6; }
14788		if test "$supported" = "yes" ; then
14789			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14790			found="yes"
14791		fi
14792	fi
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808xorg_testset_save_CFLAGS="$CFLAGS"
14809
14810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14811	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14812	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14813$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14814if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14815  $as_echo_n "(cached) " >&6
14816else
14817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14818/* end confdefs.h.  */
14819int i;
14820_ACEOF
14821if ac_fn_c_try_compile "$LINENO"; then :
14822  xorg_cv_cc_flag_unknown_warning_option=yes
14823else
14824  xorg_cv_cc_flag_unknown_warning_option=no
14825fi
14826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14827fi
14828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14829$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14830	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14831	CFLAGS="$xorg_testset_save_CFLAGS"
14832fi
14833
14834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14835	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14836		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14837	fi
14838	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14839	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14840$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14841if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
14850else
14851  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
14856$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14857	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14858	CFLAGS="$xorg_testset_save_CFLAGS"
14859fi
14860
14861found="no"
14862
14863	if test $found = "no" ; then
14864		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14865			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14866		fi
14867
14868		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14869			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14870		fi
14871
14872		CFLAGS="$CFLAGS -Wlogical-op"
14873
14874		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14875$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14876		cacheid=xorg_cv_cc_flag__Wlogical_op
14877		if eval \${$cacheid+:} false; then :
14878  $as_echo_n "(cached) " >&6
14879else
14880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881/* end confdefs.h.  */
14882int i;
14883int
14884main ()
14885{
14886
14887  ;
14888  return 0;
14889}
14890_ACEOF
14891if ac_fn_c_try_link "$LINENO"; then :
14892  eval $cacheid=yes
14893else
14894  eval $cacheid=no
14895fi
14896rm -f core conftest.err conftest.$ac_objext \
14897    conftest$ac_exeext conftest.$ac_ext
14898fi
14899
14900
14901		CFLAGS="$xorg_testset_save_CFLAGS"
14902
14903		eval supported=\$$cacheid
14904		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14905$as_echo "$supported" >&6; }
14906		if test "$supported" = "yes" ; then
14907			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14908			found="yes"
14909		fi
14910	fi
14911
14912
14913
14914# These are currently disabled because they are noisy.  They will be enabled
14915# in the future once the codebase is sufficiently modernized to silence
14916# them.  For now, I don't want them to drown out the other warnings.
14917# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14918# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14919# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14920
14921# Turn some warnings into errors, so we don't accidently get successful builds
14922# when there are problems that should be fixed.
14923
14924if test "x$SELECTIVE_WERROR" = "xyes" ; then
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938xorg_testset_save_CFLAGS="$CFLAGS"
14939
14940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14941	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14943$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14944if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14945  $as_echo_n "(cached) " >&6
14946else
14947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948/* end confdefs.h.  */
14949int i;
14950_ACEOF
14951if ac_fn_c_try_compile "$LINENO"; then :
14952  xorg_cv_cc_flag_unknown_warning_option=yes
14953else
14954  xorg_cv_cc_flag_unknown_warning_option=no
14955fi
14956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14957fi
14958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14959$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14960	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14961	CFLAGS="$xorg_testset_save_CFLAGS"
14962fi
14963
14964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14965	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14966		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14967	fi
14968	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14969	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14970$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14971if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14972  $as_echo_n "(cached) " >&6
14973else
14974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14975/* end confdefs.h.  */
14976int i;
14977_ACEOF
14978if ac_fn_c_try_compile "$LINENO"; then :
14979  xorg_cv_cc_flag_unused_command_line_argument=yes
14980else
14981  xorg_cv_cc_flag_unused_command_line_argument=no
14982fi
14983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14984fi
14985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14986$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14987	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14988	CFLAGS="$xorg_testset_save_CFLAGS"
14989fi
14990
14991found="no"
14992
14993	if test $found = "no" ; then
14994		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14995			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14996		fi
14997
14998		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14999			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15000		fi
15001
15002		CFLAGS="$CFLAGS -Werror=implicit"
15003
15004		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15005$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
15006		cacheid=xorg_cv_cc_flag__Werror_implicit
15007		if eval \${$cacheid+:} false; then :
15008  $as_echo_n "(cached) " >&6
15009else
15010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011/* end confdefs.h.  */
15012int i;
15013int
15014main ()
15015{
15016
15017  ;
15018  return 0;
15019}
15020_ACEOF
15021if ac_fn_c_try_link "$LINENO"; then :
15022  eval $cacheid=yes
15023else
15024  eval $cacheid=no
15025fi
15026rm -f core conftest.err conftest.$ac_objext \
15027    conftest$ac_exeext conftest.$ac_ext
15028fi
15029
15030
15031		CFLAGS="$xorg_testset_save_CFLAGS"
15032
15033		eval supported=\$$cacheid
15034		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15035$as_echo "$supported" >&6; }
15036		if test "$supported" = "yes" ; then
15037			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15038			found="yes"
15039		fi
15040	fi
15041
15042	if test $found = "no" ; then
15043		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15044			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15045		fi
15046
15047		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15048			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15049		fi
15050
15051		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15052
15053		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15054$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15055		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15056		if eval \${$cacheid+:} false; then :
15057  $as_echo_n "(cached) " >&6
15058else
15059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060/* end confdefs.h.  */
15061int i;
15062int
15063main ()
15064{
15065
15066  ;
15067  return 0;
15068}
15069_ACEOF
15070if ac_fn_c_try_link "$LINENO"; then :
15071  eval $cacheid=yes
15072else
15073  eval $cacheid=no
15074fi
15075rm -f core conftest.err conftest.$ac_objext \
15076    conftest$ac_exeext conftest.$ac_ext
15077fi
15078
15079
15080		CFLAGS="$xorg_testset_save_CFLAGS"
15081
15082		eval supported=\$$cacheid
15083		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15084$as_echo "$supported" >&6; }
15085		if test "$supported" = "yes" ; then
15086			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15087			found="yes"
15088		fi
15089	fi
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105xorg_testset_save_CFLAGS="$CFLAGS"
15106
15107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15108	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15109	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15110$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15111if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15112  $as_echo_n "(cached) " >&6
15113else
15114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115/* end confdefs.h.  */
15116int i;
15117_ACEOF
15118if ac_fn_c_try_compile "$LINENO"; then :
15119  xorg_cv_cc_flag_unknown_warning_option=yes
15120else
15121  xorg_cv_cc_flag_unknown_warning_option=no
15122fi
15123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15124fi
15125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15126$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15127	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15128	CFLAGS="$xorg_testset_save_CFLAGS"
15129fi
15130
15131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15132	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15133		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15134	fi
15135	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15136	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15137$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15138if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15139  $as_echo_n "(cached) " >&6
15140else
15141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15142/* end confdefs.h.  */
15143int i;
15144_ACEOF
15145if ac_fn_c_try_compile "$LINENO"; then :
15146  xorg_cv_cc_flag_unused_command_line_argument=yes
15147else
15148  xorg_cv_cc_flag_unused_command_line_argument=no
15149fi
15150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15151fi
15152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15153$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15154	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15155	CFLAGS="$xorg_testset_save_CFLAGS"
15156fi
15157
15158found="no"
15159
15160	if test $found = "no" ; then
15161		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15162			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15163		fi
15164
15165		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15166			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15167		fi
15168
15169		CFLAGS="$CFLAGS -Werror=nonnull"
15170
15171		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15172$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
15173		cacheid=xorg_cv_cc_flag__Werror_nonnull
15174		if eval \${$cacheid+:} false; then :
15175  $as_echo_n "(cached) " >&6
15176else
15177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178/* end confdefs.h.  */
15179int i;
15180int
15181main ()
15182{
15183
15184  ;
15185  return 0;
15186}
15187_ACEOF
15188if ac_fn_c_try_link "$LINENO"; then :
15189  eval $cacheid=yes
15190else
15191  eval $cacheid=no
15192fi
15193rm -f core conftest.err conftest.$ac_objext \
15194    conftest$ac_exeext conftest.$ac_ext
15195fi
15196
15197
15198		CFLAGS="$xorg_testset_save_CFLAGS"
15199
15200		eval supported=\$$cacheid
15201		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15202$as_echo "$supported" >&6; }
15203		if test "$supported" = "yes" ; then
15204			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15205			found="yes"
15206		fi
15207	fi
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223xorg_testset_save_CFLAGS="$CFLAGS"
15224
15225if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15226	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15227	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15228$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15229if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15230  $as_echo_n "(cached) " >&6
15231else
15232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233/* end confdefs.h.  */
15234int i;
15235_ACEOF
15236if ac_fn_c_try_compile "$LINENO"; then :
15237  xorg_cv_cc_flag_unknown_warning_option=yes
15238else
15239  xorg_cv_cc_flag_unknown_warning_option=no
15240fi
15241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15242fi
15243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15244$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15245	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15246	CFLAGS="$xorg_testset_save_CFLAGS"
15247fi
15248
15249if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15250	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15251		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15252	fi
15253	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15254	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15255$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15256if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15257  $as_echo_n "(cached) " >&6
15258else
15259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260/* end confdefs.h.  */
15261int i;
15262_ACEOF
15263if ac_fn_c_try_compile "$LINENO"; then :
15264  xorg_cv_cc_flag_unused_command_line_argument=yes
15265else
15266  xorg_cv_cc_flag_unused_command_line_argument=no
15267fi
15268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15269fi
15270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15271$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15272	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15273	CFLAGS="$xorg_testset_save_CFLAGS"
15274fi
15275
15276found="no"
15277
15278	if test $found = "no" ; then
15279		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15280			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15281		fi
15282
15283		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15284			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15285		fi
15286
15287		CFLAGS="$CFLAGS -Werror=init-self"
15288
15289		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15290$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15291		cacheid=xorg_cv_cc_flag__Werror_init_self
15292		if eval \${$cacheid+:} false; then :
15293  $as_echo_n "(cached) " >&6
15294else
15295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296/* end confdefs.h.  */
15297int i;
15298int
15299main ()
15300{
15301
15302  ;
15303  return 0;
15304}
15305_ACEOF
15306if ac_fn_c_try_link "$LINENO"; then :
15307  eval $cacheid=yes
15308else
15309  eval $cacheid=no
15310fi
15311rm -f core conftest.err conftest.$ac_objext \
15312    conftest$ac_exeext conftest.$ac_ext
15313fi
15314
15315
15316		CFLAGS="$xorg_testset_save_CFLAGS"
15317
15318		eval supported=\$$cacheid
15319		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15320$as_echo "$supported" >&6; }
15321		if test "$supported" = "yes" ; then
15322			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15323			found="yes"
15324		fi
15325	fi
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341xorg_testset_save_CFLAGS="$CFLAGS"
15342
15343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15344	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15345	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15346$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15347if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15348  $as_echo_n "(cached) " >&6
15349else
15350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15351/* end confdefs.h.  */
15352int i;
15353_ACEOF
15354if ac_fn_c_try_compile "$LINENO"; then :
15355  xorg_cv_cc_flag_unknown_warning_option=yes
15356else
15357  xorg_cv_cc_flag_unknown_warning_option=no
15358fi
15359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15360fi
15361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15362$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15363	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15364	CFLAGS="$xorg_testset_save_CFLAGS"
15365fi
15366
15367if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15368	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15369		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15370	fi
15371	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15372	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15373$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15374if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15375  $as_echo_n "(cached) " >&6
15376else
15377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378/* end confdefs.h.  */
15379int i;
15380_ACEOF
15381if ac_fn_c_try_compile "$LINENO"; then :
15382  xorg_cv_cc_flag_unused_command_line_argument=yes
15383else
15384  xorg_cv_cc_flag_unused_command_line_argument=no
15385fi
15386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15387fi
15388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15389$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15390	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15391	CFLAGS="$xorg_testset_save_CFLAGS"
15392fi
15393
15394found="no"
15395
15396	if test $found = "no" ; then
15397		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15398			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15399		fi
15400
15401		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15402			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15403		fi
15404
15405		CFLAGS="$CFLAGS -Werror=main"
15406
15407		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15408$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15409		cacheid=xorg_cv_cc_flag__Werror_main
15410		if eval \${$cacheid+:} false; then :
15411  $as_echo_n "(cached) " >&6
15412else
15413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15414/* end confdefs.h.  */
15415int i;
15416int
15417main ()
15418{
15419
15420  ;
15421  return 0;
15422}
15423_ACEOF
15424if ac_fn_c_try_link "$LINENO"; then :
15425  eval $cacheid=yes
15426else
15427  eval $cacheid=no
15428fi
15429rm -f core conftest.err conftest.$ac_objext \
15430    conftest$ac_exeext conftest.$ac_ext
15431fi
15432
15433
15434		CFLAGS="$xorg_testset_save_CFLAGS"
15435
15436		eval supported=\$$cacheid
15437		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15438$as_echo "$supported" >&6; }
15439		if test "$supported" = "yes" ; then
15440			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15441			found="yes"
15442		fi
15443	fi
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459xorg_testset_save_CFLAGS="$CFLAGS"
15460
15461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15462	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15463	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15464$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15465if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15466  $as_echo_n "(cached) " >&6
15467else
15468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469/* end confdefs.h.  */
15470int i;
15471_ACEOF
15472if ac_fn_c_try_compile "$LINENO"; then :
15473  xorg_cv_cc_flag_unknown_warning_option=yes
15474else
15475  xorg_cv_cc_flag_unknown_warning_option=no
15476fi
15477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15478fi
15479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15480$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15481	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15482	CFLAGS="$xorg_testset_save_CFLAGS"
15483fi
15484
15485if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15486	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15487		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15488	fi
15489	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15491$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15492if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15493  $as_echo_n "(cached) " >&6
15494else
15495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15496/* end confdefs.h.  */
15497int i;
15498_ACEOF
15499if ac_fn_c_try_compile "$LINENO"; then :
15500  xorg_cv_cc_flag_unused_command_line_argument=yes
15501else
15502  xorg_cv_cc_flag_unused_command_line_argument=no
15503fi
15504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15505fi
15506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15507$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15508	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15509	CFLAGS="$xorg_testset_save_CFLAGS"
15510fi
15511
15512found="no"
15513
15514	if test $found = "no" ; then
15515		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15516			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15517		fi
15518
15519		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15520			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15521		fi
15522
15523		CFLAGS="$CFLAGS -Werror=missing-braces"
15524
15525		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15526$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15527		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15528		if eval \${$cacheid+:} false; then :
15529  $as_echo_n "(cached) " >&6
15530else
15531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532/* end confdefs.h.  */
15533int i;
15534int
15535main ()
15536{
15537
15538  ;
15539  return 0;
15540}
15541_ACEOF
15542if ac_fn_c_try_link "$LINENO"; then :
15543  eval $cacheid=yes
15544else
15545  eval $cacheid=no
15546fi
15547rm -f core conftest.err conftest.$ac_objext \
15548    conftest$ac_exeext conftest.$ac_ext
15549fi
15550
15551
15552		CFLAGS="$xorg_testset_save_CFLAGS"
15553
15554		eval supported=\$$cacheid
15555		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15556$as_echo "$supported" >&6; }
15557		if test "$supported" = "yes" ; then
15558			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15559			found="yes"
15560		fi
15561	fi
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577xorg_testset_save_CFLAGS="$CFLAGS"
15578
15579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15580	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15581	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15582$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15583if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15584  $as_echo_n "(cached) " >&6
15585else
15586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587/* end confdefs.h.  */
15588int i;
15589_ACEOF
15590if ac_fn_c_try_compile "$LINENO"; then :
15591  xorg_cv_cc_flag_unknown_warning_option=yes
15592else
15593  xorg_cv_cc_flag_unknown_warning_option=no
15594fi
15595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15596fi
15597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15598$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15599	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15600	CFLAGS="$xorg_testset_save_CFLAGS"
15601fi
15602
15603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15604	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15605		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15606	fi
15607	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15609$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15610if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15611  $as_echo_n "(cached) " >&6
15612else
15613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15614/* end confdefs.h.  */
15615int i;
15616_ACEOF
15617if ac_fn_c_try_compile "$LINENO"; then :
15618  xorg_cv_cc_flag_unused_command_line_argument=yes
15619else
15620  xorg_cv_cc_flag_unused_command_line_argument=no
15621fi
15622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15623fi
15624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15625$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15626	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15627	CFLAGS="$xorg_testset_save_CFLAGS"
15628fi
15629
15630found="no"
15631
15632	if test $found = "no" ; then
15633		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15634			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15635		fi
15636
15637		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15638			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15639		fi
15640
15641		CFLAGS="$CFLAGS -Werror=sequence-point"
15642
15643		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15644$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15645		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15646		if eval \${$cacheid+:} false; then :
15647  $as_echo_n "(cached) " >&6
15648else
15649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650/* end confdefs.h.  */
15651int i;
15652int
15653main ()
15654{
15655
15656  ;
15657  return 0;
15658}
15659_ACEOF
15660if ac_fn_c_try_link "$LINENO"; then :
15661  eval $cacheid=yes
15662else
15663  eval $cacheid=no
15664fi
15665rm -f core conftest.err conftest.$ac_objext \
15666    conftest$ac_exeext conftest.$ac_ext
15667fi
15668
15669
15670		CFLAGS="$xorg_testset_save_CFLAGS"
15671
15672		eval supported=\$$cacheid
15673		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15674$as_echo "$supported" >&6; }
15675		if test "$supported" = "yes" ; then
15676			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15677			found="yes"
15678		fi
15679	fi
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695xorg_testset_save_CFLAGS="$CFLAGS"
15696
15697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15698	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15700$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15701if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15702  $as_echo_n "(cached) " >&6
15703else
15704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705/* end confdefs.h.  */
15706int i;
15707_ACEOF
15708if ac_fn_c_try_compile "$LINENO"; then :
15709  xorg_cv_cc_flag_unknown_warning_option=yes
15710else
15711  xorg_cv_cc_flag_unknown_warning_option=no
15712fi
15713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15714fi
15715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15716$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15717	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15718	CFLAGS="$xorg_testset_save_CFLAGS"
15719fi
15720
15721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15722	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15723		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15724	fi
15725	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15727$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15728if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15729  $as_echo_n "(cached) " >&6
15730else
15731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15732/* end confdefs.h.  */
15733int i;
15734_ACEOF
15735if ac_fn_c_try_compile "$LINENO"; then :
15736  xorg_cv_cc_flag_unused_command_line_argument=yes
15737else
15738  xorg_cv_cc_flag_unused_command_line_argument=no
15739fi
15740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15741fi
15742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15743$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15744	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15745	CFLAGS="$xorg_testset_save_CFLAGS"
15746fi
15747
15748found="no"
15749
15750	if test $found = "no" ; then
15751		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15752			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15753		fi
15754
15755		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15756			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15757		fi
15758
15759		CFLAGS="$CFLAGS -Werror=return-type"
15760
15761		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15762$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15763		cacheid=xorg_cv_cc_flag__Werror_return_type
15764		if eval \${$cacheid+:} false; then :
15765  $as_echo_n "(cached) " >&6
15766else
15767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768/* end confdefs.h.  */
15769int i;
15770int
15771main ()
15772{
15773
15774  ;
15775  return 0;
15776}
15777_ACEOF
15778if ac_fn_c_try_link "$LINENO"; then :
15779  eval $cacheid=yes
15780else
15781  eval $cacheid=no
15782fi
15783rm -f core conftest.err conftest.$ac_objext \
15784    conftest$ac_exeext conftest.$ac_ext
15785fi
15786
15787
15788		CFLAGS="$xorg_testset_save_CFLAGS"
15789
15790		eval supported=\$$cacheid
15791		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15792$as_echo "$supported" >&6; }
15793		if test "$supported" = "yes" ; then
15794			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15795			found="yes"
15796		fi
15797	fi
15798
15799	if test $found = "no" ; then
15800		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15801			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15802		fi
15803
15804		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15805			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15806		fi
15807
15808		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15809
15810		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15811$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15812		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15813		if eval \${$cacheid+:} false; then :
15814  $as_echo_n "(cached) " >&6
15815else
15816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15817/* end confdefs.h.  */
15818int i;
15819int
15820main ()
15821{
15822
15823  ;
15824  return 0;
15825}
15826_ACEOF
15827if ac_fn_c_try_link "$LINENO"; then :
15828  eval $cacheid=yes
15829else
15830  eval $cacheid=no
15831fi
15832rm -f core conftest.err conftest.$ac_objext \
15833    conftest$ac_exeext conftest.$ac_ext
15834fi
15835
15836
15837		CFLAGS="$xorg_testset_save_CFLAGS"
15838
15839		eval supported=\$$cacheid
15840		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15841$as_echo "$supported" >&6; }
15842		if test "$supported" = "yes" ; then
15843			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15844			found="yes"
15845		fi
15846	fi
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862xorg_testset_save_CFLAGS="$CFLAGS"
15863
15864if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15865	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15866	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15867$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15868if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15869  $as_echo_n "(cached) " >&6
15870else
15871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15872/* end confdefs.h.  */
15873int i;
15874_ACEOF
15875if ac_fn_c_try_compile "$LINENO"; then :
15876  xorg_cv_cc_flag_unknown_warning_option=yes
15877else
15878  xorg_cv_cc_flag_unknown_warning_option=no
15879fi
15880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15881fi
15882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15883$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15884	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15885	CFLAGS="$xorg_testset_save_CFLAGS"
15886fi
15887
15888if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15889	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15890		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15891	fi
15892	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15893	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15894$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15895if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15896  $as_echo_n "(cached) " >&6
15897else
15898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15899/* end confdefs.h.  */
15900int i;
15901_ACEOF
15902if ac_fn_c_try_compile "$LINENO"; then :
15903  xorg_cv_cc_flag_unused_command_line_argument=yes
15904else
15905  xorg_cv_cc_flag_unused_command_line_argument=no
15906fi
15907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15908fi
15909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15910$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15911	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15912	CFLAGS="$xorg_testset_save_CFLAGS"
15913fi
15914
15915found="no"
15916
15917	if test $found = "no" ; then
15918		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15919			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15920		fi
15921
15922		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15923			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15924		fi
15925
15926		CFLAGS="$CFLAGS -Werror=trigraphs"
15927
15928		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15929$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15930		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15931		if eval \${$cacheid+:} false; then :
15932  $as_echo_n "(cached) " >&6
15933else
15934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15935/* end confdefs.h.  */
15936int i;
15937int
15938main ()
15939{
15940
15941  ;
15942  return 0;
15943}
15944_ACEOF
15945if ac_fn_c_try_link "$LINENO"; then :
15946  eval $cacheid=yes
15947else
15948  eval $cacheid=no
15949fi
15950rm -f core conftest.err conftest.$ac_objext \
15951    conftest$ac_exeext conftest.$ac_ext
15952fi
15953
15954
15955		CFLAGS="$xorg_testset_save_CFLAGS"
15956
15957		eval supported=\$$cacheid
15958		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15959$as_echo "$supported" >&6; }
15960		if test "$supported" = "yes" ; then
15961			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15962			found="yes"
15963		fi
15964	fi
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980xorg_testset_save_CFLAGS="$CFLAGS"
15981
15982if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15983	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15984	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15985$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15986if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15987  $as_echo_n "(cached) " >&6
15988else
15989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990/* end confdefs.h.  */
15991int i;
15992_ACEOF
15993if ac_fn_c_try_compile "$LINENO"; then :
15994  xorg_cv_cc_flag_unknown_warning_option=yes
15995else
15996  xorg_cv_cc_flag_unknown_warning_option=no
15997fi
15998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15999fi
16000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16001$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16002	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16003	CFLAGS="$xorg_testset_save_CFLAGS"
16004fi
16005
16006if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16007	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16008		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16009	fi
16010	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16011	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16012$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16013if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16014  $as_echo_n "(cached) " >&6
16015else
16016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16017/* end confdefs.h.  */
16018int i;
16019_ACEOF
16020if ac_fn_c_try_compile "$LINENO"; then :
16021  xorg_cv_cc_flag_unused_command_line_argument=yes
16022else
16023  xorg_cv_cc_flag_unused_command_line_argument=no
16024fi
16025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16026fi
16027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16028$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16029	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16030	CFLAGS="$xorg_testset_save_CFLAGS"
16031fi
16032
16033found="no"
16034
16035	if test $found = "no" ; then
16036		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16037			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16038		fi
16039
16040		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16041			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16042		fi
16043
16044		CFLAGS="$CFLAGS -Werror=array-bounds"
16045
16046		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16047$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
16048		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16049		if eval \${$cacheid+:} false; then :
16050  $as_echo_n "(cached) " >&6
16051else
16052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053/* end confdefs.h.  */
16054int i;
16055int
16056main ()
16057{
16058
16059  ;
16060  return 0;
16061}
16062_ACEOF
16063if ac_fn_c_try_link "$LINENO"; then :
16064  eval $cacheid=yes
16065else
16066  eval $cacheid=no
16067fi
16068rm -f core conftest.err conftest.$ac_objext \
16069    conftest$ac_exeext conftest.$ac_ext
16070fi
16071
16072
16073		CFLAGS="$xorg_testset_save_CFLAGS"
16074
16075		eval supported=\$$cacheid
16076		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16077$as_echo "$supported" >&6; }
16078		if test "$supported" = "yes" ; then
16079			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16080			found="yes"
16081		fi
16082	fi
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098xorg_testset_save_CFLAGS="$CFLAGS"
16099
16100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16101	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16102	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16103$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16104if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16105  $as_echo_n "(cached) " >&6
16106else
16107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16108/* end confdefs.h.  */
16109int i;
16110_ACEOF
16111if ac_fn_c_try_compile "$LINENO"; then :
16112  xorg_cv_cc_flag_unknown_warning_option=yes
16113else
16114  xorg_cv_cc_flag_unknown_warning_option=no
16115fi
16116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16117fi
16118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16119$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16120	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16121	CFLAGS="$xorg_testset_save_CFLAGS"
16122fi
16123
16124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16125	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16126		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16127	fi
16128	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16130$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16131if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16132  $as_echo_n "(cached) " >&6
16133else
16134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135/* end confdefs.h.  */
16136int i;
16137_ACEOF
16138if ac_fn_c_try_compile "$LINENO"; then :
16139  xorg_cv_cc_flag_unused_command_line_argument=yes
16140else
16141  xorg_cv_cc_flag_unused_command_line_argument=no
16142fi
16143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16144fi
16145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16146$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16147	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16148	CFLAGS="$xorg_testset_save_CFLAGS"
16149fi
16150
16151found="no"
16152
16153	if test $found = "no" ; then
16154		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16155			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16156		fi
16157
16158		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16159			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16160		fi
16161
16162		CFLAGS="$CFLAGS -Werror=write-strings"
16163
16164		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16165$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
16166		cacheid=xorg_cv_cc_flag__Werror_write_strings
16167		if eval \${$cacheid+:} false; then :
16168  $as_echo_n "(cached) " >&6
16169else
16170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16171/* end confdefs.h.  */
16172int i;
16173int
16174main ()
16175{
16176
16177  ;
16178  return 0;
16179}
16180_ACEOF
16181if ac_fn_c_try_link "$LINENO"; then :
16182  eval $cacheid=yes
16183else
16184  eval $cacheid=no
16185fi
16186rm -f core conftest.err conftest.$ac_objext \
16187    conftest$ac_exeext conftest.$ac_ext
16188fi
16189
16190
16191		CFLAGS="$xorg_testset_save_CFLAGS"
16192
16193		eval supported=\$$cacheid
16194		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16195$as_echo "$supported" >&6; }
16196		if test "$supported" = "yes" ; then
16197			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16198			found="yes"
16199		fi
16200	fi
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216xorg_testset_save_CFLAGS="$CFLAGS"
16217
16218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16219	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16220	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16221$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16222if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16223  $as_echo_n "(cached) " >&6
16224else
16225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16226/* end confdefs.h.  */
16227int i;
16228_ACEOF
16229if ac_fn_c_try_compile "$LINENO"; then :
16230  xorg_cv_cc_flag_unknown_warning_option=yes
16231else
16232  xorg_cv_cc_flag_unknown_warning_option=no
16233fi
16234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16235fi
16236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16237$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16238	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16239	CFLAGS="$xorg_testset_save_CFLAGS"
16240fi
16241
16242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16243	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16244		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16245	fi
16246	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16247	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16248$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16249if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16250  $as_echo_n "(cached) " >&6
16251else
16252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16253/* end confdefs.h.  */
16254int i;
16255_ACEOF
16256if ac_fn_c_try_compile "$LINENO"; then :
16257  xorg_cv_cc_flag_unused_command_line_argument=yes
16258else
16259  xorg_cv_cc_flag_unused_command_line_argument=no
16260fi
16261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16262fi
16263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16264$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16265	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16266	CFLAGS="$xorg_testset_save_CFLAGS"
16267fi
16268
16269found="no"
16270
16271	if test $found = "no" ; then
16272		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16273			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16274		fi
16275
16276		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16277			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16278		fi
16279
16280		CFLAGS="$CFLAGS -Werror=address"
16281
16282		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16283$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16284		cacheid=xorg_cv_cc_flag__Werror_address
16285		if eval \${$cacheid+:} false; then :
16286  $as_echo_n "(cached) " >&6
16287else
16288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16289/* end confdefs.h.  */
16290int i;
16291int
16292main ()
16293{
16294
16295  ;
16296  return 0;
16297}
16298_ACEOF
16299if ac_fn_c_try_link "$LINENO"; then :
16300  eval $cacheid=yes
16301else
16302  eval $cacheid=no
16303fi
16304rm -f core conftest.err conftest.$ac_objext \
16305    conftest$ac_exeext conftest.$ac_ext
16306fi
16307
16308
16309		CFLAGS="$xorg_testset_save_CFLAGS"
16310
16311		eval supported=\$$cacheid
16312		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16313$as_echo "$supported" >&6; }
16314		if test "$supported" = "yes" ; then
16315			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16316			found="yes"
16317		fi
16318	fi
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334xorg_testset_save_CFLAGS="$CFLAGS"
16335
16336if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16337	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16338	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16339$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16340if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16341  $as_echo_n "(cached) " >&6
16342else
16343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344/* end confdefs.h.  */
16345int i;
16346_ACEOF
16347if ac_fn_c_try_compile "$LINENO"; then :
16348  xorg_cv_cc_flag_unknown_warning_option=yes
16349else
16350  xorg_cv_cc_flag_unknown_warning_option=no
16351fi
16352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16353fi
16354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16355$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16356	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16357	CFLAGS="$xorg_testset_save_CFLAGS"
16358fi
16359
16360if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16361	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16362		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16363	fi
16364	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16365	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16366$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16367if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16368  $as_echo_n "(cached) " >&6
16369else
16370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16371/* end confdefs.h.  */
16372int i;
16373_ACEOF
16374if ac_fn_c_try_compile "$LINENO"; then :
16375  xorg_cv_cc_flag_unused_command_line_argument=yes
16376else
16377  xorg_cv_cc_flag_unused_command_line_argument=no
16378fi
16379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16380fi
16381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16382$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16383	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16384	CFLAGS="$xorg_testset_save_CFLAGS"
16385fi
16386
16387found="no"
16388
16389	if test $found = "no" ; then
16390		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16391			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16392		fi
16393
16394		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16395			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16396		fi
16397
16398		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16399
16400		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16401$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16402		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16403		if eval \${$cacheid+:} false; then :
16404  $as_echo_n "(cached) " >&6
16405else
16406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16407/* end confdefs.h.  */
16408int i;
16409int
16410main ()
16411{
16412
16413  ;
16414  return 0;
16415}
16416_ACEOF
16417if ac_fn_c_try_link "$LINENO"; then :
16418  eval $cacheid=yes
16419else
16420  eval $cacheid=no
16421fi
16422rm -f core conftest.err conftest.$ac_objext \
16423    conftest$ac_exeext conftest.$ac_ext
16424fi
16425
16426
16427		CFLAGS="$xorg_testset_save_CFLAGS"
16428
16429		eval supported=\$$cacheid
16430		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16431$as_echo "$supported" >&6; }
16432		if test "$supported" = "yes" ; then
16433			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16434			found="yes"
16435		fi
16436	fi
16437
16438	if test $found = "no" ; then
16439		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16440			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16441		fi
16442
16443		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16444			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16445		fi
16446
16447		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16448
16449		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16450$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16451		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16452		if eval \${$cacheid+:} false; then :
16453  $as_echo_n "(cached) " >&6
16454else
16455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456/* end confdefs.h.  */
16457int i;
16458int
16459main ()
16460{
16461
16462  ;
16463  return 0;
16464}
16465_ACEOF
16466if ac_fn_c_try_link "$LINENO"; then :
16467  eval $cacheid=yes
16468else
16469  eval $cacheid=no
16470fi
16471rm -f core conftest.err conftest.$ac_objext \
16472    conftest$ac_exeext conftest.$ac_ext
16473fi
16474
16475
16476		CFLAGS="$xorg_testset_save_CFLAGS"
16477
16478		eval supported=\$$cacheid
16479		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16480$as_echo "$supported" >&6; }
16481		if test "$supported" = "yes" ; then
16482			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16483			found="yes"
16484		fi
16485	fi
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501xorg_testset_save_CFLAGS="$CFLAGS"
16502
16503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16504	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16505	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16506$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16507if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16508  $as_echo_n "(cached) " >&6
16509else
16510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511/* end confdefs.h.  */
16512int i;
16513_ACEOF
16514if ac_fn_c_try_compile "$LINENO"; then :
16515  xorg_cv_cc_flag_unknown_warning_option=yes
16516else
16517  xorg_cv_cc_flag_unknown_warning_option=no
16518fi
16519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520fi
16521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16522$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16523	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16524	CFLAGS="$xorg_testset_save_CFLAGS"
16525fi
16526
16527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16528	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16529		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16530	fi
16531	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16532	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16533$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16534if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16535  $as_echo_n "(cached) " >&6
16536else
16537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16538/* end confdefs.h.  */
16539int i;
16540_ACEOF
16541if ac_fn_c_try_compile "$LINENO"; then :
16542  xorg_cv_cc_flag_unused_command_line_argument=yes
16543else
16544  xorg_cv_cc_flag_unused_command_line_argument=no
16545fi
16546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16547fi
16548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16549$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16550	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16551	CFLAGS="$xorg_testset_save_CFLAGS"
16552fi
16553
16554found="no"
16555
16556	if test $found = "no" ; then
16557		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16558			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16559		fi
16560
16561		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16562			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16563		fi
16564
16565		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16566
16567		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16568$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16569		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16570		if eval \${$cacheid+:} false; then :
16571  $as_echo_n "(cached) " >&6
16572else
16573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16574/* end confdefs.h.  */
16575int i;
16576int
16577main ()
16578{
16579
16580  ;
16581  return 0;
16582}
16583_ACEOF
16584if ac_fn_c_try_link "$LINENO"; then :
16585  eval $cacheid=yes
16586else
16587  eval $cacheid=no
16588fi
16589rm -f core conftest.err conftest.$ac_objext \
16590    conftest$ac_exeext conftest.$ac_ext
16591fi
16592
16593
16594		CFLAGS="$xorg_testset_save_CFLAGS"
16595
16596		eval supported=\$$cacheid
16597		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16598$as_echo "$supported" >&6; }
16599		if test "$supported" = "yes" ; then
16600			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16601			found="yes"
16602		fi
16603	fi
16604
16605 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16606else
16607{ $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
16608$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;}
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622xorg_testset_save_CFLAGS="$CFLAGS"
16623
16624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16625	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16626	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16627$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16628if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16629  $as_echo_n "(cached) " >&6
16630else
16631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632/* end confdefs.h.  */
16633int i;
16634_ACEOF
16635if ac_fn_c_try_compile "$LINENO"; then :
16636  xorg_cv_cc_flag_unknown_warning_option=yes
16637else
16638  xorg_cv_cc_flag_unknown_warning_option=no
16639fi
16640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16641fi
16642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16643$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16644	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16645	CFLAGS="$xorg_testset_save_CFLAGS"
16646fi
16647
16648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16649	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16650		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16651	fi
16652	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16653	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16654$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16655if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16656  $as_echo_n "(cached) " >&6
16657else
16658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16659/* end confdefs.h.  */
16660int i;
16661_ACEOF
16662if ac_fn_c_try_compile "$LINENO"; then :
16663  xorg_cv_cc_flag_unused_command_line_argument=yes
16664else
16665  xorg_cv_cc_flag_unused_command_line_argument=no
16666fi
16667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16668fi
16669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16670$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16671	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16672	CFLAGS="$xorg_testset_save_CFLAGS"
16673fi
16674
16675found="no"
16676
16677	if test $found = "no" ; then
16678		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16679			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16680		fi
16681
16682		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16683			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16684		fi
16685
16686		CFLAGS="$CFLAGS -Wimplicit"
16687
16688		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16689$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16690		cacheid=xorg_cv_cc_flag__Wimplicit
16691		if eval \${$cacheid+:} false; then :
16692  $as_echo_n "(cached) " >&6
16693else
16694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16695/* end confdefs.h.  */
16696int i;
16697int
16698main ()
16699{
16700
16701  ;
16702  return 0;
16703}
16704_ACEOF
16705if ac_fn_c_try_link "$LINENO"; then :
16706  eval $cacheid=yes
16707else
16708  eval $cacheid=no
16709fi
16710rm -f core conftest.err conftest.$ac_objext \
16711    conftest$ac_exeext conftest.$ac_ext
16712fi
16713
16714
16715		CFLAGS="$xorg_testset_save_CFLAGS"
16716
16717		eval supported=\$$cacheid
16718		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16719$as_echo "$supported" >&6; }
16720		if test "$supported" = "yes" ; then
16721			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16722			found="yes"
16723		fi
16724	fi
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740xorg_testset_save_CFLAGS="$CFLAGS"
16741
16742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16743	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16744	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16745$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16746if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16747  $as_echo_n "(cached) " >&6
16748else
16749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16750/* end confdefs.h.  */
16751int i;
16752_ACEOF
16753if ac_fn_c_try_compile "$LINENO"; then :
16754  xorg_cv_cc_flag_unknown_warning_option=yes
16755else
16756  xorg_cv_cc_flag_unknown_warning_option=no
16757fi
16758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16759fi
16760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16761$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16762	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16763	CFLAGS="$xorg_testset_save_CFLAGS"
16764fi
16765
16766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16767	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16768		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16769	fi
16770	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16771	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16772$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16773if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16774  $as_echo_n "(cached) " >&6
16775else
16776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16777/* end confdefs.h.  */
16778int i;
16779_ACEOF
16780if ac_fn_c_try_compile "$LINENO"; then :
16781  xorg_cv_cc_flag_unused_command_line_argument=yes
16782else
16783  xorg_cv_cc_flag_unused_command_line_argument=no
16784fi
16785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16786fi
16787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16788$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16789	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16790	CFLAGS="$xorg_testset_save_CFLAGS"
16791fi
16792
16793found="no"
16794
16795	if test $found = "no" ; then
16796		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16797			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16798		fi
16799
16800		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16801			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16802		fi
16803
16804		CFLAGS="$CFLAGS -Wnonnull"
16805
16806		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16807$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16808		cacheid=xorg_cv_cc_flag__Wnonnull
16809		if eval \${$cacheid+:} false; then :
16810  $as_echo_n "(cached) " >&6
16811else
16812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16813/* end confdefs.h.  */
16814int i;
16815int
16816main ()
16817{
16818
16819  ;
16820  return 0;
16821}
16822_ACEOF
16823if ac_fn_c_try_link "$LINENO"; then :
16824  eval $cacheid=yes
16825else
16826  eval $cacheid=no
16827fi
16828rm -f core conftest.err conftest.$ac_objext \
16829    conftest$ac_exeext conftest.$ac_ext
16830fi
16831
16832
16833		CFLAGS="$xorg_testset_save_CFLAGS"
16834
16835		eval supported=\$$cacheid
16836		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16837$as_echo "$supported" >&6; }
16838		if test "$supported" = "yes" ; then
16839			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16840			found="yes"
16841		fi
16842	fi
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858xorg_testset_save_CFLAGS="$CFLAGS"
16859
16860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16861	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16862	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16863$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16864if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16865  $as_echo_n "(cached) " >&6
16866else
16867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16868/* end confdefs.h.  */
16869int i;
16870_ACEOF
16871if ac_fn_c_try_compile "$LINENO"; then :
16872  xorg_cv_cc_flag_unknown_warning_option=yes
16873else
16874  xorg_cv_cc_flag_unknown_warning_option=no
16875fi
16876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16877fi
16878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16879$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16880	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16881	CFLAGS="$xorg_testset_save_CFLAGS"
16882fi
16883
16884if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16885	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16886		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16887	fi
16888	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16889	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16890$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16891if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16892  $as_echo_n "(cached) " >&6
16893else
16894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895/* end confdefs.h.  */
16896int i;
16897_ACEOF
16898if ac_fn_c_try_compile "$LINENO"; then :
16899  xorg_cv_cc_flag_unused_command_line_argument=yes
16900else
16901  xorg_cv_cc_flag_unused_command_line_argument=no
16902fi
16903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16904fi
16905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16906$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16907	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16908	CFLAGS="$xorg_testset_save_CFLAGS"
16909fi
16910
16911found="no"
16912
16913	if test $found = "no" ; then
16914		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16915			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16916		fi
16917
16918		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16919			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16920		fi
16921
16922		CFLAGS="$CFLAGS -Winit-self"
16923
16924		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16925$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16926		cacheid=xorg_cv_cc_flag__Winit_self
16927		if eval \${$cacheid+:} false; then :
16928  $as_echo_n "(cached) " >&6
16929else
16930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16931/* end confdefs.h.  */
16932int i;
16933int
16934main ()
16935{
16936
16937  ;
16938  return 0;
16939}
16940_ACEOF
16941if ac_fn_c_try_link "$LINENO"; then :
16942  eval $cacheid=yes
16943else
16944  eval $cacheid=no
16945fi
16946rm -f core conftest.err conftest.$ac_objext \
16947    conftest$ac_exeext conftest.$ac_ext
16948fi
16949
16950
16951		CFLAGS="$xorg_testset_save_CFLAGS"
16952
16953		eval supported=\$$cacheid
16954		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16955$as_echo "$supported" >&6; }
16956		if test "$supported" = "yes" ; then
16957			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16958			found="yes"
16959		fi
16960	fi
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976xorg_testset_save_CFLAGS="$CFLAGS"
16977
16978if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16979	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16980	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16981$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16982if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16983  $as_echo_n "(cached) " >&6
16984else
16985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986/* end confdefs.h.  */
16987int i;
16988_ACEOF
16989if ac_fn_c_try_compile "$LINENO"; then :
16990  xorg_cv_cc_flag_unknown_warning_option=yes
16991else
16992  xorg_cv_cc_flag_unknown_warning_option=no
16993fi
16994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16995fi
16996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16997$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16998	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16999	CFLAGS="$xorg_testset_save_CFLAGS"
17000fi
17001
17002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17003	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17004		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17005	fi
17006	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17007	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17008$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17009if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17010  $as_echo_n "(cached) " >&6
17011else
17012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17013/* end confdefs.h.  */
17014int i;
17015_ACEOF
17016if ac_fn_c_try_compile "$LINENO"; then :
17017  xorg_cv_cc_flag_unused_command_line_argument=yes
17018else
17019  xorg_cv_cc_flag_unused_command_line_argument=no
17020fi
17021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17022fi
17023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17024$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17025	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17026	CFLAGS="$xorg_testset_save_CFLAGS"
17027fi
17028
17029found="no"
17030
17031	if test $found = "no" ; then
17032		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17033			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17034		fi
17035
17036		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17037			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17038		fi
17039
17040		CFLAGS="$CFLAGS -Wmain"
17041
17042		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17043$as_echo_n "checking if $CC supports -Wmain... " >&6; }
17044		cacheid=xorg_cv_cc_flag__Wmain
17045		if eval \${$cacheid+:} false; then :
17046  $as_echo_n "(cached) " >&6
17047else
17048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17049/* end confdefs.h.  */
17050int i;
17051int
17052main ()
17053{
17054
17055  ;
17056  return 0;
17057}
17058_ACEOF
17059if ac_fn_c_try_link "$LINENO"; then :
17060  eval $cacheid=yes
17061else
17062  eval $cacheid=no
17063fi
17064rm -f core conftest.err conftest.$ac_objext \
17065    conftest$ac_exeext conftest.$ac_ext
17066fi
17067
17068
17069		CFLAGS="$xorg_testset_save_CFLAGS"
17070
17071		eval supported=\$$cacheid
17072		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17073$as_echo "$supported" >&6; }
17074		if test "$supported" = "yes" ; then
17075			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17076			found="yes"
17077		fi
17078	fi
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094xorg_testset_save_CFLAGS="$CFLAGS"
17095
17096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17097	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17098	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17099$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17100if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17101  $as_echo_n "(cached) " >&6
17102else
17103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17104/* end confdefs.h.  */
17105int i;
17106_ACEOF
17107if ac_fn_c_try_compile "$LINENO"; then :
17108  xorg_cv_cc_flag_unknown_warning_option=yes
17109else
17110  xorg_cv_cc_flag_unknown_warning_option=no
17111fi
17112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17113fi
17114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17115$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17116	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17117	CFLAGS="$xorg_testset_save_CFLAGS"
17118fi
17119
17120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17121	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17122		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17123	fi
17124	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17125	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17126$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17127if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17128  $as_echo_n "(cached) " >&6
17129else
17130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17131/* end confdefs.h.  */
17132int i;
17133_ACEOF
17134if ac_fn_c_try_compile "$LINENO"; then :
17135  xorg_cv_cc_flag_unused_command_line_argument=yes
17136else
17137  xorg_cv_cc_flag_unused_command_line_argument=no
17138fi
17139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17140fi
17141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17142$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17143	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17144	CFLAGS="$xorg_testset_save_CFLAGS"
17145fi
17146
17147found="no"
17148
17149	if test $found = "no" ; then
17150		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17151			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17152		fi
17153
17154		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17155			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17156		fi
17157
17158		CFLAGS="$CFLAGS -Wmissing-braces"
17159
17160		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17161$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
17162		cacheid=xorg_cv_cc_flag__Wmissing_braces
17163		if eval \${$cacheid+:} false; then :
17164  $as_echo_n "(cached) " >&6
17165else
17166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17167/* end confdefs.h.  */
17168int i;
17169int
17170main ()
17171{
17172
17173  ;
17174  return 0;
17175}
17176_ACEOF
17177if ac_fn_c_try_link "$LINENO"; then :
17178  eval $cacheid=yes
17179else
17180  eval $cacheid=no
17181fi
17182rm -f core conftest.err conftest.$ac_objext \
17183    conftest$ac_exeext conftest.$ac_ext
17184fi
17185
17186
17187		CFLAGS="$xorg_testset_save_CFLAGS"
17188
17189		eval supported=\$$cacheid
17190		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17191$as_echo "$supported" >&6; }
17192		if test "$supported" = "yes" ; then
17193			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17194			found="yes"
17195		fi
17196	fi
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212xorg_testset_save_CFLAGS="$CFLAGS"
17213
17214if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17215	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17216	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17217$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17218if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17219  $as_echo_n "(cached) " >&6
17220else
17221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222/* end confdefs.h.  */
17223int i;
17224_ACEOF
17225if ac_fn_c_try_compile "$LINENO"; then :
17226  xorg_cv_cc_flag_unknown_warning_option=yes
17227else
17228  xorg_cv_cc_flag_unknown_warning_option=no
17229fi
17230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17231fi
17232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17233$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17234	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17235	CFLAGS="$xorg_testset_save_CFLAGS"
17236fi
17237
17238if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17239	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17240		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17241	fi
17242	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17243	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17244$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17245if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17246  $as_echo_n "(cached) " >&6
17247else
17248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249/* end confdefs.h.  */
17250int i;
17251_ACEOF
17252if ac_fn_c_try_compile "$LINENO"; then :
17253  xorg_cv_cc_flag_unused_command_line_argument=yes
17254else
17255  xorg_cv_cc_flag_unused_command_line_argument=no
17256fi
17257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17258fi
17259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17260$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17261	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17262	CFLAGS="$xorg_testset_save_CFLAGS"
17263fi
17264
17265found="no"
17266
17267	if test $found = "no" ; then
17268		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17269			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17270		fi
17271
17272		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17273			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17274		fi
17275
17276		CFLAGS="$CFLAGS -Wsequence-point"
17277
17278		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17279$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17280		cacheid=xorg_cv_cc_flag__Wsequence_point
17281		if eval \${$cacheid+:} false; then :
17282  $as_echo_n "(cached) " >&6
17283else
17284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17285/* end confdefs.h.  */
17286int i;
17287int
17288main ()
17289{
17290
17291  ;
17292  return 0;
17293}
17294_ACEOF
17295if ac_fn_c_try_link "$LINENO"; then :
17296  eval $cacheid=yes
17297else
17298  eval $cacheid=no
17299fi
17300rm -f core conftest.err conftest.$ac_objext \
17301    conftest$ac_exeext conftest.$ac_ext
17302fi
17303
17304
17305		CFLAGS="$xorg_testset_save_CFLAGS"
17306
17307		eval supported=\$$cacheid
17308		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17309$as_echo "$supported" >&6; }
17310		if test "$supported" = "yes" ; then
17311			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17312			found="yes"
17313		fi
17314	fi
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330xorg_testset_save_CFLAGS="$CFLAGS"
17331
17332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17333	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17334	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17335$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17336if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17337  $as_echo_n "(cached) " >&6
17338else
17339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17340/* end confdefs.h.  */
17341int i;
17342_ACEOF
17343if ac_fn_c_try_compile "$LINENO"; then :
17344  xorg_cv_cc_flag_unknown_warning_option=yes
17345else
17346  xorg_cv_cc_flag_unknown_warning_option=no
17347fi
17348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17349fi
17350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17351$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17352	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17353	CFLAGS="$xorg_testset_save_CFLAGS"
17354fi
17355
17356if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17357	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17358		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17359	fi
17360	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17361	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17362$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17363if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17364  $as_echo_n "(cached) " >&6
17365else
17366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367/* end confdefs.h.  */
17368int i;
17369_ACEOF
17370if ac_fn_c_try_compile "$LINENO"; then :
17371  xorg_cv_cc_flag_unused_command_line_argument=yes
17372else
17373  xorg_cv_cc_flag_unused_command_line_argument=no
17374fi
17375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17376fi
17377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17378$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17379	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17380	CFLAGS="$xorg_testset_save_CFLAGS"
17381fi
17382
17383found="no"
17384
17385	if test $found = "no" ; then
17386		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17387			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17388		fi
17389
17390		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17391			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17392		fi
17393
17394		CFLAGS="$CFLAGS -Wreturn-type"
17395
17396		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17397$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17398		cacheid=xorg_cv_cc_flag__Wreturn_type
17399		if eval \${$cacheid+:} false; then :
17400  $as_echo_n "(cached) " >&6
17401else
17402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17403/* end confdefs.h.  */
17404int i;
17405int
17406main ()
17407{
17408
17409  ;
17410  return 0;
17411}
17412_ACEOF
17413if ac_fn_c_try_link "$LINENO"; then :
17414  eval $cacheid=yes
17415else
17416  eval $cacheid=no
17417fi
17418rm -f core conftest.err conftest.$ac_objext \
17419    conftest$ac_exeext conftest.$ac_ext
17420fi
17421
17422
17423		CFLAGS="$xorg_testset_save_CFLAGS"
17424
17425		eval supported=\$$cacheid
17426		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17427$as_echo "$supported" >&6; }
17428		if test "$supported" = "yes" ; then
17429			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17430			found="yes"
17431		fi
17432	fi
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448xorg_testset_save_CFLAGS="$CFLAGS"
17449
17450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17451	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17452	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17453$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17454if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17455  $as_echo_n "(cached) " >&6
17456else
17457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17458/* end confdefs.h.  */
17459int i;
17460_ACEOF
17461if ac_fn_c_try_compile "$LINENO"; then :
17462  xorg_cv_cc_flag_unknown_warning_option=yes
17463else
17464  xorg_cv_cc_flag_unknown_warning_option=no
17465fi
17466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17467fi
17468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17469$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17470	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17471	CFLAGS="$xorg_testset_save_CFLAGS"
17472fi
17473
17474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17475	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17476		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17477	fi
17478	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17480$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17481if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17482  $as_echo_n "(cached) " >&6
17483else
17484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17485/* end confdefs.h.  */
17486int i;
17487_ACEOF
17488if ac_fn_c_try_compile "$LINENO"; then :
17489  xorg_cv_cc_flag_unused_command_line_argument=yes
17490else
17491  xorg_cv_cc_flag_unused_command_line_argument=no
17492fi
17493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17494fi
17495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17496$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17497	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17498	CFLAGS="$xorg_testset_save_CFLAGS"
17499fi
17500
17501found="no"
17502
17503	if test $found = "no" ; then
17504		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17505			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17506		fi
17507
17508		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17509			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17510		fi
17511
17512		CFLAGS="$CFLAGS -Wtrigraphs"
17513
17514		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17515$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17516		cacheid=xorg_cv_cc_flag__Wtrigraphs
17517		if eval \${$cacheid+:} false; then :
17518  $as_echo_n "(cached) " >&6
17519else
17520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521/* end confdefs.h.  */
17522int i;
17523int
17524main ()
17525{
17526
17527  ;
17528  return 0;
17529}
17530_ACEOF
17531if ac_fn_c_try_link "$LINENO"; then :
17532  eval $cacheid=yes
17533else
17534  eval $cacheid=no
17535fi
17536rm -f core conftest.err conftest.$ac_objext \
17537    conftest$ac_exeext conftest.$ac_ext
17538fi
17539
17540
17541		CFLAGS="$xorg_testset_save_CFLAGS"
17542
17543		eval supported=\$$cacheid
17544		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17545$as_echo "$supported" >&6; }
17546		if test "$supported" = "yes" ; then
17547			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17548			found="yes"
17549		fi
17550	fi
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566xorg_testset_save_CFLAGS="$CFLAGS"
17567
17568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17569	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17570	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17571$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17572if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17573  $as_echo_n "(cached) " >&6
17574else
17575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17576/* end confdefs.h.  */
17577int i;
17578_ACEOF
17579if ac_fn_c_try_compile "$LINENO"; then :
17580  xorg_cv_cc_flag_unknown_warning_option=yes
17581else
17582  xorg_cv_cc_flag_unknown_warning_option=no
17583fi
17584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17585fi
17586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17587$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17588	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17589	CFLAGS="$xorg_testset_save_CFLAGS"
17590fi
17591
17592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17593	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17594		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17595	fi
17596	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17597	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17598$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17599if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17600  $as_echo_n "(cached) " >&6
17601else
17602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17603/* end confdefs.h.  */
17604int i;
17605_ACEOF
17606if ac_fn_c_try_compile "$LINENO"; then :
17607  xorg_cv_cc_flag_unused_command_line_argument=yes
17608else
17609  xorg_cv_cc_flag_unused_command_line_argument=no
17610fi
17611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17612fi
17613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17614$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17615	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17616	CFLAGS="$xorg_testset_save_CFLAGS"
17617fi
17618
17619found="no"
17620
17621	if test $found = "no" ; then
17622		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17623			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17624		fi
17625
17626		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17627			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17628		fi
17629
17630		CFLAGS="$CFLAGS -Warray-bounds"
17631
17632		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17633$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17634		cacheid=xorg_cv_cc_flag__Warray_bounds
17635		if eval \${$cacheid+:} false; then :
17636  $as_echo_n "(cached) " >&6
17637else
17638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17639/* end confdefs.h.  */
17640int i;
17641int
17642main ()
17643{
17644
17645  ;
17646  return 0;
17647}
17648_ACEOF
17649if ac_fn_c_try_link "$LINENO"; then :
17650  eval $cacheid=yes
17651else
17652  eval $cacheid=no
17653fi
17654rm -f core conftest.err conftest.$ac_objext \
17655    conftest$ac_exeext conftest.$ac_ext
17656fi
17657
17658
17659		CFLAGS="$xorg_testset_save_CFLAGS"
17660
17661		eval supported=\$$cacheid
17662		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17663$as_echo "$supported" >&6; }
17664		if test "$supported" = "yes" ; then
17665			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17666			found="yes"
17667		fi
17668	fi
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684xorg_testset_save_CFLAGS="$CFLAGS"
17685
17686if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17687	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17688	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17689$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17690if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17691  $as_echo_n "(cached) " >&6
17692else
17693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17694/* end confdefs.h.  */
17695int i;
17696_ACEOF
17697if ac_fn_c_try_compile "$LINENO"; then :
17698  xorg_cv_cc_flag_unknown_warning_option=yes
17699else
17700  xorg_cv_cc_flag_unknown_warning_option=no
17701fi
17702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17703fi
17704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17705$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17706	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17707	CFLAGS="$xorg_testset_save_CFLAGS"
17708fi
17709
17710if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17711	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17712		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17713	fi
17714	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17715	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17716$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17717if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17718  $as_echo_n "(cached) " >&6
17719else
17720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721/* end confdefs.h.  */
17722int i;
17723_ACEOF
17724if ac_fn_c_try_compile "$LINENO"; then :
17725  xorg_cv_cc_flag_unused_command_line_argument=yes
17726else
17727  xorg_cv_cc_flag_unused_command_line_argument=no
17728fi
17729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17730fi
17731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17732$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17733	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17734	CFLAGS="$xorg_testset_save_CFLAGS"
17735fi
17736
17737found="no"
17738
17739	if test $found = "no" ; then
17740		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17741			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17742		fi
17743
17744		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17745			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17746		fi
17747
17748		CFLAGS="$CFLAGS -Wwrite-strings"
17749
17750		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17751$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17752		cacheid=xorg_cv_cc_flag__Wwrite_strings
17753		if eval \${$cacheid+:} false; then :
17754  $as_echo_n "(cached) " >&6
17755else
17756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17757/* end confdefs.h.  */
17758int i;
17759int
17760main ()
17761{
17762
17763  ;
17764  return 0;
17765}
17766_ACEOF
17767if ac_fn_c_try_link "$LINENO"; then :
17768  eval $cacheid=yes
17769else
17770  eval $cacheid=no
17771fi
17772rm -f core conftest.err conftest.$ac_objext \
17773    conftest$ac_exeext conftest.$ac_ext
17774fi
17775
17776
17777		CFLAGS="$xorg_testset_save_CFLAGS"
17778
17779		eval supported=\$$cacheid
17780		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17781$as_echo "$supported" >&6; }
17782		if test "$supported" = "yes" ; then
17783			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17784			found="yes"
17785		fi
17786	fi
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802xorg_testset_save_CFLAGS="$CFLAGS"
17803
17804if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17805	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17806	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17807$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17808if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17809  $as_echo_n "(cached) " >&6
17810else
17811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17812/* end confdefs.h.  */
17813int i;
17814_ACEOF
17815if ac_fn_c_try_compile "$LINENO"; then :
17816  xorg_cv_cc_flag_unknown_warning_option=yes
17817else
17818  xorg_cv_cc_flag_unknown_warning_option=no
17819fi
17820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17821fi
17822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17823$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17824	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17825	CFLAGS="$xorg_testset_save_CFLAGS"
17826fi
17827
17828if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17829	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17830		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17831	fi
17832	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17833	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17834$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17835if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17836  $as_echo_n "(cached) " >&6
17837else
17838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17839/* end confdefs.h.  */
17840int i;
17841_ACEOF
17842if ac_fn_c_try_compile "$LINENO"; then :
17843  xorg_cv_cc_flag_unused_command_line_argument=yes
17844else
17845  xorg_cv_cc_flag_unused_command_line_argument=no
17846fi
17847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17848fi
17849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17850$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17851	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17852	CFLAGS="$xorg_testset_save_CFLAGS"
17853fi
17854
17855found="no"
17856
17857	if test $found = "no" ; then
17858		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17859			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17860		fi
17861
17862		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17863			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17864		fi
17865
17866		CFLAGS="$CFLAGS -Waddress"
17867
17868		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17869$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17870		cacheid=xorg_cv_cc_flag__Waddress
17871		if eval \${$cacheid+:} false; then :
17872  $as_echo_n "(cached) " >&6
17873else
17874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17875/* end confdefs.h.  */
17876int i;
17877int
17878main ()
17879{
17880
17881  ;
17882  return 0;
17883}
17884_ACEOF
17885if ac_fn_c_try_link "$LINENO"; then :
17886  eval $cacheid=yes
17887else
17888  eval $cacheid=no
17889fi
17890rm -f core conftest.err conftest.$ac_objext \
17891    conftest$ac_exeext conftest.$ac_ext
17892fi
17893
17894
17895		CFLAGS="$xorg_testset_save_CFLAGS"
17896
17897		eval supported=\$$cacheid
17898		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17899$as_echo "$supported" >&6; }
17900		if test "$supported" = "yes" ; then
17901			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17902			found="yes"
17903		fi
17904	fi
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920xorg_testset_save_CFLAGS="$CFLAGS"
17921
17922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17923	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17924	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17925$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17926if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17927  $as_echo_n "(cached) " >&6
17928else
17929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17930/* end confdefs.h.  */
17931int i;
17932_ACEOF
17933if ac_fn_c_try_compile "$LINENO"; then :
17934  xorg_cv_cc_flag_unknown_warning_option=yes
17935else
17936  xorg_cv_cc_flag_unknown_warning_option=no
17937fi
17938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17939fi
17940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17941$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17942	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17943	CFLAGS="$xorg_testset_save_CFLAGS"
17944fi
17945
17946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17947	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17948		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17949	fi
17950	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17951	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17952$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17953if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17954  $as_echo_n "(cached) " >&6
17955else
17956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17957/* end confdefs.h.  */
17958int i;
17959_ACEOF
17960if ac_fn_c_try_compile "$LINENO"; then :
17961  xorg_cv_cc_flag_unused_command_line_argument=yes
17962else
17963  xorg_cv_cc_flag_unused_command_line_argument=no
17964fi
17965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17966fi
17967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17968$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17969	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17970	CFLAGS="$xorg_testset_save_CFLAGS"
17971fi
17972
17973found="no"
17974
17975	if test $found = "no" ; then
17976		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17977			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17978		fi
17979
17980		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17981			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17982		fi
17983
17984		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17985
17986		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17987$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17988		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17989		if eval \${$cacheid+:} false; then :
17990  $as_echo_n "(cached) " >&6
17991else
17992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17993/* end confdefs.h.  */
17994int i;
17995int
17996main ()
17997{
17998
17999  ;
18000  return 0;
18001}
18002_ACEOF
18003if ac_fn_c_try_link "$LINENO"; then :
18004  eval $cacheid=yes
18005else
18006  eval $cacheid=no
18007fi
18008rm -f core conftest.err conftest.$ac_objext \
18009    conftest$ac_exeext conftest.$ac_ext
18010fi
18011
18012
18013		CFLAGS="$xorg_testset_save_CFLAGS"
18014
18015		eval supported=\$$cacheid
18016		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18017$as_echo "$supported" >&6; }
18018		if test "$supported" = "yes" ; then
18019			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18020			found="yes"
18021		fi
18022	fi
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038xorg_testset_save_CFLAGS="$CFLAGS"
18039
18040if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18041	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18042	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18043$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18044if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18045  $as_echo_n "(cached) " >&6
18046else
18047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048/* end confdefs.h.  */
18049int i;
18050_ACEOF
18051if ac_fn_c_try_compile "$LINENO"; then :
18052  xorg_cv_cc_flag_unknown_warning_option=yes
18053else
18054  xorg_cv_cc_flag_unknown_warning_option=no
18055fi
18056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18057fi
18058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18059$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18060	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18061	CFLAGS="$xorg_testset_save_CFLAGS"
18062fi
18063
18064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18065	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18066		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18067	fi
18068	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18069	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18070$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18071if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18072  $as_echo_n "(cached) " >&6
18073else
18074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18075/* end confdefs.h.  */
18076int i;
18077_ACEOF
18078if ac_fn_c_try_compile "$LINENO"; then :
18079  xorg_cv_cc_flag_unused_command_line_argument=yes
18080else
18081  xorg_cv_cc_flag_unused_command_line_argument=no
18082fi
18083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18084fi
18085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18086$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18087	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18088	CFLAGS="$xorg_testset_save_CFLAGS"
18089fi
18090
18091found="no"
18092
18093	if test $found = "no" ; then
18094		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18095			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18096		fi
18097
18098		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18099			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18100		fi
18101
18102		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18103
18104		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18105$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18106		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18107		if eval \${$cacheid+:} false; then :
18108  $as_echo_n "(cached) " >&6
18109else
18110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18111/* end confdefs.h.  */
18112int i;
18113int
18114main ()
18115{
18116
18117  ;
18118  return 0;
18119}
18120_ACEOF
18121if ac_fn_c_try_link "$LINENO"; then :
18122  eval $cacheid=yes
18123else
18124  eval $cacheid=no
18125fi
18126rm -f core conftest.err conftest.$ac_objext \
18127    conftest$ac_exeext conftest.$ac_ext
18128fi
18129
18130
18131		CFLAGS="$xorg_testset_save_CFLAGS"
18132
18133		eval supported=\$$cacheid
18134		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18135$as_echo "$supported" >&6; }
18136		if test "$supported" = "yes" ; then
18137			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18138			found="yes"
18139		fi
18140	fi
18141
18142
18143fi
18144
18145
18146
18147
18148
18149
18150
18151		CWARNFLAGS="$BASE_CFLAGS"
18152		if  test "x$GCC" = xyes ; then
18153		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18154		fi
18155
18156
18157
18158
18159
18160
18161
18162
18163# Check whether --enable-strict-compilation was given.
18164if test "${enable_strict_compilation+set}" = set; then :
18165  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18166else
18167  STRICT_COMPILE=no
18168fi
18169
18170
18171
18172
18173
18174
18175STRICT_CFLAGS=""
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189xorg_testset_save_CFLAGS="$CFLAGS"
18190
18191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18192	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18193	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18194$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18195if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18196  $as_echo_n "(cached) " >&6
18197else
18198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18199/* end confdefs.h.  */
18200int i;
18201_ACEOF
18202if ac_fn_c_try_compile "$LINENO"; then :
18203  xorg_cv_cc_flag_unknown_warning_option=yes
18204else
18205  xorg_cv_cc_flag_unknown_warning_option=no
18206fi
18207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18208fi
18209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18210$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18211	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18212	CFLAGS="$xorg_testset_save_CFLAGS"
18213fi
18214
18215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18216	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18217		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18218	fi
18219	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18220	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18221$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18222if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18223  $as_echo_n "(cached) " >&6
18224else
18225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226/* end confdefs.h.  */
18227int i;
18228_ACEOF
18229if ac_fn_c_try_compile "$LINENO"; then :
18230  xorg_cv_cc_flag_unused_command_line_argument=yes
18231else
18232  xorg_cv_cc_flag_unused_command_line_argument=no
18233fi
18234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18235fi
18236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18237$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18238	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18239	CFLAGS="$xorg_testset_save_CFLAGS"
18240fi
18241
18242found="no"
18243
18244	if test $found = "no" ; then
18245		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18246			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18247		fi
18248
18249		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18250			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18251		fi
18252
18253		CFLAGS="$CFLAGS -pedantic"
18254
18255		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18256$as_echo_n "checking if $CC supports -pedantic... " >&6; }
18257		cacheid=xorg_cv_cc_flag__pedantic
18258		if eval \${$cacheid+:} false; then :
18259  $as_echo_n "(cached) " >&6
18260else
18261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18262/* end confdefs.h.  */
18263int i;
18264int
18265main ()
18266{
18267
18268  ;
18269  return 0;
18270}
18271_ACEOF
18272if ac_fn_c_try_link "$LINENO"; then :
18273  eval $cacheid=yes
18274else
18275  eval $cacheid=no
18276fi
18277rm -f core conftest.err conftest.$ac_objext \
18278    conftest$ac_exeext conftest.$ac_ext
18279fi
18280
18281
18282		CFLAGS="$xorg_testset_save_CFLAGS"
18283
18284		eval supported=\$$cacheid
18285		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18286$as_echo "$supported" >&6; }
18287		if test "$supported" = "yes" ; then
18288			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18289			found="yes"
18290		fi
18291	fi
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307xorg_testset_save_CFLAGS="$CFLAGS"
18308
18309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18310	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18311	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18312$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18313if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18314  $as_echo_n "(cached) " >&6
18315else
18316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18317/* end confdefs.h.  */
18318int i;
18319_ACEOF
18320if ac_fn_c_try_compile "$LINENO"; then :
18321  xorg_cv_cc_flag_unknown_warning_option=yes
18322else
18323  xorg_cv_cc_flag_unknown_warning_option=no
18324fi
18325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18326fi
18327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18328$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18329	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18330	CFLAGS="$xorg_testset_save_CFLAGS"
18331fi
18332
18333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18334	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18335		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18336	fi
18337	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18338	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18339$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18340if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18341  $as_echo_n "(cached) " >&6
18342else
18343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344/* end confdefs.h.  */
18345int i;
18346_ACEOF
18347if ac_fn_c_try_compile "$LINENO"; then :
18348  xorg_cv_cc_flag_unused_command_line_argument=yes
18349else
18350  xorg_cv_cc_flag_unused_command_line_argument=no
18351fi
18352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18353fi
18354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18355$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18356	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18357	CFLAGS="$xorg_testset_save_CFLAGS"
18358fi
18359
18360found="no"
18361
18362	if test $found = "no" ; then
18363		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18364			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18365		fi
18366
18367		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18368			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18369		fi
18370
18371		CFLAGS="$CFLAGS -Werror"
18372
18373		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18374$as_echo_n "checking if $CC supports -Werror... " >&6; }
18375		cacheid=xorg_cv_cc_flag__Werror
18376		if eval \${$cacheid+:} false; then :
18377  $as_echo_n "(cached) " >&6
18378else
18379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18380/* end confdefs.h.  */
18381int i;
18382int
18383main ()
18384{
18385
18386  ;
18387  return 0;
18388}
18389_ACEOF
18390if ac_fn_c_try_link "$LINENO"; then :
18391  eval $cacheid=yes
18392else
18393  eval $cacheid=no
18394fi
18395rm -f core conftest.err conftest.$ac_objext \
18396    conftest$ac_exeext conftest.$ac_ext
18397fi
18398
18399
18400		CFLAGS="$xorg_testset_save_CFLAGS"
18401
18402		eval supported=\$$cacheid
18403		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18404$as_echo "$supported" >&6; }
18405		if test "$supported" = "yes" ; then
18406			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18407			found="yes"
18408		fi
18409	fi
18410
18411	if test $found = "no" ; then
18412		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18413			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18414		fi
18415
18416		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18417			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18418		fi
18419
18420		CFLAGS="$CFLAGS -errwarn"
18421
18422		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18423$as_echo_n "checking if $CC supports -errwarn... " >&6; }
18424		cacheid=xorg_cv_cc_flag__errwarn
18425		if eval \${$cacheid+:} false; then :
18426  $as_echo_n "(cached) " >&6
18427else
18428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429/* end confdefs.h.  */
18430int i;
18431int
18432main ()
18433{
18434
18435  ;
18436  return 0;
18437}
18438_ACEOF
18439if ac_fn_c_try_link "$LINENO"; then :
18440  eval $cacheid=yes
18441else
18442  eval $cacheid=no
18443fi
18444rm -f core conftest.err conftest.$ac_objext \
18445    conftest$ac_exeext conftest.$ac_ext
18446fi
18447
18448
18449		CFLAGS="$xorg_testset_save_CFLAGS"
18450
18451		eval supported=\$$cacheid
18452		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18453$as_echo "$supported" >&6; }
18454		if test "$supported" = "yes" ; then
18455			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18456			found="yes"
18457		fi
18458	fi
18459
18460
18461
18462# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18463# activate it with -Werror, so we add it here explicitly.
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477xorg_testset_save_CFLAGS="$CFLAGS"
18478
18479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18480	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18482$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18483if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18484  $as_echo_n "(cached) " >&6
18485else
18486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18487/* end confdefs.h.  */
18488int i;
18489_ACEOF
18490if ac_fn_c_try_compile "$LINENO"; then :
18491  xorg_cv_cc_flag_unknown_warning_option=yes
18492else
18493  xorg_cv_cc_flag_unknown_warning_option=no
18494fi
18495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18496fi
18497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18498$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18499	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18500	CFLAGS="$xorg_testset_save_CFLAGS"
18501fi
18502
18503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18504	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18505		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18506	fi
18507	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18508	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18509$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18510if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18511  $as_echo_n "(cached) " >&6
18512else
18513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18514/* end confdefs.h.  */
18515int i;
18516_ACEOF
18517if ac_fn_c_try_compile "$LINENO"; then :
18518  xorg_cv_cc_flag_unused_command_line_argument=yes
18519else
18520  xorg_cv_cc_flag_unused_command_line_argument=no
18521fi
18522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18523fi
18524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18525$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18526	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18527	CFLAGS="$xorg_testset_save_CFLAGS"
18528fi
18529
18530found="no"
18531
18532	if test $found = "no" ; then
18533		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18534			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18535		fi
18536
18537		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18538			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18539		fi
18540
18541		CFLAGS="$CFLAGS -Werror=attributes"
18542
18543		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18544$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18545		cacheid=xorg_cv_cc_flag__Werror_attributes
18546		if eval \${$cacheid+:} false; then :
18547  $as_echo_n "(cached) " >&6
18548else
18549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18550/* end confdefs.h.  */
18551int i;
18552int
18553main ()
18554{
18555
18556  ;
18557  return 0;
18558}
18559_ACEOF
18560if ac_fn_c_try_link "$LINENO"; then :
18561  eval $cacheid=yes
18562else
18563  eval $cacheid=no
18564fi
18565rm -f core conftest.err conftest.$ac_objext \
18566    conftest$ac_exeext conftest.$ac_ext
18567fi
18568
18569
18570		CFLAGS="$xorg_testset_save_CFLAGS"
18571
18572		eval supported=\$$cacheid
18573		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18574$as_echo "$supported" >&6; }
18575		if test "$supported" = "yes" ; then
18576			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18577			found="yes"
18578		fi
18579	fi
18580
18581
18582
18583if test "x$STRICT_COMPILE" = "xyes"; then
18584    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18585    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18586fi
18587
18588
18589
18590
18591
18592
18593cat >>confdefs.h <<_ACEOF
18594#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18595_ACEOF
18596
18597	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18598	if test "x$PVM" = "x"; then
18599		PVM="0"
18600	fi
18601
18602cat >>confdefs.h <<_ACEOF
18603#define PACKAGE_VERSION_MINOR $PVM
18604_ACEOF
18605
18606	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18607	if test "x$PVP" = "x"; then
18608		PVP="0"
18609	fi
18610
18611cat >>confdefs.h <<_ACEOF
18612#define PACKAGE_VERSION_PATCHLEVEL $PVP
18613_ACEOF
18614
18615
18616
18617CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18618mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18619|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18620echo 'git directory not found: installing possibly empty changelog.' >&2)"
18621
18622
18623
18624
18625macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18626INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18627mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18628|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18629echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18630
18631
18632
18633
18634
18635
18636if test x$APP_MAN_SUFFIX = x    ; then
18637    APP_MAN_SUFFIX=1
18638fi
18639if test x$APP_MAN_DIR = x    ; then
18640    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18641fi
18642
18643if test x$LIB_MAN_SUFFIX = x    ; then
18644    LIB_MAN_SUFFIX=3
18645fi
18646if test x$LIB_MAN_DIR = x    ; then
18647    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18648fi
18649
18650if test x$FILE_MAN_SUFFIX = x    ; then
18651    case $host_os in
18652	solaris*)	FILE_MAN_SUFFIX=4  ;;
18653	*)		FILE_MAN_SUFFIX=5  ;;
18654    esac
18655fi
18656if test x$FILE_MAN_DIR = x    ; then
18657    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18658fi
18659
18660if test x$MISC_MAN_SUFFIX = x    ; then
18661    case $host_os in
18662	solaris*)	MISC_MAN_SUFFIX=5  ;;
18663	*)		MISC_MAN_SUFFIX=7  ;;
18664    esac
18665fi
18666if test x$MISC_MAN_DIR = x    ; then
18667    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18668fi
18669
18670if test x$DRIVER_MAN_SUFFIX = x    ; then
18671    case $host_os in
18672	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
18673	*)		DRIVER_MAN_SUFFIX=4  ;;
18674    esac
18675fi
18676if test x$DRIVER_MAN_DIR = x    ; then
18677    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18678fi
18679
18680if test x$ADMIN_MAN_SUFFIX = x    ; then
18681    case $host_os in
18682	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
18683	*)		ADMIN_MAN_SUFFIX=8  ;;
18684    esac
18685fi
18686if test x$ADMIN_MAN_DIR = x    ; then
18687    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18688fi
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704XORG_MAN_PAGE="X Version 11"
18705
18706MAN_SUBSTS="\
18707	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18708	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18709	-e 's|__xservername__|Xorg|g' \
18710	-e 's|__xconfigfile__|xorg.conf|g' \
18711	-e 's|__projectroot__|\$(prefix)|g' \
18712	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18713	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18714	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18715	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18716	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18717	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18718	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18719
18720
18721
18722# Check whether --enable-silent-rules was given.
18723if test "${enable_silent_rules+set}" = set; then :
18724  enableval=$enable_silent_rules;
18725fi
18726
18727case $enable_silent_rules in # (((
18728  yes) AM_DEFAULT_VERBOSITY=0;;
18729   no) AM_DEFAULT_VERBOSITY=1;;
18730    *) AM_DEFAULT_VERBOSITY=0;;
18731esac
18732am_make=${MAKE-make}
18733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18734$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18735if ${am_cv_make_support_nested_variables+:} false; then :
18736  $as_echo_n "(cached) " >&6
18737else
18738  if $as_echo 'TRUE=$(BAR$(V))
18739BAR0=false
18740BAR1=true
18741V=1
18742am__doit:
18743	@$(TRUE)
18744.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18745  am_cv_make_support_nested_variables=yes
18746else
18747  am_cv_make_support_nested_variables=no
18748fi
18749fi
18750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18751$as_echo "$am_cv_make_support_nested_variables" >&6; }
18752if test $am_cv_make_support_nested_variables = yes; then
18753    AM_V='$(V)'
18754  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18755else
18756  AM_V=$AM_DEFAULT_VERBOSITY
18757  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18758fi
18759AM_BACKSLASH='\'
18760
18761
18762
18763
18764# Check whether --enable-specs was given.
18765if test "${enable_specs+set}" = set; then :
18766  enableval=$enable_specs; build_specs=$enableval
18767else
18768  build_specs=yes
18769fi
18770
18771
18772 if test x$build_specs = xyes; then
18773  ENABLE_SPECS_TRUE=
18774  ENABLE_SPECS_FALSE='#'
18775else
18776  ENABLE_SPECS_TRUE='#'
18777  ENABLE_SPECS_FALSE=
18778fi
18779
18780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
18781$as_echo_n "checking whether to build functional specifications... " >&6; }
18782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
18783$as_echo "$build_specs" >&6; }
18784
18785
18786
18787
18788
18789# Check whether --with-xmlto was given.
18790if test "${with_xmlto+set}" = set; then :
18791  withval=$with_xmlto; use_xmlto=$withval
18792else
18793  use_xmlto=auto
18794fi
18795
18796
18797
18798if test "x$use_xmlto" = x"auto"; then
18799   # Extract the first word of "xmlto", so it can be a program name with args.
18800set dummy xmlto; ac_word=$2
18801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18802$as_echo_n "checking for $ac_word... " >&6; }
18803if ${ac_cv_path_XMLTO+:} false; then :
18804  $as_echo_n "(cached) " >&6
18805else
18806  case $XMLTO in
18807  [\\/]* | ?:[\\/]*)
18808  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18809  ;;
18810  *)
18811  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18812for as_dir in $PATH
18813do
18814  IFS=$as_save_IFS
18815  test -z "$as_dir" && as_dir=.
18816    for ac_exec_ext in '' $ac_executable_extensions; do
18817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18818    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18820    break 2
18821  fi
18822done
18823  done
18824IFS=$as_save_IFS
18825
18826  ;;
18827esac
18828fi
18829XMLTO=$ac_cv_path_XMLTO
18830if test -n "$XMLTO"; then
18831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18832$as_echo "$XMLTO" >&6; }
18833else
18834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18835$as_echo "no" >&6; }
18836fi
18837
18838
18839   if test "x$XMLTO" = "x"; then
18840        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
18841$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18842	have_xmlto=no
18843   else
18844        have_xmlto=yes
18845   fi
18846elif test "x$use_xmlto" = x"yes" ; then
18847   # Extract the first word of "xmlto", so it can be a program name with args.
18848set dummy xmlto; ac_word=$2
18849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18850$as_echo_n "checking for $ac_word... " >&6; }
18851if ${ac_cv_path_XMLTO+:} false; then :
18852  $as_echo_n "(cached) " >&6
18853else
18854  case $XMLTO in
18855  [\\/]* | ?:[\\/]*)
18856  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18857  ;;
18858  *)
18859  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18860for as_dir in $PATH
18861do
18862  IFS=$as_save_IFS
18863  test -z "$as_dir" && as_dir=.
18864    for ac_exec_ext in '' $ac_executable_extensions; do
18865  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18866    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18868    break 2
18869  fi
18870done
18871  done
18872IFS=$as_save_IFS
18873
18874  ;;
18875esac
18876fi
18877XMLTO=$ac_cv_path_XMLTO
18878if test -n "$XMLTO"; then
18879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18880$as_echo "$XMLTO" >&6; }
18881else
18882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18883$as_echo "no" >&6; }
18884fi
18885
18886
18887   if test "x$XMLTO" = "x"; then
18888        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18889   fi
18890   have_xmlto=yes
18891elif test "x$use_xmlto" = x"no" ; then
18892   if test "x$XMLTO" != "x"; then
18893      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18894$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18895   fi
18896   have_xmlto=no
18897else
18898   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18899fi
18900
18901# Test for a minimum version of xmlto, if provided.
18902if test "$have_xmlto" = yes; then
18903    # scrape the xmlto version
18904    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18905$as_echo_n "checking the xmlto version... " >&6; }
18906    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18907    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18908$as_echo "$xmlto_version" >&6; }
18909    as_arg_v1=$xmlto_version
18910as_arg_v2=0.0.22
18911awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18912case $? in #(
18913  1) :
18914    if test "x$use_xmlto" = xauto; then
18915            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18916$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18917            have_xmlto=no
18918        else
18919            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18920        fi ;; #(
18921  0) :
18922     ;; #(
18923  2) :
18924     ;; #(
18925  *) :
18926     ;;
18927esac
18928fi
18929
18930# Test for the ability of xmlto to generate a text target
18931have_xmlto_text=no
18932cat > conftest.xml << "EOF"
18933<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
18934                   "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
18935<book id="saver">
18936</book>
18937EOF
18938if test "$have_xmlto" = yes; then :
18939  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18940  have_xmlto_text=yes
18941else
18942  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18943$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18944fi
18945fi
18946rm -f conftest.xml
18947 if test $have_xmlto_text = yes; then
18948  HAVE_XMLTO_TEXT_TRUE=
18949  HAVE_XMLTO_TEXT_FALSE='#'
18950else
18951  HAVE_XMLTO_TEXT_TRUE='#'
18952  HAVE_XMLTO_TEXT_FALSE=
18953fi
18954
18955 if test "$have_xmlto" = yes; then
18956  HAVE_XMLTO_TRUE=
18957  HAVE_XMLTO_FALSE='#'
18958else
18959  HAVE_XMLTO_TRUE='#'
18960  HAVE_XMLTO_FALSE=
18961fi
18962
18963
18964
18965
18966
18967
18968# Check whether --with-fop was given.
18969if test "${with_fop+set}" = set; then :
18970  withval=$with_fop; use_fop=$withval
18971else
18972  use_fop=no
18973fi
18974
18975
18976
18977if test "x$use_fop" = x"auto"; then
18978   # Extract the first word of "fop", so it can be a program name with args.
18979set dummy fop; ac_word=$2
18980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18981$as_echo_n "checking for $ac_word... " >&6; }
18982if ${ac_cv_path_FOP+:} false; then :
18983  $as_echo_n "(cached) " >&6
18984else
18985  case $FOP in
18986  [\\/]* | ?:[\\/]*)
18987  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18988  ;;
18989  *)
18990  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18991for as_dir in $PATH
18992do
18993  IFS=$as_save_IFS
18994  test -z "$as_dir" && as_dir=.
18995    for ac_exec_ext in '' $ac_executable_extensions; do
18996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18997    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18999    break 2
19000  fi
19001done
19002  done
19003IFS=$as_save_IFS
19004
19005  ;;
19006esac
19007fi
19008FOP=$ac_cv_path_FOP
19009if test -n "$FOP"; then
19010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19011$as_echo "$FOP" >&6; }
19012else
19013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19014$as_echo "no" >&6; }
19015fi
19016
19017
19018   if test "x$FOP" = "x"; then
19019        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
19020$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
19021	have_fop=no
19022   else
19023        have_fop=yes
19024   fi
19025elif test "x$use_fop" = x"yes" ; then
19026   # Extract the first word of "fop", so it can be a program name with args.
19027set dummy fop; ac_word=$2
19028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19029$as_echo_n "checking for $ac_word... " >&6; }
19030if ${ac_cv_path_FOP+:} false; then :
19031  $as_echo_n "(cached) " >&6
19032else
19033  case $FOP in
19034  [\\/]* | ?:[\\/]*)
19035  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19036  ;;
19037  *)
19038  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19039for as_dir in $PATH
19040do
19041  IFS=$as_save_IFS
19042  test -z "$as_dir" && as_dir=.
19043    for ac_exec_ext in '' $ac_executable_extensions; do
19044  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19045    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
19046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19047    break 2
19048  fi
19049done
19050  done
19051IFS=$as_save_IFS
19052
19053  ;;
19054esac
19055fi
19056FOP=$ac_cv_path_FOP
19057if test -n "$FOP"; then
19058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19059$as_echo "$FOP" >&6; }
19060else
19061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19062$as_echo "no" >&6; }
19063fi
19064
19065
19066   if test "x$FOP" = "x"; then
19067        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
19068   fi
19069   have_fop=yes
19070elif test "x$use_fop" = x"no" ; then
19071   if test "x$FOP" != "x"; then
19072      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
19073$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
19074   fi
19075   have_fop=no
19076else
19077   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
19078fi
19079
19080# Test for a minimum version of fop, if provided.
19081
19082 if test "$have_fop" = yes; then
19083  HAVE_FOP_TRUE=
19084  HAVE_FOP_FALSE='#'
19085else
19086  HAVE_FOP_TRUE='#'
19087  HAVE_FOP_FALSE=
19088fi
19089
19090
19091
19092
19093# Preserves the interface, should it be implemented later
19094
19095
19096
19097# Check whether --with-xsltproc was given.
19098if test "${with_xsltproc+set}" = set; then :
19099  withval=$with_xsltproc; use_xsltproc=$withval
19100else
19101  use_xsltproc=auto
19102fi
19103
19104
19105
19106if test "x$use_xsltproc" = x"auto"; then
19107   # Extract the first word of "xsltproc", so it can be a program name with args.
19108set dummy xsltproc; ac_word=$2
19109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19110$as_echo_n "checking for $ac_word... " >&6; }
19111if ${ac_cv_path_XSLTPROC+:} false; then :
19112  $as_echo_n "(cached) " >&6
19113else
19114  case $XSLTPROC in
19115  [\\/]* | ?:[\\/]*)
19116  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19117  ;;
19118  *)
19119  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19120for as_dir in $PATH
19121do
19122  IFS=$as_save_IFS
19123  test -z "$as_dir" && as_dir=.
19124    for ac_exec_ext in '' $ac_executable_extensions; do
19125  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19126    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19128    break 2
19129  fi
19130done
19131  done
19132IFS=$as_save_IFS
19133
19134  ;;
19135esac
19136fi
19137XSLTPROC=$ac_cv_path_XSLTPROC
19138if test -n "$XSLTPROC"; then
19139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19140$as_echo "$XSLTPROC" >&6; }
19141else
19142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19143$as_echo "no" >&6; }
19144fi
19145
19146
19147   if test "x$XSLTPROC" = "x"; then
19148        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
19149$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
19150	have_xsltproc=no
19151   else
19152        have_xsltproc=yes
19153   fi
19154elif test "x$use_xsltproc" = x"yes" ; then
19155   # Extract the first word of "xsltproc", so it can be a program name with args.
19156set dummy xsltproc; ac_word=$2
19157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19158$as_echo_n "checking for $ac_word... " >&6; }
19159if ${ac_cv_path_XSLTPROC+:} false; then :
19160  $as_echo_n "(cached) " >&6
19161else
19162  case $XSLTPROC in
19163  [\\/]* | ?:[\\/]*)
19164  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19165  ;;
19166  *)
19167  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19168for as_dir in $PATH
19169do
19170  IFS=$as_save_IFS
19171  test -z "$as_dir" && as_dir=.
19172    for ac_exec_ext in '' $ac_executable_extensions; do
19173  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19174    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19176    break 2
19177  fi
19178done
19179  done
19180IFS=$as_save_IFS
19181
19182  ;;
19183esac
19184fi
19185XSLTPROC=$ac_cv_path_XSLTPROC
19186if test -n "$XSLTPROC"; then
19187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19188$as_echo "$XSLTPROC" >&6; }
19189else
19190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19191$as_echo "no" >&6; }
19192fi
19193
19194
19195   if test "x$XSLTPROC" = "x"; then
19196        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
19197   fi
19198   have_xsltproc=yes
19199elif test "x$use_xsltproc" = x"no" ; then
19200   if test "x$XSLTPROC" != "x"; then
19201      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
19202$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
19203   fi
19204   have_xsltproc=no
19205else
19206   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
19207fi
19208
19209 if test "$have_xsltproc" = yes; then
19210  HAVE_XSLTPROC_TRUE=
19211  HAVE_XSLTPROC_FALSE='#'
19212else
19213  HAVE_XSLTPROC_TRUE='#'
19214  HAVE_XSLTPROC_FALSE=
19215fi
19216
19217
19218
19219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.10" >&5
19220$as_echo_n "checking for X.Org SGML entities >= 1.10... " >&6; }
19221XORG_SGML_PATH=
19222if test -n "$PKG_CONFIG" && \
19223    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.10\""; } >&5
19224  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.10") 2>&5
19225  ac_status=$?
19226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19227  test $ac_status = 0; }; then
19228  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
19229else
19230  :
19231
19232fi
19233
19234# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
19235# the path and the name of the doc stylesheet
19236if test "x$XORG_SGML_PATH" != "x" ; then
19237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
19238$as_echo "$XORG_SGML_PATH" >&6; }
19239   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
19240   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
19241else
19242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19243$as_echo "no" >&6; }
19244fi
19245
19246
19247
19248
19249 if test "x$XSL_STYLESHEET" != "x"; then
19250  HAVE_STYLESHEETS_TRUE=
19251  HAVE_STYLESHEETS_FALSE='#'
19252else
19253  HAVE_STYLESHEETS_TRUE='#'
19254  HAVE_STYLESHEETS_FALSE=
19255fi
19256
19257
19258
19259
19260for ac_prog in cpp
19261do
19262  # Extract the first word of "$ac_prog", so it can be a program name with args.
19263set dummy $ac_prog; ac_word=$2
19264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19265$as_echo_n "checking for $ac_word... " >&6; }
19266if ${ac_cv_path_RAWCPP+:} false; then :
19267  $as_echo_n "(cached) " >&6
19268else
19269  case $RAWCPP in
19270  [\\/]* | ?:[\\/]*)
19271  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
19272  ;;
19273  *)
19274  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19275as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
19276for as_dir in $as_dummy
19277do
19278  IFS=$as_save_IFS
19279  test -z "$as_dir" && as_dir=.
19280    for ac_exec_ext in '' $ac_executable_extensions; do
19281  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19282    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
19283    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19284    break 2
19285  fi
19286done
19287  done
19288IFS=$as_save_IFS
19289
19290  ;;
19291esac
19292fi
19293RAWCPP=$ac_cv_path_RAWCPP
19294if test -n "$RAWCPP"; then
19295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
19296$as_echo "$RAWCPP" >&6; }
19297else
19298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19299$as_echo "no" >&6; }
19300fi
19301
19302
19303  test -n "$RAWCPP" && break
19304done
19305test -n "$RAWCPP" || RAWCPP="${CPP}"
19306
19307
19308# Check for flag to avoid builtin definitions - assumes unix is predefined,
19309# which is not the best choice for supporting other OS'es, but covers most
19310# of the ones we need for now.
19311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
19312$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
19313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19314/* end confdefs.h.  */
19315Does cpp redefine unix ?
19316_ACEOF
19317if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
19318	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19319$as_echo "no" >&6; }
19320else
19321	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
19322		RAWCPPFLAGS=-undef
19323		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19324$as_echo "yes" >&6; }
19325	# under Cygwin unix is still defined even with -undef
19326	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
19327		RAWCPPFLAGS="-undef -ansi"
19328		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
19329$as_echo "yes, with -ansi" >&6; }
19330	else
19331		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
19332	fi
19333fi
19334rm -f conftest.$ac_ext
19335
19336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
19337$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
19338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19339/* end confdefs.h.  */
19340Does cpp preserve   "whitespace"?
19341_ACEOF
19342if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
19343	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19344$as_echo "no" >&6; }
19345else
19346	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
19347		TRADITIONALCPPFLAGS="-traditional"
19348		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
19349		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19350$as_echo "yes" >&6; }
19351	else
19352		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
19353	fi
19354fi
19355rm -f conftest.$ac_ext
19356
19357
19358
19359
19360
19361# Preserves the interface, should it be implemented later
19362
19363
19364
19365# Check whether --with-perl was given.
19366if test "${with_perl+set}" = set; then :
19367  withval=$with_perl; use_perl=$withval
19368else
19369  use_perl=auto
19370fi
19371
19372
19373
19374if test "x$use_perl" = x"auto"; then
19375   # Extract the first word of "perl", so it can be a program name with args.
19376set dummy perl; ac_word=$2
19377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19378$as_echo_n "checking for $ac_word... " >&6; }
19379if ${ac_cv_path_PERL+:} false; then :
19380  $as_echo_n "(cached) " >&6
19381else
19382  case $PERL in
19383  [\\/]* | ?:[\\/]*)
19384  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19385  ;;
19386  *)
19387  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19388for as_dir in $PATH
19389do
19390  IFS=$as_save_IFS
19391  test -z "$as_dir" && as_dir=.
19392    for ac_exec_ext in '' $ac_executable_extensions; do
19393  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19394    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19396    break 2
19397  fi
19398done
19399  done
19400IFS=$as_save_IFS
19401
19402  ;;
19403esac
19404fi
19405PERL=$ac_cv_path_PERL
19406if test -n "$PERL"; then
19407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19408$as_echo "$PERL" >&6; }
19409else
19410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19411$as_echo "no" >&6; }
19412fi
19413
19414
19415   if test "x$PERL" = "x"; then
19416        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5
19417$as_echo "$as_me: WARNING: perl not found - cannot extract information and report" >&2;}
19418	have_perl=no
19419   else
19420        have_perl=yes
19421   fi
19422elif test "x$use_perl" = x"yes" ; then
19423   # Extract the first word of "perl", so it can be a program name with args.
19424set dummy perl; ac_word=$2
19425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19426$as_echo_n "checking for $ac_word... " >&6; }
19427if ${ac_cv_path_PERL+:} false; then :
19428  $as_echo_n "(cached) " >&6
19429else
19430  case $PERL in
19431  [\\/]* | ?:[\\/]*)
19432  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19433  ;;
19434  *)
19435  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19436for as_dir in $PATH
19437do
19438  IFS=$as_save_IFS
19439  test -z "$as_dir" && as_dir=.
19440    for ac_exec_ext in '' $ac_executable_extensions; do
19441  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19442    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19444    break 2
19445  fi
19446done
19447  done
19448IFS=$as_save_IFS
19449
19450  ;;
19451esac
19452fi
19453PERL=$ac_cv_path_PERL
19454if test -n "$PERL"; then
19455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19456$as_echo "$PERL" >&6; }
19457else
19458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19459$as_echo "no" >&6; }
19460fi
19461
19462
19463   if test "x$PERL" = "x"; then
19464        as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5
19465   fi
19466   have_perl=yes
19467elif test "x$use_perl" = x"no" ; then
19468   if test "x$PERL" != "x"; then
19469      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5
19470$as_echo "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;}
19471   fi
19472   have_perl=no
19473else
19474   as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5
19475fi
19476
19477 if test "$have_perl" = yes; then
19478  HAVE_PERL_TRUE=
19479  HAVE_PERL_FALSE='#'
19480else
19481  HAVE_PERL_TRUE='#'
19482  HAVE_PERL_FALSE=
19483fi
19484
19485
19486
19487# Required when PKG_CHECK_MODULES called within an if statement
19488
19489
19490
19491
19492
19493
19494
19495if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19496	if test -n "$ac_tool_prefix"; then
19497  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19498set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19500$as_echo_n "checking for $ac_word... " >&6; }
19501if ${ac_cv_path_PKG_CONFIG+:} false; then :
19502  $as_echo_n "(cached) " >&6
19503else
19504  case $PKG_CONFIG in
19505  [\\/]* | ?:[\\/]*)
19506  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19507  ;;
19508  *)
19509  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19510for as_dir in $PATH
19511do
19512  IFS=$as_save_IFS
19513  test -z "$as_dir" && as_dir=.
19514    for ac_exec_ext in '' $ac_executable_extensions; do
19515  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19516    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19518    break 2
19519  fi
19520done
19521  done
19522IFS=$as_save_IFS
19523
19524  ;;
19525esac
19526fi
19527PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19528if test -n "$PKG_CONFIG"; then
19529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19530$as_echo "$PKG_CONFIG" >&6; }
19531else
19532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19533$as_echo "no" >&6; }
19534fi
19535
19536
19537fi
19538if test -z "$ac_cv_path_PKG_CONFIG"; then
19539  ac_pt_PKG_CONFIG=$PKG_CONFIG
19540  # Extract the first word of "pkg-config", so it can be a program name with args.
19541set dummy pkg-config; ac_word=$2
19542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19543$as_echo_n "checking for $ac_word... " >&6; }
19544if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19545  $as_echo_n "(cached) " >&6
19546else
19547  case $ac_pt_PKG_CONFIG in
19548  [\\/]* | ?:[\\/]*)
19549  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19550  ;;
19551  *)
19552  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19553for as_dir in $PATH
19554do
19555  IFS=$as_save_IFS
19556  test -z "$as_dir" && as_dir=.
19557    for ac_exec_ext in '' $ac_executable_extensions; do
19558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19559    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19561    break 2
19562  fi
19563done
19564  done
19565IFS=$as_save_IFS
19566
19567  ;;
19568esac
19569fi
19570ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19571if test -n "$ac_pt_PKG_CONFIG"; then
19572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19573$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19574else
19575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19576$as_echo "no" >&6; }
19577fi
19578
19579  if test "x$ac_pt_PKG_CONFIG" = x; then
19580    PKG_CONFIG=""
19581  else
19582    case $cross_compiling:$ac_tool_warned in
19583yes:)
19584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19586ac_tool_warned=yes ;;
19587esac
19588    PKG_CONFIG=$ac_pt_PKG_CONFIG
19589  fi
19590else
19591  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19592fi
19593
19594fi
19595if test -n "$PKG_CONFIG"; then
19596	_pkg_min_version=0.9.0
19597	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19598$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19599	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19600		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19601$as_echo "yes" >&6; }
19602	else
19603		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19604$as_echo "no" >&6; }
19605		PKG_CONFIG=""
19606	fi
19607fi
19608
19609if test x"$CC_FOR_BUILD" = x; then
19610	if test x"$cross_compiling" = xyes; then
19611	       for ac_prog in gcc cc
19612do
19613  # Extract the first word of "$ac_prog", so it can be a program name with args.
19614set dummy $ac_prog; ac_word=$2
19615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19616$as_echo_n "checking for $ac_word... " >&6; }
19617if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
19618  $as_echo_n "(cached) " >&6
19619else
19620  if test -n "$CC_FOR_BUILD"; then
19621  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
19622else
19623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19624for as_dir in $PATH
19625do
19626  IFS=$as_save_IFS
19627  test -z "$as_dir" && as_dir=.
19628    for ac_exec_ext in '' $ac_executable_extensions; do
19629  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19630    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
19631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19632    break 2
19633  fi
19634done
19635  done
19636IFS=$as_save_IFS
19637
19638fi
19639fi
19640CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
19641if test -n "$CC_FOR_BUILD"; then
19642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
19643$as_echo "$CC_FOR_BUILD" >&6; }
19644else
19645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19646$as_echo "no" >&6; }
19647fi
19648
19649
19650  test -n "$CC_FOR_BUILD" && break
19651done
19652
19653	else
19654	       CC_FOR_BUILD="$CC"
19655	fi
19656fi
19657
19658
19659if test x"$CPPFLAGS_FOR_BUILD" = x; then
19660	if test ! x"$cross_compiling" = xyes; then
19661		CPPFLAGS_FOR_BUILD=${CPPFLAGS}
19662	fi
19663fi
19664
19665
19666if test x"$CFLAGS_FOR_BUILD" = x; then
19667	if test ! x"$cross_compiling" = xyes; then
19668		CFLAGS_FOR_BUILD=${CFLAGS}
19669	fi
19670fi
19671
19672
19673if test x"$LDFLAGS_FOR_BUILD" = x; then
19674	if test ! x"$cross_compiling" = xyes; then
19675		LDFLAGS_FOR_BUILD=${LDFLAGS}
19676	fi
19677fi
19678
19679
19680# Checks for pkg-config packages
19681
19682# Always required
19683X11_REQUIRES='xproto >= 7.0.17 xextproto xtrans xcb >= 1.11.1'
19684X11_EXTRA_DEPS="xcb >= 1.11.1"
19685
19686
19687
19688
19689
19690
19691
19692
19693if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19694	if test -n "$ac_tool_prefix"; then
19695  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19696set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19698$as_echo_n "checking for $ac_word... " >&6; }
19699if ${ac_cv_path_PKG_CONFIG+:} false; then :
19700  $as_echo_n "(cached) " >&6
19701else
19702  case $PKG_CONFIG in
19703  [\\/]* | ?:[\\/]*)
19704  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19705  ;;
19706  *)
19707  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19708for as_dir in $PATH
19709do
19710  IFS=$as_save_IFS
19711  test -z "$as_dir" && as_dir=.
19712    for ac_exec_ext in '' $ac_executable_extensions; do
19713  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19714    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19716    break 2
19717  fi
19718done
19719  done
19720IFS=$as_save_IFS
19721
19722  ;;
19723esac
19724fi
19725PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19726if test -n "$PKG_CONFIG"; then
19727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19728$as_echo "$PKG_CONFIG" >&6; }
19729else
19730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19731$as_echo "no" >&6; }
19732fi
19733
19734
19735fi
19736if test -z "$ac_cv_path_PKG_CONFIG"; then
19737  ac_pt_PKG_CONFIG=$PKG_CONFIG
19738  # Extract the first word of "pkg-config", so it can be a program name with args.
19739set dummy pkg-config; ac_word=$2
19740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19741$as_echo_n "checking for $ac_word... " >&6; }
19742if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19743  $as_echo_n "(cached) " >&6
19744else
19745  case $ac_pt_PKG_CONFIG in
19746  [\\/]* | ?:[\\/]*)
19747  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19748  ;;
19749  *)
19750  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19751for as_dir in $PATH
19752do
19753  IFS=$as_save_IFS
19754  test -z "$as_dir" && as_dir=.
19755    for ac_exec_ext in '' $ac_executable_extensions; do
19756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19757    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19759    break 2
19760  fi
19761done
19762  done
19763IFS=$as_save_IFS
19764
19765  ;;
19766esac
19767fi
19768ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19769if test -n "$ac_pt_PKG_CONFIG"; then
19770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19771$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19772else
19773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19774$as_echo "no" >&6; }
19775fi
19776
19777  if test "x$ac_pt_PKG_CONFIG" = x; then
19778    PKG_CONFIG=""
19779  else
19780    case $cross_compiling:$ac_tool_warned in
19781yes:)
19782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19784ac_tool_warned=yes ;;
19785esac
19786    PKG_CONFIG=$ac_pt_PKG_CONFIG
19787  fi
19788else
19789  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19790fi
19791
19792fi
19793if test -n "$PKG_CONFIG"; then
19794	_pkg_min_version=0.9.0
19795	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19796$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19797	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19798		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19799$as_echo "yes" >&6; }
19800	else
19801		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19802$as_echo "no" >&6; }
19803		PKG_CONFIG=""
19804	fi
19805fi
19806
19807
19808
19809# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
19810# was not expanded, since libX11 with no transport types is rather useless.
19811#
19812# If you're seeing an error here, be sure you installed the lib/xtrans module
19813# first and if it's not in the default location, that you set the ACLOCAL
19814# environment variable to find it, such as:
19815#	ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
19816
19817
19818# Transport selection macro from xtrans.m4
19819
19820
19821 case $host_os in
19822	mingw*)	unixdef="no"   ;;
19823	*)	unixdef="yes"  ;;
19824 esac
19825 # Check whether --enable-unix-transport was given.
19826if test "${enable_unix_transport+set}" = set; then :
19827  enableval=$enable_unix_transport; UNIXCONN=$enableval
19828else
19829  UNIXCONN=$unixdef
19830fi
19831
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
19833$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
19834 if test "$UNIXCONN" = "yes"; then
19835
19836$as_echo "#define UNIXCONN 1" >>confdefs.h
19837
19838 fi
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
19840$as_echo "$UNIXCONN" >&6; }
19841 # Check whether --enable-tcp-transport was given.
19842if test "${enable_tcp_transport+set}" = set; then :
19843  enableval=$enable_tcp_transport; TCPCONN=$enableval
19844else
19845  TCPCONN=yes
19846fi
19847
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
19849$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
19851$as_echo "$TCPCONN" >&6; }
19852 if test "$TCPCONN" = "yes"; then
19853
19854$as_echo "#define TCPCONN 1" >>confdefs.h
19855
19856
19857 # SVR4 hides these in libraries other than libc
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19859$as_echo_n "checking for library containing socket... " >&6; }
19860if ${ac_cv_search_socket+:} false; then :
19861  $as_echo_n "(cached) " >&6
19862else
19863  ac_func_search_save_LIBS=$LIBS
19864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19865/* end confdefs.h.  */
19866
19867/* Override any GCC internal prototype to avoid an error.
19868   Use char because int might match the return type of a GCC
19869   builtin and then its argument prototype would still apply.  */
19870#ifdef __cplusplus
19871extern "C"
19872#endif
19873char socket ();
19874int
19875main ()
19876{
19877return socket ();
19878  ;
19879  return 0;
19880}
19881_ACEOF
19882for ac_lib in '' socket; do
19883  if test -z "$ac_lib"; then
19884    ac_res="none required"
19885  else
19886    ac_res=-l$ac_lib
19887    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19888  fi
19889  if ac_fn_c_try_link "$LINENO"; then :
19890  ac_cv_search_socket=$ac_res
19891fi
19892rm -f core conftest.err conftest.$ac_objext \
19893    conftest$ac_exeext
19894  if ${ac_cv_search_socket+:} false; then :
19895  break
19896fi
19897done
19898if ${ac_cv_search_socket+:} false; then :
19899
19900else
19901  ac_cv_search_socket=no
19902fi
19903rm conftest.$ac_ext
19904LIBS=$ac_func_search_save_LIBS
19905fi
19906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19907$as_echo "$ac_cv_search_socket" >&6; }
19908ac_res=$ac_cv_search_socket
19909if test "$ac_res" != no; then :
19910  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19911
19912fi
19913
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19915$as_echo_n "checking for library containing gethostbyname... " >&6; }
19916if ${ac_cv_search_gethostbyname+:} false; then :
19917  $as_echo_n "(cached) " >&6
19918else
19919  ac_func_search_save_LIBS=$LIBS
19920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19921/* end confdefs.h.  */
19922
19923/* Override any GCC internal prototype to avoid an error.
19924   Use char because int might match the return type of a GCC
19925   builtin and then its argument prototype would still apply.  */
19926#ifdef __cplusplus
19927extern "C"
19928#endif
19929char gethostbyname ();
19930int
19931main ()
19932{
19933return gethostbyname ();
19934  ;
19935  return 0;
19936}
19937_ACEOF
19938for ac_lib in '' nsl; do
19939  if test -z "$ac_lib"; then
19940    ac_res="none required"
19941  else
19942    ac_res=-l$ac_lib
19943    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19944  fi
19945  if ac_fn_c_try_link "$LINENO"; then :
19946  ac_cv_search_gethostbyname=$ac_res
19947fi
19948rm -f core conftest.err conftest.$ac_objext \
19949    conftest$ac_exeext
19950  if ${ac_cv_search_gethostbyname+:} false; then :
19951  break
19952fi
19953done
19954if ${ac_cv_search_gethostbyname+:} false; then :
19955
19956else
19957  ac_cv_search_gethostbyname=no
19958fi
19959rm conftest.$ac_ext
19960LIBS=$ac_func_search_save_LIBS
19961fi
19962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19963$as_echo "$ac_cv_search_gethostbyname" >&6; }
19964ac_res=$ac_cv_search_gethostbyname
19965if test "$ac_res" != no; then :
19966  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19967
19968fi
19969
19970 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
19971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
19972$as_echo_n "checking for main in -lws2_32... " >&6; }
19973if ${ac_cv_lib_ws2_32_main+:} false; then :
19974  $as_echo_n "(cached) " >&6
19975else
19976  ac_check_lib_save_LIBS=$LIBS
19977LIBS="-lws2_32  $LIBS"
19978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19979/* end confdefs.h.  */
19980
19981
19982int
19983main ()
19984{
19985return main ();
19986  ;
19987  return 0;
19988}
19989_ACEOF
19990if ac_fn_c_try_link "$LINENO"; then :
19991  ac_cv_lib_ws2_32_main=yes
19992else
19993  ac_cv_lib_ws2_32_main=no
19994fi
19995rm -f core conftest.err conftest.$ac_objext \
19996    conftest$ac_exeext conftest.$ac_ext
19997LIBS=$ac_check_lib_save_LIBS
19998fi
19999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
20000$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
20001if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
20002  cat >>confdefs.h <<_ACEOF
20003#define HAVE_LIBWS2_32 1
20004_ACEOF
20005
20006  LIBS="-lws2_32 $LIBS"
20007
20008fi
20009
20010 fi
20011
20012 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
20013 # Check whether --enable-ipv6 was given.
20014if test "${enable_ipv6+set}" = set; then :
20015  enableval=$enable_ipv6; IPV6CONN=$enableval
20016else
20017  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
20018if test "x$ac_cv_func_getaddrinfo" = xyes; then :
20019  IPV6CONN=yes
20020else
20021  IPV6CONN=no
20022fi
20023
20024fi
20025
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
20027$as_echo_n "checking if IPv6 support should be built... " >&6; }
20028 if test "$IPV6CONN" = "yes"; then
20029
20030$as_echo "#define IPv6 1" >>confdefs.h
20031
20032 fi
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
20034$as_echo "$IPV6CONN" >&6; }
20035
20036 # 4.3BSD-Reno added a new member to struct sockaddr_in
20037 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
20038#include <sys/types.h>
20039#include <sys/socket.h>
20040#include <netinet/in.h>
20041
20042"
20043if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
20044
20045$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
20046
20047fi
20048
20049
20050 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
20051 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20052$ac_includes_default
20053#include <sys/socket.h>
20054"
20055if test "x$ac_cv_type_socklen_t" = xyes; then :
20056
20057cat >>confdefs.h <<_ACEOF
20058#define HAVE_SOCKLEN_T 1
20059_ACEOF
20060
20061
20062fi
20063
20064
20065 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
20066 # _XOPEN_SOURCE to get it (such as on Solaris)
20067 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20068$ac_includes_default
20069#include <sys/socket.h>
20070
20071"
20072if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20073
20074fi
20075
20076 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
20077 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20078     unset ac_cv_member_struct_msghdr_msg_control
20079     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
20080$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
20081     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20082#define _XOPEN_SOURCE 600
20083$ac_includes_default
20084#include <sys/socket.h>
20085
20086"
20087if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20088
20089$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
20090
20091
20092fi
20093
20094 fi
20095 # If that didn't work, fall back to XPG5/UNIX98 with C89
20096 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20097     unset ac_cv_member_struct_msghdr_msg_control
20098     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
20099$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
20100     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20101#define _XOPEN_SOURCE 500
20102$ac_includes_default
20103#include <sys/socket.h>
20104
20105"
20106if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20107
20108$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
20109
20110
20111fi
20112
20113 fi
20114
20115
20116
20117 fi
20118 case $host_os in
20119	solaris*|sco*|sysv4*)	localdef="yes" ;;
20120	*)			localdef="no"  ;;
20121 esac
20122 # Check whether --enable-local-transport was given.
20123if test "${enable_local_transport+set}" = set; then :
20124  enableval=$enable_local_transport; LOCALCONN=$enableval
20125else
20126  LOCALCONN=$localdef
20127fi
20128
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
20130$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
20132$as_echo "$LOCALCONN" >&6; }
20133 if test "$LOCALCONN" = "yes"; then
20134
20135$as_echo "#define LOCALCONN 1" >>confdefs.h
20136
20137 fi
20138
20139
20140
20141# Check for dlopen
20142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5
20143$as_echo_n "checking if run-time linking is supported... " >&6; }
20144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20145$as_echo_n "checking for library containing dlopen... " >&6; }
20146if ${ac_cv_search_dlopen+:} false; then :
20147  $as_echo_n "(cached) " >&6
20148else
20149  ac_func_search_save_LIBS=$LIBS
20150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20151/* end confdefs.h.  */
20152
20153/* Override any GCC internal prototype to avoid an error.
20154   Use char because int might match the return type of a GCC
20155   builtin and then its argument prototype would still apply.  */
20156#ifdef __cplusplus
20157extern "C"
20158#endif
20159char dlopen ();
20160int
20161main ()
20162{
20163return dlopen ();
20164  ;
20165  return 0;
20166}
20167_ACEOF
20168for ac_lib in '' dl svld; do
20169  if test -z "$ac_lib"; then
20170    ac_res="none required"
20171  else
20172    ac_res=-l$ac_lib
20173    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20174  fi
20175  if ac_fn_c_try_link "$LINENO"; then :
20176  ac_cv_search_dlopen=$ac_res
20177fi
20178rm -f core conftest.err conftest.$ac_objext \
20179    conftest$ac_exeext
20180  if ${ac_cv_search_dlopen+:} false; then :
20181  break
20182fi
20183done
20184if ${ac_cv_search_dlopen+:} false; then :
20185
20186else
20187  ac_cv_search_dlopen=no
20188fi
20189rm conftest.$ac_ext
20190LIBS=$ac_func_search_save_LIBS
20191fi
20192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20193$as_echo "$ac_cv_search_dlopen" >&6; }
20194ac_res=$ac_cv_search_dlopen
20195if test "$ac_res" != no; then :
20196  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20197
20198fi
20199
20200if test "x$ac_cv_search_dlopen" = xno; then
20201	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
20202$as_echo_n "checking for library containing shl_load... " >&6; }
20203if ${ac_cv_search_shl_load+:} false; then :
20204  $as_echo_n "(cached) " >&6
20205else
20206  ac_func_search_save_LIBS=$LIBS
20207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20208/* end confdefs.h.  */
20209
20210/* Override any GCC internal prototype to avoid an error.
20211   Use char because int might match the return type of a GCC
20212   builtin and then its argument prototype would still apply.  */
20213#ifdef __cplusplus
20214extern "C"
20215#endif
20216char shl_load ();
20217int
20218main ()
20219{
20220return shl_load ();
20221  ;
20222  return 0;
20223}
20224_ACEOF
20225for ac_lib in '' dld; do
20226  if test -z "$ac_lib"; then
20227    ac_res="none required"
20228  else
20229    ac_res=-l$ac_lib
20230    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20231  fi
20232  if ac_fn_c_try_link "$LINENO"; then :
20233  ac_cv_search_shl_load=$ac_res
20234fi
20235rm -f core conftest.err conftest.$ac_objext \
20236    conftest$ac_exeext
20237  if ${ac_cv_search_shl_load+:} false; then :
20238  break
20239fi
20240done
20241if ${ac_cv_search_shl_load+:} false; then :
20242
20243else
20244  ac_cv_search_shl_load=no
20245fi
20246rm conftest.$ac_ext
20247LIBS=$ac_func_search_save_LIBS
20248fi
20249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
20250$as_echo "$ac_cv_search_shl_load" >&6; }
20251ac_res=$ac_cv_search_shl_load
20252if test "$ac_res" != no; then :
20253  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20254
20255fi
20256
20257	if test "x$ac_cv_search_shl_load" != xno; then
20258
20259$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20260
20261		for ac_header in dl.h
20262do :
20263  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
20264if test "x$ac_cv_header_dl_h" = xyes; then :
20265  cat >>confdefs.h <<_ACEOF
20266#define HAVE_DL_H 1
20267_ACEOF
20268
20269fi
20270
20271done
20272
20273	fi
20274else
20275
20276$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
20277
20278	for ac_header in dlfcn.h
20279do :
20280  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
20281if test "x$ac_cv_header_dlfcn_h" = xyes; then :
20282  cat >>confdefs.h <<_ACEOF
20283#define HAVE_DLFCN_H 1
20284_ACEOF
20285
20286fi
20287
20288done
20289
20290fi
20291if test "x$ac_cv_header_dlfcn_h" = xyes -o "x$ac_cv_header_dl_h" = xyes; then
20292	HAVE_LOADABLE_MODULES=yes
20293else
20294	HAVE_LOADABLE_MODULES=no
20295fi
20296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5
20297$as_echo "$HAVE_LOADABLE_MODULES" >&6; }
20298
20299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5
20300$as_echo_n "checking if loadable i18n module support should be enabled... " >&6; }
20301# Check whether --enable-loadable-i18n was given.
20302if test "${enable_loadable_i18n+set}" = set; then :
20303  enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval
20304else
20305  XLIB_LOADABLE_I18N="no"
20306fi
20307
20308if test x$XLIB_LOADABLE_I18N = xyes; then
20309	if test x$HAVE_LOADABLE_MODULES = xno; then
20310		as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5
20311	fi
20312
20313$as_echo "#define USE_DYNAMIC_LC 1" >>confdefs.h
20314
20315	I18N_MODULE_LIBS='${top_builddir}/src/libX11.la'
20316
20317fi
20318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5
20319$as_echo "$XLIB_LOADABLE_I18N" >&6; }
20320
20321 if test x$XLIB_LOADABLE_I18N = xyes; then
20322  XLIB_LOADABLE_I18N_TRUE=
20323  XLIB_LOADABLE_I18N_FALSE='#'
20324else
20325  XLIB_LOADABLE_I18N_TRUE='#'
20326  XLIB_LOADABLE_I18N_FALSE=
20327fi
20328
20329
20330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5
20331$as_echo_n "checking if loadable Xcursor library support should be enabled... " >&6; }
20332# Check whether --enable-loadable-xcursor was given.
20333if test "${enable_loadable_xcursor+set}" = set; then :
20334  enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval
20335else
20336  XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES
20337fi
20338
20339if test x$XLIB_LOADABLE_XCURSOR = xyes; then
20340
20341$as_echo "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h
20342
20343fi
20344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5
20345$as_echo "$XLIB_LOADABLE_XCURSOR" >&6; }
20346
20347# Checks for header files.
20348for ac_header in sys/select.h
20349do :
20350  ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
20351if test "x$ac_cv_header_sys_select_h" = xyes; then :
20352  cat >>confdefs.h <<_ACEOF
20353#define HAVE_SYS_SELECT_H 1
20354_ACEOF
20355
20356fi
20357
20358done
20359
20360
20361# Checks for typedefs, structures, and compiler characteristics.
20362
20363# Checks for library functions.
20364for ac_func in strtol seteuid
20365do :
20366  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20367ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20368if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20369  cat >>confdefs.h <<_ACEOF
20370#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20371_ACEOF
20372
20373fi
20374done
20375
20376# Used in lcFile.c (see also --enable-xlocaledir settings below)
20377XLOCALEDIR_IS_SAFE="no"
20378ac_fn_c_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "$ac_includes_default"
20379if test "x$ac_cv_have_decl_issetugid" = xyes; then :
20380
20381fi
20382
20383ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
20384if test "x$ac_cv_func_issetugid" = xyes; then :
20385
20386fi
20387
20388if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then
20389    XLOCALEDIR_IS_SAFE="yes"
20390
20391$as_echo "#define HASSETUGID 1" >>confdefs.h
20392
20393fi
20394ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
20395if test "x$ac_cv_func_getresuid" = xyes; then :
20396  XLOCALEDIR_IS_SAFE="yes"
20397
20398$as_echo "#define HASGETRESUID 1" >>confdefs.h
20399
20400fi
20401
20402# Used in Font.c
20403ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20404if test "x$ac_cv_func_shmat" = xyes; then :
20405
20406$as_echo "#define HAS_SHM 1" >>confdefs.h
20407
20408fi
20409
20410
20411# Checks for system services
20412# AC_PATH_XTRA
20413
20414# arch specific things
20415WCHAR32="1"
20416case $host_os in
20417  os2*) os2="true" ; WCHAR32="0" ;;
20418  *) ;;
20419esac
20420
20421
20422 if test x$os2 = xtrue; then
20423  OS2_TRUE=
20424  OS2_FALSE='#'
20425else
20426  OS2_TRUE='#'
20427  OS2_FALSE=
20428fi
20429
20430
20431
20432# Check whether --with-launchd was given.
20433if test "${with_launchd+set}" = set; then :
20434  withval=$with_launchd; LAUNCHD=$withval
20435else
20436  LAUNCHD=auto
20437fi
20438
20439if test "x$LAUNCHD" = xauto; then
20440	unset LAUNCHD
20441	# Extract the first word of "launchd", so it can be a program name with args.
20442set dummy launchd; ac_word=$2
20443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20444$as_echo_n "checking for $ac_word... " >&6; }
20445if ${ac_cv_prog_LAUNCHD+:} false; then :
20446  $as_echo_n "(cached) " >&6
20447else
20448  if test -n "$LAUNCHD"; then
20449  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
20450else
20451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20452for as_dir in $PATH$PATH_SEPARATOR/sbin
20453do
20454  IFS=$as_save_IFS
20455  test -z "$as_dir" && as_dir=.
20456    for ac_exec_ext in '' $ac_executable_extensions; do
20457  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20458    ac_cv_prog_LAUNCHD="yes"
20459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20460    break 2
20461  fi
20462done
20463  done
20464IFS=$as_save_IFS
20465
20466  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
20467fi
20468fi
20469LAUNCHD=$ac_cv_prog_LAUNCHD
20470if test -n "$LAUNCHD"; then
20471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
20472$as_echo "$LAUNCHD" >&6; }
20473else
20474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20475$as_echo "no" >&6; }
20476fi
20477
20478
20479fi
20480
20481if test "x$LAUNCHD" = xyes ; then
20482
20483$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
20484
20485
20486$as_echo "#define TRANS_REOPEN 1" >>confdefs.h
20487
20488fi
20489
20490# Check whether --enable-xthreads was given.
20491if test "${enable_xthreads+set}" = set; then :
20492  enableval=$enable_xthreads; xthreads=$enableval
20493else
20494  xthreads=yes
20495fi
20496
20497
20498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5
20499$as_echo_n "checking for getpwuid_r in -lc... " >&6; }
20500if ${ac_cv_lib_c_getpwuid_r+:} false; then :
20501  $as_echo_n "(cached) " >&6
20502else
20503  ac_check_lib_save_LIBS=$LIBS
20504LIBS="-lc  $LIBS"
20505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20506/* end confdefs.h.  */
20507
20508/* Override any GCC internal prototype to avoid an error.
20509   Use char because int might match the return type of a GCC
20510   builtin and then its argument prototype would still apply.  */
20511#ifdef __cplusplus
20512extern "C"
20513#endif
20514char getpwuid_r ();
20515int
20516main ()
20517{
20518return getpwuid_r ();
20519  ;
20520  return 0;
20521}
20522_ACEOF
20523if ac_fn_c_try_link "$LINENO"; then :
20524  ac_cv_lib_c_getpwuid_r=yes
20525else
20526  ac_cv_lib_c_getpwuid_r=no
20527fi
20528rm -f core conftest.err conftest.$ac_objext \
20529    conftest$ac_exeext conftest.$ac_ext
20530LIBS=$ac_check_lib_save_LIBS
20531fi
20532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5
20533$as_echo "$ac_cv_lib_c_getpwuid_r" >&6; }
20534if test "x$ac_cv_lib_c_getpwuid_r" = xyes; then :
20535  mtsafeapi="yes"
20536else
20537  mtsafeapi="no"
20538fi
20539
20540
20541case x$xthreads in
20542xyes)
20543
20544$as_echo "#define XTHREADS 1" >>confdefs.h
20545
20546	if test x$mtsafeapi = xyes
20547	then
20548
20549$as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h
20550
20551	fi
20552	;;
20553*)
20554	;;
20555esac
20556
20557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5
20558$as_echo_n "checking for pthread_self in -lc... " >&6; }
20559if ${ac_cv_lib_c_pthread_self+:} false; then :
20560  $as_echo_n "(cached) " >&6
20561else
20562  ac_check_lib_save_LIBS=$LIBS
20563LIBS="-lc  $LIBS"
20564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20565/* end confdefs.h.  */
20566
20567/* Override any GCC internal prototype to avoid an error.
20568   Use char because int might match the return type of a GCC
20569   builtin and then its argument prototype would still apply.  */
20570#ifdef __cplusplus
20571extern "C"
20572#endif
20573char pthread_self ();
20574int
20575main ()
20576{
20577return pthread_self ();
20578  ;
20579  return 0;
20580}
20581_ACEOF
20582if ac_fn_c_try_link "$LINENO"; then :
20583  ac_cv_lib_c_pthread_self=yes
20584else
20585  ac_cv_lib_c_pthread_self=no
20586fi
20587rm -f core conftest.err conftest.$ac_objext \
20588    conftest$ac_exeext conftest.$ac_ext
20589LIBS=$ac_check_lib_save_LIBS
20590fi
20591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5
20592$as_echo "$ac_cv_lib_c_pthread_self" >&6; }
20593if test "x$ac_cv_lib_c_pthread_self" = xyes; then :
20594  thrstubs="no"
20595else
20596  thrstubs="yes"
20597fi
20598
20599 if test x$thrstubs = xyes; then
20600  THRSTUBS_TRUE=
20601  THRSTUBS_FALSE='#'
20602else
20603  THRSTUBS_TRUE='#'
20604  THRSTUBS_FALSE=
20605fi
20606
20607
20608# XXX incomplete, please fill this in
20609if test x$xthreads = xyes ; then
20610    case $host_os in
20611    linux*|gnu*|k*bsd*-gnu)
20612        XTHREADLIB=-lpthread ;;
20613    netbsd*)
20614	XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
20615	XTHREADLIB="-lpthread" ;;
20616    freebsd*)
20617        XTHREAD_CFLAGS="-D_THREAD_SAFE"
20618        XTHREADLIB="-pthread" ;;
20619    dragonfly*|openbsd*)
20620        XTHREADLIB="-pthread" ;;
20621    solaris*)
20622	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
20623    esac
20624fi
20625
20626
20627
20628ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
20629if test "x$ac_cv_func_poll" = xyes; then :
20630
20631$as_echo "#define USE_POLL 1" >>confdefs.h
20632
20633fi
20634
20635
20636#
20637# Find keysymdef.h
20638#
20639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5
20640$as_echo_n "checking keysym definitions... " >&6; }
20641
20642# Check whether --with-keysymdefdir was given.
20643if test "${with_keysymdefdir+set}" = set; then :
20644  withval=$with_keysymdefdir; KEYSYMDEFDIR=$withval
20645else
20646  KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
20647fi
20648
20649
20650if test ! -d "$KEYSYMDEFDIR"; then
20651	as_fn_error $? "$KEYSYMDEFDIR doesn't exist or isn't a directory" "$LINENO" 5
20652fi
20653
20654FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
20655for i in $FILES; do
20656    if test -f "$KEYSYMDEFDIR/$i"; then
20657            KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i"
20658    elif test "x$i" = "xkeysymdef.h"; then
20659	    as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5
20660    fi
20661done
20662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5
20663$as_echo "$KEYSYMDEFS" >&6; }
20664
20665
20666# Check whether --enable-xcms was given.
20667if test "${enable_xcms+set}" = set; then :
20668  enableval=$enable_xcms; XCMS=$enableval
20669else
20670  XCMS=yes
20671fi
20672
20673 if test x$XCMS = xyes ; then
20674  XCMS_TRUE=
20675  XCMS_FALSE='#'
20676else
20677  XCMS_TRUE='#'
20678  XCMS_FALSE=
20679fi
20680
20681if test x"$XCMS" = "xyes"; then
20682
20683$as_echo "#define XCMS 1" >>confdefs.h
20684
20685fi
20686
20687# Check whether --enable-xlocale was given.
20688if test "${enable_xlocale+set}" = set; then :
20689  enableval=$enable_xlocale; XLOCALE=$enableval
20690else
20691  XLOCALE=yes
20692fi
20693
20694
20695 if  test x$XLOCALE = xyes ; then
20696  XLOCALE_TRUE=
20697  XLOCALE_FALSE='#'
20698else
20699  XLOCALE_TRUE='#'
20700  XLOCALE_FALSE=
20701fi
20702
20703if test x"$XLOCALE" = "xyes"; then
20704
20705$as_echo "#define XLOCALE 1" >>confdefs.h
20706
20707fi
20708
20709# This disables XLOCALEDIR.  Set it if you're using BuildLoadableXlibI18n,
20710# don't have either issetugid() or getresuid(), and you need to protect
20711# clients that are setgid or setuid to an id other than 0.
20712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5
20713$as_echo_n "checking if XLOCALEDIR support should be enabled... " >&6; }
20714# Check whether --enable-xlocaledir was given.
20715if test "${enable_xlocaledir+set}" = set; then :
20716  enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval
20717else
20718  ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE
20719fi
20720
20721if test "x$ENABLE_XLOCALEDIR" = "xno"; then
20722
20723$as_echo "#define NO_XLOCALEDIR 1" >>confdefs.h
20724
20725fi
20726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5
20727$as_echo "$ENABLE_XLOCALEDIR" >&6; }
20728
20729# Check whether --enable-xf86bigfont was given.
20730if test "${enable_xf86bigfont+set}" = set; then :
20731  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
20732else
20733  XF86BIGFONT="yes"
20734fi
20735
20736if test "x$XF86BIGFONT" = "xyes"; then
20737
20738pkg_failed=no
20739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5
20740$as_echo_n "checking for BIGFONT... " >&6; }
20741
20742if test -n "$BIGFONT_CFLAGS"; then
20743    pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS"
20744 elif test -n "$PKG_CONFIG"; then
20745    if test -n "$PKG_CONFIG" && \
20746    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
20747  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
20748  ac_status=$?
20749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20750  test $ac_status = 0; }; then
20751  pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null`
20752		      test "x$?" != "x0" && pkg_failed=yes
20753else
20754  pkg_failed=yes
20755fi
20756 else
20757    pkg_failed=untried
20758fi
20759if test -n "$BIGFONT_LIBS"; then
20760    pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS"
20761 elif test -n "$PKG_CONFIG"; then
20762    if test -n "$PKG_CONFIG" && \
20763    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
20764  ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
20765  ac_status=$?
20766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20767  test $ac_status = 0; }; then
20768  pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null`
20769		      test "x$?" != "x0" && pkg_failed=yes
20770else
20771  pkg_failed=yes
20772fi
20773 else
20774    pkg_failed=untried
20775fi
20776
20777
20778
20779if test $pkg_failed = yes; then
20780   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20781$as_echo "no" >&6; }
20782
20783if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20784        _pkg_short_errors_supported=yes
20785else
20786        _pkg_short_errors_supported=no
20787fi
20788        if test $_pkg_short_errors_supported = yes; then
20789	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
20790        else
20791	        BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
20792        fi
20793	# Put the nasty error message in config.log where it belongs
20794	echo "$BIGFONT_PKG_ERRORS" >&5
20795
20796	XF86BIGFONT="no"
20797elif test $pkg_failed = untried; then
20798     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20799$as_echo "no" >&6; }
20800	XF86BIGFONT="no"
20801else
20802	BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS
20803	BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS
20804        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20805$as_echo "yes" >&6; }
20806
20807$as_echo "#define XF86BIGFONT 1" >>confdefs.h
20808
20809fi
20810fi
20811
20812# Check whether --enable-xkb was given.
20813if test "${enable_xkb+set}" = set; then :
20814  enableval=$enable_xkb; XKB=$enableval
20815else
20816  XKB=yes
20817fi
20818
20819
20820 if  test x$XKB = xyes ; then
20821  XKB_TRUE=
20822  XKB_FALSE='#'
20823else
20824  XKB_TRUE='#'
20825  XKB_FALSE=
20826fi
20827
20828if test x"$XKB" = "xyes"; then
20829   XKBPROTO_REQUIRES="kbproto"
20830   X11_REQUIRES="${X11_REQUIRES} kbproto inputproto"
20831
20832$as_echo "#define XKB 1" >>confdefs.h
20833
20834else
20835   XKBPROTO_REQUIRES=""
20836fi
20837
20838
20839
20840
20841
20842  for ac_header in $ac_header_list
20843do :
20844  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20845ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20846"
20847if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20848  cat >>confdefs.h <<_ACEOF
20849#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20850_ACEOF
20851
20852fi
20853
20854done
20855
20856
20857
20858
20859
20860
20861
20862
20863for ac_func in getpagesize
20864do :
20865  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20866if test "x$ac_cv_func_getpagesize" = xyes; then :
20867  cat >>confdefs.h <<_ACEOF
20868#define HAVE_GETPAGESIZE 1
20869_ACEOF
20870
20871fi
20872done
20873
20874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
20875$as_echo_n "checking for working mmap... " >&6; }
20876if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
20877  $as_echo_n "(cached) " >&6
20878else
20879  if test "$cross_compiling" = yes; then :
20880  ac_cv_func_mmap_fixed_mapped=no
20881else
20882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20883/* end confdefs.h.  */
20884$ac_includes_default
20885/* malloc might have been renamed as rpl_malloc. */
20886#undef malloc
20887
20888/* Thanks to Mike Haertel and Jim Avera for this test.
20889   Here is a matrix of mmap possibilities:
20890	mmap private not fixed
20891	mmap private fixed at somewhere currently unmapped
20892	mmap private fixed at somewhere already mapped
20893	mmap shared not fixed
20894	mmap shared fixed at somewhere currently unmapped
20895	mmap shared fixed at somewhere already mapped
20896   For private mappings, we should verify that changes cannot be read()
20897   back from the file, nor mmap's back from the file at a different
20898   address.  (There have been systems where private was not correctly
20899   implemented like the infamous i386 svr4.0, and systems where the
20900   VM page cache was not coherent with the file system buffer cache
20901   like early versions of FreeBSD and possibly contemporary NetBSD.)
20902   For shared mappings, we should conversely verify that changes get
20903   propagated back to all the places they're supposed to be.
20904
20905   Grep wants private fixed already mapped.
20906   The main things grep needs to know about mmap are:
20907   * does it exist and is it safe to write into the mmap'd area
20908   * how to use it (BSD variants)  */
20909
20910#include <fcntl.h>
20911#include <sys/mman.h>
20912
20913#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20914char *malloc ();
20915#endif
20916
20917/* This mess was copied from the GNU getpagesize.h.  */
20918#ifndef HAVE_GETPAGESIZE
20919# ifdef _SC_PAGESIZE
20920#  define getpagesize() sysconf(_SC_PAGESIZE)
20921# else /* no _SC_PAGESIZE */
20922#  ifdef HAVE_SYS_PARAM_H
20923#   include <sys/param.h>
20924#   ifdef EXEC_PAGESIZE
20925#    define getpagesize() EXEC_PAGESIZE
20926#   else /* no EXEC_PAGESIZE */
20927#    ifdef NBPG
20928#     define getpagesize() NBPG * CLSIZE
20929#     ifndef CLSIZE
20930#      define CLSIZE 1
20931#     endif /* no CLSIZE */
20932#    else /* no NBPG */
20933#     ifdef NBPC
20934#      define getpagesize() NBPC
20935#     else /* no NBPC */
20936#      ifdef PAGESIZE
20937#       define getpagesize() PAGESIZE
20938#      endif /* PAGESIZE */
20939#     endif /* no NBPC */
20940#    endif /* no NBPG */
20941#   endif /* no EXEC_PAGESIZE */
20942#  else /* no HAVE_SYS_PARAM_H */
20943#   define getpagesize() 8192	/* punt totally */
20944#  endif /* no HAVE_SYS_PARAM_H */
20945# endif /* no _SC_PAGESIZE */
20946
20947#endif /* no HAVE_GETPAGESIZE */
20948
20949int
20950main ()
20951{
20952  char *data, *data2, *data3;
20953  const char *cdata2;
20954  int i, pagesize;
20955  int fd, fd2;
20956
20957  pagesize = getpagesize ();
20958
20959  /* First, make a file with some known garbage in it. */
20960  data = (char *) malloc (pagesize);
20961  if (!data)
20962    return 1;
20963  for (i = 0; i < pagesize; ++i)
20964    *(data + i) = rand ();
20965  umask (0);
20966  fd = creat ("conftest.mmap", 0600);
20967  if (fd < 0)
20968    return 2;
20969  if (write (fd, data, pagesize) != pagesize)
20970    return 3;
20971  close (fd);
20972
20973  /* Next, check that the tail of a page is zero-filled.  File must have
20974     non-zero length, otherwise we risk SIGBUS for entire page.  */
20975  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
20976  if (fd2 < 0)
20977    return 4;
20978  cdata2 = "";
20979  if (write (fd2, cdata2, 1) != 1)
20980    return 5;
20981  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20982  if (data2 == MAP_FAILED)
20983    return 6;
20984  for (i = 0; i < pagesize; ++i)
20985    if (*(data2 + i))
20986      return 7;
20987  close (fd2);
20988  if (munmap (data2, pagesize))
20989    return 8;
20990
20991  /* Next, try to mmap the file at a fixed address which already has
20992     something else allocated at it.  If we can, also make sure that
20993     we see the same garbage.  */
20994  fd = open ("conftest.mmap", O_RDWR);
20995  if (fd < 0)
20996    return 9;
20997  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20998		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
20999    return 10;
21000  for (i = 0; i < pagesize; ++i)
21001    if (*(data + i) != *(data2 + i))
21002      return 11;
21003
21004  /* Finally, make sure that changes to the mapped area do not
21005     percolate back to the file as seen by read().  (This is a bug on
21006     some variants of i386 svr4.0.)  */
21007  for (i = 0; i < pagesize; ++i)
21008    *(data2 + i) = *(data2 + i) + 1;
21009  data3 = (char *) malloc (pagesize);
21010  if (!data3)
21011    return 12;
21012  if (read (fd, data3, pagesize) != pagesize)
21013    return 13;
21014  for (i = 0; i < pagesize; ++i)
21015    if (*(data + i) != *(data3 + i))
21016      return 14;
21017  close (fd);
21018  return 0;
21019}
21020_ACEOF
21021if ac_fn_c_try_run "$LINENO"; then :
21022  ac_cv_func_mmap_fixed_mapped=yes
21023else
21024  ac_cv_func_mmap_fixed_mapped=no
21025fi
21026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21027  conftest.$ac_objext conftest.beam conftest.$ac_ext
21028fi
21029
21030fi
21031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
21032$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21033if test $ac_cv_func_mmap_fixed_mapped = yes; then
21034
21035$as_echo "#define HAVE_MMAP 1" >>confdefs.h
21036
21037fi
21038rm -f conftest.mmap conftest.txt
21039
21040composecache_default=$ac_cv_func_mmap_fixed_mapped
21041ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
21042if test "x$ac_cv_func_nl_langinfo" = xyes; then :
21043
21044else
21045  composecache_default=no
21046fi
21047
21048# Check whether --enable-composecache was given.
21049if test "${enable_composecache+set}" = set; then :
21050  enableval=$enable_composecache; COMPOSECACHE=$enableval
21051else
21052  COMPOSECACHE=$composecache_default
21053fi
21054
21055if test x"$COMPOSECACHE" = "xyes"; then
21056
21057$as_echo "#define COMPOSECACHE 1" >>confdefs.h
21058
21059fi
21060
21061# Allow checking code with lint, sparse, etc.
21062
21063
21064
21065
21066
21067# Check whether --with-lint was given.
21068if test "${with_lint+set}" = set; then :
21069  withval=$with_lint; use_lint=$withval
21070else
21071  use_lint=no
21072fi
21073
21074
21075# Obtain platform specific info like program name and options
21076# The lint program on FreeBSD and NetBSD is different from the one on Solaris
21077case $host_os in
21078  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
21079	lint_name=splint
21080	lint_options="-badflag"
21081	;;
21082  *freebsd* | *netbsd*)
21083	lint_name=lint
21084	lint_options="-u -b"
21085	;;
21086  *solaris*)
21087	lint_name=lint
21088	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
21089	;;
21090esac
21091
21092# Test for the presence of the program (either guessed by the code or spelled out by the user)
21093if test "x$use_lint" = x"yes" ; then
21094   # Extract the first word of "$lint_name", so it can be a program name with args.
21095set dummy $lint_name; ac_word=$2
21096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21097$as_echo_n "checking for $ac_word... " >&6; }
21098if ${ac_cv_path_LINT+:} false; then :
21099  $as_echo_n "(cached) " >&6
21100else
21101  case $LINT in
21102  [\\/]* | ?:[\\/]*)
21103  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
21104  ;;
21105  *)
21106  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21107for as_dir in $PATH
21108do
21109  IFS=$as_save_IFS
21110  test -z "$as_dir" && as_dir=.
21111    for ac_exec_ext in '' $ac_executable_extensions; do
21112  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21113    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
21114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21115    break 2
21116  fi
21117done
21118  done
21119IFS=$as_save_IFS
21120
21121  ;;
21122esac
21123fi
21124LINT=$ac_cv_path_LINT
21125if test -n "$LINT"; then
21126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
21127$as_echo "$LINT" >&6; }
21128else
21129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21130$as_echo "no" >&6; }
21131fi
21132
21133
21134   if test "x$LINT" = "x"; then
21135        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
21136   fi
21137elif test "x$use_lint" = x"no" ; then
21138   if test "x$LINT" != "x"; then
21139      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
21140$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
21141   fi
21142else
21143   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
21144fi
21145
21146# User supplied flags override default flags
21147if test "x$LINT_FLAGS" != "x"; then
21148   lint_options=$LINT_FLAGS
21149fi
21150
21151LINT_FLAGS=$lint_options
21152
21153 if test "x$LINT" != x; then
21154  LINT_TRUE=
21155  LINT_FALSE='#'
21156else
21157  LINT_TRUE='#'
21158  LINT_FALSE=
21159fi
21160
21161
21162
21163
21164
21165# Check whether --enable-lint-library was given.
21166if test "${enable_lint_library+set}" = set; then :
21167  enableval=$enable_lint_library; make_lint_lib=$enableval
21168else
21169  make_lint_lib=no
21170fi
21171
21172
21173if test "x$make_lint_lib" = x"yes" ; then
21174   LINTLIB=llib-lX11.ln
21175   if test "x$LINT" = "x"; then
21176        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
21177   fi
21178elif test "x$make_lint_lib" != x"no" ; then
21179   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
21180fi
21181
21182
21183 if test x$make_lint_lib != xno; then
21184  MAKE_LINT_LIB_TRUE=
21185  MAKE_LINT_LIB_FALSE='#'
21186else
21187  MAKE_LINT_LIB_TRUE='#'
21188  MAKE_LINT_LIB_FALSE=
21189fi
21190
21191
21192
21193
21194X11_DATADIR="${datadir}/X11"
21195
21196  prefix_NONE=
21197  exec_prefix_NONE=
21198  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21199  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21200  eval ax_define_dir="\"$X11_DATADIR\""
21201  eval ax_define_dir="\"$ax_define_dir\""
21202  X11_DATADIR="$ax_define_dir"
21203
21204
21205cat >>confdefs.h <<_ACEOF
21206#define X11_DATADIR "$ax_define_dir"
21207_ACEOF
21208
21209  test "$prefix_NONE" && prefix=NONE
21210  test "$exec_prefix_NONE" && exec_prefix=NONE
21211
21212
21213
21214X11_LIBDIR="${libdir}/X11"
21215
21216  prefix_NONE=
21217  exec_prefix_NONE=
21218  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21219  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21220  eval ax_define_dir="\"$X11_LIBDIR\""
21221  eval ax_define_dir="\"$ax_define_dir\""
21222  X11_LIBDIR="$ax_define_dir"
21223
21224
21225cat >>confdefs.h <<_ACEOF
21226#define X11_LIBDIR "$ax_define_dir"
21227_ACEOF
21228
21229  test "$prefix_NONE" && prefix=NONE
21230  test "$exec_prefix_NONE" && exec_prefix=NONE
21231
21232
21233
21234
21235pkg_failed=no
21236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
21237$as_echo_n "checking for X11... " >&6; }
21238
21239if test -n "$X11_CFLAGS"; then
21240    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
21241 elif test -n "$PKG_CONFIG"; then
21242    if test -n "$PKG_CONFIG" && \
21243    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
21244  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
21245  ac_status=$?
21246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21247  test $ac_status = 0; }; then
21248  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null`
21249		      test "x$?" != "x0" && pkg_failed=yes
21250else
21251  pkg_failed=yes
21252fi
21253 else
21254    pkg_failed=untried
21255fi
21256if test -n "$X11_LIBS"; then
21257    pkg_cv_X11_LIBS="$X11_LIBS"
21258 elif test -n "$PKG_CONFIG"; then
21259    if test -n "$PKG_CONFIG" && \
21260    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
21261  ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
21262  ac_status=$?
21263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21264  test $ac_status = 0; }; then
21265  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null`
21266		      test "x$?" != "x0" && pkg_failed=yes
21267else
21268  pkg_failed=yes
21269fi
21270 else
21271    pkg_failed=untried
21272fi
21273
21274
21275
21276if test $pkg_failed = yes; then
21277   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21278$as_echo "no" >&6; }
21279
21280if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21281        _pkg_short_errors_supported=yes
21282else
21283        _pkg_short_errors_supported=no
21284fi
21285        if test $_pkg_short_errors_supported = yes; then
21286	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
21287        else
21288	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
21289        fi
21290	# Put the nasty error message in config.log where it belongs
21291	echo "$X11_PKG_ERRORS" >&5
21292
21293	as_fn_error $? "Package requirements ($X11_REQUIRES) were not met:
21294
21295$X11_PKG_ERRORS
21296
21297Consider adjusting the PKG_CONFIG_PATH environment variable if you
21298installed software in a non-standard prefix.
21299
21300Alternatively, you may set the environment variables X11_CFLAGS
21301and X11_LIBS to avoid the need to call pkg-config.
21302See the pkg-config man page for more details." "$LINENO" 5
21303elif test $pkg_failed = untried; then
21304     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21305$as_echo "no" >&6; }
21306	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21308as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21309is in your PATH or set the PKG_CONFIG environment variable to the full
21310path to pkg-config.
21311
21312Alternatively, you may set the environment variables X11_CFLAGS
21313and X11_LIBS to avoid the need to call pkg-config.
21314See the pkg-config man page for more details.
21315
21316To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21317See \`config.log' for more details" "$LINENO" 5; }
21318else
21319	X11_CFLAGS=$pkg_cv_X11_CFLAGS
21320	X11_LIBS=$pkg_cv_X11_LIBS
21321        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21322$as_echo "yes" >&6; }
21323
21324fi
21325X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS"
21326
21327#
21328# Yes, it would be nice to put the locale data in
21329# /usr/share, but the locale stuff includes loadable
21330# libraries which must be located in the same directory
21331# as the other locale data, so for now, everything lives
21332# in ${libdir}
21333#
21334
21335X11_LOCALEDATADIR="${X11_DATADIR}/locale"
21336
21337  prefix_NONE=
21338  exec_prefix_NONE=
21339  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21340  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21341  eval ax_define_dir="\"$X11_LOCALEDATADIR\""
21342  eval ax_define_dir="\"$ax_define_dir\""
21343  XLOCALEDATADIR="$ax_define_dir"
21344
21345
21346cat >>confdefs.h <<_ACEOF
21347#define XLOCALEDATADIR "$ax_define_dir"
21348_ACEOF
21349
21350  test "$prefix_NONE" && prefix=NONE
21351  test "$exec_prefix_NONE" && exec_prefix=NONE
21352
21353
21354
21355
21356# Check whether --with-locale-lib-dir was given.
21357if test "${with_locale_lib_dir+set}" = set; then :
21358  withval=$with_locale_lib_dir;  X11_LOCALELIBDIR="$withval"
21359else
21360   X11_LOCALELIBDIR="${X11_LIBDIR}/locale"
21361fi
21362
21363
21364  prefix_NONE=
21365  exec_prefix_NONE=
21366  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21367  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21368  eval ax_define_dir="\"$X11_LOCALELIBDIR\""
21369  eval ax_define_dir="\"$ax_define_dir\""
21370  XLOCALELIBDIR="$ax_define_dir"
21371
21372
21373cat >>confdefs.h <<_ACEOF
21374#define XLOCALELIBDIR "$ax_define_dir"
21375_ACEOF
21376
21377  test "$prefix_NONE" && prefix=NONE
21378  test "$exec_prefix_NONE" && exec_prefix=NONE
21379
21380
21381
21382X11_LOCALEDIR="${X11_LOCALEDATADIR}"
21383
21384  prefix_NONE=
21385  exec_prefix_NONE=
21386  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21387  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21388  eval ax_define_dir="\"$X11_LOCALEDIR\""
21389  eval ax_define_dir="\"$ax_define_dir\""
21390  XLOCALEDIR="$ax_define_dir"
21391
21392
21393cat >>confdefs.h <<_ACEOF
21394#define XLOCALEDIR "$ax_define_dir"
21395_ACEOF
21396
21397  test "$prefix_NONE" && prefix=NONE
21398  test "$exec_prefix_NONE" && exec_prefix=NONE
21399
21400
21401
21402locales="\
21403 am_ET.UTF-8  armscii-8   C           cs_CZ.UTF-8  el_GR.UTF-8  en_US.UTF-8 \
21404 fi_FI.UTF-8  georgian-academy        georgian-ps  ibm-cp1133   iscii-dev \
21405 isiri-3342   iso8859-1   iso8859-10  iso8859-11   iso8859-13   iso8859-14 \
21406 iso8859-15   iso8859-2   iso8859-3   iso8859-4    iso8859-5    iso8859-6 \
21407 iso8859-7    iso8859-8   iso8859-9   iso8859-9e   ja           ja.JIS \
21408 ja_JP.UTF-8  ja.SJIS     km_KH.UTF-8 ko           koi8-c       koi8-r \
21409 koi8-u       ko_KR.UTF-8 microsoft-cp1251         microsoft-cp1255 \
21410 microsoft-cp1256         mulelao-1   nokhchi-1    pt_BR.UTF-8  pt_PT.UTF-8 \
21411 ru_RU.UTF-8  sr_CS.UTF-8 tatar-cyr   th_TH        th_TH.UTF-8  tscii-0 \
21412 vi_VN.tcvn   vi_VN.viscii            zh_CN        zh_CN.gb18030 \
21413 zh_CN.gbk    zh_CN.UTF-8 zh_HK.big5  zh_HK.big5hkscs           zh_HK.UTF-8 \
21414 zh_TW        zh_TW.big5  zh_TW.UTF-8"
21415
21416
21417XKEYSYMDB="${X11_DATADIR}/XKeysymDB"
21418
21419  prefix_NONE=
21420  exec_prefix_NONE=
21421  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21422  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21423  eval ax_define_dir="\"$XKEYSYMDB\""
21424  eval ax_define_dir="\"$ax_define_dir\""
21425  XKEYSYMDB="$ax_define_dir"
21426
21427
21428cat >>confdefs.h <<_ACEOF
21429#define XKEYSYMDB "$ax_define_dir"
21430_ACEOF
21431
21432  test "$prefix_NONE" && prefix=NONE
21433  test "$exec_prefix_NONE" && exec_prefix=NONE
21434
21435
21436XERRORDB="${X11_DATADIR}/XErrorDB"
21437
21438  prefix_NONE=
21439  exec_prefix_NONE=
21440  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21441  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21442  eval ax_define_dir="\"$XERRORDB\""
21443  eval ax_define_dir="\"$ax_define_dir\""
21444  XERRORDB="$ax_define_dir"
21445
21446
21447cat >>confdefs.h <<_ACEOF
21448#define XERRORDB "$ax_define_dir"
21449_ACEOF
21450
21451  test "$prefix_NONE" && prefix=NONE
21452  test "$exec_prefix_NONE" && exec_prefix=NONE
21453
21454
21455
21456# Check whether --enable-malloc0returnsnull was given.
21457if test "${enable_malloc0returnsnull+set}" = set; then :
21458  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
21459else
21460  MALLOC_ZERO_RETURNS_NULL=auto
21461fi
21462
21463
21464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
21465$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
21466if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
21467if ${xorg_cv_malloc0_returns_null+:} false; then :
21468  $as_echo_n "(cached) " >&6
21469else
21470  if test "$cross_compiling" = yes; then :
21471  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21473as_fn_error $? "cannot run test program while cross compiling
21474See \`config.log' for more details" "$LINENO" 5; }
21475else
21476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21477/* end confdefs.h.  */
21478
21479#include <stdlib.h>
21480
21481int
21482main ()
21483{
21484
21485    char *m0, *r0, *c0, *p;
21486    m0 = malloc(0);
21487    p = malloc(10);
21488    r0 = realloc(p,0);
21489    c0 = calloc(0,10);
21490    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
21491
21492  ;
21493  return 0;
21494}
21495_ACEOF
21496if ac_fn_c_try_run "$LINENO"; then :
21497  xorg_cv_malloc0_returns_null=yes
21498else
21499  xorg_cv_malloc0_returns_null=no
21500fi
21501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21502  conftest.$ac_objext conftest.beam conftest.$ac_ext
21503fi
21504
21505fi
21506
21507MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
21508fi
21509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
21510$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
21511
21512if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
21513	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
21514	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
21515	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
21516else
21517	MALLOC_ZERO_CFLAGS=""
21518	XMALLOC_ZERO_CFLAGS=""
21519	XTMALLOC_ZERO_CFLAGS=""
21520fi
21521
21522
21523
21524
21525
21526
21527ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile man/xkb/Makefile src/Makefile src/util/Makefile src/xcms/Makefile src/xlibi18n/Makefile modules/Makefile modules/im/Makefile modules/im/ximcp/Makefile modules/lc/Makefile modules/lc/def/Makefile modules/lc/gen/Makefile modules/lc/Utf8/Makefile modules/om/Makefile modules/om/generic/Makefile src/xkb/Makefile nls/Makefile specs/Makefile specs/i18n/Makefile specs/i18n/compose/Makefile specs/i18n/framework/Makefile specs/i18n/localedb/Makefile specs/i18n/trans/Makefile specs/libX11/Makefile specs/XIM/Makefile specs/XKB/Makefile x11.pc x11-xcb.pc"
21528
21529cat >confcache <<\_ACEOF
21530# This file is a shell script that caches the results of configure
21531# tests run on this system so they can be shared between configure
21532# scripts and configure runs, see configure's option --config-cache.
21533# It is not useful on other systems.  If it contains results you don't
21534# want to keep, you may remove or edit it.
21535#
21536# config.status only pays attention to the cache file if you give it
21537# the --recheck option to rerun configure.
21538#
21539# `ac_cv_env_foo' variables (set or unset) will be overridden when
21540# loading this file, other *unset* `ac_cv_foo' will be assigned the
21541# following values.
21542
21543_ACEOF
21544
21545# The following way of writing the cache mishandles newlines in values,
21546# but we know of no workaround that is simple, portable, and efficient.
21547# So, we kill variables containing newlines.
21548# Ultrix sh set writes to stderr and can't be redirected directly,
21549# and sets the high bit in the cache file unless we assign to the vars.
21550(
21551  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21552    eval ac_val=\$$ac_var
21553    case $ac_val in #(
21554    *${as_nl}*)
21555      case $ac_var in #(
21556      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21557$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21558      esac
21559      case $ac_var in #(
21560      _ | IFS | as_nl) ;; #(
21561      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21562      *) { eval $ac_var=; unset $ac_var;} ;;
21563      esac ;;
21564    esac
21565  done
21566
21567  (set) 2>&1 |
21568    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21569    *${as_nl}ac_space=\ *)
21570      # `set' does not quote correctly, so add quotes: double-quote
21571      # substitution turns \\\\ into \\, and sed turns \\ into \.
21572      sed -n \
21573	"s/'/'\\\\''/g;
21574	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21575      ;; #(
21576    *)
21577      # `set' quotes correctly as required by POSIX, so do not add quotes.
21578      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21579      ;;
21580    esac |
21581    sort
21582) |
21583  sed '
21584     /^ac_cv_env_/b end
21585     t clear
21586     :clear
21587     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21588     t end
21589     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21590     :end' >>confcache
21591if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21592  if test -w "$cache_file"; then
21593    if test "x$cache_file" != "x/dev/null"; then
21594      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21595$as_echo "$as_me: updating cache $cache_file" >&6;}
21596      if test ! -f "$cache_file" || test -h "$cache_file"; then
21597	cat confcache >"$cache_file"
21598      else
21599        case $cache_file in #(
21600        */* | ?:*)
21601	  mv -f confcache "$cache_file"$$ &&
21602	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21603        *)
21604	  mv -f confcache "$cache_file" ;;
21605	esac
21606      fi
21607    fi
21608  else
21609    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21610$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21611  fi
21612fi
21613rm -f confcache
21614
21615test "x$prefix" = xNONE && prefix=$ac_default_prefix
21616# Let make expand exec_prefix.
21617test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21618
21619DEFS=-DHAVE_CONFIG_H
21620
21621ac_libobjs=
21622ac_ltlibobjs=
21623U=
21624for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21625  # 1. Remove the extension, and $U if already installed.
21626  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21627  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21628  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21629  #    will be set to the directory where LIBOBJS objects are built.
21630  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21631  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21632done
21633LIBOBJS=$ac_libobjs
21634
21635LTLIBOBJS=$ac_ltlibobjs
21636
21637
21638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21639$as_echo_n "checking that generated files are newer than configure... " >&6; }
21640   if test -n "$am_sleep_pid"; then
21641     # Hide warnings about reused PIDs.
21642     wait $am_sleep_pid 2>/dev/null
21643   fi
21644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21645$as_echo "done" >&6; }
21646if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21647  as_fn_error $? "conditional \"AMDEP\" was never defined.
21648Usually this means the macro was only invoked conditionally." "$LINENO" 5
21649fi
21650if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21651  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21652Usually this means the macro was only invoked conditionally." "$LINENO" 5
21653fi
21654 if test -n "$EXEEXT"; then
21655  am__EXEEXT_TRUE=
21656  am__EXEEXT_FALSE='#'
21657else
21658  am__EXEEXT_TRUE='#'
21659  am__EXEEXT_FALSE=
21660fi
21661
21662if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
21663  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
21664Usually this means the macro was only invoked conditionally." "$LINENO" 5
21665fi
21666if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
21667  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
21668Usually this means the macro was only invoked conditionally." "$LINENO" 5
21669fi
21670if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
21671  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
21672Usually this means the macro was only invoked conditionally." "$LINENO" 5
21673fi
21674if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
21675  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
21676Usually this means the macro was only invoked conditionally." "$LINENO" 5
21677fi
21678if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
21679  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
21680Usually this means the macro was only invoked conditionally." "$LINENO" 5
21681fi
21682if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
21683  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
21684Usually this means the macro was only invoked conditionally." "$LINENO" 5
21685fi
21686if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
21687  as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
21688Usually this means the macro was only invoked conditionally." "$LINENO" 5
21689fi
21690if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then
21691  as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined.
21692Usually this means the macro was only invoked conditionally." "$LINENO" 5
21693fi
21694if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then
21695  as_fn_error $? "conditional \"OS2\" was never defined.
21696Usually this means the macro was only invoked conditionally." "$LINENO" 5
21697fi
21698if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then
21699  as_fn_error $? "conditional \"THRSTUBS\" was never defined.
21700Usually this means the macro was only invoked conditionally." "$LINENO" 5
21701fi
21702if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then
21703  as_fn_error $? "conditional \"XCMS\" was never defined.
21704Usually this means the macro was only invoked conditionally." "$LINENO" 5
21705fi
21706if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then
21707  as_fn_error $? "conditional \"XLOCALE\" was never defined.
21708Usually this means the macro was only invoked conditionally." "$LINENO" 5
21709fi
21710if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then
21711  as_fn_error $? "conditional \"XKB\" was never defined.
21712Usually this means the macro was only invoked conditionally." "$LINENO" 5
21713fi
21714if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
21715  as_fn_error $? "conditional \"LINT\" was never defined.
21716Usually this means the macro was only invoked conditionally." "$LINENO" 5
21717fi
21718if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
21719  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
21720Usually this means the macro was only invoked conditionally." "$LINENO" 5
21721fi
21722
21723: "${CONFIG_STATUS=./config.status}"
21724ac_write_fail=0
21725ac_clean_files_save=$ac_clean_files
21726ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21727{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21728$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21729as_write_fail=0
21730cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21731#! $SHELL
21732# Generated by $as_me.
21733# Run this file to recreate the current configuration.
21734# Compiler output produced by configure, useful for debugging
21735# configure, is in config.log if it exists.
21736
21737debug=false
21738ac_cs_recheck=false
21739ac_cs_silent=false
21740
21741SHELL=\${CONFIG_SHELL-$SHELL}
21742export SHELL
21743_ASEOF
21744cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21745## -------------------- ##
21746## M4sh Initialization. ##
21747## -------------------- ##
21748
21749# Be more Bourne compatible
21750DUALCASE=1; export DUALCASE # for MKS sh
21751if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21752  emulate sh
21753  NULLCMD=:
21754  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21755  # is contrary to our usage.  Disable this feature.
21756  alias -g '${1+"$@"}'='"$@"'
21757  setopt NO_GLOB_SUBST
21758else
21759  case `(set -o) 2>/dev/null` in #(
21760  *posix*) :
21761    set -o posix ;; #(
21762  *) :
21763     ;;
21764esac
21765fi
21766
21767
21768as_nl='
21769'
21770export as_nl
21771# Printing a long string crashes Solaris 7 /usr/bin/printf.
21772as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21773as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21774as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21775# Prefer a ksh shell builtin over an external printf program on Solaris,
21776# but without wasting forks for bash or zsh.
21777if test -z "$BASH_VERSION$ZSH_VERSION" \
21778    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21779  as_echo='print -r --'
21780  as_echo_n='print -rn --'
21781elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21782  as_echo='printf %s\n'
21783  as_echo_n='printf %s'
21784else
21785  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21786    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21787    as_echo_n='/usr/ucb/echo -n'
21788  else
21789    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21790    as_echo_n_body='eval
21791      arg=$1;
21792      case $arg in #(
21793      *"$as_nl"*)
21794	expr "X$arg" : "X\\(.*\\)$as_nl";
21795	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21796      esac;
21797      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21798    '
21799    export as_echo_n_body
21800    as_echo_n='sh -c $as_echo_n_body as_echo'
21801  fi
21802  export as_echo_body
21803  as_echo='sh -c $as_echo_body as_echo'
21804fi
21805
21806# The user is always right.
21807if test "${PATH_SEPARATOR+set}" != set; then
21808  PATH_SEPARATOR=:
21809  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21810    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21811      PATH_SEPARATOR=';'
21812  }
21813fi
21814
21815
21816# IFS
21817# We need space, tab and new line, in precisely that order.  Quoting is
21818# there to prevent editors from complaining about space-tab.
21819# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21820# splitting by setting IFS to empty value.)
21821IFS=" ""	$as_nl"
21822
21823# Find who we are.  Look in the path if we contain no directory separator.
21824as_myself=
21825case $0 in #((
21826  *[\\/]* ) as_myself=$0 ;;
21827  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21828for as_dir in $PATH
21829do
21830  IFS=$as_save_IFS
21831  test -z "$as_dir" && as_dir=.
21832    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21833  done
21834IFS=$as_save_IFS
21835
21836     ;;
21837esac
21838# We did not find ourselves, most probably we were run as `sh COMMAND'
21839# in which case we are not to be found in the path.
21840if test "x$as_myself" = x; then
21841  as_myself=$0
21842fi
21843if test ! -f "$as_myself"; then
21844  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21845  exit 1
21846fi
21847
21848# Unset variables that we do not need and which cause bugs (e.g. in
21849# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21850# suppresses any "Segmentation fault" message there.  '((' could
21851# trigger a bug in pdksh 5.2.14.
21852for as_var in BASH_ENV ENV MAIL MAILPATH
21853do eval test x\${$as_var+set} = xset \
21854  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21855done
21856PS1='$ '
21857PS2='> '
21858PS4='+ '
21859
21860# NLS nuisances.
21861LC_ALL=C
21862export LC_ALL
21863LANGUAGE=C
21864export LANGUAGE
21865
21866# CDPATH.
21867(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21868
21869
21870# as_fn_error STATUS ERROR [LINENO LOG_FD]
21871# ----------------------------------------
21872# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21873# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21874# script with STATUS, using 1 if that was 0.
21875as_fn_error ()
21876{
21877  as_status=$1; test $as_status -eq 0 && as_status=1
21878  if test "$4"; then
21879    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21880    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21881  fi
21882  $as_echo "$as_me: error: $2" >&2
21883  as_fn_exit $as_status
21884} # as_fn_error
21885
21886
21887# as_fn_set_status STATUS
21888# -----------------------
21889# Set $? to STATUS, without forking.
21890as_fn_set_status ()
21891{
21892  return $1
21893} # as_fn_set_status
21894
21895# as_fn_exit STATUS
21896# -----------------
21897# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21898as_fn_exit ()
21899{
21900  set +e
21901  as_fn_set_status $1
21902  exit $1
21903} # as_fn_exit
21904
21905# as_fn_unset VAR
21906# ---------------
21907# Portably unset VAR.
21908as_fn_unset ()
21909{
21910  { eval $1=; unset $1;}
21911}
21912as_unset=as_fn_unset
21913# as_fn_append VAR VALUE
21914# ----------------------
21915# Append the text in VALUE to the end of the definition contained in VAR. Take
21916# advantage of any shell optimizations that allow amortized linear growth over
21917# repeated appends, instead of the typical quadratic growth present in naive
21918# implementations.
21919if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21920  eval 'as_fn_append ()
21921  {
21922    eval $1+=\$2
21923  }'
21924else
21925  as_fn_append ()
21926  {
21927    eval $1=\$$1\$2
21928  }
21929fi # as_fn_append
21930
21931# as_fn_arith ARG...
21932# ------------------
21933# Perform arithmetic evaluation on the ARGs, and store the result in the
21934# global $as_val. Take advantage of shells that can avoid forks. The arguments
21935# must be portable across $(()) and expr.
21936if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21937  eval 'as_fn_arith ()
21938  {
21939    as_val=$(( $* ))
21940  }'
21941else
21942  as_fn_arith ()
21943  {
21944    as_val=`expr "$@" || test $? -eq 1`
21945  }
21946fi # as_fn_arith
21947
21948
21949if expr a : '\(a\)' >/dev/null 2>&1 &&
21950   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21951  as_expr=expr
21952else
21953  as_expr=false
21954fi
21955
21956if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21957  as_basename=basename
21958else
21959  as_basename=false
21960fi
21961
21962if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21963  as_dirname=dirname
21964else
21965  as_dirname=false
21966fi
21967
21968as_me=`$as_basename -- "$0" ||
21969$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21970	 X"$0" : 'X\(//\)$' \| \
21971	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21972$as_echo X/"$0" |
21973    sed '/^.*\/\([^/][^/]*\)\/*$/{
21974	    s//\1/
21975	    q
21976	  }
21977	  /^X\/\(\/\/\)$/{
21978	    s//\1/
21979	    q
21980	  }
21981	  /^X\/\(\/\).*/{
21982	    s//\1/
21983	    q
21984	  }
21985	  s/.*/./; q'`
21986
21987# Avoid depending upon Character Ranges.
21988as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21989as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21990as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21991as_cr_digits='0123456789'
21992as_cr_alnum=$as_cr_Letters$as_cr_digits
21993
21994ECHO_C= ECHO_N= ECHO_T=
21995case `echo -n x` in #(((((
21996-n*)
21997  case `echo 'xy\c'` in
21998  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21999  xy)  ECHO_C='\c';;
22000  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22001       ECHO_T='	';;
22002  esac;;
22003*)
22004  ECHO_N='-n';;
22005esac
22006
22007rm -f conf$$ conf$$.exe conf$$.file
22008if test -d conf$$.dir; then
22009  rm -f conf$$.dir/conf$$.file
22010else
22011  rm -f conf$$.dir
22012  mkdir conf$$.dir 2>/dev/null
22013fi
22014if (echo >conf$$.file) 2>/dev/null; then
22015  if ln -s conf$$.file conf$$ 2>/dev/null; then
22016    as_ln_s='ln -s'
22017    # ... but there are two gotchas:
22018    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22019    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22020    # In both cases, we have to default to `cp -pR'.
22021    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22022      as_ln_s='cp -pR'
22023  elif ln conf$$.file conf$$ 2>/dev/null; then
22024    as_ln_s=ln
22025  else
22026    as_ln_s='cp -pR'
22027  fi
22028else
22029  as_ln_s='cp -pR'
22030fi
22031rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22032rmdir conf$$.dir 2>/dev/null
22033
22034
22035# as_fn_mkdir_p
22036# -------------
22037# Create "$as_dir" as a directory, including parents if necessary.
22038as_fn_mkdir_p ()
22039{
22040
22041  case $as_dir in #(
22042  -*) as_dir=./$as_dir;;
22043  esac
22044  test -d "$as_dir" || eval $as_mkdir_p || {
22045    as_dirs=
22046    while :; do
22047      case $as_dir in #(
22048      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22049      *) as_qdir=$as_dir;;
22050      esac
22051      as_dirs="'$as_qdir' $as_dirs"
22052      as_dir=`$as_dirname -- "$as_dir" ||
22053$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22054	 X"$as_dir" : 'X\(//\)[^/]' \| \
22055	 X"$as_dir" : 'X\(//\)$' \| \
22056	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22057$as_echo X"$as_dir" |
22058    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22059	    s//\1/
22060	    q
22061	  }
22062	  /^X\(\/\/\)[^/].*/{
22063	    s//\1/
22064	    q
22065	  }
22066	  /^X\(\/\/\)$/{
22067	    s//\1/
22068	    q
22069	  }
22070	  /^X\(\/\).*/{
22071	    s//\1/
22072	    q
22073	  }
22074	  s/.*/./; q'`
22075      test -d "$as_dir" && break
22076    done
22077    test -z "$as_dirs" || eval "mkdir $as_dirs"
22078  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22079
22080
22081} # as_fn_mkdir_p
22082if mkdir -p . 2>/dev/null; then
22083  as_mkdir_p='mkdir -p "$as_dir"'
22084else
22085  test -d ./-p && rmdir ./-p
22086  as_mkdir_p=false
22087fi
22088
22089
22090# as_fn_executable_p FILE
22091# -----------------------
22092# Test if FILE is an executable regular file.
22093as_fn_executable_p ()
22094{
22095  test -f "$1" && test -x "$1"
22096} # as_fn_executable_p
22097as_test_x='test -x'
22098as_executable_p=as_fn_executable_p
22099
22100# Sed expression to map a string onto a valid CPP name.
22101as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22102
22103# Sed expression to map a string onto a valid variable name.
22104as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22105
22106
22107exec 6>&1
22108## ----------------------------------- ##
22109## Main body of $CONFIG_STATUS script. ##
22110## ----------------------------------- ##
22111_ASEOF
22112test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22113
22114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22115# Save the log message, to keep $0 and so on meaningful, and to
22116# report actual input values of CONFIG_FILES etc. instead of their
22117# values after options handling.
22118ac_log="
22119This file was extended by libX11 $as_me 1.6.6, which was
22120generated by GNU Autoconf 2.69.  Invocation command line was
22121
22122  CONFIG_FILES    = $CONFIG_FILES
22123  CONFIG_HEADERS  = $CONFIG_HEADERS
22124  CONFIG_LINKS    = $CONFIG_LINKS
22125  CONFIG_COMMANDS = $CONFIG_COMMANDS
22126  $ $0 $@
22127
22128on `(hostname || uname -n) 2>/dev/null | sed 1q`
22129"
22130
22131_ACEOF
22132
22133case $ac_config_files in *"
22134"*) set x $ac_config_files; shift; ac_config_files=$*;;
22135esac
22136
22137case $ac_config_headers in *"
22138"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22139esac
22140
22141
22142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22143# Files that config.status was made for.
22144config_files="$ac_config_files"
22145config_headers="$ac_config_headers"
22146config_commands="$ac_config_commands"
22147
22148_ACEOF
22149
22150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22151ac_cs_usage="\
22152\`$as_me' instantiates files and other configuration actions
22153from templates according to the current configuration.  Unless the files
22154and actions are specified as TAGs, all are instantiated by default.
22155
22156Usage: $0 [OPTION]... [TAG]...
22157
22158  -h, --help       print this help, then exit
22159  -V, --version    print version number and configuration settings, then exit
22160      --config     print configuration, then exit
22161  -q, --quiet, --silent
22162                   do not print progress messages
22163  -d, --debug      don't remove temporary files
22164      --recheck    update $as_me by reconfiguring in the same conditions
22165      --file=FILE[:TEMPLATE]
22166                   instantiate the configuration file FILE
22167      --header=FILE[:TEMPLATE]
22168                   instantiate the configuration header FILE
22169
22170Configuration files:
22171$config_files
22172
22173Configuration headers:
22174$config_headers
22175
22176Configuration commands:
22177$config_commands
22178
22179Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>."
22180
22181_ACEOF
22182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22183ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22184ac_cs_version="\\
22185libX11 config.status 1.6.6
22186configured by $0, generated by GNU Autoconf 2.69,
22187  with options \\"\$ac_cs_config\\"
22188
22189Copyright (C) 2012 Free Software Foundation, Inc.
22190This config.status script is free software; the Free Software Foundation
22191gives unlimited permission to copy, distribute and modify it."
22192
22193ac_pwd='$ac_pwd'
22194srcdir='$srcdir'
22195INSTALL='$INSTALL'
22196MKDIR_P='$MKDIR_P'
22197AWK='$AWK'
22198test -n "\$AWK" || AWK=awk
22199_ACEOF
22200
22201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22202# The default lists apply if the user does not specify any file.
22203ac_need_defaults=:
22204while test $# != 0
22205do
22206  case $1 in
22207  --*=?*)
22208    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22209    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22210    ac_shift=:
22211    ;;
22212  --*=)
22213    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22214    ac_optarg=
22215    ac_shift=:
22216    ;;
22217  *)
22218    ac_option=$1
22219    ac_optarg=$2
22220    ac_shift=shift
22221    ;;
22222  esac
22223
22224  case $ac_option in
22225  # Handling of the options.
22226  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22227    ac_cs_recheck=: ;;
22228  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22229    $as_echo "$ac_cs_version"; exit ;;
22230  --config | --confi | --conf | --con | --co | --c )
22231    $as_echo "$ac_cs_config"; exit ;;
22232  --debug | --debu | --deb | --de | --d | -d )
22233    debug=: ;;
22234  --file | --fil | --fi | --f )
22235    $ac_shift
22236    case $ac_optarg in
22237    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22238    '') as_fn_error $? "missing file argument" ;;
22239    esac
22240    as_fn_append CONFIG_FILES " '$ac_optarg'"
22241    ac_need_defaults=false;;
22242  --header | --heade | --head | --hea )
22243    $ac_shift
22244    case $ac_optarg in
22245    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22246    esac
22247    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22248    ac_need_defaults=false;;
22249  --he | --h)
22250    # Conflict between --help and --header
22251    as_fn_error $? "ambiguous option: \`$1'
22252Try \`$0 --help' for more information.";;
22253  --help | --hel | -h )
22254    $as_echo "$ac_cs_usage"; exit ;;
22255  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22256  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22257    ac_cs_silent=: ;;
22258
22259  # This is an error.
22260  -*) as_fn_error $? "unrecognized option: \`$1'
22261Try \`$0 --help' for more information." ;;
22262
22263  *) as_fn_append ac_config_targets " $1"
22264     ac_need_defaults=false ;;
22265
22266  esac
22267  shift
22268done
22269
22270ac_configure_extra_args=
22271
22272if $ac_cs_silent; then
22273  exec 6>/dev/null
22274  ac_configure_extra_args="$ac_configure_extra_args --silent"
22275fi
22276
22277_ACEOF
22278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22279if \$ac_cs_recheck; then
22280  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22281  shift
22282  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22283  CONFIG_SHELL='$SHELL'
22284  export CONFIG_SHELL
22285  exec "\$@"
22286fi
22287
22288_ACEOF
22289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22290exec 5>>config.log
22291{
22292  echo
22293  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22294## Running $as_me. ##
22295_ASBOX
22296  $as_echo "$ac_log"
22297} >&5
22298
22299_ACEOF
22300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22301#
22302# INIT-COMMANDS
22303#
22304AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22305
22306
22307# The HP-UX ksh and POSIX shell print the target directory to stdout
22308# if CDPATH is set.
22309(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22310
22311sed_quote_subst='$sed_quote_subst'
22312double_quote_subst='$double_quote_subst'
22313delay_variable_subst='$delay_variable_subst'
22314macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22315macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22316enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22317enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22318pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22319enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22320shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22321SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22322ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22323PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22324host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22325host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22326host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22327build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22328build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22329build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22330SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22331Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22332GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22333EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22334FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22335LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22336NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22337LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22338max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22339ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22340exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22341lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22342lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22343lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22344lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22345lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22346reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22347reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22348OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22349deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22350file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22351file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22352want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22353DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22354sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22355AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22356AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22357archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22358STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22359RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22360old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22361old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22362old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22363lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22364CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22365CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22366compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22367GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22368lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22369lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22370lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22371lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22372lt_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"`'
22373lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22374nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22375lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22376lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22377objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22378MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22379lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22380lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22381lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22382lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22383lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22384need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22385MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22386DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22387NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22388LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22389OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22390OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22391libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22392shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22393extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22394archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22395enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22396export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22397whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22398compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22399old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22400old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22401archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22402archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22403module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22404module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22405with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22406allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22407no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22408hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22409hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22410hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22411hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22412hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22413hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22414hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22415inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22416link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22417always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22418export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22419exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22420include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22421prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22422postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22423file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22424variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22425need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22426need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22427version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22428runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22429shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22430shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22431libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22432library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22433soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22434install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22435postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22436postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22437finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22438finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22439hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22440sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22441configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22442configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22443hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22444enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22445enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22446enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22447old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22448striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22449
22450LTCC='$LTCC'
22451LTCFLAGS='$LTCFLAGS'
22452compiler='$compiler_DEFAULT'
22453
22454# A function that is used when there is no print builtin or printf.
22455func_fallback_echo ()
22456{
22457  eval 'cat <<_LTECHO_EOF
22458\$1
22459_LTECHO_EOF'
22460}
22461
22462# Quote evaled strings.
22463for var in SHELL \
22464ECHO \
22465PATH_SEPARATOR \
22466SED \
22467GREP \
22468EGREP \
22469FGREP \
22470LD \
22471NM \
22472LN_S \
22473lt_SP2NL \
22474lt_NL2SP \
22475reload_flag \
22476OBJDUMP \
22477deplibs_check_method \
22478file_magic_cmd \
22479file_magic_glob \
22480want_nocaseglob \
22481DLLTOOL \
22482sharedlib_from_linklib_cmd \
22483AR \
22484AR_FLAGS \
22485archiver_list_spec \
22486STRIP \
22487RANLIB \
22488CC \
22489CFLAGS \
22490compiler \
22491lt_cv_sys_global_symbol_pipe \
22492lt_cv_sys_global_symbol_to_cdecl \
22493lt_cv_sys_global_symbol_to_import \
22494lt_cv_sys_global_symbol_to_c_name_address \
22495lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22496lt_cv_nm_interface \
22497nm_file_list_spec \
22498lt_cv_truncate_bin \
22499lt_prog_compiler_no_builtin_flag \
22500lt_prog_compiler_pic \
22501lt_prog_compiler_wl \
22502lt_prog_compiler_static \
22503lt_cv_prog_compiler_c_o \
22504need_locks \
22505MANIFEST_TOOL \
22506DSYMUTIL \
22507NMEDIT \
22508LIPO \
22509OTOOL \
22510OTOOL64 \
22511shrext_cmds \
22512export_dynamic_flag_spec \
22513whole_archive_flag_spec \
22514compiler_needs_object \
22515with_gnu_ld \
22516allow_undefined_flag \
22517no_undefined_flag \
22518hardcode_libdir_flag_spec \
22519hardcode_libdir_separator \
22520exclude_expsyms \
22521include_expsyms \
22522file_list_spec \
22523variables_saved_for_relink \
22524libname_spec \
22525library_names_spec \
22526soname_spec \
22527install_override_mode \
22528finish_eval \
22529old_striplib \
22530striplib; do
22531    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22532    *[\\\\\\\`\\"\\\$]*)
22533      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22534      ;;
22535    *)
22536      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22537      ;;
22538    esac
22539done
22540
22541# Double-quote double-evaled strings.
22542for var in reload_cmds \
22543old_postinstall_cmds \
22544old_postuninstall_cmds \
22545old_archive_cmds \
22546extract_expsyms_cmds \
22547old_archive_from_new_cmds \
22548old_archive_from_expsyms_cmds \
22549archive_cmds \
22550archive_expsym_cmds \
22551module_cmds \
22552module_expsym_cmds \
22553export_symbols_cmds \
22554prelink_cmds \
22555postlink_cmds \
22556postinstall_cmds \
22557postuninstall_cmds \
22558finish_cmds \
22559sys_lib_search_path_spec \
22560configure_time_dlsearch_path \
22561configure_time_lt_sys_library_path; do
22562    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22563    *[\\\\\\\`\\"\\\$]*)
22564      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22565      ;;
22566    *)
22567      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22568      ;;
22569    esac
22570done
22571
22572ac_aux_dir='$ac_aux_dir'
22573
22574# See if we are running on zsh, and set the options that allow our
22575# commands through without removal of \ escapes INIT.
22576if test -n "\${ZSH_VERSION+set}"; then
22577   setopt NO_GLOB_SUBST
22578fi
22579
22580
22581    PACKAGE='$PACKAGE'
22582    VERSION='$VERSION'
22583    RM='$RM'
22584    ofile='$ofile'
22585
22586
22587
22588
22589_ACEOF
22590
22591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22592
22593# Handling of arguments.
22594for ac_config_target in $ac_config_targets
22595do
22596  case $ac_config_target in
22597    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22598    "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;;
22599    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22600    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22601    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22602    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22603    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22604    "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;;
22605    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22606    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
22607    "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;;
22608    "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;;
22609    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
22610    "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;;
22611    "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;;
22612    "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;;
22613    "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;;
22614    "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;;
22615    "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;;
22616    "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;;
22617    "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;;
22618    "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;;
22619    "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
22620    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
22621    "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;;
22622    "specs/i18n/compose/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/compose/Makefile" ;;
22623    "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;;
22624    "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;;
22625    "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;;
22626    "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;;
22627    "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;;
22628    "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;;
22629    "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;;
22630    "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;;
22631
22632  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22633  esac
22634done
22635
22636
22637# If the user did not use the arguments to specify the items to instantiate,
22638# then the envvar interface is used.  Set only those that are not.
22639# We use the long form for the default assignment because of an extremely
22640# bizarre bug on SunOS 4.1.3.
22641if $ac_need_defaults; then
22642  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22643  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22644  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22645fi
22646
22647# Have a temporary directory for convenience.  Make it in the build tree
22648# simply because there is no reason against having it here, and in addition,
22649# creating and moving files from /tmp can sometimes cause problems.
22650# Hook for its removal unless debugging.
22651# Note that there is a small window in which the directory will not be cleaned:
22652# after its creation but before its name has been assigned to `$tmp'.
22653$debug ||
22654{
22655  tmp= ac_tmp=
22656  trap 'exit_status=$?
22657  : "${ac_tmp:=$tmp}"
22658  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22659' 0
22660  trap 'as_fn_exit 1' 1 2 13 15
22661}
22662# Create a (secure) tmp directory for tmp files.
22663
22664{
22665  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22666  test -d "$tmp"
22667}  ||
22668{
22669  tmp=./conf$$-$RANDOM
22670  (umask 077 && mkdir "$tmp")
22671} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22672ac_tmp=$tmp
22673
22674# Set up the scripts for CONFIG_FILES section.
22675# No need to generate them if there are no CONFIG_FILES.
22676# This happens for instance with `./config.status config.h'.
22677if test -n "$CONFIG_FILES"; then
22678
22679
22680ac_cr=`echo X | tr X '\015'`
22681# On cygwin, bash can eat \r inside `` if the user requested igncr.
22682# But we know of no other shell where ac_cr would be empty at this
22683# point, so we can use a bashism as a fallback.
22684if test "x$ac_cr" = x; then
22685  eval ac_cr=\$\'\\r\'
22686fi
22687ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22688if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22689  ac_cs_awk_cr='\\r'
22690else
22691  ac_cs_awk_cr=$ac_cr
22692fi
22693
22694echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22695_ACEOF
22696
22697
22698{
22699  echo "cat >conf$$subs.awk <<_ACEOF" &&
22700  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22701  echo "_ACEOF"
22702} >conf$$subs.sh ||
22703  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22704ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22705ac_delim='%!_!# '
22706for ac_last_try in false false false false false :; do
22707  . ./conf$$subs.sh ||
22708    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22709
22710  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22711  if test $ac_delim_n = $ac_delim_num; then
22712    break
22713  elif $ac_last_try; then
22714    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22715  else
22716    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22717  fi
22718done
22719rm -f conf$$subs.sh
22720
22721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22722cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22723_ACEOF
22724sed -n '
22725h
22726s/^/S["/; s/!.*/"]=/
22727p
22728g
22729s/^[^!]*!//
22730:repl
22731t repl
22732s/'"$ac_delim"'$//
22733t delim
22734:nl
22735h
22736s/\(.\{148\}\)..*/\1/
22737t more1
22738s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22739p
22740n
22741b repl
22742:more1
22743s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22744p
22745g
22746s/.\{148\}//
22747t nl
22748:delim
22749h
22750s/\(.\{148\}\)..*/\1/
22751t more2
22752s/["\\]/\\&/g; s/^/"/; s/$/"/
22753p
22754b
22755:more2
22756s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22757p
22758g
22759s/.\{148\}//
22760t delim
22761' <conf$$subs.awk | sed '
22762/^[^""]/{
22763  N
22764  s/\n//
22765}
22766' >>$CONFIG_STATUS || ac_write_fail=1
22767rm -f conf$$subs.awk
22768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22769_ACAWK
22770cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22771  for (key in S) S_is_set[key] = 1
22772  FS = ""
22773
22774}
22775{
22776  line = $ 0
22777  nfields = split(line, field, "@")
22778  substed = 0
22779  len = length(field[1])
22780  for (i = 2; i < nfields; i++) {
22781    key = field[i]
22782    keylen = length(key)
22783    if (S_is_set[key]) {
22784      value = S[key]
22785      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22786      len += length(value) + length(field[++i])
22787      substed = 1
22788    } else
22789      len += 1 + keylen
22790  }
22791
22792  print line
22793}
22794
22795_ACAWK
22796_ACEOF
22797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22798if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22799  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22800else
22801  cat
22802fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22803  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22804_ACEOF
22805
22806# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22807# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22808# trailing colons and then remove the whole line if VPATH becomes empty
22809# (actually we leave an empty line to preserve line numbers).
22810if test "x$srcdir" = x.; then
22811  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22812h
22813s///
22814s/^/:/
22815s/[	 ]*$/:/
22816s/:\$(srcdir):/:/g
22817s/:\${srcdir}:/:/g
22818s/:@srcdir@:/:/g
22819s/^:*//
22820s/:*$//
22821x
22822s/\(=[	 ]*\).*/\1/
22823G
22824s/\n//
22825s/^[^=]*=[	 ]*$//
22826}'
22827fi
22828
22829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22830fi # test -n "$CONFIG_FILES"
22831
22832# Set up the scripts for CONFIG_HEADERS section.
22833# No need to generate them if there are no CONFIG_HEADERS.
22834# This happens for instance with `./config.status Makefile'.
22835if test -n "$CONFIG_HEADERS"; then
22836cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22837BEGIN {
22838_ACEOF
22839
22840# Transform confdefs.h into an awk script `defines.awk', embedded as
22841# here-document in config.status, that substitutes the proper values into
22842# config.h.in to produce config.h.
22843
22844# Create a delimiter string that does not exist in confdefs.h, to ease
22845# handling of long lines.
22846ac_delim='%!_!# '
22847for ac_last_try in false false :; do
22848  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22849  if test -z "$ac_tt"; then
22850    break
22851  elif $ac_last_try; then
22852    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22853  else
22854    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22855  fi
22856done
22857
22858# For the awk script, D is an array of macro values keyed by name,
22859# likewise P contains macro parameters if any.  Preserve backslash
22860# newline sequences.
22861
22862ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22863sed -n '
22864s/.\{148\}/&'"$ac_delim"'/g
22865t rset
22866:rset
22867s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22868t def
22869d
22870:def
22871s/\\$//
22872t bsnl
22873s/["\\]/\\&/g
22874s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22875D["\1"]=" \3"/p
22876s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22877d
22878:bsnl
22879s/["\\]/\\&/g
22880s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22881D["\1"]=" \3\\\\\\n"\\/p
22882t cont
22883s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22884t cont
22885d
22886:cont
22887n
22888s/.\{148\}/&'"$ac_delim"'/g
22889t clear
22890:clear
22891s/\\$//
22892t bsnlc
22893s/["\\]/\\&/g; s/^/"/; s/$/"/p
22894d
22895:bsnlc
22896s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22897b cont
22898' <confdefs.h | sed '
22899s/'"$ac_delim"'/"\\\
22900"/g' >>$CONFIG_STATUS || ac_write_fail=1
22901
22902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22903  for (key in D) D_is_set[key] = 1
22904  FS = ""
22905}
22906/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22907  line = \$ 0
22908  split(line, arg, " ")
22909  if (arg[1] == "#") {
22910    defundef = arg[2]
22911    mac1 = arg[3]
22912  } else {
22913    defundef = substr(arg[1], 2)
22914    mac1 = arg[2]
22915  }
22916  split(mac1, mac2, "(") #)
22917  macro = mac2[1]
22918  prefix = substr(line, 1, index(line, defundef) - 1)
22919  if (D_is_set[macro]) {
22920    # Preserve the white space surrounding the "#".
22921    print prefix "define", macro P[macro] D[macro]
22922    next
22923  } else {
22924    # Replace #undef with comments.  This is necessary, for example,
22925    # in the case of _POSIX_SOURCE, which is predefined and required
22926    # on some systems where configure will not decide to define it.
22927    if (defundef == "undef") {
22928      print "/*", prefix defundef, macro, "*/"
22929      next
22930    }
22931  }
22932}
22933{ print }
22934_ACAWK
22935_ACEOF
22936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22937  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22938fi # test -n "$CONFIG_HEADERS"
22939
22940
22941eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22942shift
22943for ac_tag
22944do
22945  case $ac_tag in
22946  :[FHLC]) ac_mode=$ac_tag; continue;;
22947  esac
22948  case $ac_mode$ac_tag in
22949  :[FHL]*:*);;
22950  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22951  :[FH]-) ac_tag=-:-;;
22952  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22953  esac
22954  ac_save_IFS=$IFS
22955  IFS=:
22956  set x $ac_tag
22957  IFS=$ac_save_IFS
22958  shift
22959  ac_file=$1
22960  shift
22961
22962  case $ac_mode in
22963  :L) ac_source=$1;;
22964  :[FH])
22965    ac_file_inputs=
22966    for ac_f
22967    do
22968      case $ac_f in
22969      -) ac_f="$ac_tmp/stdin";;
22970      *) # Look for the file first in the build tree, then in the source tree
22971	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22972	 # because $ac_f cannot contain `:'.
22973	 test -f "$ac_f" ||
22974	   case $ac_f in
22975	   [\\/$]*) false;;
22976	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22977	   esac ||
22978	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22979      esac
22980      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22981      as_fn_append ac_file_inputs " '$ac_f'"
22982    done
22983
22984    # Let's still pretend it is `configure' which instantiates (i.e., don't
22985    # use $as_me), people would be surprised to read:
22986    #    /* config.h.  Generated by config.status.  */
22987    configure_input='Generated from '`
22988	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22989	`' by configure.'
22990    if test x"$ac_file" != x-; then
22991      configure_input="$ac_file.  $configure_input"
22992      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22993$as_echo "$as_me: creating $ac_file" >&6;}
22994    fi
22995    # Neutralize special characters interpreted by sed in replacement strings.
22996    case $configure_input in #(
22997    *\&* | *\|* | *\\* )
22998       ac_sed_conf_input=`$as_echo "$configure_input" |
22999       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23000    *) ac_sed_conf_input=$configure_input;;
23001    esac
23002
23003    case $ac_tag in
23004    *:-:* | *:-) cat >"$ac_tmp/stdin" \
23005      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23006    esac
23007    ;;
23008  esac
23009
23010  ac_dir=`$as_dirname -- "$ac_file" ||
23011$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23012	 X"$ac_file" : 'X\(//\)[^/]' \| \
23013	 X"$ac_file" : 'X\(//\)$' \| \
23014	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23015$as_echo X"$ac_file" |
23016    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23017	    s//\1/
23018	    q
23019	  }
23020	  /^X\(\/\/\)[^/].*/{
23021	    s//\1/
23022	    q
23023	  }
23024	  /^X\(\/\/\)$/{
23025	    s//\1/
23026	    q
23027	  }
23028	  /^X\(\/\).*/{
23029	    s//\1/
23030	    q
23031	  }
23032	  s/.*/./; q'`
23033  as_dir="$ac_dir"; as_fn_mkdir_p
23034  ac_builddir=.
23035
23036case "$ac_dir" in
23037.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23038*)
23039  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23040  # A ".." for each directory in $ac_dir_suffix.
23041  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23042  case $ac_top_builddir_sub in
23043  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23044  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23045  esac ;;
23046esac
23047ac_abs_top_builddir=$ac_pwd
23048ac_abs_builddir=$ac_pwd$ac_dir_suffix
23049# for backward compatibility:
23050ac_top_builddir=$ac_top_build_prefix
23051
23052case $srcdir in
23053  .)  # We are building in place.
23054    ac_srcdir=.
23055    ac_top_srcdir=$ac_top_builddir_sub
23056    ac_abs_top_srcdir=$ac_pwd ;;
23057  [\\/]* | ?:[\\/]* )  # Absolute name.
23058    ac_srcdir=$srcdir$ac_dir_suffix;
23059    ac_top_srcdir=$srcdir
23060    ac_abs_top_srcdir=$srcdir ;;
23061  *) # Relative name.
23062    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23063    ac_top_srcdir=$ac_top_build_prefix$srcdir
23064    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23065esac
23066ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23067
23068
23069  case $ac_mode in
23070  :F)
23071  #
23072  # CONFIG_FILE
23073  #
23074
23075  case $INSTALL in
23076  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23077  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23078  esac
23079  ac_MKDIR_P=$MKDIR_P
23080  case $MKDIR_P in
23081  [\\/$]* | ?:[\\/]* ) ;;
23082  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23083  esac
23084_ACEOF
23085
23086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23087# If the template does not know about datarootdir, expand it.
23088# FIXME: This hack should be removed a few years after 2.60.
23089ac_datarootdir_hack=; ac_datarootdir_seen=
23090ac_sed_dataroot='
23091/datarootdir/ {
23092  p
23093  q
23094}
23095/@datadir@/p
23096/@docdir@/p
23097/@infodir@/p
23098/@localedir@/p
23099/@mandir@/p'
23100case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23101*datarootdir*) ac_datarootdir_seen=yes;;
23102*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23103  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23104$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23105_ACEOF
23106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23107  ac_datarootdir_hack='
23108  s&@datadir@&$datadir&g
23109  s&@docdir@&$docdir&g
23110  s&@infodir@&$infodir&g
23111  s&@localedir@&$localedir&g
23112  s&@mandir@&$mandir&g
23113  s&\\\${datarootdir}&$datarootdir&g' ;;
23114esac
23115_ACEOF
23116
23117# Neutralize VPATH when `$srcdir' = `.'.
23118# Shell code in configure.ac might set extrasub.
23119# FIXME: do we really want to maintain this feature?
23120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23121ac_sed_extra="$ac_vpsub
23122$extrasub
23123_ACEOF
23124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23125:t
23126/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23127s|@configure_input@|$ac_sed_conf_input|;t t
23128s&@top_builddir@&$ac_top_builddir_sub&;t t
23129s&@top_build_prefix@&$ac_top_build_prefix&;t t
23130s&@srcdir@&$ac_srcdir&;t t
23131s&@abs_srcdir@&$ac_abs_srcdir&;t t
23132s&@top_srcdir@&$ac_top_srcdir&;t t
23133s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23134s&@builddir@&$ac_builddir&;t t
23135s&@abs_builddir@&$ac_abs_builddir&;t t
23136s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23137s&@INSTALL@&$ac_INSTALL&;t t
23138s&@MKDIR_P@&$ac_MKDIR_P&;t t
23139$ac_datarootdir_hack
23140"
23141eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23142  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23143
23144test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23145  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23146  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
23147      "$ac_tmp/out"`; test -z "$ac_out"; } &&
23148  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23149which seems to be undefined.  Please make sure it is defined" >&5
23150$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23151which seems to be undefined.  Please make sure it is defined" >&2;}
23152
23153  rm -f "$ac_tmp/stdin"
23154  case $ac_file in
23155  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23156  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23157  esac \
23158  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23159 ;;
23160  :H)
23161  #
23162  # CONFIG_HEADER
23163  #
23164  if test x"$ac_file" != x-; then
23165    {
23166      $as_echo "/* $configure_input  */" \
23167      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23168    } >"$ac_tmp/config.h" \
23169      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23170    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23171      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23172$as_echo "$as_me: $ac_file is unchanged" >&6;}
23173    else
23174      rm -f "$ac_file"
23175      mv "$ac_tmp/config.h" "$ac_file" \
23176	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23177    fi
23178  else
23179    $as_echo "/* $configure_input  */" \
23180      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23181      || as_fn_error $? "could not create -" "$LINENO" 5
23182  fi
23183# Compute "$ac_file"'s index in $config_headers.
23184_am_arg="$ac_file"
23185_am_stamp_count=1
23186for _am_header in $config_headers :; do
23187  case $_am_header in
23188    $_am_arg | $_am_arg:* )
23189      break ;;
23190    * )
23191      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23192  esac
23193done
23194echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23195$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23196	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23197	 X"$_am_arg" : 'X\(//\)$' \| \
23198	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23199$as_echo X"$_am_arg" |
23200    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23201	    s//\1/
23202	    q
23203	  }
23204	  /^X\(\/\/\)[^/].*/{
23205	    s//\1/
23206	    q
23207	  }
23208	  /^X\(\/\/\)$/{
23209	    s//\1/
23210	    q
23211	  }
23212	  /^X\(\/\).*/{
23213	    s//\1/
23214	    q
23215	  }
23216	  s/.*/./; q'`/stamp-h$_am_stamp_count
23217 ;;
23218
23219  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23220$as_echo "$as_me: executing $ac_file commands" >&6;}
23221 ;;
23222  esac
23223
23224
23225  case $ac_file$ac_mode in
23226    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23227  # Older Autoconf quotes --file arguments for eval, but not when files
23228  # are listed without --file.  Let's play safe and only enable the eval
23229  # if we detect the quoting.
23230  case $CONFIG_FILES in
23231  *\'*) eval set x "$CONFIG_FILES" ;;
23232  *)   set x $CONFIG_FILES ;;
23233  esac
23234  shift
23235  for mf
23236  do
23237    # Strip MF so we end up with the name of the file.
23238    mf=`echo "$mf" | sed -e 's/:.*$//'`
23239    # Check whether this is an Automake generated Makefile or not.
23240    # We used to match only the files named 'Makefile.in', but
23241    # some people rename them; so instead we look at the file content.
23242    # Grep'ing the first line is not enough: some people post-process
23243    # each Makefile.in and add a new line on top of each file to say so.
23244    # Grep'ing the whole file is not good either: AIX grep has a line
23245    # limit of 2048, but all sed's we know have understand at least 4000.
23246    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23247      dirpart=`$as_dirname -- "$mf" ||
23248$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23249	 X"$mf" : 'X\(//\)[^/]' \| \
23250	 X"$mf" : 'X\(//\)$' \| \
23251	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23252$as_echo X"$mf" |
23253    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23254	    s//\1/
23255	    q
23256	  }
23257	  /^X\(\/\/\)[^/].*/{
23258	    s//\1/
23259	    q
23260	  }
23261	  /^X\(\/\/\)$/{
23262	    s//\1/
23263	    q
23264	  }
23265	  /^X\(\/\).*/{
23266	    s//\1/
23267	    q
23268	  }
23269	  s/.*/./; q'`
23270    else
23271      continue
23272    fi
23273    # Extract the definition of DEPDIR, am__include, and am__quote
23274    # from the Makefile without running 'make'.
23275    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23276    test -z "$DEPDIR" && continue
23277    am__include=`sed -n 's/^am__include = //p' < "$mf"`
23278    test -z "$am__include" && continue
23279    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23280    # Find all dependency output files, they are included files with
23281    # $(DEPDIR) in their names.  We invoke sed twice because it is the
23282    # simplest approach to changing $(DEPDIR) to its actual value in the
23283    # expansion.
23284    for file in `sed -n "
23285      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23286	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23287      # Make sure the directory exists.
23288      test -f "$dirpart/$file" && continue
23289      fdir=`$as_dirname -- "$file" ||
23290$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23291	 X"$file" : 'X\(//\)[^/]' \| \
23292	 X"$file" : 'X\(//\)$' \| \
23293	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23294$as_echo X"$file" |
23295    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23296	    s//\1/
23297	    q
23298	  }
23299	  /^X\(\/\/\)[^/].*/{
23300	    s//\1/
23301	    q
23302	  }
23303	  /^X\(\/\/\)$/{
23304	    s//\1/
23305	    q
23306	  }
23307	  /^X\(\/\).*/{
23308	    s//\1/
23309	    q
23310	  }
23311	  s/.*/./; q'`
23312      as_dir=$dirpart/$fdir; as_fn_mkdir_p
23313      # echo "creating $dirpart/$file"
23314      echo '# dummy' > "$dirpart/$file"
23315    done
23316  done
23317}
23318 ;;
23319    "libtool":C)
23320
23321    # See if we are running on zsh, and set the options that allow our
23322    # commands through without removal of \ escapes.
23323    if test -n "${ZSH_VERSION+set}"; then
23324      setopt NO_GLOB_SUBST
23325    fi
23326
23327    cfgfile=${ofile}T
23328    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23329    $RM "$cfgfile"
23330
23331    cat <<_LT_EOF >> "$cfgfile"
23332#! $SHELL
23333# Generated automatically by $as_me ($PACKAGE) $VERSION
23334# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23335# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23336
23337# Provide generalized library-building support services.
23338# Written by Gordon Matzigkeit, 1996
23339
23340# Copyright (C) 2014 Free Software Foundation, Inc.
23341# This is free software; see the source for copying conditions.  There is NO
23342# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23343
23344# GNU Libtool is free software; you can redistribute it and/or modify
23345# it under the terms of the GNU General Public License as published by
23346# the Free Software Foundation; either version 2 of of the License, or
23347# (at your option) any later version.
23348#
23349# As a special exception to the GNU General Public License, if you
23350# distribute this file as part of a program or library that is built
23351# using GNU Libtool, you may include this file under the  same
23352# distribution terms that you use for the rest of that program.
23353#
23354# GNU Libtool is distributed in the hope that it will be useful, but
23355# WITHOUT ANY WARRANTY; without even the implied warranty of
23356# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23357# GNU General Public License for more details.
23358#
23359# You should have received a copy of the GNU General Public License
23360# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23361
23362
23363# The names of the tagged configurations supported by this script.
23364available_tags=''
23365
23366# Configured defaults for sys_lib_dlsearch_path munging.
23367: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23368
23369# ### BEGIN LIBTOOL CONFIG
23370
23371# Which release of libtool.m4 was used?
23372macro_version=$macro_version
23373macro_revision=$macro_revision
23374
23375# Whether or not to build shared libraries.
23376build_libtool_libs=$enable_shared
23377
23378# Whether or not to build static libraries.
23379build_old_libs=$enable_static
23380
23381# What type of objects to build.
23382pic_mode=$pic_mode
23383
23384# Whether or not to optimize for fast installation.
23385fast_install=$enable_fast_install
23386
23387# Shared archive member basename,for filename based shared library versioning on AIX.
23388shared_archive_member_spec=$shared_archive_member_spec
23389
23390# Shell to use when invoking shell scripts.
23391SHELL=$lt_SHELL
23392
23393# An echo program that protects backslashes.
23394ECHO=$lt_ECHO
23395
23396# The PATH separator for the build system.
23397PATH_SEPARATOR=$lt_PATH_SEPARATOR
23398
23399# The host system.
23400host_alias=$host_alias
23401host=$host
23402host_os=$host_os
23403
23404# The build system.
23405build_alias=$build_alias
23406build=$build
23407build_os=$build_os
23408
23409# A sed program that does not truncate output.
23410SED=$lt_SED
23411
23412# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23413Xsed="\$SED -e 1s/^X//"
23414
23415# A grep program that handles long lines.
23416GREP=$lt_GREP
23417
23418# An ERE matcher.
23419EGREP=$lt_EGREP
23420
23421# A literal string matcher.
23422FGREP=$lt_FGREP
23423
23424# A BSD- or MS-compatible name lister.
23425NM=$lt_NM
23426
23427# Whether we need soft or hard links.
23428LN_S=$lt_LN_S
23429
23430# What is the maximum length of a command?
23431max_cmd_len=$max_cmd_len
23432
23433# Object file suffix (normally "o").
23434objext=$ac_objext
23435
23436# Executable file suffix (normally "").
23437exeext=$exeext
23438
23439# whether the shell understands "unset".
23440lt_unset=$lt_unset
23441
23442# turn spaces into newlines.
23443SP2NL=$lt_lt_SP2NL
23444
23445# turn newlines into spaces.
23446NL2SP=$lt_lt_NL2SP
23447
23448# convert \$build file names to \$host format.
23449to_host_file_cmd=$lt_cv_to_host_file_cmd
23450
23451# convert \$build files to toolchain format.
23452to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23453
23454# An object symbol dumper.
23455OBJDUMP=$lt_OBJDUMP
23456
23457# Method to check whether dependent libraries are shared objects.
23458deplibs_check_method=$lt_deplibs_check_method
23459
23460# Command to use when deplibs_check_method = "file_magic".
23461file_magic_cmd=$lt_file_magic_cmd
23462
23463# How to find potential files when deplibs_check_method = "file_magic".
23464file_magic_glob=$lt_file_magic_glob
23465
23466# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23467want_nocaseglob=$lt_want_nocaseglob
23468
23469# DLL creation program.
23470DLLTOOL=$lt_DLLTOOL
23471
23472# Command to associate shared and link libraries.
23473sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23474
23475# The archiver.
23476AR=$lt_AR
23477
23478# Flags to create an archive.
23479AR_FLAGS=$lt_AR_FLAGS
23480
23481# How to feed a file listing to the archiver.
23482archiver_list_spec=$lt_archiver_list_spec
23483
23484# A symbol stripping program.
23485STRIP=$lt_STRIP
23486
23487# Commands used to install an old-style archive.
23488RANLIB=$lt_RANLIB
23489old_postinstall_cmds=$lt_old_postinstall_cmds
23490old_postuninstall_cmds=$lt_old_postuninstall_cmds
23491
23492# Whether to use a lock for old archive extraction.
23493lock_old_archive_extraction=$lock_old_archive_extraction
23494
23495# A C compiler.
23496LTCC=$lt_CC
23497
23498# LTCC compiler flags.
23499LTCFLAGS=$lt_CFLAGS
23500
23501# Take the output of nm and produce a listing of raw symbols and C names.
23502global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23503
23504# Transform the output of nm in a proper C declaration.
23505global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23506
23507# Transform the output of nm into a list of symbols to manually relocate.
23508global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23509
23510# Transform the output of nm in a C name address pair.
23511global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23512
23513# Transform the output of nm in a C name address pair when lib prefix is needed.
23514global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23515
23516# The name lister interface.
23517nm_interface=$lt_lt_cv_nm_interface
23518
23519# Specify filename containing input files for \$NM.
23520nm_file_list_spec=$lt_nm_file_list_spec
23521
23522# The root where to search for dependent libraries,and where our libraries should be installed.
23523lt_sysroot=$lt_sysroot
23524
23525# Command to truncate a binary pipe.
23526lt_truncate_bin=$lt_lt_cv_truncate_bin
23527
23528# The name of the directory that contains temporary libtool files.
23529objdir=$objdir
23530
23531# Used to examine libraries when file_magic_cmd begins with "file".
23532MAGIC_CMD=$MAGIC_CMD
23533
23534# Must we lock files when doing compilation?
23535need_locks=$lt_need_locks
23536
23537# Manifest tool.
23538MANIFEST_TOOL=$lt_MANIFEST_TOOL
23539
23540# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23541DSYMUTIL=$lt_DSYMUTIL
23542
23543# Tool to change global to local symbols on Mac OS X.
23544NMEDIT=$lt_NMEDIT
23545
23546# Tool to manipulate fat objects and archives on Mac OS X.
23547LIPO=$lt_LIPO
23548
23549# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23550OTOOL=$lt_OTOOL
23551
23552# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23553OTOOL64=$lt_OTOOL64
23554
23555# Old archive suffix (normally "a").
23556libext=$libext
23557
23558# Shared library suffix (normally ".so").
23559shrext_cmds=$lt_shrext_cmds
23560
23561# The commands to extract the exported symbol list from a shared archive.
23562extract_expsyms_cmds=$lt_extract_expsyms_cmds
23563
23564# Variables whose values should be saved in libtool wrapper scripts and
23565# restored at link time.
23566variables_saved_for_relink=$lt_variables_saved_for_relink
23567
23568# Do we need the "lib" prefix for modules?
23569need_lib_prefix=$need_lib_prefix
23570
23571# Do we need a version for libraries?
23572need_version=$need_version
23573
23574# Library versioning type.
23575version_type=$version_type
23576
23577# Shared library runtime path variable.
23578runpath_var=$runpath_var
23579
23580# Shared library path variable.
23581shlibpath_var=$shlibpath_var
23582
23583# Is shlibpath searched before the hard-coded library search path?
23584shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23585
23586# Format of library name prefix.
23587libname_spec=$lt_libname_spec
23588
23589# List of archive names.  First name is the real one, the rest are links.
23590# The last name is the one that the linker finds with -lNAME
23591library_names_spec=$lt_library_names_spec
23592
23593# The coded name of the library, if different from the real name.
23594soname_spec=$lt_soname_spec
23595
23596# Permission mode override for installation of shared libraries.
23597install_override_mode=$lt_install_override_mode
23598
23599# Command to use after installation of a shared archive.
23600postinstall_cmds=$lt_postinstall_cmds
23601
23602# Command to use after uninstallation of a shared archive.
23603postuninstall_cmds=$lt_postuninstall_cmds
23604
23605# Commands used to finish a libtool library installation in a directory.
23606finish_cmds=$lt_finish_cmds
23607
23608# As "finish_cmds", except a single script fragment to be evaled but
23609# not shown.
23610finish_eval=$lt_finish_eval
23611
23612# Whether we should hardcode library paths into libraries.
23613hardcode_into_libs=$hardcode_into_libs
23614
23615# Compile-time system search path for libraries.
23616sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23617
23618# Detected run-time system search path for libraries.
23619sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23620
23621# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23622configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23623
23624# Whether dlopen is supported.
23625dlopen_support=$enable_dlopen
23626
23627# Whether dlopen of programs is supported.
23628dlopen_self=$enable_dlopen_self
23629
23630# Whether dlopen of statically linked programs is supported.
23631dlopen_self_static=$enable_dlopen_self_static
23632
23633# Commands to strip libraries.
23634old_striplib=$lt_old_striplib
23635striplib=$lt_striplib
23636
23637
23638# The linker used to build libraries.
23639LD=$lt_LD
23640
23641# How to create reloadable object files.
23642reload_flag=$lt_reload_flag
23643reload_cmds=$lt_reload_cmds
23644
23645# Commands used to build an old-style archive.
23646old_archive_cmds=$lt_old_archive_cmds
23647
23648# A language specific compiler.
23649CC=$lt_compiler
23650
23651# Is the compiler the GNU compiler?
23652with_gcc=$GCC
23653
23654# Compiler flag to turn off builtin functions.
23655no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23656
23657# Additional compiler flags for building library objects.
23658pic_flag=$lt_lt_prog_compiler_pic
23659
23660# How to pass a linker flag through the compiler.
23661wl=$lt_lt_prog_compiler_wl
23662
23663# Compiler flag to prevent dynamic linking.
23664link_static_flag=$lt_lt_prog_compiler_static
23665
23666# Does compiler simultaneously support -c and -o options?
23667compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23668
23669# Whether or not to add -lc for building shared libraries.
23670build_libtool_need_lc=$archive_cmds_need_lc
23671
23672# Whether or not to disallow shared libs when runtime libs are static.
23673allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23674
23675# Compiler flag to allow reflexive dlopens.
23676export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23677
23678# Compiler flag to generate shared objects directly from archives.
23679whole_archive_flag_spec=$lt_whole_archive_flag_spec
23680
23681# Whether the compiler copes with passing no objects directly.
23682compiler_needs_object=$lt_compiler_needs_object
23683
23684# Create an old-style archive from a shared archive.
23685old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23686
23687# Create a temporary old-style archive to link instead of a shared archive.
23688old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23689
23690# Commands used to build a shared archive.
23691archive_cmds=$lt_archive_cmds
23692archive_expsym_cmds=$lt_archive_expsym_cmds
23693
23694# Commands used to build a loadable module if different from building
23695# a shared archive.
23696module_cmds=$lt_module_cmds
23697module_expsym_cmds=$lt_module_expsym_cmds
23698
23699# Whether we are building with GNU ld or not.
23700with_gnu_ld=$lt_with_gnu_ld
23701
23702# Flag that allows shared libraries with undefined symbols to be built.
23703allow_undefined_flag=$lt_allow_undefined_flag
23704
23705# Flag that enforces no undefined symbols.
23706no_undefined_flag=$lt_no_undefined_flag
23707
23708# Flag to hardcode \$libdir into a binary during linking.
23709# This must work even if \$libdir does not exist
23710hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23711
23712# Whether we need a single "-rpath" flag with a separated argument.
23713hardcode_libdir_separator=$lt_hardcode_libdir_separator
23714
23715# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23716# DIR into the resulting binary.
23717hardcode_direct=$hardcode_direct
23718
23719# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23720# DIR into the resulting binary and the resulting library dependency is
23721# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23722# library is relocated.
23723hardcode_direct_absolute=$hardcode_direct_absolute
23724
23725# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23726# into the resulting binary.
23727hardcode_minus_L=$hardcode_minus_L
23728
23729# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23730# into the resulting binary.
23731hardcode_shlibpath_var=$hardcode_shlibpath_var
23732
23733# Set to "yes" if building a shared library automatically hardcodes DIR
23734# into the library and all subsequent libraries and executables linked
23735# against it.
23736hardcode_automatic=$hardcode_automatic
23737
23738# Set to yes if linker adds runtime paths of dependent libraries
23739# to runtime path list.
23740inherit_rpath=$inherit_rpath
23741
23742# Whether libtool must link a program against all its dependency libraries.
23743link_all_deplibs=$link_all_deplibs
23744
23745# Set to "yes" if exported symbols are required.
23746always_export_symbols=$always_export_symbols
23747
23748# The commands to list exported symbols.
23749export_symbols_cmds=$lt_export_symbols_cmds
23750
23751# Symbols that should not be listed in the preloaded symbols.
23752exclude_expsyms=$lt_exclude_expsyms
23753
23754# Symbols that must always be exported.
23755include_expsyms=$lt_include_expsyms
23756
23757# Commands necessary for linking programs (against libraries) with templates.
23758prelink_cmds=$lt_prelink_cmds
23759
23760# Commands necessary for finishing linking programs.
23761postlink_cmds=$lt_postlink_cmds
23762
23763# Specify filename containing input files.
23764file_list_spec=$lt_file_list_spec
23765
23766# How to hardcode a shared library path into an executable.
23767hardcode_action=$hardcode_action
23768
23769# ### END LIBTOOL CONFIG
23770
23771_LT_EOF
23772
23773    cat <<'_LT_EOF' >> "$cfgfile"
23774
23775# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23776
23777# func_munge_path_list VARIABLE PATH
23778# -----------------------------------
23779# VARIABLE is name of variable containing _space_ separated list of
23780# directories to be munged by the contents of PATH, which is string
23781# having a format:
23782# "DIR[:DIR]:"
23783#       string "DIR[ DIR]" will be prepended to VARIABLE
23784# ":DIR[:DIR]"
23785#       string "DIR[ DIR]" will be appended to VARIABLE
23786# "DIRP[:DIRP]::[DIRA:]DIRA"
23787#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23788#       "DIRA[ DIRA]" will be appended to VARIABLE
23789# "DIR[:DIR]"
23790#       VARIABLE will be replaced by "DIR[ DIR]"
23791func_munge_path_list ()
23792{
23793    case x$2 in
23794    x)
23795        ;;
23796    *:)
23797        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23798        ;;
23799    x:*)
23800        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23801        ;;
23802    *::*)
23803        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23804        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23805        ;;
23806    *)
23807        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23808        ;;
23809    esac
23810}
23811
23812
23813# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23814func_cc_basename ()
23815{
23816    for cc_temp in $*""; do
23817      case $cc_temp in
23818        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23819        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23820        \-*) ;;
23821        *) break;;
23822      esac
23823    done
23824    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23825}
23826
23827
23828# ### END FUNCTIONS SHARED WITH CONFIGURE
23829
23830_LT_EOF
23831
23832  case $host_os in
23833  aix3*)
23834    cat <<\_LT_EOF >> "$cfgfile"
23835# AIX sometimes has problems with the GCC collect2 program.  For some
23836# reason, if we set the COLLECT_NAMES environment variable, the problems
23837# vanish in a puff of smoke.
23838if test set != "${COLLECT_NAMES+set}"; then
23839  COLLECT_NAMES=
23840  export COLLECT_NAMES
23841fi
23842_LT_EOF
23843    ;;
23844  esac
23845
23846
23847ltmain=$ac_aux_dir/ltmain.sh
23848
23849
23850  # We use sed instead of cat because bash on DJGPP gets confused if
23851  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23852  # text mode, it properly converts lines to CR/LF.  This bash problem
23853  # is reportedly fixed, but why not run on old versions too?
23854  sed '$q' "$ltmain" >> "$cfgfile" \
23855     || (rm -f "$cfgfile"; exit 1)
23856
23857   mv -f "$cfgfile" "$ofile" ||
23858    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23859  chmod +x "$ofile"
23860
23861 ;;
23862
23863  esac
23864done # for ac_tag
23865
23866
23867as_fn_exit 0
23868_ACEOF
23869ac_clean_files=$ac_clean_files_save
23870
23871test $ac_write_fail = 0 ||
23872  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23873
23874
23875# configure is writing to config.log, and then calls config.status.
23876# config.status does its own redirection, appending to config.log.
23877# Unfortunately, on DOS this fails, as config.log is still kept open
23878# by configure, so config.status won't be able to write to it; its
23879# output is simply discarded.  So we exec the FD to /dev/null,
23880# effectively closing config.log, so it can be properly (re)opened and
23881# appended to by config.status.  When coming back to configure, we
23882# need to make the FD available again.
23883if test "$no_create" != yes; then
23884  ac_cs_success=:
23885  ac_config_status_args=
23886  test "$silent" = yes &&
23887    ac_config_status_args="$ac_config_status_args --quiet"
23888  exec 5>/dev/null
23889  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23890  exec 5>>config.log
23891  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23892  # would make configure fail if this is the last instruction.
23893  $ac_cs_success || as_fn_exit 1
23894fi
23895if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23896  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23897$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23898fi
23899
23900
23901echo ""
23902echo "X11 will be built with the following settings:"
23903echo " Loadable i18n module support:            "$XLIB_LOADABLE_I18N
23904echo " Loadable xcursor library support:        "$XLIB_LOADABLE_XCURSOR
23905echo " Threading support:                       "$xthreads
23906echo " Use Threads safe API:                    "$mtsafeapi
23907echo " Threads stubs in libX11:                 "$thrstubs
23908echo " XCMS:                                    "$XCMS
23909echo " Internationalization support:            "$XLOCALE
23910echo " XF86BigFont support:                     "$XF86BIGFONT
23911echo " XKB support:                             "$XKB
23912echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR
23913echo " Compose table cache enabled:             "$COMPOSECACHE
23914echo " Functional specs building enabled:       "$build_specs
23915echo ""
23916